Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
日
日程管理
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
日程管理
提交
df595a8a
提交
df595a8a
编写于
8月 22, 2024
作者:
刘英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
V20240820 保存
上级
0e2fd007
变更
19
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
19 个修改的文件
包含
59 行增加
和
26 行删除
+59
-26
chunk-4848ce1c.bd6f5488.css
dist/css/chunk-4848ce1c.bd6f5488.css
+0
-1
chunk-56bcb0e8.b5567c09.css
dist/css/chunk-56bcb0e8.b5567c09.css
+0
-1
chunk-58df8e88.0f7d5781.css
dist/css/chunk-58df8e88.0f7d5781.css
+1
-0
chunk-59309fa8.73eefc65.css
dist/css/chunk-59309fa8.73eefc65.css
+1
-0
chunk-e9ce1a96.1f2b61df.css
dist/css/chunk-e9ce1a96.1f2b61df.css
+1
-0
index.html
dist/index.html
+1
-1
app.8b476837.js
dist/js/app.8b476837.js
+2
-2
chunk-041c3a25.b7728972.js
dist/js/chunk-041c3a25.b7728972.js
+2
-2
chunk-4848ce1c.a0e05e28.js
dist/js/chunk-4848ce1c.a0e05e28.js
+0
-1
chunk-56bcb0e8.bfe01cb4.js
dist/js/chunk-56bcb0e8.bfe01cb4.js
+0
-1
chunk-58df8e88.58d37910.js
dist/js/chunk-58df8e88.58d37910.js
+1
-0
chunk-59309fa8.05e32d13.js
dist/js/chunk-59309fa8.05e32d13.js
+1
-0
chunk-599ee512.23d66e20.js
dist/js/chunk-599ee512.23d66e20.js
+0
-1
chunk-e9ce1a96.5a55df5f.js
dist/js/chunk-e9ce1a96.5a55df5f.js
+1
-0
pc.zip
pc.zip
+0
-0
CEditModal.vue
src/components/common/CEditModal.vue
+1
-0
index.vue
src/pages/arrangement/index.vue
+8
-11
index.vue
src/pages/dutyConfig/index.vue
+25
-1
index.vue
src/pages/dutyType/index.vue
+14
-4
未找到文件。
dist/css/chunk-4848ce1c.bd6f5488.css
已删除
100644 → 0
浏览文件 @
0e2fd007
.demo-split
[
data-v-1eedf940
]
{
height
:
calc
(
100vh
-
112px
)}
.demo-split
.demo-split-pane-L
[
data-v-1eedf940
]
{
padding
:
10px
;
height
:
100%
;
background-color
:
#fff
}
.demo-split
.demo-split-pane-R
[
data-v-1eedf940
]
{
padding-left
:
8px
}
\ No newline at end of file
dist/css/chunk-56bcb0e8.b5567c09.css
已删除
100644 → 0
浏览文件 @
0e2fd007
[
data-v-59f3210f
]
.ivu-form-item-content
{
position
:
relative
;
font-size
:
14px
}
[
data-v-59f3210f
]
.ivu-divider-horizontal
{
display
:
block
;
height
:
1px
;
width
:
100%
;
min-width
:
100%
;
margin
:
0
;
clear
:
both
}
.ivu-form-item
[
data-v-59f3210f
]
{
padding-right
:
15px
}
.fileRow
[
data-v-59f3210f
]
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
}
.fileRow
.delIcon
[
data-v-59f3210f
]
{
color
:
#ed4014
}
.fileRow
.delIcon
[
data-v-59f3210f
]
:hover
{
color
:
#f16643
;
cursor
:
pointer
}
\ No newline at end of file
dist/css/chunk-58df8e88.0f7d5781.css
0 → 100644
浏览文件 @
df595a8a
[
data-v-7cd379b4
]
.ivu-form-item-content
{
position
:
relative
;
font-size
:
14px
}
[
data-v-7cd379b4
]
.ivu-divider-horizontal
{
display
:
block
;
height
:
1px
;
width
:
100%
;
min-width
:
100%
;
margin
:
0
;
clear
:
both
}
.ivu-form-item
[
data-v-7cd379b4
]
{
padding-right
:
15px
}
.fileRow
[
data-v-7cd379b4
]
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
}
.fileRow
.delIcon
[
data-v-7cd379b4
]
{
color
:
#ed4014
}
.fileRow
.delIcon
[
data-v-7cd379b4
]
:hover
{
color
:
#f16643
;
cursor
:
pointer
}
\ No newline at end of file
dist/css/chunk-59309fa8.73eefc65.css
0 → 100644
浏览文件 @
df595a8a
.demo-split
[
data-v-a7e93df6
]
{
height
:
calc
(
100vh
-
112px
)}
.demo-split
.demo-split-pane-L
[
data-v-a7e93df6
]
{
padding
:
10px
;
height
:
100%
;
background-color
:
#fff
}
.demo-split
.demo-split-pane-R
[
data-v-a7e93df6
]
{
padding-left
:
8px
}
\ No newline at end of file
dist/css/chunk-
599ee512.b6e1c201
.css
→
dist/css/chunk-
e9ce1a96.1f2b61df
.css
浏览文件 @
df595a8a
.index
[
data-v-34c35b82
]
{
width
:
100%
;
box-sizing
:
border-box
;
padding
:
10px
;
background-color
:
#fff
}
table
[
data-v-34c35b82
]
{
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-34c35b82
]
{
border
:
none
;
text-align
:
center
}
td
[
data-v-34c35b82
]
{
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-34c35b82
]
:hover
{
background
:
#e7f7f4
}
td
:hover
.dis
[
data-v-34c35b82
]
{
display
:
block
;
text-align
:
center
;
margin
:
0
auto
;
cursor
:
pointer
}
tr
[
data-v-34c35b82
]
:first-child
{
height
:
30px
;
background-color
:
#f3f3f3
;
border
:
none
;
color
:
#525252
;
font-weight
:
700
;
width
:
50px
}
.sepacialy
[
data-v-34c35b82
]
{
border-top
:
1px
solid
#e3e8ee
;
border-left
:
1px
solid
#e3e8ee
}
.table-heard
[
data-v-34c35b82
]
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
margin-bottom
:
10px
;
box-sizing
:
border-box
;
padding
:
10px
10px
}
.table-heard
.center
[
data-v-34c35b82
]
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
}
.table-heard
.center
p
[
data-v-34c35b82
]
{
font-size
:
20px
;
margin
:
0
30px
}
.course-item
[
data-v-34c35b82
]
{
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-34c35b82
]
{
color
:
#3a3a3a
}
.time
[
data-v-34c35b82
]
{
background
:
#f7f7f7
;
color
:
#707070
;
font-weight
:
700
}
.index
[
data-v-2d07ffaa
]
{
width
:
100%
;
box-sizing
:
border-box
;
padding
:
10px
;
background-color
:
#fff
}
table
[
data-v-2d07ffaa
]
{
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-2d07ffaa
]
{
border
:
none
;
text-align
:
center
}
td
[
data-v-2d07ffaa
]
{
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-2d07ffaa
]
:hover
{
background
:
#e7f7f4
}
td
:hover
.dis
[
data-v-2d07ffaa
]
{
display
:
block
;
text-align
:
center
;
margin
:
0
auto
;
cursor
:
pointer
}
tr
[
data-v-2d07ffaa
]
:first-child
{
height
:
30px
;
background-color
:
#f3f3f3
;
border
:
none
;
color
:
#525252
;
font-weight
:
700
;
width
:
50px
}
.sepacialy
[
data-v-2d07ffaa
]
{
border-top
:
1px
solid
#e3e8ee
;
border-left
:
1px
solid
#e3e8ee
}
.table-heard
[
data-v-2d07ffaa
]
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
margin-bottom
:
10px
;
box-sizing
:
border-box
;
padding
:
10px
10px
}
.table-heard
.center
[
data-v-2d07ffaa
]
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
}
.table-heard
.center
p
[
data-v-2d07ffaa
]
{
font-size
:
20px
;
margin
:
0
30px
}
.course-item
[
data-v-2d07ffaa
]
{
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-2d07ffaa
]
{
color
:
#3a3a3a
}
.time
[
data-v-2d07ffaa
]
{
background
:
#f7f7f7
;
color
:
#707070
;
font-weight
:
700
}
\ No newline at end of file
\ No newline at end of file
dist/index.html
浏览文件 @
df595a8a
<!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.a786022a.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.9ae50470.js
></script><script
src=
js/app.a2506573.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.a786022a.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.9ae50470.js
></script><script
src=
js/app.8b476837.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/js/app.
a2506573
.js
→
dist/js/app.
8b476837
.js
浏览文件 @
df595a8a
此差异已折叠。
点击以展开。
dist/js/chunk-041c3a25.
7bae70dc
.js
→
dist/js/chunk-041c3a25.
b7728972
.js
浏览文件 @
df595a8a
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
dist/js/chunk-4848ce1c.a0e05e28.js
已删除
100644 → 0
浏览文件 @
0e2fd007
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-4848ce1c
"
],{
"
212d
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
(
"
ba2f
"
)},
"
25b06
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
.
r
(
t
);
a
(
"
28a5
"
),
a
(
"
ac6a
"
),
a
(
"
456d
"
),
a
(
"
7f7f
"
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
_self
.
_c
;
return
t
(
"
div
"
,[
t
(
"
div
"
,{
staticClass
:
"
demo-split
"
},[
t
(
"
Split
"
,{
scopedSlots
:
e
.
_u
([{
key
:
"
left
"
,
fn
:
function
(){
return
[
t
(
"
div
"
,{
staticClass
:
"
demo-split-pane-L
"
},[
e
.
treePanelLoading
?
t
(
"
Spin
"
,{
attrs
:{
size
:
"
large
"
,
fix
:
""
}}):
e
.
_e
(),
t
(
"
Tree
"
,{
attrs
:{
data
:
e
.
typeTree
},
on
:{
"
on-select-change
"
:
e
.
treeNodeChange
}})],
1
)]},
proxy
:
!
0
},{
key
:
"
right
"
,
fn
:
function
(){
return
[
t
(
"
div
"
,{
staticClass
:
"
demo-split-pane-R
"
},[
t
(
"
Card
"
,{
ref
:
"
card
"
,
attrs
:{
"
dis-hover
"
:
""
}},[
t
(
"
Input
"
,{
staticStyle
:{
width
:
"
200px
"
},
attrs
:{
placeholder
:
"
请输入关键词
"
,
clearable
:
""
},
model
:{
value
:
e
.
params
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
params
,
"
name
"
,
t
)},
expression
:
"
params.name
"
}}),
t
(
"
Button
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
doSearch
}},[
e
.
_v
(
"
查找
"
)]),
t
(
"
Button
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
type
:
"
primary
"
,
ghost
:
""
,
disabled
:
0
==
Object
.
keys
(
e
.
currentTreeNode
).
length
},
on
:{
click
:
e
.
add
}},[
t
(
"
Icon
"
,{
attrs
:{
type
:
"
md-add
"
}}),
e
.
_v
(
"
新增分类
\n
"
)],
1
),
t
(
"
Table
"
,{
ref
:
"
table
"
,
staticClass
:
"
ivu-mt
"
,
attrs
:{
columns
:
e
.
columns
,
data
:
e
.
tableData
,
loading
:
e
.
tableLoading
,
size
:
"
small
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
is_enable
"
,
fn
:
function
(
a
){
var
n
=
a
.
row
,
i
=
a
.
index
;
return
[
t
(
"
i-switch
"
,{
attrs
:{
size
:
"
large
"
,
"
true-value
"
:
1
,
"
false-value
"
:
0
},
on
:{
"
on-change
"
:
function
(
t
){
return
e
.
switchChange
(
t
,
n
,
i
)}},
model
:{
value
:
n
.
is_enable
,
callback
:
function
(
t
){
e
.
$set
(
n
,
"
is_enable
"
,
t
)},
expression
:
"
row.is_enable
"
}},[
t
(
"
span
"
,{
attrs
:{
slot
:
"
open
"
,
type
:
"
md-checkmark
"
},
slot
:
"
open
"
},[
e
.
_v
(
"
启用
"
)]),
t
(
"
span
"
,{
attrs
:{
slot
:
"
close
"
,
type
:
"
md-close
"
},
slot
:
"
close
"
},[
e
.
_v
(
"
停用
"
)])])]}},{
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
(
"
Divider
"
,{
attrs
:{
type
:
"
vertical
"
}}),
t
(
"
a
"
,{
attrs
:{
type
:
"
text
"
},
on
:{
click
:
function
(
t
){
return
e
.
handleDelete
(
n
.
id
)}}},[
e
.
_v
(
"
删除
"
)])],
1
)]}}])}),
t
(
"
div
"
,{
staticClass
:
"
ivu-mt ivu-text-center
"
},[
t
(
"
Page
"
,{
attrs
:{
total
:
e
.
dataCount
,
current
:
e
.
params
.
page_index
,
"
show-total
"
:
""
,
"
show-sizer
"
:
""
,
"
show-elevator
"
:
""
,
"
page-size
"
:
e
.
params
.
page_size
,
"
page-size-opts
"
:[
10
,
30
,
50
,
100
]},
on
:{
"
update:current
"
:
function
(
t
){
return
e
.
$set
(
e
.
params
,
"
page_index
"
,
t
)},
"
on-change
"
:
e
.
handleChangePage
,
"
on-page-size-change
"
:
e
.
handleChangePageSize
}})],
1
)],
1
)],
1
)]},
proxy
:
!
0
}]),
model
:{
value
:
e
.
split
,
callback
:
function
(
t
){
e
.
split
=
t
},
expression
:
"
split
"
}})],
1
),
t
(
"
CEditModal
"
,{
ref
:
"
ceditmodal
"
,
attrs
:{
formItem
:
e
.
formItem
,
loading
:
e
.
editModalLoading
,
formLabelWidth
:
100
,
width
:
800
},
on
:{
onClose
:
function
(
t
){
e
.
editModalshow
=!
1
},
onSubmit
:
e
.
modalSubmit
},
model
:{
value
:
e
.
editModalshow
,
callback
:
function
(
t
){
e
.
editModalshow
=
t
},
expression
:
"
editModalshow
"
}})],
1
)},
i
=
[],
r
=
(
a
(
"
8e6e
"
),
a
(
"
20d6
"
),
a
(
"
ade3
"
)),
o
=
(
a
(
"
96cf
"
),
a
(
"
1da1
"
)),
s
=
a
(
"
967e
"
),
c
=
a
.
n
(
s
),
d
=
a
(
"
b6bd
"
);
function
l
(
e
){
return
Object
(
d
[
"
a
"
])({
url
:
"
/api/DutyClassify/GetClassifyTree
"
,
method
:
"
get
"
,
params
:
e
})}
function
u
(
e
){
return
Object
(
d
[
"
a
"
])({
url
:
"
/api/DutyClassify/QueryDutyClassify
"
,
method
:
"
get
"
,
params
:
e
})}
function
p
(
e
){
return
Object
(
d
[
"
a
"
])({
url
:
"
/api/DutyClassify/ModifyDutyStatus
"
,
method
:
"
get
"
,
params
:
e
})}
function
f
(
e
){
return
Object
(
d
[
"
a
"
])({
url
:
"
/api/DutyClassify/DeleteDuty
"
,
method
:
"
get
"
,
params
:
e
})}
function
h
(
e
){
return
Object
(
d
[
"
a
"
])({
url
:
"
/api/DutyClassify/AddDutyType
"
,
method
:
"
post
"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
d
[
"
a
"
])({
url
:
"
/api/Common/GetDutyConfigSelect
"
,
method
:
"
get
"
,
params
:
e
})}
function
g
(
e
){
return
Object
(
d
[
"
a
"
])({
url
:
"
/api/DutyClassify/UpdateDutyType
"
,
method
:
"
post
"
,
data
:
e
})}
var
b
=
a
(
"
d02c
"
),
y
=
a
(
"
12cb
"
);
function
v
(
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
_
(
e
){
for
(
var
t
=
1
;
t
<
arguments
.
length
;
t
++
){
var
a
=
null
!=
arguments
[
t
]?
arguments
[
t
]:{};
t
%
2
?
v
(
Object
(
a
),
!
0
).
forEach
((
function
(
t
){
Object
(
r
[
"
a
"
])(
e
,
t
,
a
[
t
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
e
,
Object
.
getOwnPropertyDescriptors
(
a
)):
v
(
Object
(
a
)).
forEach
((
function
(
t
){
Object
.
defineProperty
(
e
,
t
,
Object
.
getOwnPropertyDescriptor
(
a
,
t
))}))}
return
e
}
var
D
=
{
components
:{
CEditModal
:
y
[
"
a
"
]},
data
:
function
(){
return
{
split
:
"
250px
"
,
treePanelLoading
:
!
1
,
typeTree
:[],
currentTreeNode
:{},
tableLoading
:
!
1
,
tableData
:[],
dataCount
:
0
,
columns
:[{
type
:
"
index
"
,
title
:
"
序号
"
,
align
:
"
center
"
,
width
:
60
},{
title
:
"
名称
"
,
key
:
"
name
"
},{
title
:
"
启用
"
,
slot
:
"
is_enable
"
},{
title
:
"
操作
"
,
slot
:
"
action
"
,
align
:
"
center
"
,
fixed
:
"
right
"
,
width
:
150
}],
params
:{
page_index
:
1
,
page_size
:
10
,
parent_id
:
"
1
"
,
name
:
""
},
editModalshow
:
!
1
,
editModalLoading
:
!
1
,
isEdit
:
!
1
,
formItem
:[{
id
:
"
name
"
,
name
:
"
分类名称
"
,
type
:
"
input
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]},{
id
:
"
config_id
"
,
name
:
"
配置类型
"
,
type
:
"
multipleselect
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]}],
defaultFormData
:{
id
:
""
,
name
:
""
,
parent_id
:
""
,
config_id
:[]},
configList
:[]}},
mounted
:
function
(){
this
.
getTreeData
(),
this
.
getData
(),
this
.
GetDutyConfigSelect
()},
methods
:{
getTreeData
:
function
(){
var
e
=
Object
(
o
[
"
a
"
])(
c
.
a
.
mark
((
function
e
(){
var
t
=
this
;
return
c
.
a
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
this
.
treePanelLoading
=!
0
,
this
.
currentTreeNode
=
{},
l
().
then
((
function
(
e
){
t
.
typeTree
=
t
.
treeFormat
(
e
),
t
.
treePanelLoading
=!
1
}));
case
3
:
case
"
end
"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
treeNodeChange
:
function
(
e
,
t
){
t
.
expand
=!
0
,
t
.
selected
?(
this
.
currentTreeNode
=
t
,
this
.
params
.
parent_id
=
t
.
id
):(
this
.
currentTreeNode
=
{},
this
.
params
.
parent_id
=
"
1
"
),
this
.
getData
()},
treeFormat
:
function
(
e
){
var
t
=
this
;
return
e
.
map
((
function
(
e
){
return
e
.
children
&&
0
!=
e
.
children
.
length
&&
(
e
.
children
=
t
.
treeFormat
(
e
.
children
)),
_
(
_
({},
e
),{},{
title
:
e
.
name
,
expand
:
"
1
"
==
e
.
id
,
selected
:
!
1
})}))},
GetDutyConfigSelect
:
function
(){
var
e
=
this
;
m
().
then
((
function
(
t
){
var
a
=
e
.
formItem
.
findIndex
((
function
(
e
){
return
"
config_id
"
==
e
.
id
}));
e
.
formItem
[
a
].
optList
=
t
.
map
((
function
(
e
){
return
_
(
_
({},
e
),{},{
label
:
e
.
name
,
value
:
e
.
id
})}))}))},
getData
:
function
(){
var
e
=
this
;
this
.
tableLoading
=!
0
,
u
(
this
.
params
).
then
((
function
(
t
){
e
.
tableData
=
t
.
data
,
e
.
dataCount
=
t
.
data_count
,
e
.
tableLoading
=!
1
}))},
switchChange
:
function
(
e
,
t
,
a
){
var
n
=
this
;
this
.
tableData
[
a
].
is_enable
=
e
,
p
({
id
:
t
.
id
,
is_enable
:
e
}).
then
((
function
(
e
){
n
.
$Message
.
success
(
e
)})).
catch
((
function
(){
n
.
tableData
[
a
].
is_enable
=
0
==
e
?
1
:
0
,
n
.
$Message
.
error
(
res
.
msg_detail
)}))},
handleChangePage
:
function
(
e
){
this
.
params
.
page_index
=
e
,
this
.
getData
()},
handleChangePageSize
:
function
(
e
){
this
.
params
.
page_size
=
e
,
1
==
this
.
params
.
page_index
&&
(
this
.
params
.
page_index
=
e
,
this
.
getData
())},
doSearch
:
function
(){
this
.
params
.
page_size
=
1
,
this
.
getData
()},
handleEdit
:
function
(
e
){
this
.
editModalshow
=!
0
,
this
.
isEdit
=!
0
,
this
.
$refs
.
ceditmodal
.
modalInit
(
"
edit
"
,
_
(
_
({},
e
),{},{
config_id
:
e
.
config_id
.
split
(
"
;
"
)}),
"
编辑分类
"
)},
handleDelete
:
function
(
e
){
var
t
=
this
;
this
.
$Modal
.
confirm
({
title
:
"
确定要删除吗?
"
,
loading
:
!
0
,
onOk
:
function
(){
var
a
=
{
id
:
e
};
f
(
a
).
then
((
function
(){
t
.
$Modal
.
remove
(),
t
.
$Message
.
success
(
"
删除成功
"
),
t
.
getData
(),
t
.
getTreeData
()}))}})},
add
:
function
(){
this
.
editModalshow
=!
0
,
this
.
isEdit
=!
1
,
this
.
$refs
.
ceditmodal
.
modalInit
(
"
add
"
,
this
.
defaultFormData
,
"
新增分类
"
)},
modalSubmit
:
function
(
e
){
var
t
=
this
;
function
a
(
e
){
return
console
.
log
(
"
🚀valval🚀🚀,
"
,
e
),
b
[
"
b
"
]({
parent_id
:
e
.
parent_id
}).
then
((
function
(
t
){
return
h
(
_
(
_
({},
e
),{},{
id
:
t
}))}))}
console
.
log
(
"
modal提交
"
,
e
);
var
n
=
0
!=
Object
.
keys
(
this
.
currentTreeNode
).
length
;
e
.
parent_id
=
n
?
this
.
currentTreeNode
.
id
:
"
1
"
,
e
.
config_id
=
e
.
config_id
.
join
(
"
;
"
),
console
.
log
(
e
),
this
.
$Modal
.
confirm
({
title
:
"
提示
"
,
content
:
"
是否确定提交?
"
,
loading
:
!
0
,
onOk
:
function
(){
var
n
=
Object
(
o
[
"
a
"
])(
c
.
a
.
mark
((
function
n
(){
var
i
;
return
c
.
a
.
wrap
((
function
(
n
){
while
(
1
)
switch
(
n
.
prev
=
n
.
next
){
case
0
:
if
(
!
t
.
isEdit
){
n
.
next
=
6
;
break
}
return
n
.
next
=
3
,
g
(
e
);
case
3
:
n
.
t0
=
n
.
sent
,
n
.
next
=
9
;
break
;
case
6
:
return
n
.
next
=
8
,
a
(
e
);
case
8
:
n
.
t0
=
n
.
sent
;
case
9
:
i
=
n
.
t0
,
t
.
$Message
.
success
(
i
),
t
.
editModalshow
=!
1
,
t
.
getData
(),
t
.
getTreeData
(),
t
.
$Modal
.
remove
();
case
15
:
case
"
end
"
:
return
n
.
stop
()}}),
n
)})));
function
i
(){
return
n
.
apply
(
this
,
arguments
)}
return
i
}()})}}},
w
=
D
,
C
=
(
a
(
"
212d
"
),
a
(
"
2877
"
)),
O
=
Object
(
C
[
"
a
"
])(
w
,
n
,
i
,
!
1
,
null
,
"
1eedf940
"
,
null
);
t
[
"
default
"
]
=
O
.
exports
},
ba2f
:
function
(
e
,
t
,
a
){}}]);
\ No newline at end of file
dist/js/chunk-56bcb0e8.bfe01cb4.js
已删除
100644 → 0
浏览文件 @
0e2fd007
此差异已折叠。
点击以展开。
dist/js/chunk-58df8e88.58d37910.js
0 → 100644
浏览文件 @
df595a8a
此差异已折叠。
点击以展开。
dist/js/chunk-59309fa8.05e32d13.js
0 → 100644
浏览文件 @
df595a8a
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-59309fa8
"
],{
"
25b06
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
.
r
(
t
);
a
(
"
28a5
"
),
a
(
"
ac6a
"
),
a
(
"
456d
"
),
a
(
"
7f7f
"
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
_self
.
_c
;
return
t
(
"
div
"
,[
t
(
"
div
"
,{
staticClass
:
"
demo-split
"
},[
t
(
"
Split
"
,{
scopedSlots
:
e
.
_u
([{
key
:
"
left
"
,
fn
:
function
(){
return
[
t
(
"
div
"
,{
staticClass
:
"
demo-split-pane-L
"
},[
e
.
treePanelLoading
?
t
(
"
Spin
"
,{
attrs
:{
size
:
"
large
"
,
fix
:
""
}}):
e
.
_e
(),
t
(
"
Tree
"
,{
attrs
:{
data
:
e
.
typeTree
},
on
:{
"
on-select-change
"
:
e
.
treeNodeChange
},
model
:{
value
:
e
.
currentTreeNode
,
callback
:
function
(
t
){
e
.
currentTreeNode
=
t
},
expression
:
"
currentTreeNode
"
}})],
1
)]},
proxy
:
!
0
},{
key
:
"
right
"
,
fn
:
function
(){
return
[
t
(
"
div
"
,{
staticClass
:
"
demo-split-pane-R
"
},[
t
(
"
Card
"
,{
ref
:
"
card
"
,
attrs
:{
"
dis-hover
"
:
""
}},[
t
(
"
Input
"
,{
staticStyle
:{
width
:
"
200px
"
},
attrs
:{
placeholder
:
"
请输入关键词
"
,
clearable
:
""
},
model
:{
value
:
e
.
params
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
params
,
"
name
"
,
t
)},
expression
:
"
params.name
"
}}),
t
(
"
Button
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
doSearch
}},[
e
.
_v
(
"
查找
"
)]),
t
(
"
Button
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
type
:
"
primary
"
,
ghost
:
""
,
disabled
:
0
==
Object
.
keys
(
e
.
currentTreeNode
).
length
},
on
:{
click
:
e
.
add
}},[
t
(
"
Icon
"
,{
attrs
:{
type
:
"
md-add
"
}}),
e
.
_v
(
"
新增分类
\n
"
)],
1
),
t
(
"
Table
"
,{
ref
:
"
table
"
,
staticClass
:
"
ivu-mt
"
,
attrs
:{
columns
:
e
.
columns
,
data
:
e
.
tableData
,
loading
:
e
.
tableLoading
,
size
:
"
small
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
is_enable
"
,
fn
:
function
(
a
){
var
n
=
a
.
row
,
i
=
a
.
index
;
return
[
t
(
"
i-switch
"
,{
attrs
:{
size
:
"
large
"
,
"
true-value
"
:
1
,
"
false-value
"
:
0
},
on
:{
"
on-change
"
:
function
(
t
){
return
e
.
switchChange
(
t
,
n
,
i
)}},
model
:{
value
:
n
.
is_enable
,
callback
:
function
(
t
){
e
.
$set
(
n
,
"
is_enable
"
,
t
)},
expression
:
"
row.is_enable
"
}},[
t
(
"
span
"
,{
attrs
:{
slot
:
"
open
"
,
type
:
"
md-checkmark
"
},
slot
:
"
open
"
},[
e
.
_v
(
"
启用
"
)]),
t
(
"
span
"
,{
attrs
:{
slot
:
"
close
"
,
type
:
"
md-close
"
},
slot
:
"
close
"
},[
e
.
_v
(
"
停用
"
)])])]}},{
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
(
"
Divider
"
,{
attrs
:{
type
:
"
vertical
"
}}),
t
(
"
a
"
,{
attrs
:{
type
:
"
text
"
},
on
:{
click
:
function
(
t
){
return
e
.
handleDelete
(
n
.
id
)}}},[
e
.
_v
(
"
删除
"
)])],
1
)]}}])}),
t
(
"
div
"
,{
staticClass
:
"
ivu-mt ivu-text-center
"
},[
t
(
"
Page
"
,{
attrs
:{
total
:
e
.
dataCount
,
current
:
e
.
params
.
page_index
,
"
show-total
"
:
""
,
"
show-sizer
"
:
""
,
"
show-elevator
"
:
""
,
"
page-size
"
:
e
.
params
.
page_size
,
"
page-size-opts
"
:[
10
,
30
,
50
,
100
]},
on
:{
"
update:current
"
:
function
(
t
){
return
e
.
$set
(
e
.
params
,
"
page_index
"
,
t
)},
"
on-change
"
:
e
.
handleChangePage
,
"
on-page-size-change
"
:
e
.
handleChangePageSize
}})],
1
)],
1
)],
1
)]},
proxy
:
!
0
}]),
model
:{
value
:
e
.
split
,
callback
:
function
(
t
){
e
.
split
=
t
},
expression
:
"
split
"
}})],
1
),
t
(
"
CEditModal
"
,{
ref
:
"
ceditmodal
"
,
attrs
:{
formRule
:
e
.
formRule
,
formItem
:
e
.
formItem
,
loading
:
e
.
editModalLoading
,
formLabelWidth
:
100
,
width
:
800
},
on
:{
onClose
:
function
(
t
){
e
.
editModalshow
=!
1
},
onSubmit
:
e
.
modalSubmit
},
model
:{
value
:
e
.
editModalshow
,
callback
:
function
(
t
){
e
.
editModalshow
=
t
},
expression
:
"
editModalshow
"
}})],
1
)},
i
=
[],
r
=
(
a
(
"
8e6e
"
),
a
(
"
20d6
"
),
a
(
"
ade3
"
)),
o
=
(
a
(
"
96cf
"
),
a
(
"
1da1
"
)),
s
=
a
(
"
967e
"
),
c
=
a
.
n
(
s
),
l
=
a
(
"
b6bd
"
);
function
d
(
e
){
return
Object
(
l
[
"
a
"
])({
url
:
"
/api/DutyClassify/GetClassifyTree
"
,
method
:
"
get
"
,
params
:
e
})}
function
u
(
e
){
return
Object
(
l
[
"
a
"
])({
url
:
"
/api/DutyClassify/QueryDutyClassify
"
,
method
:
"
get
"
,
params
:
e
})}
function
p
(
e
){
return
Object
(
l
[
"
a
"
])({
url
:
"
/api/DutyClassify/ModifyDutyStatus
"
,
method
:
"
get
"
,
params
:
e
})}
function
f
(
e
){
return
Object
(
l
[
"
a
"
])({
url
:
"
/api/DutyClassify/DeleteDuty
"
,
method
:
"
get
"
,
params
:
e
})}
function
h
(
e
){
return
Object
(
l
[
"
a
"
])({
url
:
"
/api/DutyClassify/AddDutyType
"
,
method
:
"
post
"
,
data
:
e
})}
function
m
(
e
){
return
Object
(
l
[
"
a
"
])({
url
:
"
/api/Common/GetDutyConfigSelect
"
,
method
:
"
get
"
,
params
:
e
})}
function
g
(
e
){
return
Object
(
l
[
"
a
"
])({
url
:
"
/api/DutyClassify/UpdateDutyType
"
,
method
:
"
post
"
,
data
:
e
})}
var
b
=
a
(
"
d02c
"
),
y
=
a
(
"
12cb
"
);
function
v
(
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
_
(
e
){
for
(
var
t
=
1
;
t
<
arguments
.
length
;
t
++
){
var
a
=
null
!=
arguments
[
t
]?
arguments
[
t
]:{};
t
%
2
?
v
(
Object
(
a
),
!
0
).
forEach
((
function
(
t
){
Object
(
r
[
"
a
"
])(
e
,
t
,
a
[
t
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
e
,
Object
.
getOwnPropertyDescriptors
(
a
)):
v
(
Object
(
a
)).
forEach
((
function
(
t
){
Object
.
defineProperty
(
e
,
t
,
Object
.
getOwnPropertyDescriptor
(
a
,
t
))}))}
return
e
}
var
D
=
{
components
:{
CEditModal
:
y
[
"
a
"
]},
data
:
function
(){
return
{
split
:
"
250px
"
,
curNode
:[],
treePanelLoading
:
!
1
,
typeTree
:[],
currentTreeNode
:{},
tableLoading
:
!
1
,
tableData
:[],
dataCount
:
0
,
columns
:[{
type
:
"
index
"
,
title
:
"
序号
"
,
align
:
"
center
"
,
width
:
60
},{
title
:
"
名称
"
,
key
:
"
name
"
},{
title
:
"
启用
"
,
slot
:
"
is_enable
"
},{
title
:
"
操作
"
,
slot
:
"
action
"
,
align
:
"
center
"
,
fixed
:
"
right
"
,
width
:
150
}],
params
:{
page_index
:
1
,
page_size
:
10
,
parent_id
:
"
1
"
,
name
:
""
},
editModalshow
:
!
1
,
editModalLoading
:
!
1
,
isEdit
:
!
1
,
formItem
:[{
id
:
"
name
"
,
name
:
"
分类名称
"
,
type
:
"
input
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]},{
id
:
"
config_id
"
,
name
:
"
配置类型
"
,
type
:
"
multipleselect
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]}],
formRule
:{
name
:[{
required
:
!
0
,
message
:
"
该项不能为空
"
,
trigger
:
"
blur
"
}],
config_id
:[{
type
:
"
array
"
,
required
:
!
0
,
message
:
"
该项不能为空
"
,
trigger
:
"
change
"
}]},
defaultFormData
:{
id
:
""
,
name
:
""
,
parent_id
:
""
,
config_id
:[]},
configList
:[]}},
mounted
:
function
(){
this
.
getTreeData
(),
this
.
getData
(),
this
.
GetDutyConfigSelect
()},
methods
:{
getTreeData
:
function
(){
var
e
=
Object
(
o
[
"
a
"
])(
c
.
a
.
mark
((
function
e
(){
var
t
=
this
;
return
c
.
a
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
this
.
treePanelLoading
=!
0
,
this
.
currentTreeNode
=
{},
d
().
then
((
function
(
e
){
t
.
typeTree
=
t
.
treeFormat
(
e
),
t
.
treePanelLoading
=!
1
}));
case
3
:
case
"
end
"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
treeNodeChange
:
function
(
e
,
t
){
console
.
log
(
"
🚀🚀🚀,
"
,
e
,
t
),
t
.
expand
=!
0
,
t
.
selected
?(
this
.
currentTreeNode
=
t
,
this
.
params
.
parent_id
=
t
.
id
):(
this
.
currentTreeNode
=
{},
this
.
params
.
parent_id
=
"
1
"
),
this
.
getData
()},
treeFormat
:
function
(
e
){
var
t
=
this
;
return
e
.
map
((
function
(
e
){
return
e
.
children
&&
0
!=
e
.
children
.
length
&&
(
e
.
children
=
t
.
treeFormat
(
e
.
children
)),
_
(
_
({},
e
),{},{
title
:
e
.
name
,
expand
:
"
1
"
==
e
.
id
,
selected
:
!
1
})}))},
GetDutyConfigSelect
:
function
(){
var
e
=
this
;
m
().
then
((
function
(
t
){
var
a
=
e
.
formItem
.
findIndex
((
function
(
e
){
return
"
config_id
"
==
e
.
id
}));
e
.
formItem
[
a
].
optList
=
t
.
map
((
function
(
e
){
return
_
(
_
({},
e
),{},{
label
:
e
.
name
,
value
:
e
.
id
})}))}))},
getData
:
function
(){
var
e
=
this
;
this
.
tableLoading
=!
0
,
u
(
this
.
params
).
then
((
function
(
t
){
e
.
tableData
=
t
.
data
,
e
.
dataCount
=
t
.
data_count
,
e
.
tableLoading
=!
1
}))},
switchChange
:
function
(
e
,
t
,
a
){
var
n
=
this
;
this
.
tableData
[
a
].
is_enable
=
e
,
p
({
id
:
t
.
id
,
is_enable
:
e
}).
then
((
function
(
e
){
n
.
$Message
.
success
(
e
)})).
catch
((
function
(){
n
.
tableData
[
a
].
is_enable
=
0
==
e
?
1
:
0
,
n
.
$Message
.
error
(
res
.
msg_detail
)}))},
handleChangePage
:
function
(
e
){
this
.
params
.
page_index
=
e
,
this
.
getData
()},
handleChangePageSize
:
function
(
e
){
this
.
params
.
page_size
=
e
,
1
==
this
.
params
.
page_index
&&
(
this
.
params
.
page_index
=
e
,
this
.
getData
())},
doSearch
:
function
(){
this
.
params
.
page_size
=
1
,
this
.
getData
()},
handleEdit
:
function
(
e
){
this
.
editModalshow
=!
0
,
this
.
isEdit
=!
0
,
this
.
$refs
.
ceditmodal
.
modalInit
(
"
edit
"
,
_
(
_
({},
e
),{},{
config_id
:
e
.
config_id
.
split
(
"
;
"
)}),
"
编辑分类
"
)},
handleDelete
:
function
(
e
){
var
t
=
this
;
this
.
$Modal
.
confirm
({
title
:
"
确定要删除吗?
"
,
loading
:
!
0
,
onOk
:
function
(){
var
a
=
{
id
:
e
};
f
(
a
).
then
((
function
(){
t
.
$Modal
.
remove
(),
t
.
$Message
.
success
(
"
删除成功
"
),
t
.
getData
(),
t
.
getTreeData
()}))}})},
add
:
function
(){
this
.
editModalshow
=!
0
,
this
.
isEdit
=!
1
,
this
.
$refs
.
ceditmodal
.
modalInit
(
"
add
"
,
this
.
defaultFormData
,
"
新增分类
"
)},
modalSubmit
:
function
(
e
){
var
t
=
this
;
function
a
(
e
){
return
console
.
log
(
"
🚀valval🚀🚀,
"
,
e
),
b
[
"
b
"
]({
parent_id
:
e
.
parent_id
}).
then
((
function
(
t
){
return
console
.
log
(
"
🚀valvaxxxxxl🚀🚀,
"
,
e
),
h
(
_
(
_
({},
e
),{},{
id
:
t
}))}))}
console
.
log
(
"
modal提交
"
,
e
);
var
n
=
0
!=
Object
.
keys
(
this
.
currentTreeNode
).
length
;
e
.
parent_id
=
n
?
this
.
currentTreeNode
.
id
:
"
1
"
,
e
.
config_id
=
e
.
config_id
.
join
(
"
;
"
),
console
.
log
(
e
),
this
.
$Modal
.
confirm
({
title
:
"
提示
"
,
content
:
"
是否确定提交?
"
,
loading
:
!
0
,
onOk
:
function
(){
var
n
=
Object
(
o
[
"
a
"
])(
c
.
a
.
mark
((
function
n
(){
var
i
;
return
c
.
a
.
wrap
((
function
(
n
){
while
(
1
)
switch
(
n
.
prev
=
n
.
next
){
case
0
:
if
(
!
t
.
isEdit
){
n
.
next
=
6
;
break
}
return
n
.
next
=
3
,
g
(
e
);
case
3
:
n
.
t0
=
n
.
sent
,
n
.
next
=
9
;
break
;
case
6
:
return
n
.
next
=
8
,
a
(
e
);
case
8
:
n
.
t0
=
n
.
sent
;
case
9
:
i
=
n
.
t0
,
t
.
$Message
.
success
(
i
),
t
.
editModalshow
=!
1
,
t
.
getData
(),
t
.
getTreeData
(),
t
.
$Modal
.
remove
();
case
15
:
case
"
end
"
:
return
n
.
stop
()}}),
n
)})));
function
i
(){
return
n
.
apply
(
this
,
arguments
)}
return
i
}()})}}},
w
=
D
,
x
=
(
a
(
"
cd7c
"
),
a
(
"
2877
"
)),
C
=
Object
(
x
[
"
a
"
])(
w
,
n
,
i
,
!
1
,
null
,
"
a7e93df6
"
,
null
);
t
[
"
default
"
]
=
C
.
exports
},
cd7c
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
(
"
e80b
"
)},
e80b
:
function
(
e
,
t
,
a
){}}]);
\ No newline at end of file
dist/js/chunk-599ee512.23d66e20.js
已删除
100644 → 0
浏览文件 @
0e2fd007
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-599ee512
"
],{
"
08cf
"
:
function
(
t
,
e
,
a
){},
"
5d27
"
:
function
(
t
,
e
,
a
){
"
use strict
"
;
a
(
"
08cf
"
)},
ba6e
:
function
(
t
,
e
,
a
){
"
use strict
"
;
a
.
r
(
e
);
a
(
"
7f7f
"
);
var
n
=
function
(){
var
t
=
this
,
e
=
t
.
_self
.
_c
;
return
e
(
"
div
"
,{
staticClass
:
"
ele-body
"
},[
e
(
"
Card
"
,{
ref
:
"
card
"
,
attrs
:{
bordered
:
!
1
,
"
dis-hover
"
:
""
}},[
t
.
loading
?
e
(
"
Spin
"
,{
attrs
:{
fix
:
""
}}):
t
.
_e
(),
e
(
"
div
"
,{
staticClass
:
"
table-heard
"
},[
e
(
"
div
"
,[
e
(
"
Tag
"
,{
attrs
:{
size
:
"
large
"
}},[
t
.
_v
(
t
.
_s
(
this
.
currentWeekRange
[
0
]
+
"
至
"
+
this
.
currentWeekRange
[
1
]))]),
e
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
}},[
t
.
_v
(
"
值班导入
"
)])],
1
),
e
(
"
div
"
,{
staticClass
:
"
center
"
},[
e
(
"
Button
"
,{
attrs
:{
size
:
"
default
"
},
on
:{
click
:
t
.
weekPre
}},[
e
(
"
Icon
"
,{
attrs
:{
type
:
"
ios-arrow-back
"
}}),
t
.
_v
(
"
上一周
\n
"
)],
1
),
e
(
"
p
"
,[
t
.
_v
(
t
.
_s
(
t
.
currentYear
)
+
"
年
"
+
t
.
_s
(
t
.
currentMonth
)
+
"
月
"
)]),
e
(
"
Button
"
,{
attrs
:{
size
:
"
default
"
},
on
:{
click
:
t
.
weekNext
}},[
t
.
_v
(
"
下一周
\n
"
),
e
(
"
Icon
"
,{
attrs
:{
type
:
"
ios-arrow-forward
"
}})],
1
)],
1
),
e
(
"
div
"
)]),
e
(
"
table
"
,{
attrs
:{
align
:
"
center
"
,
cellpadding
:
"
0
"
,
cellspacing
:
"
0
"
}},[
e
(
"
tr
"
,{
staticClass
:
"
sepacialy
"
},[
e
(
"
td
"
),
t
.
_l
(
t
.
weekGround
,(
function
(
a
,
n
){
return
e
(
"
td
"
,{
key
:
n
},[
t
.
_v
(
t
.
_s
(
a
))])}))],
2
),
t
.
_l
(
t
.
timeGround
,(
function
(
a
,
n
){
return
e
(
"
tr
"
,{
key
:
n
},[
e
(
"
td
"
,{
staticClass
:
"
time
"
},[
t
.
_v
(
t
.
_s
(
a
))]),
t
.
_l
(
t
.
weekGround
,(
function
(
a
,
i
){
return
e
(
"
td
"
,{
key
:
i
,
attrs
:{
align
:
"
center
"
,
valign
:
"
middle
"
}},
t
.
_l
(
t
.
course
[
i
].
dutydatas
,(
function
(
a
,
o
){
return
e
(
"
div
"
,{
key
:
o
,
on
:{
click
:
function
(
e
){
return
t
.
clickCell
(
a
,
t
.
course
[
i
].
date
)}}},[
a
.
duty_type_name
===
t
.
timeGround
[
n
]?
e
(
"
div
"
,{
staticClass
:
"
course-item
"
},[
e
(
"
p
"
,[
a
.
duty_daytime_people
?
e
(
"
Tag
"
,{
staticStyle
:{
height
:
"
auto
"
},
attrs
:{
color
:
"
blue
"
},
nativeOn
:{
click
:
function
(
e
){
return
t
.
clickCell
(
a
,
t
.
course
[
i
].
date
)}}},[
t
.
_v
(
"
\n
白天:
"
+
t
.
_s
(
a
.
duty_daytime_people
))]):
t
.
_e
()],
1
),
e
(
"
p
"
,[
a
.
duty_night_people
?
e
(
"
Tag
"
,{
staticStyle
:{
height
:
"
auto
"
},
attrs
:{
color
:
"
red
"
},
nativeOn
:{
click
:
function
(
e
){
return
t
.
clickCell
(
a
,
t
.
course
[
i
].
date
)}}},[
t
.
_v
(
"
\n
晚上:
"
+
t
.
_s
(
a
.
duty_night_people
))]):
t
.
_e
()],
1
)]):
t
.
_e
()])})),
0
)}))],
2
)}))],
2
)],
1
),
e
(
"
Modal
"
,{
staticClass
:
"
add-modal
"
,
attrs
:{
width
:
"
50%
"
,
title
:
"
值班安排
"
,
loading
:
t
.
modalLoading
},
on
:{
"
on-ok
"
:
t
.
handleConfirm
,
"
on-cancel
"
:
t
.
handleClose
},
model
:{
value
:
t
.
showModal
,
callback
:
function
(
e
){
t
.
showModal
=
e
},
expression
:
"
showModal
"
}},[
e
(
"
Form
"
,{
ref
:
"
form
"
,
attrs
:{
model
:
t
.
formData
,
rules
:
t
.
formRule
,
"
label-width
"
:
150
}},[
e
(
"
FormItem
"
,{
attrs
:{
label
:
"
分类名称
"
}},[
e
(
"
Input
"
,{
attrs
:{
disabled
:
""
},
model
:{
value
:
t
.
selectItem
.
duty_type_name
,
callback
:
function
(
e
){
t
.
$set
(
t
.
selectItem
,
"
duty_type_name
"
,
e
)},
expression
:
"
selectItem.duty_type_name
"
}})],
1
),
e
(
"
FormItem
"
,{
attrs
:{
label
:
"
值班日期
"
}},[
e
(
"
Input
"
,{
attrs
:{
disabled
:
""
},
model
:{
value
:
t
.
selectDate
,
callback
:
function
(
e
){
t
.
selectDate
=
e
},
expression
:
"
selectDate
"
}})],
1
),
e
(
"
FormItem
"
,{
attrs
:{
label
:
"
白天值班人员
"
}},[
e
(
"
Select
"
,{
attrs
:{
filterable
:
""
,
multiple
:
""
},
model
:{
value
:
t
.
duty_daytime_people_id
,
callback
:
function
(
e
){
t
.
duty_daytime_people_id
=
e
},
expression
:
"
duty_daytime_people_id
"
}},
t
.
_l
(
t
.
peopleOption
,(
function
(
a
){
return
e
(
"
Option
"
,{
key
:
a
.
id
,
attrs
:{
value
:
a
.
id
,
label
:
a
.
name
}},[
e
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
justify-content
"
:
"
space-between
"
}},[
e
(
"
p
"
,[
t
.
_v
(
t
.
_s
(
a
.
name
)
+
"
\n
"
),
e
(
"
span
"
,{
staticStyle
:{
color
:
"
#9a9a9a
"
}},[
t
.
_v
(
"
(
"
+
t
.
_s
(
a
.
card
)
+
"
)
"
)])]),
e
(
"
p
"
,{
staticStyle
:{
color
:
"
#ccc
"
}},[
t
.
_v
(
t
.
_s
(
a
.
dept_name
))])])])})),
1
)],
1
),
e
(
"
FormItem
"
,{
attrs
:{
label
:
"
晚上值班人员
"
}},[
e
(
"
Select
"
,{
attrs
:{
filterable
:
""
,
multiple
:
""
},
model
:{
value
:
t
.
duty_night_people_id
,
callback
:
function
(
e
){
t
.
duty_night_people_id
=
e
},
expression
:
"
duty_night_people_id
"
}},
t
.
_l
(
t
.
peopleOption
,(
function
(
a
){
return
e
(
"
Option
"
,{
key
:
a
.
id
,
attrs
:{
value
:
a
.
id
,
label
:
a
.
name
}},[
e
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
justify-content
"
:
"
space-between
"
}},[
e
(
"
p
"
,[
t
.
_v
(
t
.
_s
(
a
.
name
)
+
"
\n
"
),
e
(
"
span
"
,{
staticStyle
:{
color
:
"
#9a9a9a
"
}},[
t
.
_v
(
"
(
"
+
t
.
_s
(
a
.
card
)
+
"
)
"
)])]),
e
(
"
p
"
,{
staticStyle
:{
color
:
"
#ccc
"
}},[
t
.
_v
(
t
.
_s
(
a
.
dept_name
))])])])})),
1
)],
1
)],
1
)],
1
)],
1
)},
i
=
[],
o
=
(
a
(
"
ac6a
"
),
a
(
"
e191
"
)),
r
=
{
props
:{},
data
:
function
(){
return
{
weekGround
:[
"
周一
"
,
"
周二
"
,
"
周三
"
,
"
周四
"
,
"
周五
"
,
"
周六
"
,
"
周日
"
],
course
:[],
timeGround
:[],
currentYear
:
""
,
currentMonth
:
""
,
currentDay
:
""
,
currentWeek
:
""
,
days
:[],
currentWeekRange
:[],
defalultWeekGround
:[
"
周一
"
,
"
周二
"
,
"
周三
"
,
"
周四
"
,
"
周五
"
,
"
周六
"
,
"
周日
"
],
coachColorMap
:{
"
张三
"
:
"
#2B2E4A
"
,
"
李四
"
:
"
#521262
"
,
"
王五
"
:
"
#903749
"
},
loading
:
!
1
,
showModal
:
!
1
,
selectDate
:
""
,
selectItem
:
""
,
formData
:{},
formRule
:{},
peopleOption
:[],
duty_daytime_people_id
:[],
duty_night_people_id
:[],
modalLoading
:
!
0
}},
created
:
function
(){},
mounted
:
function
(){
this
.
initData
(),
this
.
GetPersonByCondiction
()},
methods
:{
getData
:
function
(){
var
t
=
this
,
e
=
{
begin
:
this
.
currentWeekRange
[
0
],
end
:
this
.
currentWeekRange
[
1
]};
this
.
loading
=!
0
,
Object
(
o
[
"
b
"
])(
e
).
then
((
function
(
e
){
t
.
loading
=!
1
,
t
.
timeGround
=
[],
t
.
course
=
e
,
t
.
course
[
0
].
dutydatas
.
forEach
((
function
(
e
){
t
.
timeGround
.
push
(
e
.
duty_type_name
)}))}))},
formatDate
:
function
(
t
,
e
,
a
){
var
n
=
t
,
i
=
e
;
i
<
10
&&
(
i
=
"
0
"
.
concat
(
i
));
var
o
=
a
;
return
o
<
10
&&
(
o
=
"
0
"
.
concat
(
o
)),
""
.
concat
(
n
,
"
-
"
).
concat
(
i
,
"
-
"
).
concat
(
o
)},
initData
:
function
(
t
){
var
e
=
this
,
a
=
""
;
a
=
t
?
new
Date
(
t
):
new
Date
,
this
.
currentDay
=
a
.
getDate
(),
this
.
currentYear
=
a
.
getFullYear
(),
this
.
currentMonth
=
a
.
getMonth
()
+
1
,
this
.
currentWeek
=
a
.
getDay
(),
0
===
this
.
currentWeek
&&
(
this
.
currentWeek
=
7
);
var
n
=
this
.
formatDate
(
this
.
currentYear
,
this
.
currentMonth
,
this
.
currentDay
);
this
.
days
.
length
=
0
;
for
(
var
i
=
this
.
currentWeek
-
1
;
i
>=
0
;
i
-=
1
){
var
o
=
new
Date
(
n
);
o
.
setDate
(
o
.
getDate
()
-
i
),
this
.
days
.
push
(
o
)}
for
(
var
r
=
1
;
r
<=
7
-
this
.
currentWeek
;
r
+=
1
){
var
s
=
new
Date
(
n
);
s
.
setDate
(
s
.
getDate
()
+
r
),
this
.
days
.
push
(
s
)}
this
.
currentWeekRange
=
[
this
.
formatDate
(
this
.
days
[
0
].
getFullYear
(),
this
.
days
[
0
].
getMonth
()
+
1
,
this
.
days
[
0
].
getDate
()),
this
.
formatDate
(
this
.
days
[
6
].
getFullYear
(),
this
.
days
[
6
].
getMonth
()
+
1
,
this
.
days
[
6
].
getDate
())];
var
c
=
[];
this
.
days
.
forEach
((
function
(
t
){
c
.
push
(
""
.
concat
(
t
.
getMonth
()
+
1
,
"
/
"
).
concat
(
t
.
getDate
()))})),
this
.
defalultWeekGround
.
map
((
function
(
t
,
a
){
e
.
weekGround
[
a
]
=
t
+
"
(
"
.
concat
(
c
[
a
],
"
)
"
)})),
this
.
getData
()},
weekPre
:
function
(){
var
t
=
this
.
days
[
0
];
t
.
setDate
(
t
.
getDate
()
-
7
),
this
.
initData
(
t
)},
weekNext
:
function
(){
var
t
=
this
.
days
[
6
];
t
.
setDate
(
t
.
getDate
()
+
7
),
this
.
initData
(
t
)},
GetPersonByCondiction
:
function
(){
var
t
=
this
,
e
=
{
page_index
:
1
,
page_size
:
1
e4
};
Object
(
o
[
"
c
"
])(
e
).
then
((
function
(
e
){
t
.
peopleOption
=
e
.
data
}))},
clickCell
:
function
(
t
,
e
){
this
.
selectDate
=
e
,
this
.
selectItem
=
t
,
this
.
duty_daytime_people_id
=
t
.
duty_daytime_people_list
.
map
((
function
(
t
){
return
t
.
id
})),
this
.
duty_night_people_id
=
t
.
duty_night_people_list
.
map
((
function
(
t
){
return
t
.
id
})),
this
.
showModal
=!
0
},
handleConfirm
:
function
(){
var
t
=
this
,
e
=
{
duty_type_id
:
this
.
selectItem
.
duty_type_id
,
date
:
this
.
selectDate
,
record_id
:
this
.
selectItem
.
record_id
,
duty_daytime_people_id
:
this
.
duty_daytime_people_id
,
duty_night_people_id
:
this
.
duty_night_people_id
};
console
.
log
(
e
),
Object
(
o
[
"
a
"
])(
e
).
then
((
function
(
e
){
t
.
handleModalLoading
(),
t
.
showModal
=!
1
,
t
.
$Message
.
success
(
"
安排成功
"
),
t
.
duty_daytime_people_id
=
[],
t
.
duty_night_people_id
=
[],
t
.
getData
()})).
catch
((
function
(){
t
.
handleModalLoading
()}))},
handleModalLoading
:
function
(){
var
t
=
this
;
this
.
modalLoading
=!
1
,
this
.
$nextTick
((
function
(){
t
.
modalLoading
=!
0
}))},
handleClose
:
function
(){
this
.
duty_daytime_people_id
=
[],
this
.
duty_night_people_id
=
[]}},
computed
:{}},
s
=
r
,
c
=
(
a
(
"
5d27
"
),
a
(
"
2877
"
)),
d
=
Object
(
c
[
"
a
"
])(
s
,
n
,
i
,
!
1
,
null
,
"
34c35b82
"
,
null
);
e
[
"
default
"
]
=
d
.
exports
},
e191
:
function
(
t
,
e
,
a
){
"
use strict
"
;
a
.
d
(
e
,
"
b
"
,(
function
(){
return
i
})),
a
.
d
(
e
,
"
c
"
,(
function
(){
return
o
})),
a
.
d
(
e
,
"
a
"
,(
function
(){
return
r
}));
var
n
=
a
(
"
b6bd
"
);
function
i
(
t
){
return
Object
(
n
[
"
a
"
])({
url
:
"
/api/DutyRecord/GetDutyArrangeByDateList
"
,
method
:
"
get
"
,
params
:
t
})}
function
o
(
t
){
return
Object
(
n
[
"
a
"
])({
url
:
"
/api/Common/GetPersonByCondiction
"
,
method
:
"
get
"
,
params
:
t
})}
function
r
(
t
){
return
Object
(
n
[
"
a
"
])({
url
:
"
/api/DutyRecord/DutyArrangeIns
"
,
method
:
"
post
"
,
data
:
t
})}}}]);
\ No newline at end of file
dist/js/chunk-e9ce1a96.5a55df5f.js
0 → 100644
浏览文件 @
df595a8a
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-e9ce1a96
"
],{
"
34c7
"
:
function
(
t
,
e
,
a
){
"
use strict
"
;
a
(
"
4d93
"
)},
"
4d93
"
:
function
(
t
,
e
,
a
){},
ba6e
:
function
(
t
,
e
,
a
){
"
use strict
"
;
a
.
r
(
e
);
a
(
"
7f7f
"
);
var
n
=
function
(){
var
t
=
this
,
e
=
t
.
_self
.
_c
;
return
e
(
"
div
"
,{
staticClass
:
"
ele-body
"
},[
e
(
"
Card
"
,{
ref
:
"
card
"
,
attrs
:{
bordered
:
!
1
,
"
dis-hover
"
:
""
}},[
t
.
loading
?
e
(
"
Spin
"
,{
attrs
:{
fix
:
""
}}):
t
.
_e
(),
e
(
"
div
"
,{
staticClass
:
"
table-heard
"
},[
e
(
"
div
"
,[
e
(
"
Tag
"
,{
attrs
:{
size
:
"
large
"
}},[
t
.
_v
(
t
.
_s
(
this
.
currentWeekRange
[
0
]
+
"
至
"
+
this
.
currentWeekRange
[
1
]))])],
1
),
e
(
"
div
"
,{
staticClass
:
"
center
"
},[
e
(
"
Button
"
,{
attrs
:{
size
:
"
default
"
},
on
:{
click
:
t
.
weekPre
}},[
e
(
"
Icon
"
,{
attrs
:{
type
:
"
ios-arrow-back
"
}}),
t
.
_v
(
"
上一周
\n
"
)],
1
),
e
(
"
p
"
,[
t
.
_v
(
t
.
_s
(
t
.
currentYear
)
+
"
年
"
+
t
.
_s
(
t
.
currentMonth
)
+
"
月
"
)]),
e
(
"
Button
"
,{
attrs
:{
size
:
"
default
"
},
on
:{
click
:
t
.
weekNext
}},[
t
.
_v
(
"
下一周
\n
"
),
e
(
"
Icon
"
,{
attrs
:{
type
:
"
ios-arrow-forward
"
}})],
1
)],
1
),
e
(
"
div
"
)]),
e
(
"
table
"
,{
attrs
:{
align
:
"
center
"
,
cellpadding
:
"
0
"
,
cellspacing
:
"
0
"
}},[
e
(
"
tr
"
,{
staticClass
:
"
sepacialy
"
},[
e
(
"
td
"
),
t
.
_l
(
t
.
weekGround
,(
function
(
a
,
n
){
return
e
(
"
td
"
,{
key
:
n
},[
t
.
_v
(
t
.
_s
(
a
))])}))],
2
),
t
.
_l
(
t
.
timeGround
,(
function
(
a
,
n
){
return
e
(
"
tr
"
,{
key
:
n
},[
e
(
"
td
"
,{
staticClass
:
"
time
"
},[
t
.
_v
(
t
.
_s
(
a
.
typeName
))]),
t
.
_l
(
t
.
weekGround
,(
function
(
a
,
i
){
return
e
(
"
td
"
,{
key
:
i
,
attrs
:{
align
:
"
center
"
,
valign
:
"
middle
"
}},
t
.
_l
(
t
.
course
[
i
].
dutydatas
,(
function
(
a
,
o
){
return
e
(
"
div
"
,{
key
:
o
,
on
:{
click
:
function
(
e
){
return
t
.
clickCell
(
a
,
t
.
course
[
i
].
date
)}}},[
a
.
duty_type_id
===
t
.
timeGround
[
n
].
id
?
e
(
"
div
"
,{
staticClass
:
"
course-item
"
},[
e
(
"
p
"
,[
a
.
duty_daytime_people
?
e
(
"
Tag
"
,{
staticStyle
:{
height
:
"
auto
"
},
attrs
:{
color
:
"
blue
"
},
nativeOn
:{
click
:
function
(
e
){
return
t
.
clickCell
(
a
,
t
.
course
[
i
].
date
)}}},[
t
.
_v
(
"
\n
白天:
"
+
t
.
_s
(
a
.
duty_daytime_people
))]):
t
.
_e
()],
1
),
e
(
"
p
"
,[
a
.
duty_night_people
?
e
(
"
Tag
"
,{
staticStyle
:{
height
:
"
auto
"
},
attrs
:{
color
:
"
red
"
},
nativeOn
:{
click
:
function
(
e
){
return
t
.
clickCell
(
a
,
t
.
course
[
i
].
date
)}}},[
t
.
_v
(
"
\n
晚上:
"
+
t
.
_s
(
a
.
duty_night_people
))]):
t
.
_e
()],
1
)]):
t
.
_e
()])})),
0
)}))],
2
)}))],
2
)],
1
),
e
(
"
Modal
"
,{
staticClass
:
"
add-modal
"
,
attrs
:{
width
:
"
50%
"
,
title
:
"
值班安排
"
,
loading
:
t
.
modalLoading
},
on
:{
"
on-ok
"
:
t
.
handleConfirm
,
"
on-cancel
"
:
t
.
handleClose
},
model
:{
value
:
t
.
showModal
,
callback
:
function
(
e
){
t
.
showModal
=
e
},
expression
:
"
showModal
"
}},[
e
(
"
Form
"
,{
ref
:
"
form
"
,
attrs
:{
model
:
t
.
formData
,
rules
:
t
.
formRule
,
"
label-width
"
:
150
}},[
e
(
"
FormItem
"
,{
attrs
:{
label
:
"
分类名称
"
}},[
e
(
"
Input
"
,{
attrs
:{
disabled
:
""
},
model
:{
value
:
t
.
selectItem
.
duty_type_name
,
callback
:
function
(
e
){
t
.
$set
(
t
.
selectItem
,
"
duty_type_name
"
,
e
)},
expression
:
"
selectItem.duty_type_name
"
}})],
1
),
e
(
"
FormItem
"
,{
attrs
:{
label
:
"
值班日期
"
}},[
e
(
"
Input
"
,{
attrs
:{
disabled
:
""
},
model
:{
value
:
t
.
selectDate
,
callback
:
function
(
e
){
t
.
selectDate
=
e
},
expression
:
"
selectDate
"
}})],
1
),
e
(
"
FormItem
"
,{
attrs
:{
label
:
"
白天值班人员
"
}},[
e
(
"
Select
"
,{
attrs
:{
filterable
:
""
,
multiple
:
""
},
model
:{
value
:
t
.
duty_daytime_people_id
,
callback
:
function
(
e
){
t
.
duty_daytime_people_id
=
e
},
expression
:
"
duty_daytime_people_id
"
}},
t
.
_l
(
t
.
peopleOption
,(
function
(
a
){
return
e
(
"
Option
"
,{
key
:
a
.
id
,
attrs
:{
value
:
a
.
id
,
label
:
a
.
name
}},[
e
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
justify-content
"
:
"
space-between
"
}},[
e
(
"
p
"
,[
t
.
_v
(
t
.
_s
(
a
.
name
)
+
"
\n
"
),
e
(
"
span
"
,{
staticStyle
:{
color
:
"
#9a9a9a
"
}},[
t
.
_v
(
"
(
"
+
t
.
_s
(
a
.
card
)
+
"
)
"
)])]),
e
(
"
p
"
,{
staticStyle
:{
color
:
"
#ccc
"
}},[
t
.
_v
(
t
.
_s
(
a
.
dept_name
))])])])})),
1
)],
1
),
e
(
"
FormItem
"
,{
attrs
:{
label
:
"
晚上值班人员
"
}},[
e
(
"
Select
"
,{
attrs
:{
filterable
:
""
,
multiple
:
""
},
model
:{
value
:
t
.
duty_night_people_id
,
callback
:
function
(
e
){
t
.
duty_night_people_id
=
e
},
expression
:
"
duty_night_people_id
"
}},
t
.
_l
(
t
.
peopleOption
,(
function
(
a
){
return
e
(
"
Option
"
,{
key
:
a
.
id
,
attrs
:{
value
:
a
.
id
,
label
:
a
.
name
}},[
e
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
justify-content
"
:
"
space-between
"
}},[
e
(
"
p
"
,[
t
.
_v
(
t
.
_s
(
a
.
name
)
+
"
\n
"
),
e
(
"
span
"
,{
staticStyle
:{
color
:
"
#9a9a9a
"
}},[
t
.
_v
(
"
(
"
+
t
.
_s
(
a
.
card
)
+
"
)
"
)])]),
e
(
"
p
"
,{
staticStyle
:{
color
:
"
#ccc
"
}},[
t
.
_v
(
t
.
_s
(
a
.
dept_name
))])])])})),
1
)],
1
)],
1
)],
1
)],
1
)},
i
=
[],
o
=
(
a
(
"
ac6a
"
),
a
(
"
e191
"
)),
r
=
{
props
:{},
data
:
function
(){
return
{
weekGround
:[
"
周一
"
,
"
周二
"
,
"
周三
"
,
"
周四
"
,
"
周五
"
,
"
周六
"
,
"
周日
"
],
course
:[],
timeGround
:[],
currentYear
:
""
,
currentMonth
:
""
,
currentDay
:
""
,
currentWeek
:
""
,
days
:[],
currentWeekRange
:[],
defalultWeekGround
:[
"
周一
"
,
"
周二
"
,
"
周三
"
,
"
周四
"
,
"
周五
"
,
"
周六
"
,
"
周日
"
],
coachColorMap
:{
"
张三
"
:
"
#2B2E4A
"
,
"
李四
"
:
"
#521262
"
,
"
王五
"
:
"
#903749
"
},
loading
:
!
1
,
showModal
:
!
1
,
selectDate
:
""
,
selectItem
:
""
,
formData
:{},
formRule
:{},
peopleOption
:[],
duty_daytime_people_id
:[],
duty_night_people_id
:[],
modalLoading
:
!
0
}},
created
:
function
(){},
mounted
:
function
(){
this
.
initData
(),
this
.
GetPersonByCondiction
()},
methods
:{
getData
:
function
(){
var
t
=
this
,
e
=
{
begin
:
this
.
currentWeekRange
[
0
],
end
:
this
.
currentWeekRange
[
1
]};
this
.
loading
=!
0
,
Object
(
o
[
"
b
"
])(
e
).
then
((
function
(
e
){
t
.
loading
=!
1
,
t
.
timeGround
=
[],
t
.
course
=
e
,
t
.
course
[
0
].
dutydatas
.
forEach
((
function
(
e
){
t
.
timeGround
.
push
({
id
:
e
.
duty_type_id
,
typeName
:
e
.
duty_type_name
})}))}))},
formatDate
:
function
(
t
,
e
,
a
){
var
n
=
t
,
i
=
e
;
i
<
10
&&
(
i
=
"
0
"
.
concat
(
i
));
var
o
=
a
;
return
o
<
10
&&
(
o
=
"
0
"
.
concat
(
o
)),
""
.
concat
(
n
,
"
-
"
).
concat
(
i
,
"
-
"
).
concat
(
o
)},
initData
:
function
(
t
){
var
e
=
this
,
a
=
""
;
a
=
t
?
new
Date
(
t
):
new
Date
,
this
.
currentDay
=
a
.
getDate
(),
this
.
currentYear
=
a
.
getFullYear
(),
this
.
currentMonth
=
a
.
getMonth
()
+
1
,
this
.
currentWeek
=
a
.
getDay
(),
0
===
this
.
currentWeek
&&
(
this
.
currentWeek
=
7
);
var
n
=
this
.
formatDate
(
this
.
currentYear
,
this
.
currentMonth
,
this
.
currentDay
);
this
.
days
.
length
=
0
;
for
(
var
i
=
this
.
currentWeek
-
1
;
i
>=
0
;
i
-=
1
){
var
o
=
new
Date
(
n
);
o
.
setDate
(
o
.
getDate
()
-
i
),
this
.
days
.
push
(
o
)}
for
(
var
r
=
1
;
r
<=
7
-
this
.
currentWeek
;
r
+=
1
){
var
s
=
new
Date
(
n
);
s
.
setDate
(
s
.
getDate
()
+
r
),
this
.
days
.
push
(
s
)}
this
.
currentWeekRange
=
[
this
.
formatDate
(
this
.
days
[
0
].
getFullYear
(),
this
.
days
[
0
].
getMonth
()
+
1
,
this
.
days
[
0
].
getDate
()),
this
.
formatDate
(
this
.
days
[
6
].
getFullYear
(),
this
.
days
[
6
].
getMonth
()
+
1
,
this
.
days
[
6
].
getDate
())];
var
c
=
[];
this
.
days
.
forEach
((
function
(
t
){
c
.
push
(
""
.
concat
(
t
.
getMonth
()
+
1
,
"
/
"
).
concat
(
t
.
getDate
()))})),
this
.
defalultWeekGround
.
map
((
function
(
t
,
a
){
e
.
weekGround
[
a
]
=
t
+
"
(
"
.
concat
(
c
[
a
],
"
)
"
)})),
this
.
getData
()},
weekPre
:
function
(){
var
t
=
this
.
days
[
0
];
t
.
setDate
(
t
.
getDate
()
-
7
),
this
.
initData
(
t
)},
weekNext
:
function
(){
var
t
=
this
.
days
[
6
];
t
.
setDate
(
t
.
getDate
()
+
7
),
this
.
initData
(
t
)},
GetPersonByCondiction
:
function
(){
var
t
=
this
,
e
=
{
page_index
:
1
,
page_size
:
1
e4
};
Object
(
o
[
"
c
"
])(
e
).
then
((
function
(
e
){
t
.
peopleOption
=
e
.
data
}))},
clickCell
:
function
(
t
,
e
){
this
.
selectDate
=
e
,
this
.
selectItem
=
t
,
this
.
duty_daytime_people_id
=
t
.
duty_daytime_people_list
.
map
((
function
(
t
){
return
t
.
id
})),
this
.
duty_night_people_id
=
t
.
duty_night_people_list
.
map
((
function
(
t
){
return
t
.
id
})),
this
.
showModal
=!
0
},
handleConfirm
:
function
(){
var
t
=
this
,
e
=
{
duty_type_id
:
this
.
selectItem
.
duty_type_id
,
date
:
this
.
selectDate
,
record_id
:
this
.
selectItem
.
record_id
,
duty_daytime_people_id
:
this
.
duty_daytime_people_id
,
duty_night_people_id
:
this
.
duty_night_people_id
};
console
.
log
(
e
),
Object
(
o
[
"
a
"
])(
e
).
then
((
function
(
e
){
t
.
handleModalLoading
(),
t
.
showModal
=!
1
,
t
.
$Message
.
success
(
"
安排成功
"
),
t
.
duty_daytime_people_id
=
[],
t
.
duty_night_people_id
=
[],
t
.
getData
()})).
catch
((
function
(){
t
.
handleModalLoading
()}))},
handleModalLoading
:
function
(){
var
t
=
this
;
this
.
modalLoading
=!
1
,
this
.
$nextTick
((
function
(){
t
.
modalLoading
=!
0
}))},
handleClose
:
function
(){
this
.
duty_daytime_people_id
=
[],
this
.
duty_night_people_id
=
[]}},
computed
:{}},
s
=
r
,
c
=
(
a
(
"
34c7
"
),
a
(
"
2877
"
)),
d
=
Object
(
c
[
"
a
"
])(
s
,
n
,
i
,
!
1
,
null
,
"
2d07ffaa
"
,
null
);
e
[
"
default
"
]
=
d
.
exports
},
e191
:
function
(
t
,
e
,
a
){
"
use strict
"
;
a
.
d
(
e
,
"
b
"
,(
function
(){
return
i
})),
a
.
d
(
e
,
"
c
"
,(
function
(){
return
o
})),
a
.
d
(
e
,
"
a
"
,(
function
(){
return
r
}));
var
n
=
a
(
"
b6bd
"
);
function
i
(
t
){
return
Object
(
n
[
"
a
"
])({
url
:
"
/api/DutyRecord/GetDutyArrangeByDateList
"
,
method
:
"
get
"
,
params
:
t
})}
function
o
(
t
){
return
Object
(
n
[
"
a
"
])({
url
:
"
/api/Common/GetPersonByCondiction
"
,
method
:
"
get
"
,
params
:
t
})}
function
r
(
t
){
return
Object
(
n
[
"
a
"
])({
url
:
"
/api/DutyRecord/DutyArrangeIns
"
,
method
:
"
post
"
,
data
:
t
})}}}]);
\ No newline at end of file
dutyV3PC
.zip
→
pc
.zip
浏览文件 @
df595a8a
无法预览此类型文件
src/components/common/CEditModal.vue
浏览文件 @
df595a8a
...
@@ -78,6 +78,7 @@
...
@@ -78,6 +78,7 @@
<TimePicker
<TimePicker
v-else-if=
"item.type == 'timerange'"
v-else-if=
"item.type == 'timerange'"
:editable=
"true"
v-model=
"formData[item['id']]"
v-model=
"formData[item['id']]"
:placeholder=
"'请选择'+item.name"
:placeholder=
"'请选择'+item.name"
format=
"HH:mm"
format=
"HH:mm"
...
...
src/pages/arrangement/index.vue
浏览文件 @
df595a8a
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<Tag
size=
'large'
>
{{
<Tag
size=
'large'
>
{{
this
.
currentWeekRange
[
0
]
+
'
至
'
+
this
.
currentWeekRange
[
1
]
this
.
currentWeekRange
[
0
]
+
'
至
'
+
this
.
currentWeekRange
[
1
]
}}
</Tag>
}}
</Tag>
<Button
type=
"primary"
>
值班导入
</Button
>
<!--
<Button
type=
"primary"
>
值班导入
</Button>
--
>
</div>
</div>
<div
class=
"center"
>
<div
class=
"center"
>
...
@@ -28,16 +28,15 @@
...
@@ -28,16 +28,15 @@
<td></td>
<td></td>
<td
v-for=
"(item, index) in weekGround"
:key=
"index"
>
{{
item
}}
</td>
<td
v-for=
"(item, index) in weekGround"
:key=
"index"
>
{{
item
}}
</td>
</tr>
</tr>
<tr
v-for=
"(item, index) in timeGround"
:key=
"index"
>
<tr
v-for=
"(item, index) in timeGround"
:key=
"index"
>
<!-- 课程时间轴 -->
<!-- 课程时间轴 -->
<td
class=
"time"
>
{{
item
}}
</td>
<td
class=
"time"
>
{{
item
.
typeName
}}
</td>
<!-- 第几周 -->
<!-- 第几周 -->
<td
align=
"center"
valign=
"middle"
v-for=
"(item, index1) in weekGround"
:key=
"index1"
>
<td
align=
"center"
valign=
"middle"
v-for=
"(item, index1) in weekGround"
:key=
"index1"
>
<!-- 第几周的所有课程 -->
<!-- 第几周的所有课程 -->
<div
v-for=
"(x, index2) in course[index1].dutydatas"
:key=
"index2"
@
click=
"clickCell(x,course[index1].date)"
>
<div
v-for=
"(x, index2) in course[index1].dutydatas"
:key=
"index2"
@
click=
"clickCell(x,course[index1].date)"
>
<!-- 这天的课程开始时间
<
=
>
时间轴的开始时间 -->
<!-- 这天的课程开始时间
<
=
>
时间轴的开始时间 -->
<div
class=
"course-item"
v-if=
"x.duty_type_
name === timeGround[index]
"
>
<div
class=
"course-item"
v-if=
"x.duty_type_
id === timeGround[index].id
"
>
<p>
<p>
<Tag
color=
'blue'
v-if=
"x.duty_daytime_people"
style=
"height:auto"
@
click.native=
"clickCell(x,course[index1].date)"
>
<Tag
color=
'blue'
v-if=
"x.duty_daytime_people"
style=
"height:auto"
@
click.native=
"clickCell(x,course[index1].date)"
>
白天:
{{
x
.
duty_daytime_people
}}
</Tag>
白天:
{{
x
.
duty_daytime_people
}}
</Tag>
...
@@ -91,7 +90,7 @@
...
@@ -91,7 +90,7 @@
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
GetDutyArrangeByDateList
,
GetPersonByCondiction
,
DutyArrangeIns
}
from
"
@/api/arrangement
"
import
{
GetDutyArrangeByDateList
,
GetPersonByCondiction
,
DutyArrangeIns
}
from
"
@/api/arrangement
"
export
default
{
export
default
{
...
@@ -156,7 +155,6 @@ export default {
...
@@ -156,7 +155,6 @@ export default {
mounted
()
{
mounted
()
{
this
.
initData
();
this
.
initData
();
this
.
GetPersonByCondiction
();
this
.
GetPersonByCondiction
();
},
},
methods
:
{
methods
:
{
getData
()
{
getData
()
{
...
@@ -171,11 +169,10 @@ export default {
...
@@ -171,11 +169,10 @@ export default {
this
.
course
=
resp
;
this
.
course
=
resp
;
// 根据course中每个数组中每个对象的dateStart生成时间轴
// 根据course中每个数组中每个对象的dateStart生成时间轴
this
.
course
[
0
].
dutydatas
.
forEach
((
item
)
=>
{
this
.
course
[
0
].
dutydatas
.
forEach
((
item
)
=>
{
this
.
timeGround
.
push
(
item
.
duty_type_name
);
this
.
timeGround
.
push
(
{
id
:
item
.
duty_type_id
,
typeName
:
item
.
duty_type_name
}
);
});
});
})
})
},
},
formatDate
(
year
,
month
,
day
)
{
formatDate
(
year
,
month
,
day
)
{
const
y
=
year
;
const
y
=
year
;
...
@@ -313,7 +310,7 @@ export default {
...
@@ -313,7 +310,7 @@ export default {
computed
:
{}
computed
:
{}
};
};
</
script
>
</
script
>
<
style
lang=
'less'
scoped
>
<
style
lang=
'less'
scoped
>
.index {
.index {
width: 100%;
width: 100%;
...
@@ -407,4 +404,4 @@ tr:first-child {
...
@@ -407,4 +404,4 @@ tr:first-child {
color: #707070;
color: #707070;
font-weight: bold;
font-weight: bold;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/pages/dutyConfig/index.vue
浏览文件 @
df595a8a
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
// defaultFormData.sign_daytime.push({begin:daylightHours.value[0],end:daylightHours.value[1]})
// defaultFormData.sign_daytime.push({begin:daylightHours.value[0],end:daylightHours.value[1]})
$refs.ceditmodal.formData.sign_daytime.push({begin:daylightHours.value[0],end:daylightHours.value[1]}) //子组件同步坐标
$refs.ceditmodal.formData.sign_daytime.push({begin:daylightHours.value[0],end:daylightHours.value[1]}) //子组件同步坐标
daylightHours.show = false
daylightHours.show = false
$refs.ceditmodal.$refs.form.validate()
}">确定
}">确定
</Button>
</Button>
</
template
>
</
template
>
...
@@ -37,6 +38,7 @@
...
@@ -37,6 +38,7 @@
// defaultFormData.sign_night_time.push({begin:eveningTime.value[0],end:eveningTime.value[1]})
// defaultFormData.sign_night_time.push({begin:eveningTime.value[0],end:eveningTime.value[1]})
$refs.ceditmodal.formData.sign_night_time.push({begin:eveningTime.value[0],end:eveningTime.value[1]}) //子组件同步坐标
$refs.ceditmodal.formData.sign_night_time.push({begin:eveningTime.value[0],end:eveningTime.value[1]}) //子组件同步坐标
eveningTime.show = false
eveningTime.show = false
$refs.ceditmodal.$refs.form.validate()
}">确定
}">确定
</Button>
</Button>
</
template
>
</
template
>
...
@@ -66,7 +68,7 @@
...
@@ -66,7 +68,7 @@
</Select>
</Select>
</div>
</div>
<
template
#footer
>
<
template
#footer
>
<Button
:disabled=
"address == undefined"
type=
"primary"
@
click=
"saveAttendance"
>
确定
</Button>
<Button
:disabled=
"address == undefined"
type=
"primary"
@
click=
"saveAttendance
(); $refs.ceditmodal.$refs.form.validate()
"
>
确定
</Button>
</
template
>
</
template
>
</Modal>
</Modal>
...
@@ -193,6 +195,7 @@ export default {
...
@@ -193,6 +195,7 @@ export default {
addrRange
:
100
,
addrRange
:
100
,
address
:
undefined
,
address
:
undefined
,
addrRangeList
:
[
addrRangeList
:
[
{
label
:
'
50米
'
,
value
:
50
},
{
label
:
'
100米
'
,
value
:
100
},
{
label
:
'
100米
'
,
value
:
100
},
{
label
:
'
200米
'
,
value
:
200
},
{
label
:
'
200米
'
,
value
:
200
},
{
label
:
'
300米
'
,
value
:
300
},
{
label
:
'
300米
'
,
value
:
300
},
...
@@ -329,6 +332,27 @@ export default {
...
@@ -329,6 +332,27 @@ export default {
effect_beginAndEffect_end
:
[
effect_beginAndEffect_end
:
[
{
type
:
'
array
'
,
required
:
true
,
message
:
'
该项不能为空
'
,
trigger
:
'
change
'
},
{
type
:
'
array
'
,
required
:
true
,
message
:
'
该项不能为空
'
,
trigger
:
'
change
'
},
],
],
day_time
:
[
{
type
:
'
array
'
,
required
:
true
,
message
:
'
该项不能为空
'
,
trigger
:
'
change
'
},
],
duty_daytime
:
[
{
type
:
'
array
'
,
required
:
true
,
message
:
'
该项不能为空
'
,
trigger
:
'
change
'
},
],
sign_daytime
:
[
{
type
:
'
array
'
,
required
:
true
,
message
:
'
该项不能为空
'
,
trigger
:
'
change
'
},
],
duty_night_time
:
[
{
type
:
'
array
'
,
required
:
true
,
message
:
'
该项不能为空
'
,
trigger
:
'
change
'
},
],
sign_night_time
:
[
{
type
:
'
array
'
,
required
:
true
,
message
:
'
该项不能为空
'
,
trigger
:
'
change
'
},
{
type
:
'
array
'
,
required
:
true
,
message
:
'
该项不能为空
'
,
trigger
:
'
blur
'
},
],
attandence_area
:
[
{
type
:
'
array
'
,
required
:
true
,
message
:
'
该项不能为空
'
,
trigger
:
'
change
'
},
{
type
:
'
array
'
,
required
:
true
,
message
:
'
该项不能为空
'
,
trigger
:
'
blur
'
},
],
},
},
defaultFormData
:
{
defaultFormData
:
{
"
name
"
:
""
,
"
name
"
:
""
,
...
...
src/pages/dutyType/index.vue
浏览文件 @
df595a8a
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<!-- loading -->
<!-- loading -->
<Spin
v-if=
"treePanelLoading"
size=
"large"
fix
></Spin>
<Spin
v-if=
"treePanelLoading"
size=
"large"
fix
></Spin>
<Tree
:data=
"typeTree"
@
on-select-change=
"treeNodeChange"
></Tree>
<Tree
v-model=
"currentTreeNode"
:data=
"typeTree"
@
on-select-change=
"treeNodeChange"
></Tree>
</div>
</div>
</
template
>
</
template
>
<
template
#right
>
<
template
#right
>
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
</div>
</div>
<!-- 新增修改Modal -->
<!-- 新增修改Modal -->
<CEditModal
ref=
"ceditmodal"
v-model=
"editModalshow"
:formItem=
"formItem"
:loading=
"editModalLoading"
:formLabelWidth=
"100"
:width=
"800"
<CEditModal
ref=
"ceditmodal"
v-model=
"editModalshow"
:formRule=
"formRule"
:formItem=
"formItem"
:loading=
"editModalLoading"
:formLabelWidth=
"100"
:width=
"800"
@
onClose=
"editModalshow = false"
@
onSubmit=
"modalSubmit"
></CEditModal>
@
onClose=
"editModalshow = false"
@
onSubmit=
"modalSubmit"
></CEditModal>
</div>
</div>
</template>
</template>
...
@@ -64,7 +64,7 @@ export default {
...
@@ -64,7 +64,7 @@ export default {
return
{
return
{
// 分割版面宽度
// 分割版面宽度
split
:
'
250px
'
,
split
:
'
250px
'
,
curNode
:[],
// 树形版面loading
// 树形版面loading
treePanelLoading
:
false
,
treePanelLoading
:
false
,
// 分类树
// 分类树
...
@@ -116,6 +116,14 @@ export default {
...
@@ -116,6 +116,14 @@ export default {
{
id
:
'
name
'
,
name
:
'
分类名称
'
,
type
:
'
input
'
,
disabled
:
false
,
require
:
false
,
optList
:
[]
},
{
id
:
'
name
'
,
name
:
'
分类名称
'
,
type
:
'
input
'
,
disabled
:
false
,
require
:
false
,
optList
:
[]
},
{
id
:
'
config_id
'
,
name
:
'
配置类型
'
,
type
:
'
multipleselect
'
,
disabled
:
false
,
require
:
false
,
optList
:
[]
},
{
id
:
'
config_id
'
,
name
:
'
配置类型
'
,
type
:
'
multipleselect
'
,
disabled
:
false
,
require
:
false
,
optList
:
[]
},
],
],
formRule
:{
name
:
[
{
required
:
true
,
message
:
'
该项不能为空
'
,
trigger
:
'
blur
'
},
],
config_id
:
[
{
type
:
'
array
'
,
required
:
true
,
message
:
'
该项不能为空
'
,
trigger
:
'
change
'
},
],
},
defaultFormData
:
{
defaultFormData
:
{
id
:
""
,
id
:
""
,
name
:
""
,
name
:
""
,
...
@@ -146,6 +154,7 @@ export default {
...
@@ -146,6 +154,7 @@ export default {
},
},
// 树形节点改变
// 树形节点改变
treeNodeChange
(
val1
,
val2
)
{
treeNodeChange
(
val1
,
val2
)
{
console
.
log
(
"
🚀🚀🚀,
"
,
val1
,
val2
)
// console.log('树形节点改变', val1, val2)
// console.log('树形节点改变', val1, val2)
// 展开物资树
// 展开物资树
val2
.
expand
=
true
val2
.
expand
=
true
...
@@ -264,8 +273,9 @@ export default {
...
@@ -264,8 +273,9 @@ export default {
modalSubmit
(
val
)
{
modalSubmit
(
val
)
{
function
AddDutyType
(
val
){
function
AddDutyType
(
val
){
console
.
log
(
"
🚀valval🚀🚀,
"
,
val
)
console
.
log
(
"
🚀valval🚀🚀,
"
,
val
)
//新增值班类型
GetDutyTypeIdAndCode
//新增值班类型
return
zeroApi
.
getApiDutyClassifyGetDutyTypeIdAndCode
({
parent_id
:
val
.
parent_id
}).
then
(
res
=>
{
return
zeroApi
.
getApiDutyClassifyGetDutyTypeIdAndCode
({
parent_id
:
val
.
parent_id
}).
then
(
res
=>
{
console
.
log
(
"
🚀valvaxxxxxl🚀🚀,
"
,
val
)
return
api
.
AddDutyType
({...
val
,
id
:
res
})
return
api
.
AddDutyType
({...
val
,
id
:
res
})
})
})
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录