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
4b8d9fd7
Commit
4b8d9fd7
authored
Nov 13, 2021
by
maxiaohan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询与认定 调整条件上正查、倒查、查重的颜色
parent
dfee461a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
15 deletions
+63
-15
src/views/SystemManage/RoleManage.vue
+29
-8
src/views/cxyrd/QueryConfirm.vue
+34
-7
No files found.
src/views/SystemManage/RoleManage.vue
View file @
4b8d9fd7
...
...
@@ -70,10 +70,6 @@
<div
@
click=
"addrole"
>
addrole
</div>
<div
class=
"save"
>
<div
class=
"btn"
@
click=
"save"
>
保存
</div>
<!--
<el-button
@
click=
"add"
>
add
</el-button>
-->
<!--
<el-button
@
click=
"edit"
>
edit
</el-button>
-->
<!--
<el-button
@
click=
"del"
>
del
</el-button>
-->
<!--
<el-button
@
click=
"search"
>
search
</el-button>
-->
</div>
</div>
<div
class=
"role-info"
>
...
...
@@ -224,6 +220,10 @@ export default {
addRoleParams
:
[],
// 角色按钮
defaultRoleBtns
:
[],
// 所有权限的列表
permissionDataList
:
[],
// 保存的角色选项
roleMenusSelection
:
[],
// 角色权限菜单
roleMenus
:
[
{
name
:
"指掌纹采集"
,
code
:
0
,
flag
:
false
},
...
...
@@ -327,8 +327,7 @@ export default {
{
name
:
"本地重卡反馈"
,
code
:
14
,
flag
:
false
},
{
name
:
"本地涉案反馈"
,
code
:
15
,
flag
:
false
}
],
// 保存的角色选项
roleMenusSelection
:
[],
// 自定义的角色组
diyRoleList
:
[],
diyRoleItemIndex
:
-
1
,
...
...
@@ -336,6 +335,27 @@ export default {
};
},
methods
:
{
// 获取权限列表
getPermissionDataLists
()
{
this
.
$axios
.
get
(
"/system/permissions"
).
then
(
res
=>
{
var
arr
=
[];
if
(
res
.
data
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
if
(
res
.
data
[
i
].
parentId
===
0
)
{
arr
.
push
(
res
.
data
[
i
]);
}
else
{
for
(
let
j
=
0
;
j
<
arr
.
length
;
j
++
)
{
if
(
arr
[
j
].
id
===
res
.
data
[
i
].
parentId
)
{
this
.
$set
(
this
.
arr
[
j
],
"children"
,
res
.
data
[
i
]);
}
}
}
}
}
this
.
permissionDataList
=
arr
;
console
.
info
(
"权限列表=====>"
,
arr
);
});
},
addrole
()
{
var
role
=
{
name
:
"测试角色"
,
...
...
@@ -354,7 +374,7 @@ export default {
this
.
roleMenusSelection
=
this
.
roleMenus
;
console
.
info
(
"roleMenusSelection===="
,
this
.
roleMenusSelection
);
},
// 列表
//
获取角色列表 和 角色权限
列表
search
()
{
this
.
$axios
.
get
(
"/system/roles"
)
...
...
@@ -363,7 +383,7 @@ export default {
this
.
roles
=
res
.
data
;
res
.
data
.
forEach
((
item
,
index
)
=>
{
// item.flag = false;
console
.
info
(
item
);
//
console.info(item);
if
(
index
<
7
)
{
this
.
defaultRoleBtns
.
push
(
item
);
}
else
{
...
...
@@ -435,6 +455,7 @@ export default {
},
created
()
{
this
.
search
();
this
.
getPermissionDataLists
();
},
mounted
()
{
this
.
defaultRoleBtns
[
0
].
flag
=
true
;
...
...
src/views/cxyrd/QueryConfirm.vue
View file @
4b8d9fd7
...
...
@@ -91,7 +91,7 @@
<!-- ]"-->
<!-- >-->
<div
class=
"btn"
class=
"btn
1
"
@
click=
"getQueryType(btn, 'querytypes')"
:class=
"[
btn.value === '2'
...
...
@@ -315,12 +315,12 @@
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"item.prop === 'querytype'"
>
<div
v-if=
"scope.row.querytype === '3'"
style=
"color: #
ffa219
"
>
<div
v-if=
"scope.row.querytype === '3'"
style=
"color: #
055fe7
"
>
{{
scope
.
row
.
queryTypeName
}}
</div>
<div
v-else-if=
"scope.row.querytype === '0'"
style=
"color: #
005fe7
"
style=
"color: #
fa9500
"
>
{{
scope
.
row
.
queryTypeName
}}
</div>
...
...
@@ -587,11 +587,20 @@ export default {
.
post
(
"/api/queryque/standardQid"
,
this
.
reqParam
)
.
then
(
response
=>
{
if
(
response
.
data
.
code
===
0
)
{
this
.
list
=
response
.
data
.
ret
.
list
;
this
.
reqParam
.
page
.
total
=
response
.
data
.
ret
.
total
;
console
.
info
(
"查询结果===>"
,
this
.
list
);
this
.
userInfo
=
this
.
getUserInfo
(
this
.
list
);
if
(
response
.
data
.
ret
!==
null
)
{
// 请求成功有返回值
this
.
list
=
response
.
data
.
ret
.
list
;
this
.
reqParam
.
page
.
total
=
response
.
data
.
ret
.
total
;
console
.
info
(
"查询结果===>"
,
this
.
list
);
this
.
userInfo
=
this
.
getUserInfo
(
this
.
list
);
}
else
{
// 请求成功无返回值
this
.
list
=
[];
this
.
reqParam
.
page
.
total
=
0
;
this
.
reqParam
.
page
.
currPage
=
1
;
}
}
else
{
// 请求失败
this
.
$message
.
error
(
response
.
data
.
message
);
}
// console.info(JSON.stringify(this.list));
...
...
@@ -1623,6 +1632,24 @@ b {
color
:
#055fe7
;
}
.btn1
{
width
:
fit-content
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-family
:
MicrosoftYaHei
;
border
:
none
;
height
:
22px
;
padding
:
0
;
margin
:
0
12px
0
12px
;
font-size
:
14px
;
font-weight
:
350
;
cursor
:
pointer
;
}
.btn1
:hover
{
font-weight
:
bolder
;
}
.btn-active-zc
{
color
:
#00b47a
;
}
...
...
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