Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
日
日程管理
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
日程管理
提交
0e2fd007
提交
0e2fd007
编写于
8月 21, 2024
作者:
刘英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
V20240820 值班配置,腾讯地图换key
上级
7d58b10d
变更
11
展开全部
显示空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
11 行增加
和
8 行删除
+11
-8
dist.zip
dist.zip
+0
-0
chunk-100dfaaa.f91c7061.css
dist/css/chunk-100dfaaa.f91c7061.css
+0
-1
chunk-4848ce1c.bd6f5488.css
dist/css/chunk-4848ce1c.bd6f5488.css
+1
-0
index.html
dist/index.html
+1
-1
app.a2506573.js
dist/js/app.a2506573.js
+2
-2
chunk-041c3a25.7bae70dc.js
dist/js/chunk-041c3a25.7bae70dc.js
+2
-2
chunk-100dfaaa.bf56db7f.js
dist/js/chunk-100dfaaa.bf56db7f.js
+0
-1
chunk-4848ce1c.a0e05e28.js
dist/js/chunk-4848ce1c.a0e05e28.js
+1
-0
dutyV3PC.zip
dutyV3PC.zip
+0
-0
index.vue
src/pages/dutyConfig/index.vue
+3
-1
index.vue
src/pages/dutyType/index.vue
+1
-0
未找到文件。
dist.zip
已删除
100644 → 0
浏览文件 @
7d58b10d
文件已删除
dist/css/chunk-100dfaaa.f91c7061.css
已删除
100644 → 0
浏览文件 @
7d58b10d
.demo-split
[
data-v-ac0a90ea
]
{
height
:
calc
(
100vh
-
112px
)}
.demo-split
.demo-split-pane-L
[
data-v-ac0a90ea
]
{
padding
:
10px
;
height
:
100%
;
background-color
:
#fff
}
.demo-split
.demo-split-pane-R
[
data-v-ac0a90ea
]
{
padding-left
:
8px
}
\ No newline at end of file
dist/css/chunk-4848ce1c.bd6f5488.css
0 → 100644
浏览文件 @
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/index.html
浏览文件 @
0e2fd007
<!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.df8be9a3.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.a2506573.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/js/app.
df8be9a
3.js
→
dist/js/app.
a250657
3.js
浏览文件 @
0e2fd007
此差异已折叠。
点击以展开。
dist/js/chunk-041c3a25.
3fb5e351
.js
→
dist/js/chunk-041c3a25.
7bae70dc
.js
浏览文件 @
0e2fd007
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
dist/js/chunk-100dfaaa.bf56db7f.js
已删除
100644 → 0
浏览文件 @
7d58b10d
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-100dfaaa
"
],{
"
25b06
"
:
function
(
t
,
e
,
a
){
"
use strict
"
;
a
.
r
(
e
);
a
(
"
28a5
"
),
a
(
"
ac6a
"
),
a
(
"
456d
"
),
a
(
"
7f7f
"
);
var
n
=
function
(){
var
t
=
this
,
e
=
t
.
_self
.
_c
;
return
e
(
"
div
"
,[
e
(
"
div
"
,{
staticClass
:
"
demo-split
"
},[
e
(
"
Split
"
,{
scopedSlots
:
t
.
_u
([{
key
:
"
left
"
,
fn
:
function
(){
return
[
e
(
"
div
"
,{
staticClass
:
"
demo-split-pane-L
"
},[
t
.
treePanelLoading
?
e
(
"
Spin
"
,{
attrs
:{
size
:
"
large
"
,
fix
:
""
}}):
t
.
_e
(),
e
(
"
Tree
"
,{
attrs
:{
data
:
t
.
typeTree
},
on
:{
"
on-select-change
"
:
t
.
treeNodeChange
}})],
1
)]},
proxy
:
!
0
},{
key
:
"
right
"
,
fn
:
function
(){
return
[
e
(
"
div
"
,{
staticClass
:
"
demo-split-pane-R
"
},[
e
(
"
Card
"
,{
ref
:
"
card
"
,
attrs
:{
"
dis-hover
"
:
""
}},[
e
(
"
Input
"
,{
staticStyle
:{
width
:
"
200px
"
},
attrs
:{
placeholder
:
"
请输入关键词
"
,
clearable
:
""
},
model
:{
value
:
t
.
params
.
name
,
callback
:
function
(
e
){
t
.
$set
(
t
.
params
,
"
name
"
,
e
)},
expression
:
"
params.name
"
}}),
e
(
"
Button
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
t
.
doSearch
}},[
t
.
_v
(
"
查找
"
)]),
e
(
"
Button
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
type
:
"
primary
"
,
ghost
:
""
,
disabled
:
0
==
Object
.
keys
(
t
.
currentTreeNode
).
length
},
on
:{
click
:
t
.
add
}},[
e
(
"
Icon
"
,{
attrs
:{
type
:
"
md-add
"
}}),
t
.
_v
(
"
新增分类
\n
"
)],
1
),
e
(
"
Table
"
,{
ref
:
"
table
"
,
staticClass
:
"
ivu-mt
"
,
attrs
:{
columns
:
t
.
columns
,
data
:
t
.
tableData
,
loading
:
t
.
tableLoading
,
size
:
"
small
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
is_enable
"
,
fn
:
function
(
a
){
var
n
=
a
.
row
,
i
=
a
.
index
;
return
[
e
(
"
i-switch
"
,{
attrs
:{
size
:
"
large
"
,
"
true-value
"
:
1
,
"
false-value
"
:
0
},
on
:{
"
on-change
"
:
function
(
e
){
return
t
.
switchChange
(
e
,
n
,
i
)}},
model
:{
value
:
n
.
is_enable
,
callback
:
function
(
e
){
t
.
$set
(
n
,
"
is_enable
"
,
e
)},
expression
:
"
row.is_enable
"
}},[
e
(
"
span
"
,{
attrs
:{
slot
:
"
open
"
,
type
:
"
md-checkmark
"
},
slot
:
"
open
"
},[
t
.
_v
(
"
启用
"
)]),
e
(
"
span
"
,{
attrs
:{
slot
:
"
close
"
,
type
:
"
md-close
"
},
slot
:
"
close
"
},[
t
.
_v
(
"
停用
"
)])])]}},{
key
:
"
action
"
,
fn
:
function
(
a
){
var
n
=
a
.
row
;
return
[
e
(
"
div
"
,{
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
t
.
preventDefault
()}}},[
e
(
"
a
"
,{
attrs
:{
type
:
"
text
"
},
on
:{
click
:
function
(
e
){
return
t
.
handleEdit
(
n
)}}},[
t
.
_v
(
"
编辑
"
)]),
e
(
"
Divider
"
,{
attrs
:{
type
:
"
vertical
"
}}),
e
(
"
a
"
,{
attrs
:{
type
:
"
text
"
},
on
:{
click
:
function
(
e
){
return
t
.
handleDelete
(
n
.
id
)}}},[
t
.
_v
(
"
删除
"
)])],
1
)]}}])}),
e
(
"
div
"
,{
staticClass
:
"
ivu-mt ivu-text-center
"
},[
e
(
"
Page
"
,{
attrs
:{
total
:
t
.
dataCount
,
current
:
t
.
params
.
page_index
,
"
show-total
"
:
""
,
"
show-sizer
"
:
""
,
"
show-elevator
"
:
""
,
"
page-size
"
:
t
.
params
.
page_size
,
"
page-size-opts
"
:[
10
,
30
,
50
,
100
]},
on
:{
"
update:current
"
:
function
(
e
){
return
t
.
$set
(
t
.
params
,
"
page_index
"
,
e
)},
"
on-change
"
:
t
.
handleChangePage
,
"
on-page-size-change
"
:
t
.
handleChangePageSize
}})],
1
)],
1
)],
1
)]},
proxy
:
!
0
}]),
model
:{
value
:
t
.
split
,
callback
:
function
(
e
){
t
.
split
=
e
},
expression
:
"
split
"
}})],
1
),
e
(
"
CEditModal
"
,{
ref
:
"
ceditmodal
"
,
attrs
:{
formItem
:
t
.
formItem
,
loading
:
t
.
editModalLoading
,
formLabelWidth
:
100
,
width
:
800
},
on
:{
onClose
:
function
(
e
){
t
.
editModalshow
=!
1
},
onSubmit
:
t
.
modalSubmit
},
model
:{
value
:
t
.
editModalshow
,
callback
:
function
(
e
){
t
.
editModalshow
=
e
},
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
(
t
){
return
Object
(
d
[
"
a
"
])({
url
:
"
/api/DutyClassify/GetClassifyTree
"
,
method
:
"
get
"
,
params
:
t
})}
function
u
(
t
){
return
Object
(
d
[
"
a
"
])({
url
:
"
/api/DutyClassify/QueryDutyClassify
"
,
method
:
"
get
"
,
params
:
t
})}
function
p
(
t
){
return
Object
(
d
[
"
a
"
])({
url
:
"
/api/DutyClassify/ModifyDutyStatus
"
,
method
:
"
get
"
,
params
:
t
})}
function
f
(
t
){
return
Object
(
d
[
"
a
"
])({
url
:
"
/api/DutyClassify/DeleteDuty
"
,
method
:
"
get
"
,
params
:
t
})}
function
h
(
t
){
return
Object
(
d
[
"
a
"
])({
url
:
"
/api/DutyClassify/AddDutyType
"
,
method
:
"
post
"
,
data
:
t
})}
function
m
(
t
){
return
Object
(
d
[
"
a
"
])({
url
:
"
/api/Common/GetDutyConfigSelect
"
,
method
:
"
get
"
,
params
:
t
})}
function
g
(
t
){
return
Object
(
d
[
"
a
"
])({
url
:
"
/api/DutyClassify/UpdateDutyType
"
,
method
:
"
post
"
,
data
:
t
})}
var
b
=
a
(
"
d02c
"
),
y
=
a
(
"
12cb
"
);
function
v
(
t
,
e
){
var
a
=
Object
.
keys
(
t
);
if
(
Object
.
getOwnPropertySymbols
){
var
n
=
Object
.
getOwnPropertySymbols
(
t
);
e
&&
(
n
=
n
.
filter
((
function
(
e
){
return
Object
.
getOwnPropertyDescriptor
(
t
,
e
).
enumerable
}))),
a
.
push
.
apply
(
a
,
n
)}
return
a
}
function
_
(
t
){
for
(
var
e
=
1
;
e
<
arguments
.
length
;
e
++
){
var
a
=
null
!=
arguments
[
e
]?
arguments
[
e
]:{};
e
%
2
?
v
(
Object
(
a
),
!
0
).
forEach
((
function
(
e
){
Object
(
r
[
"
a
"
])(
t
,
e
,
a
[
e
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
t
,
Object
.
getOwnPropertyDescriptors
(
a
)):
v
(
Object
(
a
)).
forEach
((
function
(
e
){
Object
.
defineProperty
(
t
,
e
,
Object
.
getOwnPropertyDescriptor
(
a
,
e
))}))}
return
t
}
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
t
=
Object
(
o
[
"
a
"
])(
c
.
a
.
mark
((
function
t
(){
var
e
=
this
;
return
c
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
this
.
treePanelLoading
=!
0
,
this
.
currentTreeNode
=
{},
l
().
then
((
function
(
t
){
e
.
typeTree
=
e
.
treeFormat
(
t
),
e
.
treePanelLoading
=!
1
}));
case
3
:
case
"
end
"
:
return
t
.
stop
()}}),
t
,
this
)})));
function
e
(){
return
t
.
apply
(
this
,
arguments
)}
return
e
}(),
treeNodeChange
:
function
(
t
,
e
){
e
.
expand
=!
0
,
e
.
selected
?(
this
.
currentTreeNode
=
e
,
this
.
params
.
parent_id
=
e
.
id
):(
this
.
currentTreeNode
=
{},
this
.
params
.
parent_id
=
"
1
"
),
this
.
getData
()},
treeFormat
:
function
(
t
){
var
e
=
this
;
return
t
.
map
((
function
(
t
){
return
t
.
children
&&
0
!=
t
.
children
.
length
&&
(
t
.
children
=
e
.
treeFormat
(
t
.
children
)),
_
(
_
({},
t
),{},{
title
:
t
.
name
,
expand
:
"
1
"
==
t
.
id
,
selected
:
!
1
})}))},
GetDutyConfigSelect
:
function
(){
var
t
=
this
;
m
().
then
((
function
(
e
){
var
a
=
t
.
formItem
.
findIndex
((
function
(
t
){
return
"
config_id
"
==
t
.
id
}));
t
.
formItem
[
a
].
optList
=
e
.
map
((
function
(
t
){
return
_
(
_
({},
t
),{},{
label
:
t
.
name
,
value
:
t
.
id
})}))}))},
getData
:
function
(){
var
t
=
this
;
this
.
tableLoading
=!
0
,
u
(
this
.
params
).
then
((
function
(
e
){
t
.
tableData
=
e
.
data
,
t
.
dataCount
=
e
.
data_count
,
t
.
tableLoading
=!
1
}))},
switchChange
:
function
(
t
,
e
,
a
){
var
n
=
this
;
this
.
tableData
[
a
].
is_enable
=
t
,
p
({
id
:
e
.
id
,
is_enable
:
t
}).
then
((
function
(
t
){
n
.
$Message
.
success
(
t
)})).
catch
((
function
(){
n
.
tableData
[
a
].
is_enable
=
0
==
t
?
1
:
0
,
n
.
$Message
.
error
(
res
.
msg_detail
)}))},
handleChangePage
:
function
(
t
){
this
.
params
.
page_index
=
t
,
this
.
getData
()},
handleChangePageSize
:
function
(
t
){
this
.
params
.
page_size
=
t
,
1
==
this
.
params
.
page_index
&&
(
this
.
params
.
page_index
=
t
,
this
.
getData
())},
doSearch
:
function
(){
this
.
params
.
page_size
=
1
,
this
.
getData
()},
handleEdit
:
function
(
t
){
this
.
editModalshow
=!
0
,
this
.
isEdit
=!
0
,
this
.
$refs
.
ceditmodal
.
modalInit
(
"
edit
"
,
_
(
_
({},
t
),{},{
config_id
:
t
.
config_id
.
split
(
"
;
"
)}),
"
编辑分类
"
)},
handleDelete
:
function
(
t
){
var
e
=
this
;
this
.
$Modal
.
confirm
({
title
:
"
确定要删除吗?
"
,
loading
:
!
0
,
onOk
:
function
(){
var
a
=
{
id
:
t
};
f
(
a
).
then
((
function
(){
e
.
$Modal
.
remove
(),
e
.
$Message
.
success
(
"
删除成功
"
),
e
.
getData
()}))}})},
add
:
function
(){
this
.
editModalshow
=!
0
,
this
.
isEdit
=!
1
,
this
.
$refs
.
ceditmodal
.
modalInit
(
"
add
"
,
this
.
defaultFormData
,
"
新增分类
"
)},
modalSubmit
:
function
(
t
){
var
e
=
this
;
function
a
(
t
){
return
console
.
log
(
"
🚀valval🚀🚀,
"
,
t
),
b
[
"
b
"
]({
parent_id
:
t
.
parent_id
}).
then
((
function
(
e
){
return
h
(
_
(
_
({},
t
),{},{
id
:
e
}))}))}
console
.
log
(
"
modal提交
"
,
t
);
var
n
=
0
!=
Object
.
keys
(
this
.
currentTreeNode
).
length
;
t
.
parent_id
=
n
?
this
.
currentTreeNode
.
id
:
"
1
"
,
t
.
config_id
=
t
.
config_id
.
join
(
"
;
"
),
console
.
log
(
t
),
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
(
!
e
.
isEdit
){
n
.
next
=
6
;
break
}
return
n
.
next
=
3
,
g
(
t
);
case
3
:
n
.
t0
=
n
.
sent
,
n
.
next
=
9
;
break
;
case
6
:
return
n
.
next
=
8
,
a
(
t
);
case
8
:
n
.
t0
=
n
.
sent
;
case
9
:
i
=
n
.
t0
,
e
.
$Message
.
success
(
i
),
e
.
editModalshow
=!
1
,
e
.
getData
(),
e
.
getTreeData
(),
e
.
$Modal
.
remove
();
case
15
:
case
"
end
"
:
return
n
.
stop
()}}),
n
)})));
function
i
(){
return
n
.
apply
(
this
,
arguments
)}
return
i
}()})}}},
w
=
D
,
C
=
(
a
(
"
64b1
"
),
a
(
"
2877
"
)),
O
=
Object
(
C
[
"
a
"
])(
w
,
n
,
i
,
!
1
,
null
,
"
ac0a90ea
"
,
null
);
e
[
"
default
"
]
=
O
.
exports
},
"
64b1
"
:
function
(
t
,
e
,
a
){
"
use strict
"
;
a
(
"
d8a5
"
)},
d8a5
:
function
(
t
,
e
,
a
){}}]);
\ No newline at end of file
dist/js/chunk-4848ce1c.a0e05e28.js
0 → 100644
浏览文件 @
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
dutyV3PC.zip
0 → 100644
浏览文件 @
0e2fd007
文件已添加
src/pages/dutyConfig/index.vue
浏览文件 @
0e2fd007
...
@@ -48,9 +48,11 @@
...
@@ -48,9 +48,11 @@
mask-closable
mask-closable
@
on-cancle=
"address = undefined"
>
@
on-cancle=
"address = undefined"
>
<
template
>
<
template
>
<!-- -->
<!--:src="`https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=ZNMBZ-NYOEO-WNMWL-SJF4C-MWKQT-KJB7W&referer=myapp`"-->
<iframe
<iframe
id=
"mapPage"
id=
"mapPage"
:src=
"`https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=
ZNMBZ-NYOEO-WNMWL-SJF4C-MWKQT-KJB7W
&referer=myapp`"
:src=
"`https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=
IZXBZ-OTAWV-XU7PV-5FAAL-F6VXH-7XBQP
&referer=myapp`"
frameborder=
"0"
frameborder=
"0"
height=
"500px"
height=
"500px"
width=
"100%"
>
width=
"100%"
>
...
...
src/pages/dutyType/index.vue
浏览文件 @
0e2fd007
...
@@ -248,6 +248,7 @@ export default {
...
@@ -248,6 +248,7 @@ export default {
this
.
$Modal
.
remove
();
this
.
$Modal
.
remove
();
this
.
$Message
.
success
(
"
删除成功
"
);
this
.
$Message
.
success
(
"
删除成功
"
);
this
.
getData
();
this
.
getData
();
this
.
getTreeData
()
});
});
},
},
});
});
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录