Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouqian
vue-gjjs
Commits
7c8340a1
Commit
7c8340a1
authored
Dec 27, 2021
by
liushikai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待经办调整
parent
2793bac1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
96 deletions
+13
-96
Event.js
src/model/Sptsel/Event.js
+3
-9
Menu.vue
src/views/Business/Sptsel/Menu.vue
+10
-87
No files found.
src/model/Sptsel/Event.js
View file @
7c8340a1
...
@@ -93,15 +93,9 @@ export default {
...
@@ -93,15 +93,9 @@ export default {
},
},
async
handleSearch
()
{
async
handleSearch
()
{
if
(
this
.
sourceModel
.
length
===
0
){
if
(
this
.
sourceModel
.
length
===
0
){
this
.
model
.
chkinc
=
"t"
;
this
.
sourceData
.
forEach
(
s
=>
{
this
.
model
.
chkdzt
=
"t"
;
this
.
model
[
s
.
value
]
=
't'
;
this
.
model
.
chkcor
=
"t"
;
})
this
.
model
.
chkaut
=
"t"
;
this
.
model
.
chkdel
=
"t"
;
this
.
model
.
chktco
=
"t"
;
this
.
model
.
chkcan
=
"t"
;
this
.
model
.
chkypt
=
"t"
;
}
}
this
.
executeDefault
(
"sptstm"
).
then
(
res
=>
{
this
.
executeDefault
(
"sptstm"
).
then
(
res
=>
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
...
...
src/views/Business/Sptsel/Menu.vue
View file @
7c8340a1
...
@@ -104,6 +104,7 @@
...
@@ -104,6 +104,7 @@
placeholder=
"请选择来源"
placeholder=
"请选择来源"
multiple
multiple
collapse-tags
collapse-tags
@
change=
"sourceChangeEvent"
>
>
<el-option
<el-option
v-for=
"item in sourceData"
v-for=
"item in sourceData"
...
@@ -367,7 +368,7 @@ export default {
...
@@ -367,7 +368,7 @@ export default {
mixins
:
[
CommonProcess
],
mixins
:
[
CommonProcess
],
data
()
{
data
()
{
return
{
return
{
//
sourceModel: [],
sourceModel
:
[],
sourceData
:
[],
sourceData
:
[],
initdialog
:
false
,
initdialog
:
false
,
transactionStatus
:
{
transactionStatus
:
{
...
@@ -420,95 +421,17 @@ export default {
...
@@ -420,95 +421,17 @@ export default {
{
label
:
"云平台"
,
value
:
"chkypt"
},
{
label
:
"云平台"
,
value
:
"chkypt"
},
];
];
},
},
computed
:
{
methods
:
{
chkinc
:
{
sourceChangeEvent
(
val
)
{
get
()
{
this
.
sourceData
.
forEach
(
s
=>
{
return
this
.
model
.
chkinc
===
"t"
;
this
.
model
[
s
.
value
]
=
''
;
},
})
set
(
val
)
{
val
.
forEach
((
element
)
=>
{
this
.
model
.
chkinc
=
val
?
"t"
:
""
;
this
.
model
[
element
]
=
't'
;
},
},
chkdzt
:
{
get
()
{
return
this
.
model
.
chkdzt
===
"t"
;
},
set
(
val
)
{
this
.
model
.
chkdzt
=
val
?
"t"
:
""
;
},
},
chkpen
:
{
get
()
{
return
this
.
model
.
chkpen
===
"t"
;
},
set
(
val
)
{
this
.
model
.
chkpen
=
val
?
"t"
:
""
;
},
},
chkcor
:
{
get
()
{
return
this
.
model
.
chkcor
===
"t"
;
},
set
(
val
)
{
this
.
model
.
chkcor
=
val
?
"t"
:
""
;
},
},
chkaut
:
{
get
()
{
return
this
.
model
.
chkaut
===
"t"
;
},
set
(
val
)
{
this
.
model
.
chkaut
=
val
?
"t"
:
""
;
},
},
chkdel
:
{
get
()
{
return
this
.
model
.
chkdel
===
"t"
;
},
set
(
val
)
{
this
.
model
.
chkdel
=
val
?
"t"
:
""
;
},
},
chktco
:
{
get
()
{
return
this
.
model
.
chktco
===
"t"
;
},
set
(
val
)
{
this
.
model
.
chktco
=
val
?
"t"
:
""
;
},
},
chkcan
:
{
get
()
{
return
this
.
model
.
chkcan
===
"t"
;
},
set
(
val
)
{
this
.
model
.
chkcan
=
val
?
"t"
:
""
;
},
},
sourceModel
:
{
get
()
{
let
arr
=
[];
this
.
sourceData
.
forEach
((
element
)
=>
{
if
(
this
.
model
[
element
.
value
])
{
arr
.
push
(
element
.
value
);
}
});
});
return
arr
;
},
},
set
(
val
)
{
...
Event
let
set
=
new
Set
(
val
);
this
.
sourceData
.
forEach
((
element
)
=>
{
if
(
set
.
has
(
element
.
value
))
{
this
.
model
[
element
.
value
]
=
true
;
}
else
{
this
.
model
[
element
.
value
]
=
false
;
}
});
},
},
},
},
methods
:
{
...
Event
},
created
:
function
()
{},
created
:
function
()
{},
};
};
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment