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
27d3e111
Commit
27d3e111
authored
Dec 27, 2021
by
kai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://114.115.138.98:8900/fukai/vue-gjjs
parents
29d67b23
e52f7045
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
98 deletions
+23
-98
Event.js
src/model/Sptsel/Event.js
+3
-9
Menu.vue
src/views/Business/Sptsel/Menu.vue
+11
-88
SideMenu.vue
src/views/Layout/SideMenu.vue
+9
-1
No files found.
src/model/Sptsel/Event.js
View file @
27d3e111
...
...
@@ -93,15 +93,9 @@ export default {
},
async
handleSearch
()
{
if
(
this
.
sourceModel
.
length
===
0
){
this
.
model
.
chkinc
=
"t"
;
this
.
model
.
chkdzt
=
"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
.
sourceData
.
forEach
(
s
=>
{
this
.
model
[
s
.
value
]
=
't'
;
})
}
this
.
executeDefault
(
"sptstm"
).
then
(
res
=>
{
//TODO 处理数据逻辑
...
...
src/views/Business/Sptsel/Menu.vue
View file @
27d3e111
...
...
@@ -104,6 +104,7 @@
placeholder=
"请选择来源"
multiple
collapse-tags
@
change=
"sourceChangeEvent"
>
<el-option
v-for=
"item in sourceData"
...
...
@@ -367,7 +368,7 @@ export default {
mixins
:
[
CommonProcess
],
data
()
{
return
{
//
sourceModel: [],
sourceModel
:
[],
sourceData
:
[],
initdialog
:
false
,
transactionStatus
:
{
...
...
@@ -420,95 +421,17 @@ export default {
{
label
:
"云平台"
,
value
:
"chkypt"
},
];
},
computed
:
{
chkinc
:
{
get
()
{
return
this
.
model
.
chkinc
===
"t"
;
},
set
(
val
)
{
this
.
model
.
chkinc
=
val
?
"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
)
{
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
:
{
sourceChangeEvent
(
val
)
{
this
.
sourceData
.
forEach
(
s
=>
{
this
.
model
[
s
.
value
]
=
''
;
})
val
.
forEach
((
element
)
=>
{
this
.
model
[
element
]
=
't'
;
});
},
...
Event
},
methods
:
{
...
Event
},
created
:
function
()
{},
};
</
script
>
...
...
src/views/Layout/SideMenu.vue
View file @
27d3e111
...
...
@@ -32,7 +32,6 @@ export default {
data
:
function
()
{
return
{
openFlgArr
:
[],
openFlgArrCopy
:
[],
menuOpen
:
true
,
menuList
:
[
// { inifrm: "0", ininam: "公共夹", pntmiu: "" },
...
...
@@ -110,6 +109,15 @@ export default {
return
this
.
$route
.
path
;
},
},
watch
:
{
$route
:
function
()
{
this
.
$nextTick
(()
=>
{
const
arr
=
[]
this
.
getOpenMenusIndex
(
this
.
menus
,
arr
)
this
.
openFlgArr
=
[...
new
Set
([...
this
.
openFlgArr
,
...
arr
])]
})
}
},
mounted
()
{
const
arr
=
[];
this
.
generateMenuTree
(
arr
);
...
...
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