Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
日
日程管理
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
日程管理
提交
ba7ad1bd
提交
ba7ad1bd
编写于
2月 18, 2025
作者:
刘英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v20250211 初版保存
上级
629c79fc
流水线
#33085
已通过 ,包含阶段
in 1 minute 和 24 second
变更
28
流水线
1
展开全部
显示空白字符变更
内嵌
并排
正在显示
28 个修改的文件
包含
105 行增加
和
51 行删除
+105
-51
chunk-1108d0b1.6915ac2b.css
dist/css/chunk-1108d0b1.6915ac2b.css
+1
-0
chunk-52ce2e04.4b617fa5.css
dist/css/chunk-52ce2e04.4b617fa5.css
+1
-0
chunk-7434af0a.dd999460.css
dist/css/chunk-7434af0a.dd999460.css
+0
-1
index.html
dist/index.html
+1
-1
app.57564902.js
dist/js/app.57564902.js
+2
-2
chunk-1108d0b1.c156eb2d.js
dist/js/chunk-1108d0b1.c156eb2d.js
+1
-0
chunk-2d0ac970.1d4cecf0.js
dist/js/chunk-2d0ac970.1d4cecf0.js
+0
-0
chunk-39d2d116.da0c8941.js
dist/js/chunk-39d2d116.da0c8941.js
+0
-1
chunk-52ce2e04.be71c1c1.js
dist/js/chunk-52ce2e04.be71c1c1.js
+1
-0
chunk-7434af0a.a49f6f26.js
dist/js/chunk-7434af0a.a49f6f26.js
+0
-1
chunk-d28d77d2.13f702c1.js
dist/js/chunk-d28d77d2.13f702c1.js
+2
-2
getApiCommonGetLeaderAllList.d.ts
...leApi/controller/Common/getApiCommonGetLeaderAllList.d.ts
+15
-0
getApiCommonGetLeaderAllList.js
...duleApi/controller/Common/getApiCommonGetLeaderAllList.js
+8
-0
index.d.ts
src/api/scheduleApi/controller/Common/index.d.ts
+1
-0
index.js
src/api/scheduleApi/controller/Common/index.js
+1
-0
getApiUserRoleGetUserRoleInfo.d.ts
...pi/controller/UserRole/getApiUserRoleGetUserRoleInfo.d.ts
+4
-0
getApiUserRoleGetUserRoleList.d.ts
...pi/controller/UserRole/getApiUserRoleGetUserRoleList.d.ts
+4
-0
getApiUserRoleGetUserRoleSearch.d.ts
.../controller/UserRole/getApiUserRoleGetUserRoleSearch.d.ts
+4
-0
UserInfo.d.ts
src/api/scheduleApi/interface/apiTypes/UserInfo.d.ts
+4
-0
UserInfo.js
src/api/scheduleApi/interface/apiTypes/UserInfo.js
+1
-0
UserRoleDepInsRequest.d.ts
...scheduleApi/interface/apiTypes/UserRoleDepInsRequest.d.ts
+2
-1
UserRoleInfoViewModel.d.ts
...scheduleApi/interface/apiTypes/UserRoleInfoViewModel.d.ts
+2
-1
UserRoleViewModel.d.ts
...api/scheduleApi/interface/apiTypes/UserRoleViewModel.d.ts
+2
-1
index.d.ts
src/api/scheduleApi/interface/index.d.ts
+1
-0
index.js
src/api/scheduleApi/interface/index.js
+1
-0
index.vue
src/pages/arrangement/index.vue
+13
-13
index.vue
src/pages/set/permission/index.vue
+31
-27
index.js
src/plugins/request/index.js
+2
-0
未找到文件。
dist/css/chunk-1108d0b1.6915ac2b.css
0 → 100644
浏览文件 @
ba7ad1bd
.top-condition
[
data-v-6a0a1366
]
{
display
:
flex
}
[
data-v-6a0a1366
]
.ivu-checkbox-group-item
{
margin-bottom
:
10px
}
\ No newline at end of file
dist/css/chunk-
39d2d116.7eb9ab60
.css
→
dist/css/chunk-
52ce2e04.4b617fa5
.css
浏览文件 @
ba7ad1bd
[
data-v-bec70c00
]
.ivu-form-item-label
{
font-weight
:
600
}
.form-title
[
data-v-bec70c00
]
{
line-height
:
22px
;
text-align
:
center
;
font-size
:
20px
;
font-weight
:
700
;
padding
:
30px
0
}
.file-title
[
data-v-bec70c00
]
{
font-weight
:
700
;
color
:
#333
}
.file-title
[
data-v-bec70c00
]
:hover
{
color
:
#2d8cf0
}
.zd-detail-form-preview
[
data-v-bec70c00
]
.ivu-drawer-mask
,
.zd-detail-form-preview
[
data-v-bec70c00
]
.ivu-drawer-wrap
{
z-index
:
1998
}
.filelist
[
data-v-68d980d5
]
{
cursor
:
pointer
}
.filelist
[
data-v-68d980d5
]
:hover
{
color
:
#1e93ff
;
background-color
:
#f7f7f7
}
.fileddelete
[
data-v-68d980d5
]
{
cursor
:
pointer
;
margin-left
:
auto
}
.fileddelete
[
data-v-68d980d5
]
:hover
{
color
:
red
;
transform
:
scale
(
1.5
)}
.index
[
data-v-68d980d5
]
{
width
:
100%
;
box-sizing
:
border-box
;
padding
:
10px
;
background-color
:
#fff
}
table
[
data-v-68d980d5
]
{
width
:
100%
;
background-color
:
#fff
;
border-color
:
#e3e8ee
;
text-align
:
center
;
border-radius
:
4px
;
border-top
:
1px
solid
#e3e8ee
;
border-left
:
1px
solid
#e3e8ee
}
tr
[
data-v-68d980d5
]
{
border
:
none
;
text-align
:
center
}
td
[
data-v-68d980d5
]
{
border-bottom
:
1px
solid
#e3e8ee
;
border-right
:
1px
solid
#e3e8ee
;
text-align
:
center
;
box-sizing
:
border-box
;
padding
:
6px
;
cursor
:
pointer
;
max-width
:
150px
}
td
[
data-v-68d980d5
]
:hover
{
background
:
#e7f7f4
}
td
:hover
.dis
[
data-v-68d980d5
]
{
display
:
block
;
text-align
:
center
;
margin
:
0
auto
;
cursor
:
pointer
}
tr
[
data-v-68d980d5
]
:first-child
{
height
:
30px
;
background-color
:
#f3f3f3
;
border
:
none
;
color
:
#525252
;
font-weight
:
700
;
width
:
50px
}
.sepacialy
[
data-v-68d980d5
]
{
border-top
:
1px
solid
#e3e8ee
;
border-left
:
1px
solid
#e3e8ee
}
.table-heard
[
data-v-68d980d5
]
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
margin-bottom
:
10px
;
box-sizing
:
border-box
;
padding
:
10px
10px
}
.table-heard
.center
[
data-v-68d980d5
]
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
}
.table-heard
.center
p
[
data-v-68d980d5
]
{
font-size
:
20px
;
margin
:
0
30px
}
.course-item
[
data-v-68d980d5
]
{
display
:
flex
;
justify-content
:
center
;
flex-direction
:
column
;
gap
:
6px
;
align-items
:
center
;
min-height
:
80px
;
border-radius
:
4px
;
box-sizing
:
border-box
;
padding
:
10px
0
}
.course-item
p
[
data-v-68d980d5
]
{
color
:
#3a3a3a
}
.time
[
data-v-68d980d5
]
{
background
:
#f7f7f7
;
color
:
#707070
;
font-weight
:
700
}
.zd-split
[
data-v-68d980d5
]
{
height
:
-10vh
}
.zd-split
.ivu-split-trigger-con
[
data-v-68d980d5
]
{
z-index
:
1
}
.zd-split
[
data-v-68d980d5
]
.ivu-tree-title-selected
{
background-color
:
#2d8cf0
!important
;
color
:
#fff
}
.zd-split
.zd-button-action
[
data-v-68d980d5
]
{
display
:
flex
;
justify-content
:
space-between
}
.page-sys-menu-drawer-footer
[
data-v-68d980d5
]
{
width
:
100%
;
position
:
fixed
;
bottom
:
0
;
left
:
0
;
border-top
:
1px
solid
#e8e8e8
;
padding
:
10px
16px
;
text-align
:
right
;
background
:
#fff
;
text-align
:
center
;
z-index
:
1998
}
.page-sys-menu-icon-select
.i-icon-select-transfer
[
data-v-68d980d5
]
{
width
:
280px
!important
}
.page-sys-menu-icon-select
.i-icon-select-drop-main
[
data-v-68d980d5
]
{
width
:
280px
!important
;
height
:
200px
;
overflow
:
auto
}
.zd-form
[
data-v-68d980d5
]
.ivu-drawer-body
{
background-color
:
#f5f7f9
}
.zd-form-card
[
data-v-68d980d5
]
{
max-width
:
800px
;
margin
:
0
auto
;
margin-top
:
30px
;
padding
:
30px
;
background
:
#fff
}
.save-btn
[
data-v-68d980d5
]
{
text-align
:
right
;
padding
:
15px
;
font-size
:
18px
;
background
:
#fff
}
.persommel-card
[
data-v-68d980d5
]
.ivu-card-body
{
height
:
100%
}
.list-personnel-list-item
[
data-v-68d980d5
]
{
text-align
:
center
;
position
:
relative
;
box-shadow
:
5px
5px
10px
rgba
(
0
,
0
,
0
,
.2
);
border-color
:
#eee
;
padding-bottom
:
32px
;
height
:
280px
;
width
:
210px
}
.list-personnel-list-item
.ivu-avatar
[
data-v-68d980d5
],
.list-personnel-list-item
img
[
data-v-68d980d5
]
{
height
:
144px
;
width
:
108px
;
border-radius
:
0
}
.list-personnel-list-item
.ivu-avatar
[
data-v-68d980d5
]
.ivu-icon
,
.list-personnel-list-item
img
[
data-v-68d980d5
]
.ivu-icon
{
font-size
:
100px
;
margin-top
:
20px
}
.list-personnel-list-item-dept
[
data-v-68d980d5
]
{
font-size
:
14px
;
font-weight
:
700
;
margin
:
2px
0
}
.list-personnel-list-item-desc
[
data-v-68d980d5
]
{
font-size
:
14px
;
color
:
#808695
}
.list-personnel-list-item-name
[
data-v-68d980d5
]
{
position
:
absolute
;
left
:
0
;
right
:
0
;
bottom
:
0
;
font-size
:
18px
;
font-weight
:
700
;
color
:
#fff
;
padding
:
4px
0
;
border-radius
:
0
0
4px
4px
}
.list-personnel-list-item-name.male
[
data-v-68d980d5
]
{
background-color
:
#1890ff
}
.list-personnel-list-item-name.female
[
data-v-68d980d5
]
{
background-color
:
#f45151
}
.list-personnel-list-item-name.other
[
data-v-68d980d5
]
{
background-color
:
#808695
}
.setting-user-avatar
[
data-v-68d980d5
]
{
width
:
128px
;
height
:
auto
;
border-radius
:
0
!important
}
.setting-user-avatar
[
data-v-68d980d5
]
.ivu-icon
{
font-size
:
128px
}
.setting-user-avatar
[
data-v-68d980d5
]
.ivu-avatar
>
img
{
height
:
auto
}
.zd-anchor
>
div
[
data-v-68d980d5
]
{
background
:
#fff
;
padding-left
:
16px
}
[
data-v-68d980d5
]
.ivu-anchor-wrapper
{
max-height
:
88vh
!important
}
.zd-detail-form-preview
[
data-v-68d980d5
]
.ivu-drawer-mask
,
.zd-detail-form-preview
[
data-v-68d980d5
]
.ivu-drawer-wrap
{
z-index
:
1998
}
.menuFlex
[
data-v-68d980d5
]
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
}
.menuFlex
.aaaxx
[
data-v-68d980d5
]
{
float
:
right
;
width
:
50px
;
height
:
30px
;
color
:
#1890ff
;
background
:
#e6f7ff
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
border-radius
:
20px
;
border
:
1px
solid
#91d5ff
}
\ No newline at end of file
[
data-v-bec70c00
]
.ivu-form-item-label
{
font-weight
:
600
}
.form-title
[
data-v-bec70c00
]
{
line-height
:
22px
;
text-align
:
center
;
font-size
:
20px
;
font-weight
:
700
;
padding
:
30px
0
}
.file-title
[
data-v-bec70c00
]
{
font-weight
:
700
;
color
:
#333
}
.file-title
[
data-v-bec70c00
]
:hover
{
color
:
#2d8cf0
}
.zd-detail-form-preview
[
data-v-bec70c00
]
.ivu-drawer-mask
,
.zd-detail-form-preview
[
data-v-bec70c00
]
.ivu-drawer-wrap
{
z-index
:
1998
}
.filelist
[
data-v-14e1d7f6
]
{
cursor
:
pointer
}
.filelist
[
data-v-14e1d7f6
]
:hover
{
color
:
#1e93ff
;
background-color
:
#f7f7f7
}
.fileddelete
[
data-v-14e1d7f6
]
{
cursor
:
pointer
;
margin-left
:
auto
}
.fileddelete
[
data-v-14e1d7f6
]
:hover
{
color
:
red
;
transform
:
scale
(
1.5
)}
.index
[
data-v-14e1d7f6
]
{
width
:
100%
;
box-sizing
:
border-box
;
padding
:
10px
;
background-color
:
#fff
}
table
[
data-v-14e1d7f6
]
{
width
:
100%
;
background-color
:
#fff
;
border-color
:
#e3e8ee
;
text-align
:
center
;
border-radius
:
4px
;
border-top
:
1px
solid
#e3e8ee
;
border-left
:
1px
solid
#e3e8ee
}
tr
[
data-v-14e1d7f6
]
{
border
:
none
;
text-align
:
center
}
td
[
data-v-14e1d7f6
]
{
border-bottom
:
1px
solid
#e3e8ee
;
border-right
:
1px
solid
#e3e8ee
;
text-align
:
center
;
box-sizing
:
border-box
;
padding
:
6px
;
cursor
:
pointer
;
max-width
:
150px
}
td
[
data-v-14e1d7f6
]
:hover
{
background
:
#e7f7f4
}
td
:hover
.dis
[
data-v-14e1d7f6
]
{
display
:
block
;
text-align
:
center
;
margin
:
0
auto
;
cursor
:
pointer
}
tr
[
data-v-14e1d7f6
]
:first-child
{
height
:
30px
;
background-color
:
#f3f3f3
;
border
:
none
;
color
:
#525252
;
font-weight
:
700
;
width
:
50px
}
.sepacialy
[
data-v-14e1d7f6
]
{
border-top
:
1px
solid
#e3e8ee
;
border-left
:
1px
solid
#e3e8ee
}
.table-heard
[
data-v-14e1d7f6
]
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
margin-bottom
:
10px
;
box-sizing
:
border-box
;
padding
:
10px
10px
}
.table-heard
.center
[
data-v-14e1d7f6
]
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
}
.table-heard
.center
p
[
data-v-14e1d7f6
]
{
font-size
:
20px
;
margin
:
0
30px
}
.course-item
[
data-v-14e1d7f6
]
{
display
:
flex
;
justify-content
:
center
;
flex-direction
:
column
;
gap
:
6px
;
align-items
:
center
;
min-height
:
80px
;
border-radius
:
4px
;
box-sizing
:
border-box
;
padding
:
10px
0
}
.course-item
p
[
data-v-14e1d7f6
]
{
color
:
#3a3a3a
}
.time
[
data-v-14e1d7f6
]
{
background
:
#f7f7f7
;
color
:
#707070
;
font-weight
:
700
}
.zd-split
[
data-v-14e1d7f6
]
{
height
:
-10vh
}
.zd-split
.ivu-split-trigger-con
[
data-v-14e1d7f6
]
{
z-index
:
1
}
.zd-split
[
data-v-14e1d7f6
]
.ivu-tree-title-selected
{
background-color
:
#2d8cf0
!important
;
color
:
#fff
}
.zd-split
.zd-button-action
[
data-v-14e1d7f6
]
{
display
:
flex
;
justify-content
:
space-between
}
.page-sys-menu-drawer-footer
[
data-v-14e1d7f6
]
{
width
:
100%
;
position
:
fixed
;
bottom
:
0
;
left
:
0
;
border-top
:
1px
solid
#e8e8e8
;
padding
:
10px
16px
;
text-align
:
right
;
background
:
#fff
;
text-align
:
center
;
z-index
:
1998
}
.page-sys-menu-icon-select
.i-icon-select-transfer
[
data-v-14e1d7f6
]
{
width
:
280px
!important
}
.page-sys-menu-icon-select
.i-icon-select-drop-main
[
data-v-14e1d7f6
]
{
width
:
280px
!important
;
height
:
200px
;
overflow
:
auto
}
.zd-form
[
data-v-14e1d7f6
]
.ivu-drawer-body
{
background-color
:
#f5f7f9
}
.zd-form-card
[
data-v-14e1d7f6
]
{
max-width
:
800px
;
margin
:
0
auto
;
margin-top
:
30px
;
padding
:
30px
;
background
:
#fff
}
.save-btn
[
data-v-14e1d7f6
]
{
text-align
:
right
;
padding
:
15px
;
font-size
:
18px
;
background
:
#fff
}
.persommel-card
[
data-v-14e1d7f6
]
.ivu-card-body
{
height
:
100%
}
.list-personnel-list-item
[
data-v-14e1d7f6
]
{
text-align
:
center
;
position
:
relative
;
box-shadow
:
5px
5px
10px
rgba
(
0
,
0
,
0
,
.2
);
border-color
:
#eee
;
padding-bottom
:
32px
;
height
:
280px
;
width
:
210px
}
.list-personnel-list-item
.ivu-avatar
[
data-v-14e1d7f6
],
.list-personnel-list-item
img
[
data-v-14e1d7f6
]
{
height
:
144px
;
width
:
108px
;
border-radius
:
0
}
.list-personnel-list-item
.ivu-avatar
[
data-v-14e1d7f6
]
.ivu-icon
,
.list-personnel-list-item
img
[
data-v-14e1d7f6
]
.ivu-icon
{
font-size
:
100px
;
margin-top
:
20px
}
.list-personnel-list-item-dept
[
data-v-14e1d7f6
]
{
font-size
:
14px
;
font-weight
:
700
;
margin
:
2px
0
}
.list-personnel-list-item-desc
[
data-v-14e1d7f6
]
{
font-size
:
14px
;
color
:
#808695
}
.list-personnel-list-item-name
[
data-v-14e1d7f6
]
{
position
:
absolute
;
left
:
0
;
right
:
0
;
bottom
:
0
;
font-size
:
18px
;
font-weight
:
700
;
color
:
#fff
;
padding
:
4px
0
;
border-radius
:
0
0
4px
4px
}
.list-personnel-list-item-name.male
[
data-v-14e1d7f6
]
{
background-color
:
#1890ff
}
.list-personnel-list-item-name.female
[
data-v-14e1d7f6
]
{
background-color
:
#f45151
}
.list-personnel-list-item-name.other
[
data-v-14e1d7f6
]
{
background-color
:
#808695
}
.setting-user-avatar
[
data-v-14e1d7f6
]
{
width
:
128px
;
height
:
auto
;
border-radius
:
0
!important
}
.setting-user-avatar
[
data-v-14e1d7f6
]
.ivu-icon
{
font-size
:
128px
}
.setting-user-avatar
[
data-v-14e1d7f6
]
.ivu-avatar
>
img
{
height
:
auto
}
.zd-anchor
>
div
[
data-v-14e1d7f6
]
{
background
:
#fff
;
padding-left
:
16px
}
[
data-v-14e1d7f6
]
.ivu-anchor-wrapper
{
max-height
:
88vh
!important
}
.zd-detail-form-preview
[
data-v-14e1d7f6
]
.ivu-drawer-mask
,
.zd-detail-form-preview
[
data-v-14e1d7f6
]
.ivu-drawer-wrap
{
z-index
:
1998
}
.menuFlex
[
data-v-14e1d7f6
]
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
}
.menuFlex
.aaaxx
[
data-v-14e1d7f6
]
{
float
:
right
;
width
:
50px
;
height
:
30px
;
color
:
#1890ff
;
background
:
#e6f7ff
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
border-radius
:
20px
;
border
:
1px
solid
#91d5ff
}
\ No newline at end of file
dist/css/chunk-7434af0a.dd999460.css
已删除
100644 → 0
浏览文件 @
629c79fc
.top-condition
[
data-v-f5b315a0
]
{
display
:
flex
}
[
data-v-f5b315a0
]
.ivu-checkbox-group-item
{
margin-bottom
:
10px
}
\ No newline at end of file
dist/index.html
浏览文件 @
ba7ad1bd
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
http-equiv=
X-UA-Compatible
content=
"IE=edge"
><meta
name=
viewport
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"
><title>
日程管理
</title><link
href=
css/chunk-vendors.cc1990b1.css
rel=
stylesheet
><link
href=
css/app.072a408f.css
rel=
stylesheet
></head><body><script
src=
/a/manager/identify/identify.js
></script><noscript><strong>
请开启 JavaScript 功能来使用 日程管理。
</strong></noscript><div
id=
app
></div><script
src=
js/chunk-vendors.f2dddb15.js
></script><script
src=
js/app.837f1d40.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
http-equiv=
X-UA-Compatible
content=
"IE=edge"
><meta
name=
viewport
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"
><title>
日程管理
</title><link
href=
css/chunk-vendors.cc1990b1.css
rel=
stylesheet
><link
href=
css/app.072a408f.css
rel=
stylesheet
></head><body><script
src=
/a/manager/identify/identify.js
></script><noscript><strong>
请开启 JavaScript 功能来使用 日程管理。
</strong></noscript><div
id=
app
></div><script
src=
js/chunk-vendors.f2dddb15.js
></script><script
src=
js/app.57564902.js
></script></body></html>
\ No newline at end of file
dist/js/app.
837f1d40
.js
→
dist/js/app.
57564902
.js
浏览文件 @
ba7ad1bd
此差异已折叠。
点击以展开。
dist/js/chunk-1108d0b1.c156eb2d.js
0 → 100644
浏览文件 @
ba7ad1bd
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-1108d0b1
"
],{
5834
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
.
r
(
t
);
a
(
"
7f7f
"
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
_self
.
_c
;
return
t
(
"
div
"
,[
t
(
"
Card
"
,{
ref
:
"
card
"
,
staticClass
:
"
ivu-mt
"
,
attrs
:{
bordered
:
!
1
,
"
dis-hover
"
:
""
}},[
t
(
"
div
"
,{
staticClass
:
"
top-condition
"
},[
t
(
"
Button
"
,{
staticStyle
:{
margin
:
"
0 10px
"
},
attrs
:{
type
:
"
primary
"
,
ghost
:
""
,
icon
:
"
md-add
"
},
on
:{
click
:
function
(){
e
.
selectUser
=
""
,
e
.
userDept
=
[],
e
.
userRole
=
[],
e
.
userModal
=!
0
}}},[
e
.
_v
(
"
\n
添加权限
\n
"
)]),
t
(
"
Input
"
,{
staticStyle
:{
width
:
"
250px
"
,
"
margin-bottom
"
:
"
5px
"
},
attrs
:{
placeholder
:
"
请输入关键字
"
,
clearable
:
""
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"
key
"
)
&&
e
.
_k
(
t
.
keyCode
,
"
enter
"
,
13
,
t
.
key
,
"
Enter
"
)?
null
:
e
.
doSearch
.
apply
(
null
,
arguments
)}},
model
:{
value
:
e
.
searchValue
,
callback
:
function
(
t
){
e
.
searchValue
=
t
},
expression
:
"
searchValue
"
}}),
t
(
"
Button
"
,{
staticStyle
:{
margin
:
"
0 10px
"
},
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
doSearch
}},[
e
.
_v
(
"
查找
"
)]),
t
(
"
Button
"
,{
staticStyle
:{
margin
:
"
0 0 5px
"
},
attrs
:{
type
:
"
default
"
},
on
:{
click
:
e
.
doReset
}},[
e
.
_v
(
"
重置
"
)])],
1
),
t
(
"
Table
"
,{
ref
:
"
table
"
,
staticClass
:
"
ivu-mt
"
,
attrs
:{
columns
:
e
.
columns
,
data
:
e
.
tableData
,
loading
:
e
.
loading
},
scopedSlots
:
e
.
_u
([{
key
:
"
role_list
"
,
fn
:
function
(
a
){
var
n
=
a
.
row
;
return
e
.
_l
(
n
.
role_list
,(
function
(
e
,
a
){
return
t
(
"
p
"
,{
key
:
a
},[
t
(
"
Badge
"
,{
staticClass
:
"
ivu-mb-8
"
,
attrs
:{
color
:
"
blue
"
,
text
:
e
.
role_name
}})],
1
)}))}},{
key
:
"
user_list
"
,
fn
:
function
(
a
){
var
n
=
a
.
row
;
return
e
.
_l
(
n
.
user_list
,(
function
(
e
,
a
){
return
t
(
"
p
"
,{
key
:
a
},[
t
(
"
Badge
"
,{
staticClass
:
"
ivu-mb-8
"
,
attrs
:{
color
:
"
blue
"
,
text
:
e
.
name
}})],
1
)}))}},{
key
:
"
action
"
,
fn
:
function
(
a
){
var
n
=
a
.
row
;
return
[
t
(
"
div
"
,{
on
:{
click
:
function
(
e
){
e
.
stopPropagation
(),
e
.
preventDefault
()}}},[
t
(
"
a
"
,{
attrs
:{
type
:
"
text
"
},
on
:{
click
:
function
(
t
){
return
e
.
handleEdit
(
n
)}}},[
e
.
_v
(
"
编辑
"
)])])]}}])}),
t
(
"
div
"
,{
staticClass
:
"
ivu-mt ivu-text-center
"
},[
t
(
"
Page
"
,{
attrs
:{
total
:
e
.
total
,
current
:
e
.
pageIndex
,
"
show-total
"
:
""
,
"
show-sizer
"
:
""
,
"
show-elevator
"
:
""
,
"
page-size
"
:
e
.
pageSize
,
"
page-size-opts
"
:[
10
,
30
,
50
,
100
]},
on
:{
"
update:current
"
:
function
(
t
){
e
.
pageIndex
=
t
},
"
on-change
"
:
e
.
handleChangePage
,
"
on-page-size-change
"
:
e
.
handleChangePageSize
}})],
1
)],
1
),
t
(
"
Modal
"
,{
attrs
:{
title
:
"
编辑权限
"
,
loading
:
e
.
modalLoading
,
width
:
"
50%
"
},
on
:{
"
on-ok
"
:
e
.
saveEdit
,
"
on-cancel
"
:
e
.
handleCancel
},
model
:{
value
:
e
.
modal
,
callback
:
function
(
t
){
e
.
modal
=
t
},
expression
:
"
modal
"
}},[
t
(
"
Form
"
,{
ref
:
"
formEdit
"
,
attrs
:{
model
:
e
.
formDataEdit
,
rules
:
e
.
formRuleEdit
,
"
label-width
"
:
150
}},[
t
(
"
FormItem
"
,{
attrs
:{
label
:
"
选择人员
"
}},[
t
(
"
Select
"
,{
attrs
:{
disabled
:
""
,
filterable
:
""
},
model
:{
value
:
e
.
selectUser
,
callback
:
function
(
t
){
e
.
selectUser
=
t
},
expression
:
"
selectUser
"
}},
e
.
_l
(
e
.
peopleOptionDefault
,(
function
(
a
){
return
t
(
"
Option
"
,{
key
:
a
.
userid
,
attrs
:{
value
:
a
.
userroleid
,
label
:
a
.
username
}},[
t
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
justify-content
"
:
"
space-between
"
}},[
t
(
"
p
"
,[
e
.
_v
(
e
.
_s
(
a
.
usercard
)
+
"
\n
"
),
t
(
"
span
"
,{
staticStyle
:{
color
:
"
#9a9a9a
"
}},[
e
.
_v
(
"
(
"
+
e
.
_s
(
a
.
username
)
+
"
)
"
)])])])])})),
1
)],
1
),
t
(
"
FormItem
"
,{
attrs
:{
label
:
"
分管权限
"
}},[
t
(
"
CheckboxGroup
"
,{
model
:{
value
:
e
.
userRole
,
callback
:
function
(
t
){
e
.
userRole
=
t
},
expression
:
"
userRole
"
}},
e
.
_l
(
e
.
allRole
,(
function
(
a
){
return
t
(
"
Checkbox
"
,{
key
:
a
.
id
,
attrs
:{
label
:
a
.
id
,
border
:
""
}},[
e
.
_v
(
e
.
_s
(
a
.
name
))])})),
1
)],
1
),
t
(
"
FormItem
"
,{
attrs
:{
label
:
"
分管领导
"
}},[
t
(
"
CheckboxGroup
"
,{
model
:{
value
:
e
.
userDept
,
callback
:
function
(
t
){
e
.
userDept
=
t
},
expression
:
"
userDept
"
}},
e
.
_l
(
e
.
allDept
,(
function
(
a
){
return
t
(
"
Checkbox
"
,{
key
:
a
.
id
,
attrs
:{
label
:
a
.
id
,
border
:
""
}},[
e
.
_v
(
e
.
_s
(
a
.
name
))])})),
1
)],
1
)],
1
)],
1
),
t
(
"
Modal
"
,{
attrs
:{
title
:
"
添加权限
"
,
loading
:
e
.
modalLoading
,
width
:
"
50
"
},
on
:{
"
on-ok
"
:
e
.
handleAdd
},
model
:{
value
:
e
.
userModal
,
callback
:
function
(
t
){
e
.
userModal
=
t
},
expression
:
"
userModal
"
}},[
t
(
"
Form
"
,{
ref
:
"
form
"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
formRule
,
"
label-width
"
:
150
}},[
t
(
"
FormItem
"
,{
attrs
:{
label
:
"
选择人员
"
}},[
t
(
"
Select
"
,{
attrs
:{
filterable
:
""
},
model
:{
value
:
e
.
selectUser
,
callback
:
function
(
t
){
e
.
selectUser
=
t
},
expression
:
"
selectUser
"
}},
e
.
_l
(
e
.
peopleOption
,(
function
(
a
,
n
){
return
t
(
"
Option
"
,{
key
:
a
.
userid
,
attrs
:{
value
:
a
.
userid
,
label
:
a
.
username
}},[
t
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
justify-content
"
:
"
space-between
"
}},[
t
(
"
p
"
,[
e
.
_v
(
e
.
_s
(
a
.
usercard
)
+
"
\n
"
),
t
(
"
span
"
,{
staticStyle
:{
color
:
"
#9a9a9a
"
}},[
e
.
_v
(
"
(
"
+
e
.
_s
(
a
.
username
)
+
"
)
"
)])])])])})),
1
)],
1
),
t
(
"
FormItem
"
,{
attrs
:{
label
:
"
分管权限
"
}},[
t
(
"
CheckboxGroup
"
,{
model
:{
value
:
e
.
userRole
,
callback
:
function
(
t
){
e
.
userRole
=
t
},
expression
:
"
userRole
"
}},
e
.
_l
(
e
.
allRole
,(
function
(
a
){
return
t
(
"
Checkbox
"
,{
key
:
a
.
id
,
attrs
:{
label
:
a
.
id
,
border
:
""
}},[
e
.
_v
(
e
.
_s
(
a
.
name
))])})),
1
)],
1
),
t
(
"
FormItem
"
,{
attrs
:{
label
:
"
分管领导
"
}},[
t
(
"
CheckboxGroup
"
,{
model
:{
value
:
e
.
userDept
,
callback
:
function
(
t
){
e
.
userDept
=
t
},
expression
:
"
userDept
"
}},
e
.
_l
(
e
.
allDept
,(
function
(
a
){
return
t
(
"
Checkbox
"
,{
key
:
a
.
id
,
attrs
:{
label
:
a
.
id
,
border
:
""
}},[
e
.
_v
(
e
.
_s
(
a
.
name
))])})),
1
)],
1
)],
1
)],
1
)],
1
)},
r
=
[],
o
=
(
a
(
"
8e6e
"
),
a
(
"
ac6a
"
),
a
(
"
456d
"
),
a
(
"
bd86
"
)),
l
=
a
(
"
597f
"
),
s
=
a
(
"
7274
"
),
i
=
a
(
"
61be
"
);
function
u
(
e
,
t
){
var
a
=
Object
.
keys
(
e
);
if
(
Object
.
getOwnPropertySymbols
){
var
n
=
Object
.
getOwnPropertySymbols
(
e
);
t
&&
(
n
=
n
.
filter
((
function
(
t
){
return
Object
.
getOwnPropertyDescriptor
(
e
,
t
).
enumerable
}))),
a
.
push
.
apply
(
a
,
n
)}
return
a
}
function
c
(
e
){
for
(
var
t
=
1
;
t
<
arguments
.
length
;
t
++
){
var
a
=
null
!=
arguments
[
t
]?
arguments
[
t
]:{};
t
%
2
?
u
(
Object
(
a
),
!
0
).
forEach
((
function
(
t
){
Object
(
o
[
"
a
"
])(
e
,
t
,
a
[
t
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
e
,
Object
.
getOwnPropertyDescriptors
(
a
)):
u
(
Object
(
a
)).
forEach
((
function
(
t
){
Object
.
defineProperty
(
e
,
t
,
Object
.
getOwnPropertyDescriptor
(
a
,
t
))}))}
return
e
}
var
d
=
{
data
:
function
(){
return
{
userInfo
:
this
.
$store
.
state
.
admin
.
user
.
info
,
formDataEdit
:{},
formRuleEdit
:{},
loading
:
!
1
,
modal
:
!
1
,
modalLoading
:
!
0
,
searchValue
:
""
,
tableData
:[],
columns
:[{
type
:
"
index
"
,
align
:
"
center
"
,
width
:
60
},{
title
:
"
卡号
"
,
key
:
"
usercard
"
,
width
:
200
},{
title
:
"
姓名
"
,
key
:
"
username
"
,
width
:
200
},{
title
:
"
分管权限
"
,
slot
:
"
role_list
"
},{
title
:
"
分管领导
"
,
slot
:
"
user_list
"
},{
title
:
"
操作
"
,
slot
:
"
action
"
,
align
:
"
center
"
,
width
:
150
}],
pageIndex
:
1
,
pageSize
:
10
,
total
:
0
,
allRole
:[],
userRole
:[],
allDept
:[],
userDept
:[],
cardNumber
:
""
,
editRow
:{},
userModal
:
!
1
,
formData
:{},
formRule
:{},
peopleOption
:[],
peopleOptionDefault
:[],
selectUser
:
""
}},
created
:
function
(){
this
.
getData
(),
this
.
GetLeaderAllList
(),
this
.
getRoleList
(),
this
.
getUserList
()},
methods
:{
GetLeaderAllList
:
function
(){
var
e
=
this
;
l
[
"
b
"
]().
then
((
function
(
t
){
e
.
allDept
=
t
.
response
}))},
getData
:
function
(){
var
e
=
this
,
t
=
{
card_name
:
this
.
searchValue
,
page_index
:
this
.
pageIndex
,
page_size
:
this
.
pageSize
};
this
.
loading
=!
0
,
l
[
"
i
"
](
t
).
then
((
function
(
t
){
e
.
loading
=!
1
,
e
.
tableData
=
t
.
response
.
data
,
e
.
total
=
t
.
response
.
data_count
}))},
getUserList
:
function
(){
var
e
=
this
;
return
l
[
"
j
"
]({
keyword
:
""
,
page_index
:
1
,
page_size
:
1
e4
}).
then
((
function
(
t
){
return
e
.
peopleOption
=
t
.
response
.
data
.
map
((
function
(
e
){
return
c
(
c
({},
e
),{},{
userroleid
:
null
==
e
.
userroleid
?
""
:
e
.
userroleid
})})),
e
.
peopleOptionDefault
=
t
.
response
.
data
.
map
((
function
(
e
){
return
{
userroleid
:
null
==
e
.
userroleid
?
""
:
e
.
userroleid
,
username
:
e
.
username
}})),
t
}))},
getRoleList
:
function
(){
var
e
=
this
;
l
[
"
k
"
]().
then
((
function
(
t
){
e
.
allRole
=
t
.
response
.
filter
((
function
(
e
){
return
"
领导
"
!=
e
.
name
}))}))},
doReset
:
function
(){
this
.
pageIndex
=
1
,
this
.
searchValue
=
""
,
this
.
getData
()},
doSearch
:
function
(){
this
.
pageIndex
=
1
,
this
.
getData
()},
handleChangePage
:
function
(
e
){
this
.
pageIndex
=
e
,
this
.
getData
()},
handleChangePageSize
:
function
(
e
){
this
.
pageIndex
=
1
,
this
.
pageSize
=
e
,
this
.
getData
()},
handleEdit
:
function
(
e
){
this
.
selectUser
=
e
.
userroleid
,
this
.
userRole
=
e
.
role_list
.
map
((
function
(
e
){
return
e
.
role_id
})),
this
.
userDept
=
e
.
user_list
.
map
((
function
(
e
){
return
e
.
id
})),
this
.
modal
=!
0
},
saveEdit
:
function
(){
var
e
=
this
,
t
=
{
userroleid
:
this
.
selectUser
,
user_list
:
this
.
userDept
.
map
((
function
(
e
){
return
{
id
:
e
,
name
:
""
}})),
role_list
:
this
.
userRole
.
map
((
function
(
e
){
return
{
role_id
:
e
,
role_name
:
""
}}))};
i
[
"
b
"
]((
function
(){
return
l
[
"
u
"
](
t
).
then
((
function
(
t
){
return
e
.
modal
=!
1
,
e
.
getData
(),
t
}))}))},
handleCancel
:
function
(){
this
.
userRole
=
[]},
handleAdd
:
function
(){
var
e
=
this
,
t
=
{
userid
:
this
.
selectUser
,
user_list
:
this
.
userDept
.
map
((
function
(
e
){
return
{
id
:
e
,
name
:
""
}})),
role_list
:
this
.
userRole
.
map
((
function
(
e
){
return
{
role_id
:
e
,
role_name
:
""
}}))};
l
[
"
t
"
](
t
).
then
((
function
(
t
){
e
.
handleModalLoading
(),
e
.
userModal
=!
1
,
e
.
$Message
.
success
(
"
添加成功
"
),
e
.
getData
()})).
catch
((
function
(){
e
.
handleModalLoading
()}))},
handleModalLoading
:
function
(){
var
e
=
this
;
this
.
modalLoading
=!
1
,
this
.
$nextTick
((
function
(){
e
.
modalLoading
=!
0
}))},
handleDelete
:
function
(
e
){
var
t
=
this
;
this
.
$Modal
.
confirm
({
title
:
"
确定要删除吗?
"
,
loading
:
!
0
,
onOk
:
function
(){
var
a
=
{
id
:
e
,
is_del
:
1
};
s
[
"
e
"
](
a
).
then
((
function
(){
t
.
$Modal
.
remove
(),
t
.
$Message
.
success
(
"
删除成功
"
),
t
.
getData
()}))}})}}},
p
=
d
,
f
=
(
a
(
"
e665
"
),
a
(
"
2877
"
)),
h
=
Object
(
f
[
"
a
"
])(
p
,
n
,
r
,
!
1
,
null
,
"
6a0a1366
"
,
null
);
t
[
"
default
"
]
=
h
.
exports
},
"
8d6f
"
:
function
(
e
,
t
,
a
){},
e665
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
(
"
8d6f
"
)}}]);
\ No newline at end of file
dist/js/chunk-2d0ac970.
70abe2c7
.js
→
dist/js/chunk-2d0ac970.
1d4cecf0
.js
浏览文件 @
ba7ad1bd
文件已移动
dist/js/chunk-39d2d116.da0c8941.js
已删除
100644 → 0
浏览文件 @
629c79fc
此差异已折叠。
点击以展开。
dist/js/chunk-52ce2e04.be71c1c1.js
0 → 100644
浏览文件 @
ba7ad1bd
此差异已折叠。
点击以展开。
dist/js/chunk-7434af0a.a49f6f26.js
已删除
100644 → 0
浏览文件 @
629c79fc
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-7434af0a
"
],{
5834
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
.
r
(
t
);
a
(
"
7f7f
"
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
_self
.
_c
;
return
t
(
"
div
"
,[
t
(
"
Card
"
,{
ref
:
"
card
"
,
staticClass
:
"
ivu-mt
"
,
attrs
:{
bordered
:
!
1
,
"
dis-hover
"
:
""
}},[
t
(
"
div
"
,{
staticClass
:
"
top-condition
"
},[
t
(
"
Button
"
,{
staticStyle
:{
margin
:
"
0 10px
"
},
attrs
:{
type
:
"
primary
"
,
ghost
:
""
,
icon
:
"
md-add
"
},
on
:{
click
:
function
(
t
){
e
.
userModal
=!
0
}}},[
e
.
_v
(
"
\n
添加权限
\n
"
)]),
t
(
"
Input
"
,{
staticStyle
:{
width
:
"
250px
"
,
"
margin-bottom
"
:
"
5px
"
},
attrs
:{
placeholder
:
"
请输入关键字
"
,
clearable
:
""
},
nativeOn
:{
keyup
:
function
(
t
){
return
!
t
.
type
.
indexOf
(
"
key
"
)
&&
e
.
_k
(
t
.
keyCode
,
"
enter
"
,
13
,
t
.
key
,
"
Enter
"
)?
null
:
e
.
doSearch
.
apply
(
null
,
arguments
)}},
model
:{
value
:
e
.
searchValue
,
callback
:
function
(
t
){
e
.
searchValue
=
t
},
expression
:
"
searchValue
"
}}),
t
(
"
Button
"
,{
staticStyle
:{
margin
:
"
0 10px
"
},
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
doSearch
}},[
e
.
_v
(
"
查找
"
)]),
t
(
"
Button
"
,{
staticStyle
:{
margin
:
"
0 0 5px
"
},
attrs
:{
type
:
"
default
"
},
on
:{
click
:
e
.
doReset
}},[
e
.
_v
(
"
重置
"
)])],
1
),
t
(
"
Table
"
,{
ref
:
"
table
"
,
staticClass
:
"
ivu-mt
"
,
attrs
:{
columns
:
e
.
columns
,
data
:
e
.
tableData
,
loading
:
e
.
loading
},
scopedSlots
:
e
.
_u
([{
key
:
"
role_list
"
,
fn
:
function
(
a
){
var
n
=
a
.
row
;
return
e
.
_l
(
n
.
role_list
,(
function
(
e
,
a
){
return
t
(
"
p
"
,{
key
:
a
},[
t
(
"
Badge
"
,{
staticClass
:
"
ivu-mb-8
"
,
attrs
:{
color
:
"
blue
"
,
text
:
e
.
role_name
}})],
1
)}))}},{
key
:
"
dept_list
"
,
fn
:
function
(
a
){
var
n
=
a
.
row
;
return
e
.
_l
(
n
.
dept_list
,(
function
(
e
,
a
){
return
t
(
"
p
"
,{
key
:
a
},[
t
(
"
Badge
"
,{
staticClass
:
"
ivu-mb-8
"
,
attrs
:{
color
:
"
blue
"
,
text
:
e
.
name
}})],
1
)}))}},{
key
:
"
action
"
,
fn
:
function
(
a
){
var
n
=
a
.
row
;
return
[
t
(
"
div
"
,{
on
:{
click
:
function
(
e
){
e
.
stopPropagation
(),
e
.
preventDefault
()}}},[
t
(
"
a
"
,{
attrs
:{
type
:
"
text
"
},
on
:{
click
:
function
(
t
){
return
e
.
handleEdit
(
n
)}}},[
e
.
_v
(
"
编辑
"
)])])]}}])}),
t
(
"
div
"
,{
staticClass
:
"
ivu-mt ivu-text-center
"
},[
t
(
"
Page
"
,{
attrs
:{
total
:
e
.
total
,
current
:
e
.
pageIndex
,
"
show-total
"
:
""
,
"
show-sizer
"
:
""
,
"
show-elevator
"
:
""
,
"
page-size
"
:
e
.
pageSize
,
"
page-size-opts
"
:[
10
,
30
,
50
,
100
]},
on
:{
"
update:current
"
:
function
(
t
){
e
.
pageIndex
=
t
},
"
on-change
"
:
e
.
handleChangePage
,
"
on-page-size-change
"
:
e
.
handleChangePageSize
}})],
1
)],
1
),
t
(
"
Modal
"
,{
attrs
:{
title
:
"
编辑权限
"
,
loading
:
e
.
modalLoading
,
width
:
"
50%
"
},
on
:{
"
on-ok
"
:
e
.
saveEdit
,
"
on-cancel
"
:
e
.
handleCancel
},
model
:{
value
:
e
.
modal
,
callback
:
function
(
t
){
e
.
modal
=
t
},
expression
:
"
modal
"
}},[
t
(
"
Form
"
,{
ref
:
"
formEdit
"
,
attrs
:{
model
:
e
.
formDataEdit
,
rules
:
e
.
formRuleEdit
,
"
label-width
"
:
150
}},[
t
(
"
FormItem
"
,{
attrs
:{
label
:
"
选择人员
"
}},[
t
(
"
Select
"
,{
attrs
:{
disabled
:
""
,
filterable
:
""
},
model
:{
value
:
e
.
selectUser
,
callback
:
function
(
t
){
e
.
selectUser
=
t
},
expression
:
"
selectUser
"
}},
e
.
_l
(
e
.
peopleOptionDefault
,(
function
(
a
){
return
t
(
"
Option
"
,{
key
:
a
.
userid
,
attrs
:{
value
:
a
.
userroleid
,
label
:
a
.
username
}},[
t
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
justify-content
"
:
"
space-between
"
}},[
t
(
"
p
"
,[
e
.
_v
(
e
.
_s
(
a
.
usercard
)
+
"
\n
"
),
t
(
"
span
"
,{
staticStyle
:{
color
:
"
#9a9a9a
"
}},[
e
.
_v
(
"
(
"
+
e
.
_s
(
a
.
username
)
+
"
)
"
)])])])])})),
1
)],
1
),
t
(
"
FormItem
"
,{
attrs
:{
label
:
"
分管权限
"
}},[
t
(
"
CheckboxGroup
"
,{
model
:{
value
:
e
.
userRole
,
callback
:
function
(
t
){
e
.
userRole
=
t
},
expression
:
"
userRole
"
}},
e
.
_l
(
e
.
allRole
,(
function
(
a
){
return
t
(
"
Checkbox
"
,{
key
:
a
.
id
,
attrs
:{
label
:
a
.
id
,
border
:
""
}},[
e
.
_v
(
e
.
_s
(
a
.
name
))])})),
1
)],
1
),
t
(
"
FormItem
"
,{
attrs
:{
label
:
"
分管院系
"
}},[
t
(
"
CheckboxGroup
"
,{
model
:{
value
:
e
.
userDept
,
callback
:
function
(
t
){
e
.
userDept
=
t
},
expression
:
"
userDept
"
}},
e
.
_l
(
e
.
allDept
,(
function
(
a
){
return
t
(
"
Checkbox
"
,{
key
:
a
.
id
,
attrs
:{
label
:
a
.
id
,
border
:
""
}},[
e
.
_v
(
e
.
_s
(
a
.
name
))])})),
1
)],
1
)],
1
)],
1
),
t
(
"
Modal
"
,{
attrs
:{
title
:
"
添加权限
"
,
loading
:
e
.
modalLoading
,
width
:
"
50
"
},
on
:{
"
on-ok
"
:
e
.
handleAdd
},
model
:{
value
:
e
.
userModal
,
callback
:
function
(
t
){
e
.
userModal
=
t
},
expression
:
"
userModal
"
}},[
t
(
"
Form
"
,{
ref
:
"
form
"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
formRule
,
"
label-width
"
:
150
}},[
t
(
"
FormItem
"
,{
attrs
:{
label
:
"
选择人员
"
}},[
t
(
"
Select
"
,{
attrs
:{
filterable
:
""
},
model
:{
value
:
e
.
selectUser
,
callback
:
function
(
t
){
e
.
selectUser
=
t
},
expression
:
"
selectUser
"
}},
e
.
_l
(
e
.
peopleOption
,(
function
(
a
,
n
){
return
t
(
"
Option
"
,{
key
:
a
.
userid
,
attrs
:{
value
:
a
.
userid
,
label
:
a
.
username
}},[
t
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
justify-content
"
:
"
space-between
"
}},[
t
(
"
p
"
,[
e
.
_v
(
e
.
_s
(
a
.
usercard
)
+
"
\n
"
),
t
(
"
span
"
,{
staticStyle
:{
color
:
"
#9a9a9a
"
}},[
e
.
_v
(
"
(
"
+
e
.
_s
(
a
.
username
)
+
"
)
"
)])])])])})),
1
)],
1
),
t
(
"
FormItem
"
,{
attrs
:{
label
:
"
分管权限
"
}},[
t
(
"
CheckboxGroup
"
,{
model
:{
value
:
e
.
userRole
,
callback
:
function
(
t
){
e
.
userRole
=
t
},
expression
:
"
userRole
"
}},
e
.
_l
(
e
.
allRole
,(
function
(
a
){
return
t
(
"
Checkbox
"
,{
key
:
a
.
id
,
attrs
:{
label
:
a
.
id
,
border
:
""
}},[
e
.
_v
(
e
.
_s
(
a
.
name
))])})),
1
)],
1
),
t
(
"
FormItem
"
,{
attrs
:{
label
:
"
分管院系
"
}},[
t
(
"
CheckboxGroup
"
,{
model
:{
value
:
e
.
userDept
,
callback
:
function
(
t
){
e
.
userDept
=
t
},
expression
:
"
userDept
"
}},
e
.
_l
(
e
.
allDept
,(
function
(
a
){
return
t
(
"
Checkbox
"
,{
key
:
a
.
id
,
attrs
:{
label
:
a
.
id
,
border
:
""
}},[
e
.
_v
(
e
.
_s
(
a
.
name
))])})),
1
)],
1
)],
1
)],
1
)],
1
)},
r
=
[],
o
=
(
a
(
"
8e6e
"
),
a
(
"
ac6a
"
),
a
(
"
456d
"
),
a
(
"
bd86
"
)),
l
=
a
(
"
597f
"
),
i
=
a
(
"
7274
"
),
s
=
a
(
"
61be
"
);
function
u
(
e
,
t
){
var
a
=
Object
.
keys
(
e
);
if
(
Object
.
getOwnPropertySymbols
){
var
n
=
Object
.
getOwnPropertySymbols
(
e
);
t
&&
(
n
=
n
.
filter
((
function
(
t
){
return
Object
.
getOwnPropertyDescriptor
(
e
,
t
).
enumerable
}))),
a
.
push
.
apply
(
a
,
n
)}
return
a
}
function
c
(
e
){
for
(
var
t
=
1
;
t
<
arguments
.
length
;
t
++
){
var
a
=
null
!=
arguments
[
t
]?
arguments
[
t
]:{};
t
%
2
?
u
(
Object
(
a
),
!
0
).
forEach
((
function
(
t
){
Object
(
o
[
"
a
"
])(
e
,
t
,
a
[
t
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
e
,
Object
.
getOwnPropertyDescriptors
(
a
)):
u
(
Object
(
a
)).
forEach
((
function
(
t
){
Object
.
defineProperty
(
e
,
t
,
Object
.
getOwnPropertyDescriptor
(
a
,
t
))}))}
return
e
}
var
d
=
{
data
:
function
(){
return
{
userInfo
:
this
.
$store
.
state
.
admin
.
user
.
info
,
formDataEdit
:{},
formRuleEdit
:{},
loading
:
!
1
,
modal
:
!
1
,
modalLoading
:
!
0
,
searchValue
:
""
,
tableData
:[],
columns
:[{
type
:
"
index
"
,
align
:
"
center
"
,
width
:
60
},{
title
:
"
卡号
"
,
key
:
"
usercard
"
,
width
:
200
},{
title
:
"
姓名
"
,
key
:
"
username
"
,
width
:
200
},{
title
:
"
分管权限
"
,
slot
:
"
role_list
"
},{
title
:
"
分管部门
"
,
slot
:
"
dept_list
"
},{
title
:
"
操作
"
,
slot
:
"
action
"
,
align
:
"
center
"
,
width
:
150
}],
pageIndex
:
1
,
pageSize
:
10
,
total
:
0
,
allRole
:[],
userRole
:[],
allDept
:[],
userDept
:[],
cardNumber
:
""
,
editRow
:{},
userModal
:
!
1
,
formData
:{},
formRule
:{},
peopleOption
:[],
peopleOptionDefault
:[],
selectUser
:
""
}},
created
:
function
(){
this
.
getData
(),
this
.
getRoleList
(),
this
.
getDeptAllList
(),
this
.
getUserList
()},
methods
:{
getData
:
function
(){
var
e
=
this
,
t
=
{
card_name
:
this
.
searchValue
,
page_index
:
this
.
pageIndex
,
page_size
:
this
.
pageSize
};
this
.
loading
=!
0
,
l
[
"
i
"
](
t
).
then
((
function
(
t
){
e
.
loading
=!
1
,
e
.
tableData
=
t
.
response
.
data
,
e
.
total
=
t
.
response
.
data_count
}))},
getUserList
:
function
(){
var
e
=
this
;
return
l
[
"
j
"
]({
keyword
:
""
,
page_index
:
1
,
page_size
:
1
e4
}).
then
((
function
(
t
){
return
e
.
peopleOption
=
t
.
response
.
data
.
map
((
function
(
e
){
return
c
(
c
({},
e
),{},{
userroleid
:
null
==
e
.
userroleid
?
""
:
e
.
userroleid
})})),
e
.
peopleOptionDefault
=
t
.
response
.
data
.
map
((
function
(
e
){
return
{
userroleid
:
null
==
e
.
userroleid
?
""
:
e
.
userroleid
,
username
:
e
.
username
}})),
t
}))},
getRoleList
:
function
(){
var
e
=
this
;
l
[
"
k
"
]().
then
((
function
(
t
){
e
.
allRole
=
t
.
response
.
filter
((
function
(
e
){
return
"
领导
"
!=
e
.
name
}))}))},
getDeptAllList
:
function
(){
var
e
=
this
;
l
[
"
b
"
]().
then
((
function
(
t
){
e
.
allDept
=
t
.
response
}))},
doReset
:
function
(){
this
.
pageIndex
=
1
,
this
.
searchValue
=
""
,
this
.
getData
()},
doSearch
:
function
(){
this
.
pageIndex
=
1
,
this
.
getData
()},
handleChangePage
:
function
(
e
){
this
.
pageIndex
=
e
,
this
.
getData
()},
handleChangePageSize
:
function
(
e
){
this
.
pageIndex
=
1
,
this
.
pageSize
=
e
,
this
.
getData
()},
handleEdit
:
function
(
e
){
var
t
=
this
;
s
[
"
b
"
]((
function
(){
return
t
.
getUserList
().
then
((
function
(
a
){
return
t
.
selectUser
=
e
.
userroleid
,
t
.
userRole
=
e
.
role_list
.
map
((
function
(
e
){
return
e
.
role_id
})),
t
.
userDept
=
e
.
dept_list
.
map
((
function
(
e
){
return
e
.
id
})),
t
.
modal
=!
0
,
a
}))}),
!
0
,
"
加载中...
"
)},
saveEdit
:
function
(){
var
e
=
this
,
t
=
{
userroleid
:
this
.
selectUser
,
dept_list
:
this
.
userDept
.
map
((
function
(
e
){
return
{
id
:
e
,
name
:
""
}})),
role_list
:
this
.
userRole
.
map
((
function
(
e
){
return
{
role_id
:
e
,
role_name
:
""
}}))};
s
[
"
b
"
]((
function
(){
return
l
[
"
u
"
](
t
).
then
((
function
(
t
){
return
e
.
modal
=!
1
,
e
.
getData
(),
t
}))}))},
handleCancel
:
function
(){
this
.
userRole
=
[]},
handleAdd
:
function
(){
var
e
=
this
,
t
=
{
userid
:
this
.
selectUser
,
dept_list
:
this
.
userDept
.
map
((
function
(
e
){
return
{
id
:
e
,
name
:
""
}})),
role_list
:
this
.
userRole
.
map
((
function
(
e
){
return
{
role_id
:
e
,
role_name
:
""
}}))};
l
[
"
t
"
](
t
).
then
((
function
(
t
){
e
.
handleModalLoading
(),
e
.
userModal
=!
1
,
e
.
$Message
.
success
(
"
添加成功
"
),
e
.
getData
()})).
catch
((
function
(){
e
.
handleModalLoading
()}))},
handleModalLoading
:
function
(){
var
e
=
this
;
this
.
modalLoading
=!
1
,
this
.
$nextTick
((
function
(){
e
.
modalLoading
=!
0
}))},
handleDelete
:
function
(
e
){
var
t
=
this
;
this
.
$Modal
.
confirm
({
title
:
"
确定要删除吗?
"
,
loading
:
!
0
,
onOk
:
function
(){
var
a
=
{
id
:
e
,
is_del
:
1
};
i
[
"
e
"
](
a
).
then
((
function
(){
t
.
$Modal
.
remove
(),
t
.
$Message
.
success
(
"
删除成功
"
),
t
.
getData
()}))}})}}},
p
=
d
,
f
=
(
a
(
"
8cf8
"
),
a
(
"
2877
"
)),
h
=
Object
(
f
[
"
a
"
])(
p
,
n
,
r
,
!
1
,
null
,
"
f5b315a0
"
,
null
);
t
[
"
default
"
]
=
h
.
exports
},
"
8cf8
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
(
"
ddb5
"
)},
ddb5
:
function
(
e
,
t
,
a
){}}]);
\ No newline at end of file
dist/js/chunk-d28d77d2.
ad66f8a2
.js
→
dist/js/chunk-d28d77d2.
13f702c1
.js
浏览文件 @
ba7ad1bd
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
src/api/scheduleApi/controller/Common/getApiCommonGetLeaderAllList.d.ts
0 → 100644
浏览文件 @
ba7ad1bd
import
{
type
AxiosRequestConfig
}
from
"
axios
"
;
/**
* 获取所有中层干部
* /api/Common/GetLeaderAllList
*/
export
declare
function
getApiCommonGetLeaderAllList
(
config
?:
AxiosRequestConfig
):
import
(
"
axios
"
).
AxiosPromise
<
{
code
:
number
;
status
:
string
;
msg
:
string
;
msg_detail
:
string
;
response
:
{
name
:
string
;
id
:
string
;
}[];
}
>
;
src/api/scheduleApi/controller/Common/getApiCommonGetLeaderAllList.js
0 → 100644
浏览文件 @
ba7ad1bd
import
request
from
"
@/plugins/request
"
;
/**
* 获取所有中层干部
* /api/Common/GetLeaderAllList
*/
export
function
getApiCommonGetLeaderAllList
(
config
)
{
return
request
.
get
(
`/api/Common/GetLeaderAllList`
,
config
);
}
src/api/scheduleApi/controller/Common/index.d.ts
浏览文件 @
ba7ad1bd
export
*
from
"
./getApiCommonGetDeptAllList
"
;
export
*
from
"
./getApiCommonGetDeptList
"
;
export
*
from
"
./postApiCommonGetUserList
"
;
export
*
from
"
./getApiCommonGetLeaderAllList
"
;
export
*
from
"
./postApiCommonGetRoleList
"
;
export
*
from
"
./getApiCommonGetMenuRole
"
;
export
*
from
"
./getApiCommonGetAheadWriteSwitch
"
;
...
...
src/api/scheduleApi/controller/Common/index.js
浏览文件 @
ba7ad1bd
export
*
from
"
./getApiCommonGetDeptAllList
"
;
export
*
from
"
./getApiCommonGetDeptList
"
;
export
*
from
"
./postApiCommonGetUserList
"
;
export
*
from
"
./getApiCommonGetLeaderAllList
"
;
export
*
from
"
./postApiCommonGetRoleList
"
;
export
*
from
"
./getApiCommonGetMenuRole
"
;
export
*
from
"
./getApiCommonGetAheadWriteSwitch
"
;
...
...
src/api/scheduleApi/controller/UserRole/getApiUserRoleGetUserRoleInfo.d.ts
浏览文件 @
ba7ad1bd
...
...
@@ -23,6 +23,10 @@ export declare function getApiUserRoleGetUserRoleInfo(params: GetApiUserRoleGetU
role_id
:
string
;
role_name
:
string
;
}[];
user_list
:
{
id
:
string
;
name
:
string
;
}[];
};
}
>
;
export
interface
GetApiUserRoleGetUserRoleInfoParams
{
...
...
src/api/scheduleApi/controller/UserRole/getApiUserRoleGetUserRoleList.d.ts
浏览文件 @
ba7ad1bd
...
...
@@ -41,6 +41,10 @@ export declare function getApiUserRoleGetUserRoleList(params: GetApiUserRoleGetU
role_id
:
string
;
role_name
:
string
;
}[];
user_list
:
{
id
:
string
;
name
:
string
;
}[];
};
}[];
query
:
{
...
...
src/api/scheduleApi/controller/UserRole/getApiUserRoleGetUserRoleSearch.d.ts
浏览文件 @
ba7ad1bd
...
...
@@ -41,6 +41,10 @@ export declare function getApiUserRoleGetUserRoleSearch(params: GetApiUserRoleGe
role_id
:
string
;
role_name
:
string
;
}[];
user_list
:
{
id
:
string
;
name
:
string
;
}[];
};
}[];
query
:
{
...
...
src/api/scheduleApi/interface/apiTypes/UserInfo.d.ts
0 → 100644
浏览文件 @
ba7ad1bd
export
interface
UserInfo
{
id
?:
string
;
name
?:
string
;
}
src/api/scheduleApi/interface/apiTypes/UserInfo.js
0 → 100644
浏览文件 @
ba7ad1bd
export
{};
src/api/scheduleApi/interface/apiTypes/UserRoleDepInsRequest.d.ts
浏览文件 @
ba7ad1bd
import
{
type
Dept
,
type
RoleModel
}
from
"
../../interface
"
;
import
{
type
Dept
,
type
RoleModel
,
type
UserInfo
}
from
"
../../interface
"
;
export
interface
UserRoleDepInsRequest
{
userid
:
string
;
dept_list
?:
Dept
[];
role_list
?:
RoleModel
[];
user_list
?:
UserInfo
[];
}
src/api/scheduleApi/interface/apiTypes/UserRoleInfoViewModel.d.ts
浏览文件 @
ba7ad1bd
import
{
type
Dept
,
type
RoleModel
}
from
"
../../interface
"
;
import
{
type
Dept
,
type
RoleModel
,
type
UserInfo
}
from
"
../../interface
"
;
export
interface
UserRoleInfoViewModel
{
userroleid
?:
string
;
userid
?:
string
;
...
...
@@ -8,4 +8,5 @@ export interface UserRoleInfoViewModel {
position_name
?:
string
;
dept_list
?:
Dept
[];
role_list
?:
RoleModel
[];
user_list
?:
UserInfo
[];
}
src/api/scheduleApi/interface/apiTypes/UserRoleViewModel.d.ts
浏览文件 @
ba7ad1bd
import
{
type
Dept
,
type
RoleModel
}
from
"
../../interface
"
;
import
{
type
Dept
,
type
RoleModel
,
type
UserInfo
}
from
"
../../interface
"
;
export
interface
UserRoleViewModel
{
userroleid
?:
string
;
userid
?:
string
;
...
...
@@ -6,4 +6,5 @@ export interface UserRoleViewModel {
username
?:
string
;
dept_list
?:
Dept
[];
role_list
?:
RoleModel
[];
user_list
?:
UserInfo
[];
}
src/api/scheduleApi/interface/index.d.ts
浏览文件 @
ba7ad1bd
...
...
@@ -49,6 +49,7 @@ export * from "./apiTypes/Option";
export
*
from
"
./apiTypes/TableTitle
"
;
export
*
from
"
./apiTypes/Dept
"
;
export
*
from
"
./apiTypes/RoleModel
"
;
export
*
from
"
./apiTypes/UserInfo
"
;
export
*
from
"
./apiTypes/UserRoleViewModel
"
;
export
*
from
"
./apiTypes/UserRoleViewModelMessageModel
"
;
export
*
from
"
./apiTypes/UserRoleViewModelMessageModelPageModel
"
;
...
...
src/api/scheduleApi/interface/index.js
浏览文件 @
ba7ad1bd
...
...
@@ -49,6 +49,7 @@ export * from "./apiTypes/Option";
export
*
from
"
./apiTypes/TableTitle
"
;
export
*
from
"
./apiTypes/Dept
"
;
export
*
from
"
./apiTypes/RoleModel
"
;
export
*
from
"
./apiTypes/UserInfo
"
;
export
*
from
"
./apiTypes/UserRoleViewModel
"
;
export
*
from
"
./apiTypes/UserRoleViewModelMessageModel
"
;
export
*
from
"
./apiTypes/UserRoleViewModelMessageModelPageModel
"
;
...
...
src/pages/arrangement/index.vue
浏览文件 @
ba7ad1bd
...
...
@@ -743,10 +743,9 @@ export default {
}
})
},
//附件删除
fileDelete
(
fileList
,
file
,
fileIndex
,
formItem
)
{
hooks
.
publicConfirm
(()
=>
{
hooks
.
myEncapsulationFunction
(()
=>
{
return
scheduleApi
.
postApiPlanSchedulePlanScheduleFileDel
({
id
:
formItem
.
id
,
...
...
@@ -758,6 +757,7 @@ export default {
return
res
})
},
false
,
'
正在删除...
'
)
})
},
//附件上传
...
...
src/pages/set/permission/index.vue
浏览文件 @
ba7ad1bd
...
...
@@ -2,7 +2,12 @@
<div>
<Card
:bordered=
"false"
dis-hover
class=
"ivu-mt"
ref=
"card"
>
<div
class=
"top-condition"
>
<Button
type=
"primary"
style=
"margin: 0 10px"
ghost
icon=
"md-add"
@
click=
"userModal = true"
>
<Button
type=
"primary"
style=
"margin: 0 10px"
ghost
icon=
"md-add"
@
click=
"()=>
{
selectUser = '';
userDept = [];
userRole = [];
userModal = true;
}">
添加权限
</Button>
<Input
v-model=
"searchValue"
placeholder=
"请输入关键字"
style=
"width: 250px; margin-bottom: 5px"
...
...
@@ -18,8 +23,8 @@
<Badge
color=
"blue"
:text=
"item.role_name"
class=
"ivu-mb-8"
/>
</p>
</
template
>
<
template
#
dept
_list
="{
row
}"
>
<p
v-for=
"(item, i) in row.
dept
_list"
:key=
"i"
>
<
template
#
user
_list
="{
row
}"
>
<p
v-for=
"(item, i) in row.
user
_list"
:key=
"i"
>
<Badge
color=
"blue"
:text=
"item.name"
class=
"ivu-mb-8"
/>
</p>
</
template
>
...
...
@@ -60,7 +65,7 @@
<Checkbox
:label=
"item.id"
border
v-for=
"item in allRole"
:key=
"item.id"
>
{{ item.name }}
</Checkbox>
</CheckboxGroup>
</FormItem>
<FormItem
label=
"分管
院系
"
>
<FormItem
label=
"分管
领导
"
>
<CheckboxGroup
v-model=
"userDept"
>
<Checkbox
:label=
"item.id"
border
v-for=
"item in allDept"
:key=
"item.id"
>
{{ item.name }}
</Checkbox>
</CheckboxGroup>
...
...
@@ -87,7 +92,7 @@
<Checkbox
:label=
"item.id"
border
v-for=
"item in allRole"
:key=
"item.id"
>
{{ item.name }}
</Checkbox>
</CheckboxGroup>
</FormItem>
<FormItem
label=
"分管
院系
"
>
<FormItem
label=
"分管
领导
"
>
<CheckboxGroup
v-model=
"userDept"
>
<Checkbox
:label=
"item.id"
border
v-for=
"item in allDept"
:key=
"item.id"
>
{{ item.name }}
</Checkbox>
</CheckboxGroup>
...
...
@@ -137,11 +142,14 @@ export default {
title
:
"
分管权限
"
,
slot
:
"
role_list
"
,
},
// {
// title: "分管部门",
// slot: "dept_list",
// },
{
title
:
"
分管
部门
"
,
slot
:
"
dept
_list
"
,
title
:
"
分管
领导
"
,
slot
:
"
user
_list
"
,
},
{
title
:
"
操作
"
,
slot
:
"
action
"
,
...
...
@@ -171,11 +179,18 @@ export default {
},
created
()
{
this
.
getData
();
this
.
GetLeaderAllList
()
this
.
getRoleList
();
this
.
getDeptAllList
();
this
.
getUserList
()
},
methods
:
{
//获取分管领导数据
GetLeaderAllList
()
{
scheduleApi
.
getApiCommonGetLeaderAllList
().
then
(
resp
=>
{
this
.
allDept
=
resp
.
response
;
})
},
getData
()
{
const
params
=
{
card_name
:
this
.
searchValue
,
...
...
@@ -222,12 +237,7 @@ export default {
this
.
allRole
=
resp
.
response
.
filter
(
cur
=>
cur
.
name
!=
'
领导
'
);
});
},
// 获取所有部门
getDeptAllList
()
{
scheduleApi
.
getApiCommonGetDeptAllList
().
then
((
resp
)
=>
{
this
.
allDept
=
resp
.
response
;
});
},
//重置查询
doReset
()
{
this
.
pageIndex
=
1
;
...
...
@@ -253,23 +263,17 @@ export default {
},
// 获取权限信息
handleEdit
(
row
)
{
hooks
.
myEncapsulationFunction
(()
=>
{
return
this
.
getUserList
().
then
((
resp
)
=>
{
this
.
selectUser
=
row
.
userroleid
this
.
userRole
=
row
.
role_list
.
map
(
cur
=>
cur
.
role_id
)
this
.
userDept
=
row
.
dept
_list
.
map
(
cur
=>
cur
.
id
)
this
.
userDept
=
row
.
user
_list
.
map
(
cur
=>
cur
.
id
)
this
.
modal
=
true
;
return
resp
})
},
true
,
'
加载中...
'
)
},
// 保存编辑权限
saveEdit
()
{
const
params
=
{
userroleid
:
this
.
selectUser
,
"
dept
_list
"
:
this
.
userDept
.
map
(
cur
=>
{
"
user
_list
"
:
this
.
userDept
.
map
(
cur
=>
{
return
{
id
:
cur
,
name
:
''
}
}),
"
role_list
"
:
this
.
userRole
.
map
(
cur
=>
{
...
...
@@ -295,7 +299,7 @@ export default {
handleAdd
()
{
let
params
=
{
"
userid
"
:
this
.
selectUser
,
"
dept
_list
"
:
this
.
userDept
.
map
(
cur
=>
{
"
user
_list
"
:
this
.
userDept
.
map
(
cur
=>
{
return
{
id
:
cur
,
name
:
''
}
}),
"
role_list
"
:
this
.
userRole
.
map
(
cur
=>
{
...
...
src/plugins/request/index.js
浏览文件 @
ba7ad1bd
...
...
@@ -55,6 +55,8 @@ service.interceptors.request.use(
const
token
=
util
.
cookies
.
get
(
'
weekPlanPc-token
'
);
// 让每个请求携带token-- ['X-Token']为自定义key 请根据实际情况自行修改
config
.
headers
[
'
Authorization
'
]
=
'
Bearer
'
+
token
;
if
(
config
.
url
===
'
/api/File/FileUpload
'
)
config
.
headers
[
'
content-type
'
]
=
'
multipart/form-data
'
;
return
config
;
},
error
=>
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录