Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
contractmanage
Project
Project
Details
Activity
Releases
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
张伯涛
contractmanage
Commits
fee6b99e
Commit
fee6b99e
authored
May 06, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同,项目权限问题
parent
4bb157e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
117 deletions
+68
-117
index.vue
src/layout/components/Sidebar/index.vue
+64
-113
index.vue
src/views/projectInfo/index.vue
+4
-4
No files found.
src/layout/components/Sidebar/index.vue
View file @
fee6b99e
...
...
@@ -41,7 +41,12 @@
<div
v-else-if=
"projectPerList.includes(jurisdiction)"
>
<sidebar-item
v-for=
"route in permissionPro_routes"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
</div>
<sidebar-item
v-for=
"route in permission_routes"
v-else
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
<div
v-else-if=
"authorityList.includes(jurisdiction)"
>
<sidebar-item
v-for=
"route in permission_routes"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
</div>
<div
v-else
>
<sidebar-item
v-for=
"route in noPermission_routes"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
</div>
</el-menu>
</el-scrollbar>
</div>
...
...
@@ -59,105 +64,32 @@ export default {
components
:
{
Logo
,
SidebarItem
},
data
()
{
return
{
projectPerList
:
[
'2017009369'
,
'2017009368'
,
'2016013051'
,
'2017013969'
,
'2017017971'
,
'2017013968'
,
'2019010032'
,
'2016012588'
,
'2016012589'
,
'2021011460'
,
'2021011459'
,
'2016012717'
,
'2016012906'
,
'2016012784'
,
'2016013006'
,
'2016013108'
,
'2016013046'
,
'2016013155'
,
'2017009391'
,
'2016012542'
,
'2016012554'
,
'2019010020'
,
'2016012599'
,
'2017013970'
,
'2016012620'
,
'2016012591'
,
'2016013069'
,
'2016012725'
],
authorityList
:
[
'2016012857'
,
'2017017987'
,
'2016013055'
,
'2016012785'
,
'2016012751'
,
'2016013044'
,
'2017009380'
,
'2016012827'
,
'2017009392'
,
'2019010027'
,
'2016013110'
,
'2016012626'
,
'2016013031'
,
'2016012902'
,
'2016013016'
,
'2021011462'
,
'2016012839'
,
'2016013112'
,
'2016012533'
,
'2016012542'
,
'2017017972'
,
'2016012725'
,
'2016013069'
,
'2016013046'
,
'2017009382'
,
'2019010030'
,
'2016013032'
,
'2019010033'
,
'2016012784'
,
'2016013099'
,
'2017009391'
,
'2017009365'
,
'2016012548'
,
'2016012698'
,
'2016013103'
,
'2016012572'
,
'2017009386'
,
'2017009371'
,
'2016012596'
,
'2016013042'
,
'2016058742'
,
'2016013104'
,
'2016012906'
,
'2016012780'
,
'2016013068'
,
'2016013065'
,
'2016012567'
,
'2016013051'
,
'2016012783'
,
'2016012598'
,
'2016012722'
,
'2016012717'
,
'2016013049'
,
'2016012575'
,
'2016012539'
,
'2016012786'
,
'2018010324'
,
'2016012905'
,
'2016012904'
,
'2016012832'
,
'2016012782'
,
'2016013006'
,
'2016028272'
,
'2016012903'
,
'2016012559'
,
'2016012774'
,
'2016013155'
,
'2018020118'
,
'2016012987'
,
'2018010313'
,
'2016012813'
,
'2019010024'
,
'2016012716'
,
'2017017988'
,
'2016013050'
,
'2016013066'
,
'2016013040'
,
'2016048074'
,
'2017009338'
,
'2016012620'
,
'2016013071'
,
'2016013113'
,
'2016013043'
,
'2016012893'
,
'2016013165'
,
'2016012767'
,
'2017017973'
,
'2016013047'
,
'2016012818'
,
'2018010336'
,
'2016013033'
,
'2016013030'
,
'2016012564'
,
'2016048097'
// 既是合同又是项目人员
bothPerList
:
[
'2016013051(重复)'
,
'2016012717(重复)'
,
'2016012906(重复)'
,
'2016012784(重复)'
,
'2016013006(重复)'
,
'2016013046(重复)'
,
'2016013155(重复)'
,
'2017009391(重复)'
,
'2016012542(重复)'
,
'2016012620(重复)'
,
'2016013069(重复)'
,
'2016012725(重复)'
],
// 项目人员
projectPerList
:
[
'2017009369'
,
'2017009368'
,
'2017013969'
,
'2017017971'
,
'2017013968'
,
'2019010032'
,
'2016012588'
,
'2016012589'
,
'2021011460'
,
'2021011459'
,
'2016012591'
,
'2016013108'
,
'2016012554'
,
'2019010020'
,
'2016012599'
,
'2017013970'
],
// 合同人员
authorityList
:
[
'2016012857'
,
'2017017987'
,
'2016013055'
,
'2016012785'
,
'2016012751'
,
'2016013044'
,
'2017009380'
,
'2016012827'
,
'2017009392'
,
'2019010027'
,
'2016013110'
,
'2016012626'
,
'2016013031'
,
'2016012902'
,
'2016013016'
,
'2021011462'
,
'2016012839'
,
'2016013112'
,
'2016012533'
,
'2016012542'
,
'2017017972'
,
'2016012725'
,
'2016013069'
,
'2016013046'
,
'2017009382'
,
'2019010030'
,
'2016013032'
,
'2019010033'
,
'2016012784'
,
'2016013099'
,
'2017009391'
,
'2017009365'
,
'2016012548'
,
'2016012698'
,
'2016013103'
,
'2016012572'
,
'2017009386'
,
'2017009371'
,
'2016012596'
,
'2016013042'
,
'2016058742'
,
'2016013104'
,
'2016012906'
,
'2016012780'
,
'2016013068'
,
'2016013065'
,
'2016012567'
,
'2016013051'
,
'2016012783'
,
'2016012598'
,
'2016012722'
,
'2016012717'
,
'2016013049'
,
'2016012575'
,
'2016012539'
,
'2016012786'
,
'2018010324'
,
'2016012905'
,
'2016012904'
,
'2016012832'
,
'2016012782'
,
'2016013006'
,
'2016028272'
,
'2016012903'
,
'2016012559'
,
'2016012774'
,
'2016013155'
,
'2018020118'
,
'2016012987'
,
'2018010313'
,
'2016012813'
,
'2019010024'
,
'2016012716'
,
'2017017988'
,
'2016013050'
,
'2016013066'
,
'2016013040'
,
'2016048074'
,
'2017009338'
,
'2016012620'
,
'2016013071'
,
'2016013113'
,
'2016013043'
,
'2016012893'
,
'2016013165'
,
'2016012767'
,
'2017017973'
,
'2016013047'
,
'2016012818'
,
'2018010336'
,
'2016013033'
,
'2016013030'
,
'2016012564'
,
'2016048097'
],
jurisdiction
:
JSON
.
parse
(
Store
.
get
(
storeKey
.
user
)).
userId
,
activeMenuPath
:
'/admin/list/index'
,
...
...
@@ -309,7 +241,34 @@ export default {
isCollapse
()
{
return
!
this
.
sidebar
.
opened
},
/** 项目列表*/
permissionPro_routes
()
{
return
[
{
path
:
'/projectInfo/index'
,
name
:
'ProjectInfo'
.
toLocaleUpperCase
(),
meta
:
{
title
:
'项目信息'
},
component
:
()
=>
import
(
'@/views/projectInfo/index'
)
},
{
path
:
'/journal/list'
,
name
:
'journalList'
.
toLocaleUpperCase
(),
meta
:
{
title
:
'日志管理'
},
component
:
()
=>
import
(
'@/layout/index'
),
children
:
[
{
path
:
'/journalManage/index'
,
name
:
'journalManageList'
.
toLocaleUpperCase
(),
meta
:
{
title
:
'日志管理'
},
component
:
()
=>
import
(
'@/views/journalManage/index'
)
}
]
}
]
},
/** 合同列表*/
permission_routes
()
{
return
[
{
path
:
'/projectInfo/index'
,
...
...
@@ -347,21 +306,13 @@ export default {
}
]
},
p
ermission_routes
()
{
noP
ermission_routes
()
{
return
[
{
path
:
'/list/demo'
,
name
:
'LISTDEMO'
,
component
:
()
=>
import
(
'@/layout/index'
),
meta
:
{
title
:
'合同管理'
},
children
:
[
{
path
:
'/admin/list/index'
,
name
:
'LISTINDEX'
,
component
:
()
=>
import
(
'@/views/list/index'
),
meta
:
{
title
:
'合同管理'
}
}
]
path
:
'/projectInfo/index'
,
name
:
'ProjectInfo'
.
toLocaleUpperCase
(),
meta
:
{
title
:
'项目信息'
},
component
:
()
=>
import
(
'@/views/projectInfo/index'
)
},
{
path
:
'/journal/list'
,
...
...
src/views/projectInfo/index.vue
View file @
fee6b99e
...
...
@@ -39,7 +39,7 @@
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"small"
@
click=
"queryProject"
>
查询
</el-button>
<el-button
type=
"success"
size=
"small"
@
click=
"projectVisible = true"
>
新增
</el-button>
<el-button
v-if=
"projectPerList.includes(jurisdiction)"
type=
"success"
size=
"small"
@
click=
"projectVisible = true"
>
新增
</el-button>
</el-form-item>
</el-form>
</div>
...
...
@@ -68,7 +68,7 @@
</
template
>
</el-table-column>
<!-- <el-table-column label="所属二级单位" prop="Z2NDORGNAME" width="180" show-overflow-tooltip />-->
<el-table-column
v-if=
"
!
projectPerList.includes(jurisdiction)"
label=
"操作"
width=
"180"
>
<el-table-column
v-if=
"projectPerList.includes(jurisdiction)"
label=
"操作"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<el-link
:underline=
"false"
type=
"primary"
@
click=
"editProject(scope.row)"
>
修改
</el-link>
<el-link
:underline=
"false"
type=
"success"
style=
"margin-left: 10px"
@
click=
"pushProject(scope.row)"
>
推送
</el-link>
...
...
@@ -113,12 +113,12 @@ export default {
data
()
{
return
{
jurisdiction
:
JSON
.
parse
(
Store
.
get
(
storeKey
.
user
)).
userId
,
//
有查看权限用户不
可以修改,推送,删除
//
毛工账号有查看权限用户
可以修改,推送,删除
projectPerList
:
[
'2017009369'
,
'2017009368'
,
'2016013051'
,
'2017013969'
,
'2017017971'
,
'2017013968'
,
'2019010032'
,
'2016012588'
,
'2016012589'
,
'2021011460'
,
'2021011459'
,
'2016012717'
,
'2016012906'
,
'2016012784'
,
'2016013006'
,
'2016013108'
,
'2016013046'
,
'2016013155'
,
'2017009391'
,
'2016012542'
,
'2016012554'
,
'2019010020'
,
'2016012599'
,
'2017013970'
,
'2016012620'
,
'2016012591'
,
'2016013069'
,
'2016012725'
],
'2016012725'
,
'2016012550'
],
Loading
:
false
,
projectForm
:
{
ZPROJNAME
:
''
,
...
...
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