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
2b1f187a
Commit
2b1f187a
authored
Jan 05, 2022
by
xue_wengang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户权限
parent
0fa14a1b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
92 additions
and
81 deletions
+92
-81
src/api/base.js
+3
-3
src/components/form.vue
+52
-49
src/views/userAuth/menu/queryMenu.vue
+2
-2
src/views/userAuth/role/queryRole.vue
+3
-3
src/views/userAuth/user/queryUser.vue
+23
-10
src/views/zczl/zczl/addsqfbzl.vue
+1
-6
vue.config.js
+8
-8
No files found.
src/api/base.js
View file @
2b1f187a
...
...
@@ -24,7 +24,7 @@ if (
}
else
{
//------------------------------服务器路径**测试**----------------------------------
base
.
alyIP
=
"/apialy"
;
base
.
alyIP2
=
"/apiAjzb"
;
base
.
alyIP2
=
"/apiAjzb
XzGaw
"
;
base
.
alyIP3
=
"/apialy"
;
base
.
alyIP4
=
'http://39.99.155.173:8007'
// 脑图链接
base
.
alyIP5
=
'http://39.99.155.173:8003'
// 画像工厂 案件
...
...
@@ -35,9 +35,9 @@ if (
// base.alyIP = "/api
XzxtGaw
";
// base.alyIP = "/api
aly
";
// base.alyIP2 = "/apiAjzbGaw";
// base.alyIP3 = "/api
XzxtGaw
";
// base.alyIP3 = "/api
aly
";
// base.alyIP4 = 'http://74.6.54.153:8005' // 脑图链接
// base.alyIP5 = 'http://74.6.54.153:8003' // 画像工厂 案件
// base.alyIP6 = 'http://10.184.14.193:9002' // 画像工厂 案件
...
...
src/components/form.vue
View file @
2b1f187a
...
...
@@ -395,16 +395,17 @@
>
</el-radio-group>
<div
v-show=
"!!objectFs.unitcode"
>
已选定的接受人:{{objectFs.unitname}}的{{objectFs.trueName}}
已选定的接受人:{{ objectFs.unitname }}的{{
objectFs.trueName
}}
<el-button
type=
"edit"
size=
"mini"
style=
"margin-left: 5px; margin-right: 0 !important"
@
click=
"$emit('insertMessage', true)"
>
更换接受员
</el-button
>
type=
"edit"
size=
"mini"
style=
"margin-left: 5px; margin-right: 0 !important"
@
click=
"$emit('insertMessage', true)"
>
更换接受员
</el-button
>
</div>
</div>
<div
class=
"zdyInputW"
v-else-if=
"item.type == 'radioBotton'"
>
<el-radio-group
...
...
@@ -454,7 +455,7 @@
:sendId=
"item.id"
:formData=
"formLabelAlign"
:currentItem=
"item"
@
getDialogSeleted=
'getDialogSeleted'
@
getDialogSeleted=
"getDialogSeleted"
/>
</div>
...
...
@@ -1027,7 +1028,8 @@
class=
"finish examine"
v-if=
"
pageBs == 'adjustRlqbxs' &&
((!formLabelAlign.spbz || formLabelAlign.spbz == '1') && formLabelAlign.editing != true)
(!formLabelAlign.spbz || formLabelAlign.spbz == '1') &&
formLabelAlign.editing != true
"
>
保存并提交审核
</el-button
>
...
...
@@ -1047,7 +1049,7 @@
<
script
>
import
LazySelectTreeDialog
from
"./lazy_treeCode_components.vue"
;
import
SelectTreeDialog
from
"@c/treeCode_components.vue"
;
import
{
parse
}
from
'qs'
;
import
{
parse
}
from
"qs"
;
export
default
{
name
:
"formCommonPage"
,
components
:
{
...
...
@@ -1103,7 +1105,7 @@ export default {
fileLists
:
{},
imageUrl
:
{},
shade
:
false
,
unitname
:
''
,
unitname
:
""
,
};
},
created
()
{
...
...
@@ -1286,7 +1288,10 @@ export default {
if
(
item
.
type
!==
"file"
)
{
//1.1二级字典处理
if
(
item
.
type
==
"lazyCodeTree"
||
item
.
type
==
"codeTree"
)
{
if
(
item
.
multiple
&&
self
.
formLabelAlign
[
item
.
id
].
length
>
1
)
{
if
(
item
.
multiple
&&
self
.
formLabelAlign
[
item
.
id
].
length
>
1
)
{
let
str
=
`#
${
self
.
formLabelAlign
[
item
.
id
].
join
(
"#"
)}
`
;
if
(
item
.
id
==
"zljsdwdm"
||
item
.
id
==
"kyxsbshlx"
)
{
str
=
self
.
formLabelAlign
[
item
.
id
].
join
(
","
);
...
...
@@ -1343,7 +1348,6 @@ export default {
}
//1.2普通字段处理
else
{
params
.
append
(
objStr
+
item
.
id
,
self
.
formLabelAlign
[
item
.
id
]
...
...
@@ -1529,14 +1533,14 @@ export default {
self
.
formLabelAlign
[
subItem
.
id
].
forEach
((
val5
,
index
)
=>
{
//遍历每一个数组的值
for
(
var
ite
in
val5
)
{
debugger
debugger
;
//数组里对象 在遍历对象
if
(
val5
[
ite
])
{
//如果有值的话
var
currentc
=
subItem
.
list
[
0
].
name
.
find
((
item
)
=>
{
return
item
.
id
==
ite
;
});
var
currentcs
=
subItem
.
list
[
0
].
name
.
find
((
item
)
=>
{
var
currentcs
=
subItem
.
list
[
0
].
name
.
find
((
item
)
=>
{
return
item
.
ids
==
ite
;
});
if
(
currentc
&&
currentc
.
type
==
"date"
)
{
...
...
@@ -1573,37 +1577,35 @@ export default {
val5
[
ite
]
);
}
}
else
if
(
currentcs
&&
currentcs
.
type
==
"file"
)
{
if
(
val5
[
ite
]
instanceof
Array
)
{
val5
[
ite
].
forEach
(
(
fuJianMessageItem
,
fuJianMessageIndex
)
=>
{
for
(
var
fielMessageName
in
fuJianMessageItem
)
{
if
(
fuJianMessageItem
[
fielMessageName
])
{
params
.
append
(
subItem
.
id
+
"["
+
index
+
"]."
+
ite
+
"["
+
fuJianMessageIndex
+
"]."
+
f
ielMessageName
,
fuJianMessageItem
[
fielMessageName
]
);
}
else
if
(
currentcs
&&
currentcs
.
type
==
"file"
)
{
if
(
val5
[
ite
]
instanceof
Array
)
{
val5
[
ite
].
forEach
(
(
fuJianMessageItem
,
fuJianMessageIndex
)
=>
{
for
(
var
fielMessageName
in
fuJianMessageItem
)
{
if
(
fuJianMessageItem
[
fielMessageName
]
)
{
params
.
append
(
subItem
.
id
+
"["
+
index
+
"]."
+
ite
+
"["
+
fuJianMessageIndex
+
"]."
+
fielMessageName
,
f
uJianMessageItem
[
fielMessageName
]
);
}
}
}
}
);
}
);
}
else
if
(
ite
==
"xxzjbh"
)
{
}
else
if
(
ite
==
"xxzjbh"
)
{
params
.
append
(
subItem
.
id
+
"["
+
index
+
"]."
+
ite
,
val5
[
ite
]
);
}
else
if
(
currentc
&&
currentc
.
type
!=
"file"
){
}
else
if
(
currentc
&&
currentc
.
type
!=
"file"
)
{
console
.
log
(
"3)有子级表单数据处理."
+
subItem
.
id
+
...
...
@@ -1628,7 +1630,9 @@ export default {
var
fileObject
=
{};
for
(
var
fileItem
in
self
.
fileLists
)
{
for
(
var
i
=
0
;
i
<
self
.
fileLists
[
fileItem
].
length
;
i
++
)
{
if
(
self
.
fileLists
[
fileItem
][
i
].
raw
)
{
if
(
self
.
pageBs
==
"addsqfbzl"
)
{
params
.
append
(
"file"
,
self
.
fileLists
[
fileItem
][
i
].
raw
);
}
else
if
(
self
.
fileLists
[
fileItem
][
i
].
raw
)
{
if
(
fileObject
[
fileItem
])
{
fileObject
[
fileItem
].
push
(
self
.
fileLists
[
fileItem
][
i
].
raw
);
}
else
{
...
...
@@ -1740,11 +1744,11 @@ export default {
});
console
.
log
(
this
.
formLabelAlign
);
},
getDialogSeleted
(
label
)
{
// debugger
// this.unitname = label
// console.log('sadasdasdasdasdasda',label);
this
.
$emit
(
'getDialogSeletesd'
,
label
)
getDialogSeleted
(
label
)
{
// debugger
// this.unitname = label
// console.log('sadasdasdasdasdasda',label);
this
.
$emit
(
"getDialogSeletesd"
,
label
);
},
handleChange
(
file
,
fileList
,
item
,
parentItem
,
itemIndex
)
{
var
self
=
this
;
...
...
@@ -2019,7 +2023,7 @@ export default {
axios
.
get
(
`JsonData/
${
val5
.
codeTree
}
.json`
)
.
then
((
res
)
=>
{
debugger
debugger
;
self
.
$set
(
val5
,
"codeOptions"
,
res
.
data
.
data
.
rows
);
})
.
catch
((
err
)
=>
{
...
...
@@ -2040,9 +2044,8 @@ export default {
axios
.
get
(
`JsonData/
${
val2
.
codeTree
}
.json`
)
.
then
((
res
)
=>
{
debugger
debugger
;
self
.
$set
(
val2
,
"codeOptions"
,
res
.
data
.
data
.
rows
);
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
...
...
src/views/userAuth/menu/queryMenu.vue
View file @
2b1f187a
...
...
@@ -13,7 +13,7 @@
@
editMenu=
"editMenu"
@
selectionChange=
"selectionChange"
>
<template
#
btnGroup=
"scope"
>
<template
#
btnGroup=
"scope"
v-if=
"isPremission >= 0"
>
<span
style=
"margin-right: 16px"
@
click=
"edit(scope.scope)"
class=
"edit"
>
编辑
</span>
<span
@
click=
"dele(scope.scope)"
class=
"dele"
>
删除
</span>
</
template
>
...
...
@@ -123,7 +123,7 @@ export default {
this
.
$store
.
commit
(
"user/SET_Menu"
,
this
.
Menu
);
this
.
isPremission
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
)
).
permission
.
findIndex
((
item
)
=>
item
==
"A0000"
);
).
permission
.
split
(
','
).
findIndex
((
item
)
=>
item
==
"A0000"
);
this
.
getTree
();
},
methods
:
{
...
...
src/views/userAuth/role/queryRole.vue
View file @
2b1f187a
...
...
@@ -12,10 +12,10 @@
@
toInfor=
"toInfor"
@
selectionChange=
"selectionChange"
>
<template
#
listOperation=
"scope"
v-if=
"isPremission"
>
<template
#
listOperation=
"scope"
v-if=
"isPremission
>= 0
"
>
<span
class=
"hbyps"
@
click=
"editMenu(scope.scope)"
>
菜单配置
</span>
</
template
>
<
template
#
btnGroup=
"scope"
>
<
template
#
btnGroup=
"scope"
v-if=
"isPremission >= 0"
>
<span
style=
"margin-right: 16px"
@
click=
"edit(scope.scope)"
class=
"edit"
>
编辑
</span>
<span
@
click=
"dele(scope.scope)"
class=
"dele"
>
删除
</span>
</
template
>
...
...
@@ -127,7 +127,7 @@ export default {
this
.
$store
.
commit
(
"user/SET_Menu"
,
this
.
Menu
);
this
.
isPremission
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
)
).
permission
.
findIndex
((
item
)
=>
item
==
"A0000"
);
).
permission
.
split
(
','
).
findIndex
((
item
)
=>
item
==
"A0000"
);
this
.
getTree
();
},
methods
:
{
...
...
src/views/userAuth/user/queryUser.vue
View file @
2b1f187a
...
...
@@ -13,7 +13,7 @@
@
selectionChange=
"selectionChange"
@
handleSwitch=
"handleSwitch"
>
<template
#
listOperation=
"scope"
v-if=
"isPremission"
>
<template
#
listOperation=
"scope"
v-if=
"isPremission
>= 0
"
>
<span
class=
"hbyps"
@
click=
"editRole(scope.scope)"
>
角色配置
</span>
</
template
>
<
template
#
btnGroup=
"scope"
>
...
...
@@ -27,9 +27,12 @@
@
click=
"editMa(scope.scope)"
class=
"edit"
style=
"margin-right: 16px"
v-if=
"isPremission >= 0"
>
修改密码
</span
>
<span
@
click=
"dele(scope.scope)"
class=
"dele"
>
删除
</span>
<span
@
click=
"dele(scope.scope)"
class=
"dele"
v-if=
"isPremission >= 0"
>
删除
</span
>
<span
@
click=
"edit(scope.scope)"
class=
"edit"
>
编辑
</span>
</
template
>
</right-content>
...
...
@@ -214,15 +217,21 @@ export default {
//全选
checkAll
:
false
,
isPremission
:
false
,
identitycard
:
""
,
};
},
created
()
{
this
.
$store
.
commit
(
"user/SET_Menu"
,
this
.
Menu
);
this
.
$store
.
commit
(
"user/SET_LeftMenu"
,
this
.
leftMenus
);
this
.
$store
.
commit
(
"user/SET_Header"
,
this
.
header
);
this
.
isPremission
=
JSON
.
parse
(
this
.
isPremission
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
))
.
permission
.
split
(
","
)
.
findIndex
((
item
)
=>
item
==
"A0000"
);
debugger
;
this
.
identitycard
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
)
).
permission
.
findIndex
((
item
)
=>
item
==
"A0000"
);
).
identitycard
;
debugger
;
this
.
getTree
();
},
methods
:
{
...
...
@@ -331,12 +340,16 @@ export default {
});
},
edit
(
obj
)
{
this
.
$router
.
pushToTab
({
path
:
"/addXg"
,
query
:
{
xxzjbh
:
obj
.
row
.
id
,
},
});
if
(
this
.
identitycard
==
obj
.
row
.
identitycard
)
{
this
.
$router
.
pushToTab
({
path
:
"/addXg"
,
query
:
{
xxzjbh
:
obj
.
row
.
id
,
},
});
}
else
{
this
.
$message
.
error
(
'暂无权限,只能修改本人信息'
)
}
},
dele
(
obj
)
{
this
.
$confirm
(
"此操作将永久删除该用户, 是否继续?"
,
"提示"
,
{
...
...
src/views/zczl/zczl/addsqfbzl.vue
View file @
2b1f187a
...
...
@@ -189,12 +189,7 @@ export default {
}
params
.
append
(
"xsbh"
,
this
.
xsbh
);
params
.
append
(
"xsType"
,
this
.
xsType
);
params
.
append
(
"module"
,
this
.
module
);
for
(
let
i
=
0
;
i
<
this
.
$refs
.
formCompontent
.
fileLists
.
file
.
length
;
i
++
){
params
.
append
(
"file"
,
this
.
$refs
.
formCompontent
.
fileLists
.
file
[
i
].
raw
);
}
params
.
append
(
"module"
,
this
.
module
);
doAddZczlxx
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
&&
res
.
code
==
200
)
{
this
.
$alert
(
"保存成功!"
,
"提示"
,
{
...
...
vue.config.js
View file @
2b1f187a
...
...
@@ -66,14 +66,14 @@ module.exports = {
'^/apialy'
:
'/'
}
},
"/apiAjzbXzGaw"
:
{
target
:
"https://155.1.33.10:20002/"
,
// 基础查询、案件侦办
changeOrigin
:
true
,
secure
:
false
,
pathRewrite
:
{
"^/apiAjzbXzGaw"
:
"/"
}
},
//
"/apiAjzbXzGaw": {
//
target: "https://155.1.33.10:20002/", // 基础查询、案件侦办
//
changeOrigin: true,
//
secure: false,
//
pathRewrite: {
//
"^/apiAjzbXzGaw": "/"
//
}
//
},
"/apiAjzbXzGaw"
:
{
target
:
"https://155.1.33.10:20002/"
,
// 基础查询、案件侦办
changeOrigin
:
true
,
...
...
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