Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
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
常超
founder_vue
Commits
30eabda0
Commit
30eabda0
authored
May 26, 2022
by
xue_wengang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色管理
parent
cb77b029
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
23 deletions
+41
-23
src/views/shse/shsexs/queryXsxx.vue
+23
-16
src/views/userAuth/role/queryRole.vue
+18
-7
No files found.
src/views/shse/shsexs/queryXsxx.vue
View file @
30eabda0
...
...
@@ -8,7 +8,7 @@
:cxDefaultFormThead=
"cxDefaultFormThead"
:cxUrl=
"cxUrl"
@
toInfor=
"toInfor"
:pageASs=
'pageASs'
:pageASs=
"pageASs"
@
selectionChange=
"selectionChange"
ref=
"rightContent"
>
...
...
@@ -69,7 +69,7 @@ export default {
fkxy
:
""
,
},
slect
:
[],
pageASs
:
'queryXsxx'
,
pageASs
:
"queryXsxx"
,
header
:
"涉黑涉恶案件侦查"
,
pageBs
:
"queryXsxx"
,
cxFormData
:
{
...
...
@@ -120,7 +120,7 @@ export default {
label
:
"线索编号"
,
toInfor
:
true
,
prop
:
"shsexsbh"
,
width
:
'200'
width
:
"200"
,
},
{
label
:
"线索名称"
,
...
...
@@ -129,6 +129,7 @@ export default {
{
label
:
"关联案事件"
,
prop
:
"asjbh"
,
toInfor
:
true
,
},
{
label
:
"涉及地区"
,
...
...
@@ -138,14 +139,14 @@ export default {
label
:
"涉及行业领域"
,
prop
:
"shsexssjhylydm"
,
},
{
{
label
:
"是否上报"
,
prop
:
"sfsb"
,
},
{
label
:
'反馈状态'
,
prop
:
'sffk'
}
label
:
"反馈状态"
,
prop
:
"sffk"
,
}
,
],
cxUrl
:
"/selectXsList"
,
Menu
:
[
...
...
@@ -172,13 +173,19 @@ export default {
this
.
$store
.
commit
(
"user/SET_Menu"
,
this
.
Menu
);
},
methods
:
{
toInfor
(
obj
)
{
this
.
$router
.
pushToTab
({
path
:
'/xsxq'
,
query
:
{
shsexsbh
:
obj
.
shsexsbh
}
})
toInfor
(
obj
,
type
)
{
debugger
;
if
(
type
.
prop
==
"asjbh"
)
{
let
path
=
`
${
this
.
$baseUrl
.
alyIP5
}
/queryAjdaxxs?asjbh=
${
obj
.
asjbh
}
`
;
window
.
open
(
path
,
"_blank"
);
}
else
{
this
.
$router
.
pushToTab
({
path
:
"/xsxq"
,
query
:
{
shsexsbh
:
obj
.
shsexsbh
,
},
});
}
},
xsFk
(
csope
)
{
this
.
$set
(
this
.
examineInfo
,
"shsexsbh"
,
csope
.
row
.
shsexsbh
);
...
...
@@ -240,8 +247,8 @@ export default {
},
toXf
()
{
this
.
$router
.
pushToTab
({
path
:
'/wfzdzczl'
})
path
:
"/wfzdzczl"
,
})
;
},
toSb
(
scope
)
{
let
params
=
new
FormData
();
...
...
src/views/userAuth/role/queryRole.vue
View file @
30eabda0
...
...
@@ -73,7 +73,7 @@ export default {
page
:
1
,
roleAlias
:
""
,
parentId
:
0
,
menuIds
:
''
menuIds
:
""
,
},
cxQueryField
:
[
{
...
...
@@ -141,6 +141,7 @@ export default {
//全选
checkAll
:
false
,
selec
:
[],
parentArr
:
[],
};
},
created
()
{
...
...
@@ -157,6 +158,7 @@ export default {
res
.
data
.
forEach
((
item
)
=>
{
if
(
item
.
hasChildren
)
{
self
.
getTreeCode
(
item
.
children
);
self
.
parentArr
.
push
(
item
.
id
);
}
item
.
label
=
item
.
title
;
});
...
...
@@ -170,12 +172,16 @@ export default {
},
methods
:
{
currentChecked
(
nodeObj
,
SelectedObj
)
{
this
.
selectedTree
=
[...
SelectedObj
.
checkedKeys
,...
SelectedObj
.
halfCheckedKeys
];
this
.
selectedTree
=
[
...
SelectedObj
.
checkedKeys
,
...
SelectedObj
.
halfCheckedKeys
,
];
},
getTreeCode
(
children
)
{
children
.
forEach
((
item
)
=>
{
if
(
item
.
hasChildren
)
{
item
.
label
=
item
.
title
;
this
.
parentArr
.
push
(
item
.
id
);
this
.
getTreeCode
(
item
.
children
);
}
else
{
item
.
label
=
item
.
title
;
...
...
@@ -214,9 +220,13 @@ export default {
}
},
editMenu
()
{
debugger
;
if
(
this
.
selectedId
.
length
>
0
)
{
this
.
dialogVisible
=
true
;
this
.
selec
=
this
.
selectedId
[
0
].
menuListId
;
let
arr
=
new
Set
([...
this
.
parentArr
])
this
.
selec
=
new
Set
(
this
.
selectedId
[
0
].
menuListId
.
filter
(
x
=>
!
arr
.
has
(
x
)));
console
.
log
(
difference
);
//this.selec = this.selectedId[0].menuListId;
}
else
{
this
.
$message
.
error
(
"请选择角色"
);
}
...
...
@@ -231,6 +241,7 @@ export default {
// row.forEach((item) => {
// this.selectedId.push(item.id);
// });
debugger
;
this
.
selectedId
=
val
;
this
.
checkAll
=
false
;
this
.
selec
=
[];
...
...
@@ -240,9 +251,9 @@ export default {
this
.
$message
.
warning
(
"只能单选"
);
return
;
}
this
.
$nextTick
(()
=>
{
this
.
$refs
.
tree
.
setCheckedKeys
([]);
});
//
this.$nextTick(() => {
//
this.$refs.tree.setCheckedKeys([]);
//
});
},
handleClose
()
{
this
.
dialogVisible
=
false
;
...
...
@@ -326,7 +337,7 @@ export default {
}
else
{
this
.
$refs
.
tree
.
setCheckedKeys
([]);
this
.
selec
=
[];
this
.
selectedTree
=
[]
this
.
selectedTree
=
[]
;
}
},
},
...
...
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