Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
日
日程管理
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
日程管理
提交
9c2056d3
提交
9c2056d3
编写于
2月 13, 2025
作者:
刘英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v20250211 初版保存
上级
3d14bd3f
流水线
#32971
已通过 ,包含阶段
in 1 minute 和 16 second
变更
19
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
19 个修改的文件
包含
162 行增加
和
57 行删除
+162
-57
chunk-7434af0a.dd999460.css
dist/css/chunk-7434af0a.dd999460.css
+1
-0
chunk-9d4c7a22.75ba807d.css
dist/css/chunk-9d4c7a22.75ba807d.css
+0
-1
chunk-f7dbcec2.00614fe9.css
dist/css/chunk-f7dbcec2.00614fe9.css
+0
-0
index.html
dist/index.html
+1
-1
app.9fdb8041.js
dist/js/app.9fdb8041.js
+2
-2
chunk-2d0ac970.f9a5ad45.js
dist/js/chunk-2d0ac970.f9a5ad45.js
+0
-0
chunk-7434af0a.455430fb.js
dist/js/chunk-7434af0a.455430fb.js
+1
-0
chunk-9d4c7a22.70a2401a.js
dist/js/chunk-9d4c7a22.70a2401a.js
+0
-1
chunk-f7dbcec2.a0b5425a.js
dist/js/chunk-f7dbcec2.a0b5425a.js
+1
-0
postApiPlanSchedulePlanScheduleIns.d.ts
...ller/PlanSchedule/postApiPlanSchedulePlanScheduleIns.d.ts
+28
-1
postApiPlanSchedulePlanScheduleSave.d.ts
...ler/PlanSchedule/postApiPlanSchedulePlanScheduleSave.d.ts
+28
-1
PlanScheduleViewModel.d.ts
...scheduleApi/interface/apiTypes/PlanScheduleViewModel.d.ts
+21
-0
PlanScheduleViewModel.js
...i/scheduleApi/interface/apiTypes/PlanScheduleViewModel.js
+1
-0
PlanScheduleViewModelMessageModel.d.ts
...interface/apiTypes/PlanScheduleViewModelMessageModel.d.ts
+8
-0
PlanScheduleViewModelMessageModel.js
...i/interface/apiTypes/PlanScheduleViewModelMessageModel.js
+1
-0
index.d.ts
src/api/scheduleApi/interface/index.d.ts
+2
-0
index.js
src/api/scheduleApi/interface/index.js
+2
-0
index.vue
src/pages/set/permission/index.vue
+64
-49
routes.js
src/router/routes.js
+1
-1
未找到文件。
dist/css/chunk-7434af0a.dd999460.css
0 → 100644
浏览文件 @
9c2056d3
.top-condition
[
data-v-f5b315a0
]
{
display
:
flex
}
[
data-v-f5b315a0
]
.ivu-checkbox-group-item
{
margin-bottom
:
10px
}
\ No newline at end of file
dist/css/chunk-9d4c7a22.75ba807d.css
已删除
100644 → 0
浏览文件 @
3d14bd3f
.top-condition
[
data-v-060d5388
]
{
display
:
flex
}
[
data-v-060d5388
]
.ivu-checkbox-group-item
{
margin-bottom
:
10px
}
\ No newline at end of file
dist/css/chunk-
30f97014
.00614fe9.css
→
dist/css/chunk-
f7dbcec2
.00614fe9.css
浏览文件 @
9c2056d3
文件已移动
dist/index.html
浏览文件 @
9c2056d3
<!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.d5720779.js
></script></body></html>
<!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.9fdb8041.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/js/app.
d5720779
.js
→
dist/js/app.
9fdb8041
.js
浏览文件 @
9c2056d3
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
dist/js/chunk-2d0ac970.
b10ba132
.js
→
dist/js/chunk-2d0ac970.
f9a5ad45
.js
浏览文件 @
9c2056d3
文件已移动
dist/js/chunk-7434af0a.455430fb.js
0 → 100644
浏览文件 @
9c2056d3
(
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
[
"
r
"
](
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
[
"
q
"
](
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-9d4c7a22.70a2401a.js
已删除
100644 → 0
浏览文件 @
3d14bd3f
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-9d4c7a22
"
],{
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
.
userroleid
,
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
),
e
.
_v
(
"
ß
\n\n
"
),
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
){
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
)},
o
=
[],
l
=
a
(
"
597f
"
),
r
=
a
(
"
7274
"
),
i
=
(
a
(
"
e191
"
),
a
(
"
61be
"
)),
s
=
{
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
(){
console
.
log
(
"
🚀🚀用户信息🚀,
"
,
this
.
userInfo
),
this
.
getData
(),
this
.
getRoleList
(),
this
.
getDeptAllList
()},
methods
:{
getData
:
function
(){
var
e
=
this
,
t
=
{
card_name
:
this
.
searchValue
,
page_index
:
this
.
pageIndex
,
page_size
:
this
.
pageSize
};
this
.
loading
=!
0
,
l
[
"
j
"
](
t
).
then
((
function
(
t
){
e
.
loading
=!
1
,
e
.
tableData
=
t
.
response
.
data
,
e
.
total
=
t
.
response
.
data_count
,
e
.
GetPersonByCondiction
()}))},
getRoleList
:
function
(){
var
e
=
this
;
l
[
"
k
"
]().
then
((
function
(
t
){
e
.
allRole
=
t
.
response
}))},
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
;
i
[
"
b
"
]((
function
(){
return
l
[
"
i
"
]({
id
:
e
.
userroleid
}).
then
((
function
(
a
){
return
console
.
log
(
e
),
t
.
selectUser
=
e
.
userroleid
,
t
.
userRole
=
a
.
response
.
role_list
.
map
((
function
(
e
){
return
e
.
role_id
})),
t
.
userDept
=
a
.
response
.
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
:
""
}}))};
i
[
"
b
"
]((
function
(){
return
l
[
"
r
"
](
t
).
then
((
function
(
t
){
return
e
.
modal
=!
1
,
e
.
getData
(),
t
}))}))},
handleCancel
:
function
(){
this
.
userRole
=
[]},
GetPersonByCondiction
:
function
(){
var
e
=
this
,
t
=
{
page_index
:
1
,
page_size
:
1
e4
};
l
[
"
j
"
](
t
).
then
((
function
(
t
){
e
.
peopleOption
=
t
.
response
.
data
.
filter
((
function
(
e
){
return
!
e
.
dept_list
.
length
})),
e
.
peopleOptionDefault
=
t
.
response
.
data
.
map
((
function
(
e
){
return
{
userroleid
:
e
.
userroleid
,
username
:
e
.
username
}}))}))},
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
[
"
q
"
](
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
};
r
[
"
e
"
](
a
).
then
((
function
(){
t
.
$Modal
.
remove
(),
t
.
$Message
.
success
(
"
删除成功
"
),
t
.
getData
()}))}})}}},
u
=
s
,
c
=
(
a
(
"
6d3d
"
),
a
(
"
2877
"
)),
d
=
Object
(
c
[
"
a
"
])(
u
,
n
,
o
,
!
1
,
null
,
"
060d5388
"
,
null
);
t
[
"
default
"
]
=
d
.
exports
},
"
58c8
"
:
function
(
e
,
t
,
a
){},
"
6d3d
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
(
"
58c8
"
)},
e191
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
.
d
(
t
,
"
b
"
,(
function
(){
return
o
})),
a
.
d
(
t
,
"
a
"
,(
function
(){
return
l
}));
var
n
=
a
(
"
b6bd
"
);
function
o
(
e
){
return
Object
(
n
[
"
a
"
])({
url
:
"
/api/Common/GetPersonByCondiction
"
,
method
:
"
get
"
,
params
:
e
})}
function
l
(
e
){
return
Object
(
n
[
"
a
"
])({
url
:
"
/api/DutyRecord/DutyArrangeIns
"
,
method
:
"
post
"
,
data
:
e
})}}}]);
\ No newline at end of file
dist/js/chunk-
30f97014.98e99608
.js
→
dist/js/chunk-
f7dbcec2.a0b5425a
.js
浏览文件 @
9c2056d3
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
src/api/scheduleApi/controller/PlanSchedule/postApiPlanSchedulePlanScheduleIns.d.ts
浏览文件 @
9c2056d3
...
@@ -9,5 +9,32 @@ export declare function postApiPlanSchedulePlanScheduleIns(input?: PlanScheduleI
...
@@ -9,5 +9,32 @@ export declare function postApiPlanSchedulePlanScheduleIns(input?: PlanScheduleI
status
:
string
;
status
:
string
;
msg
:
string
;
msg
:
string
;
msg_detail
:
string
;
msg_detail
:
string
;
response
:
string
;
response
:
{
id
:
string
;
date
:
string
;
userid
:
string
;
usercard
:
string
;
username
:
string
;
dept_id
:
string
;
dept_name
:
string
;
createby
:
string
;
createname
:
string
;
createtime
:
string
;
begin
:
string
;
end
:
string
;
content
:
string
;
is_del
:
number
;
file_id
:
string
;
modifyby
:
string
;
modify_time
:
string
;
file_list
:
{
id
:
string
;
createby
:
string
;
createtime
:
string
;
path
:
string
;
suffix
:
string
;
size
:
string
;
file_name
:
string
;
}[];
};
}
>
;
}
>
;
src/api/scheduleApi/controller/PlanSchedule/postApiPlanSchedulePlanScheduleSave.d.ts
浏览文件 @
9c2056d3
...
@@ -9,5 +9,32 @@ export declare function postApiPlanSchedulePlanScheduleSave(input?: PlanSchedule
...
@@ -9,5 +9,32 @@ export declare function postApiPlanSchedulePlanScheduleSave(input?: PlanSchedule
status
:
string
;
status
:
string
;
msg
:
string
;
msg
:
string
;
msg_detail
:
string
;
msg_detail
:
string
;
response
:
string
;
response
:
{
id
:
string
;
date
:
string
;
userid
:
string
;
usercard
:
string
;
username
:
string
;
dept_id
:
string
;
dept_name
:
string
;
createby
:
string
;
createname
:
string
;
createtime
:
string
;
begin
:
string
;
end
:
string
;
content
:
string
;
is_del
:
number
;
file_id
:
string
;
modifyby
:
string
;
modify_time
:
string
;
file_list
:
{
id
:
string
;
createby
:
string
;
createtime
:
string
;
path
:
string
;
suffix
:
string
;
size
:
string
;
file_name
:
string
;
}[];
};
}
>
;
}
>
;
src/api/scheduleApi/interface/apiTypes/PlanScheduleViewModel.d.ts
0 → 100644
浏览文件 @
9c2056d3
import
{
type
WeekplanFile
}
from
"
../../interface
"
;
export
interface
PlanScheduleViewModel
{
id
?:
string
;
date
?:
string
;
userid
?:
string
;
usercard
?:
string
;
username
?:
string
;
dept_id
?:
string
;
dept_name
?:
string
;
createby
?:
string
;
createname
?:
string
;
createtime
?:
string
;
begin
?:
string
;
end
?:
string
;
content
?:
string
;
is_del
?:
number
;
file_id
?:
string
;
modifyby
?:
string
;
modify_time
?:
string
;
file_list
?:
WeekplanFile
[];
}
src/api/scheduleApi/interface/apiTypes/PlanScheduleViewModel.js
0 → 100644
浏览文件 @
9c2056d3
export
{};
src/api/scheduleApi/interface/apiTypes/PlanScheduleViewModelMessageModel.d.ts
0 → 100644
浏览文件 @
9c2056d3
import
{
type
PlanScheduleViewModel
}
from
"
../../interface
"
;
export
interface
PlanScheduleViewModelMessageModel
{
code
?:
number
;
status
?:
string
;
msg
?:
string
;
msg_detail
?:
string
;
response
?:
PlanScheduleViewModel
;
}
src/api/scheduleApi/interface/apiTypes/PlanScheduleViewModelMessageModel.js
0 → 100644
浏览文件 @
9c2056d3
export
{};
src/api/scheduleApi/interface/index.d.ts
浏览文件 @
9c2056d3
...
@@ -36,6 +36,8 @@ export * from "./apiTypes/PlanScheduleGroup";
...
@@ -36,6 +36,8 @@ export * from "./apiTypes/PlanScheduleGroup";
export
*
from
"
./apiTypes/PlanScheduleInfoResponse
"
;
export
*
from
"
./apiTypes/PlanScheduleInfoResponse
"
;
export
*
from
"
./apiTypes/PlanScheduleInfoResponseMessageModel
"
;
export
*
from
"
./apiTypes/PlanScheduleInfoResponseMessageModel
"
;
export
*
from
"
./apiTypes/PlanScheduleInsRequest
"
;
export
*
from
"
./apiTypes/PlanScheduleInsRequest
"
;
export
*
from
"
./apiTypes/PlanScheduleViewModel
"
;
export
*
from
"
./apiTypes/PlanScheduleViewModelMessageModel
"
;
export
*
from
"
./apiTypes/PlanScheduleSaveRequest
"
;
export
*
from
"
./apiTypes/PlanScheduleSaveRequest
"
;
export
*
from
"
./apiTypes/PlanScheduleTrackListResponse
"
;
export
*
from
"
./apiTypes/PlanScheduleTrackListResponse
"
;
export
*
from
"
./apiTypes/PlanScheduleTrackListResponseListMessageModel
"
;
export
*
from
"
./apiTypes/PlanScheduleTrackListResponseListMessageModel
"
;
...
...
src/api/scheduleApi/interface/index.js
浏览文件 @
9c2056d3
...
@@ -36,6 +36,8 @@ export * from "./apiTypes/PlanScheduleGroup";
...
@@ -36,6 +36,8 @@ export * from "./apiTypes/PlanScheduleGroup";
export
*
from
"
./apiTypes/PlanScheduleInfoResponse
"
;
export
*
from
"
./apiTypes/PlanScheduleInfoResponse
"
;
export
*
from
"
./apiTypes/PlanScheduleInfoResponseMessageModel
"
;
export
*
from
"
./apiTypes/PlanScheduleInfoResponseMessageModel
"
;
export
*
from
"
./apiTypes/PlanScheduleInsRequest
"
;
export
*
from
"
./apiTypes/PlanScheduleInsRequest
"
;
export
*
from
"
./apiTypes/PlanScheduleViewModel
"
;
export
*
from
"
./apiTypes/PlanScheduleViewModelMessageModel
"
;
export
*
from
"
./apiTypes/PlanScheduleSaveRequest
"
;
export
*
from
"
./apiTypes/PlanScheduleSaveRequest
"
;
export
*
from
"
./apiTypes/PlanScheduleTrackListResponse
"
;
export
*
from
"
./apiTypes/PlanScheduleTrackListResponse
"
;
export
*
from
"
./apiTypes/PlanScheduleTrackListResponseListMessageModel
"
;
export
*
from
"
./apiTypes/PlanScheduleTrackListResponseListMessageModel
"
;
...
...
src/pages/set/permission/index.vue
浏览文件 @
9c2056d3
...
@@ -42,14 +42,15 @@
...
@@ -42,14 +42,15 @@
<Modal
v-model=
"modal"
title=
"编辑权限"
@
on-ok=
"saveEdit"
@
on-cancel=
"handleCancel"
:loading=
"modalLoading"
<Modal
v-model=
"modal"
title=
"编辑权限"
@
on-ok=
"saveEdit"
@
on-cancel=
"handleCancel"
:loading=
"modalLoading"
width=
"50%"
>
width=
"50%"
>
<Form
ref=
"formEdit"
:model=
"formDataEdit"
:rules=
"formRuleEdit"
:label-width=
"150"
>
<Form
ref=
"formEdit"
:model=
"formDataEdit"
:rules=
"formRuleEdit"
:label-width=
"150"
>
<FormItem
label=
"选择人员"
>
<FormItem
label=
"选择人员"
>
<Select
disabled
v-model=
"selectUser"
filterable
>
<Select
disabled
v-model=
"selectUser"
filterable
>
<Option
v-for=
"item in peopleOptionDefault"
:value=
"item.userroleid"
:key=
"item.userroleid"
:label=
"item.username"
>
<Option
v-for=
"item in peopleOptionDefault"
:value=
"item.userroleid"
:key=
"item.userid"
:label=
"item.username"
>
<div
style=
"display:flex;justify-content: space-between;"
>
<div
style=
"display:flex;justify-content: space-between;"
>
<p>
{{ item.usercard }}
<p>
{{ item.usercard }}
<span
style=
"color:#9a9a9a"
>
({{ item.username }})
</span>
<span
style=
"color:#9a9a9a"
>
({{ item.username }})
</span>
</p>
</p>
<!--
<p style="color:#ccc">{{ item.dept_name }}</p>-->
<!--<p style="color:#ccc">{{ item.dept_name }}</p>-->
</div>
</div>
</Option>
</Option>
</Select>
</Select>
...
@@ -65,13 +66,14 @@
...
@@ -65,13 +66,14 @@
</CheckboxGroup>
</CheckboxGroup>
</FormItem>
</FormItem>
</Form>
</Form>
</Modal>
ß
</Modal>
<Modal
v-model=
"userModal"
title=
"添加权限"
@
on-ok=
"handleAdd"
:loading=
"modalLoading"
width=
'50'
>
<Modal
v-model=
"userModal"
title=
"添加权限"
@
on-ok=
"handleAdd"
:loading=
"modalLoading"
width=
'50'
>
<Form
ref=
"form"
:model=
"formData"
:rules=
"formRule"
:label-width=
"150"
>
<Form
ref=
"form"
:model=
"formData"
:rules=
"formRule"
:label-width=
"150"
>
<FormItem
label=
"选择人员"
>
<FormItem
label=
"选择人员"
>
<Select
v-model=
"selectUser"
filterable
>
<Select
v-model=
"selectUser"
filterable
>
<Option
v-for=
"
item
in peopleOption"
:value=
"item.userid"
:key=
"item.userid"
:label=
"item.username"
>
<Option
v-for=
"
(item,index)
in peopleOption"
:value=
"item.userid"
:key=
"item.userid"
:label=
"item.username"
>
<div
style=
"display:flex;justify-content: space-between;"
>
<div
style=
"display:flex;justify-content: space-between;"
>
<p>
{{ item.usercard }}
<p>
{{ item.usercard }}
<span
style=
"color:#9a9a9a"
>
({{ item.username }})
</span>
<span
style=
"color:#9a9a9a"
>
({{ item.username }})
</span>
...
@@ -98,7 +100,7 @@
...
@@ -98,7 +100,7 @@
<
script
>
<
script
>
import
*
as
scheduleApi
from
'
@/api/scheduleApi/controller/index
'
import
*
as
scheduleApi
from
'
@/api/scheduleApi/controller/index
'
import
*
as
api
from
"
@/api/set
"
;
import
*
as
api
from
"
@/api/set
"
;
import
{
GetPersonByCondiction
}
from
"
@/api/arrangement
"
import
*
as
hooks
from
'
@/hook/index
'
import
*
as
hooks
from
'
@/hook/index
'
export
default
{
export
default
{
...
@@ -163,15 +165,15 @@ export default {
...
@@ -163,15 +165,15 @@ export default {
formData
:
{},
formData
:
{},
formRule
:
{},
formRule
:
{},
peopleOption
:
[],
peopleOption
:
[],
peopleOptionDefault
:[],
peopleOptionDefault
:
[],
selectUser
:
''
selectUser
:
''
};
};
},
},
created
()
{
created
()
{
console
.
log
(
"
🚀🚀用户信息🚀,
"
,
this
.
userInfo
)
this
.
getData
();
this
.
getData
();
this
.
getRoleList
();
this
.
getRoleList
();
this
.
getDeptAllList
();
this
.
getDeptAllList
();
this
.
getUserList
()
},
},
methods
:
{
methods
:
{
getData
()
{
getData
()
{
...
@@ -185,14 +187,39 @@ export default {
...
@@ -185,14 +187,39 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
tableData
=
resp
.
response
.
data
;
this
.
tableData
=
resp
.
response
.
data
;
this
.
total
=
resp
.
response
.
data_count
;
this
.
total
=
resp
.
response
.
data_count
;
this
.
GetPersonByCondiction
()
});
});
},
},
// 获取用户列表
getUserList
()
{
return
scheduleApi
.
getApiUserRoleGetUserRoleSearch
({
keyword
:
''
,
page_index
:
1
,
page_size
:
10000
,
}).
then
((
resp
)
=>
{
//用于新增权限
this
.
peopleOption
=
resp
.
response
.
data
.
map
(
cur
=>
{
return
{
...
cur
,
userroleid
:
cur
.
userroleid
==
null
?
''
:
cur
.
userroleid
,
}
})
//用于修改权限
this
.
peopleOptionDefault
=
resp
.
response
.
data
.
map
(
cur
=>
{
return
{
userroleid
:
cur
.
userroleid
==
null
?
''
:
cur
.
userroleid
,
username
:
cur
.
username
}
})
return
resp
});
},
// 获取所有角色
// 获取所有角色
getRoleList
()
{
getRoleList
()
{
scheduleApi
.
postApiCommonGetRoleList
().
then
((
resp
)
=>
{
scheduleApi
.
postApiCommonGetRoleList
().
then
((
resp
)
=>
{
this
.
allRole
=
resp
.
response
;
this
.
allRole
=
resp
.
response
.
filter
(
cur
=>
cur
.
name
!=
'
领导
'
)
;
});
});
},
},
// 获取所有部门
// 获取所有部门
...
@@ -226,34 +253,36 @@ export default {
...
@@ -226,34 +253,36 @@ export default {
},
},
// 获取权限信息
// 获取权限信息
handleEdit
(
row
)
{
handleEdit
(
row
)
{
hooks
.
myEncapsulationFunction
(()
=>
{
hooks
.
myEncapsulationFunction
(()
=>
{
return
scheduleApi
.
getApiUserRoleGetUserRoleInfo
({
id
:
row
.
userroleid
}).
then
(
res
=>
{
return
this
.
getUserList
().
then
((
resp
)
=>
{
console
.
log
(
row
);
this
.
selectUser
=
row
.
userroleid
this
.
selectUser
=
row
.
userroleid
this
.
userRole
=
r
es
.
response
.
role_list
.
map
(
cur
=>
cur
.
role_id
)
this
.
userRole
=
r
ow
.
role_list
.
map
(
cur
=>
cur
.
role_id
)
this
.
userDept
=
r
es
.
response
.
dept_list
.
map
(
cur
=>
cur
.
id
)
this
.
userDept
=
r
ow
.
dept_list
.
map
(
cur
=>
cur
.
id
)
// this.editRow = row;
this
.
modal
=
true
;
this
.
modal
=
true
;
return
res
return
res
p
})
})
},
true
,
'
加载中...
'
)
},
true
,
'
加载中...
'
)
},
},
// 保存编辑权限
// 保存编辑权限
saveEdit
()
{
saveEdit
()
{
const
params
=
{
const
params
=
{
userroleid
:
this
.
selectUser
,
userroleid
:
this
.
selectUser
,
"
dept_list
"
:
this
.
userDept
.
map
(
cur
=>
{
return
{
id
:
cur
,
name
:
''
}}),
"
dept_list
"
:
this
.
userDept
.
map
(
cur
=>
{
"
role_list
"
:
this
.
userRole
.
map
(
cur
=>
{
return
{
role_id
:
cur
,
role_name
:
''
}}),
return
{
id
:
cur
,
name
:
''
}
}),
"
role_list
"
:
this
.
userRole
.
map
(
cur
=>
{
return
{
role_id
:
cur
,
role_name
:
''
}
}),
};
};
hooks
.
myEncapsulationFunction
(()
=>
{
hooks
.
myEncapsulationFunction
(()
=>
{
return
scheduleApi
.
postApiUserRoleUserRoleSave
(
params
).
then
((
resp
)
=>
{
return
scheduleApi
.
postApiUserRoleUserRoleSave
(
params
).
then
((
resp
)
=>
{
this
.
modal
=
false
;
this
.
modal
=
false
;
this
.
getData
();
this
.
getData
();
return
resp
return
resp
})
})
})
})
},
},
...
@@ -261,31 +290,17 @@ export default {
...
@@ -261,31 +290,17 @@ export default {
this
.
userRole
=
[];
this
.
userRole
=
[];
},
},
// 获取人员选择器数据
GetPersonByCondiction
()
{
const
params
=
{
page_index
:
1
,
page_size
:
10000
}
scheduleApi
.
getApiUserRoleGetUserRoleList
(
params
).
then
(
resp
=>
{
//用于新增权限
this
.
peopleOption
=
resp
.
response
.
data
.
filter
(
cur
=>
!
(
!!
cur
.
dept_list
.
length
));
//用于修改权限
this
.
peopleOptionDefault
=
resp
.
response
.
data
.
map
(
cur
=>
{
return
{
userroleid
:
cur
.
userroleid
,
username
:
cur
.
username
}
})
})
},
// 确认添加权限
// 确认添加权限
handleAdd
()
{
handleAdd
()
{
let
params
=
{
let
params
=
{
"
userid
"
:
this
.
selectUser
,
"
userid
"
:
this
.
selectUser
,
"
dept_list
"
:
this
.
userDept
.
map
(
cur
=>
{
return
{
id
:
cur
,
name
:
''
}}),
"
dept_list
"
:
this
.
userDept
.
map
(
cur
=>
{
"
role_list
"
:
this
.
userRole
.
map
(
cur
=>
{
return
{
role_id
:
cur
,
role_name
:
''
}}),
return
{
id
:
cur
,
name
:
''
}
}),
"
role_list
"
:
this
.
userRole
.
map
(
cur
=>
{
return
{
role_id
:
cur
,
role_name
:
''
}
}),
}
}
scheduleApi
.
postApiUserRoleUserRoleDepIns
(
params
).
then
((
resp
)
=>
{
scheduleApi
.
postApiUserRoleUserRoleDepIns
(
params
).
then
((
resp
)
=>
{
...
...
src/router/routes.js
浏览文件 @
9c2056d3
...
@@ -17,8 +17,8 @@ const frameIn = [{
...
@@ -17,8 +17,8 @@ const frameIn = [{
name
:
'
arrangement
'
,
name
:
'
arrangement
'
,
meta
:
{
meta
:
{
title
:
'
日程安排
'
,
title
:
'
日程安排
'
,
auth
:
[
"
arrangement
"
]
},
},
auth
:
[
"
arrangement
"
]
,
component
:
()
=>
import
(
'
@/pages/arrangement/index.vue
'
)
component
:
()
=>
import
(
'
@/pages/arrangement/index.vue
'
)
},
},
{
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录