Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
H
HY占座系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
HY占座系统
提交
2fa4b0b7
提交
2fa4b0b7
编写于
3月 12, 2025
作者:
刘英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
20250312
用户权限》新增/便捷表单时,超管权限,隐藏管辖房间.
上级
91e03960
流水线
#33610
已通过 ,包含阶段
in 1 minute 和 41 second
变更
9
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
746 行增加
和
11 行删除
+746
-11
chunk-0484c63f.0997dfbf.css
dist/css/chunk-0484c63f.0997dfbf.css
+1
-0
chunk-4b2a2114.9d29a8db.css
dist/css/chunk-4b2a2114.9d29a8db.css
+0
-1
index.html
dist/index.html
+1
-1
app.cb24ec64.js
dist/js/app.cb24ec64.js
+2
-2
chunk-0484c63f.4f1db2d1.js
dist/js/chunk-0484c63f.4f1db2d1.js
+1
-0
chunk-4b2a2114.3cc66595.js
dist/js/chunk-4b2a2114.3cc66595.js
+0
-1
CEditModalUserManagement.vue
src/components/CEditModalUserManagement.vue
+724
-0
index.vue
src/layouts/basic-layout/menu-side/index.vue
+1
-1
index.vue
src/pages/userManagement/index.vue
+16
-5
未找到文件。
dist/css/chunk-0484c63f.0997dfbf.css
0 → 100644
浏览文件 @
2fa4b0b7
[
data-v-18b74e2e
]
.ivu-modal-mask
{
position
:
fixed
;
top
:
0
;
bottom
:
0
;
left
:
0
;
right
:
0
;
background-color
:
rgba
(
55
,
55
,
55
,
.6
);
height
:
100%
;
z-index
:
1050
!important
}
[
data-v-18b74e2e
]
.ivu-modal-wrap
{
position
:
fixed
;
overflow
:
auto
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
z-index
:
1050
!important
;
-webkit-overflow-scrolling
:
touch
;
outline
:
0
}
[
data-v-18b74e2e
]
.ivu-drawer-mask
{
position
:
fixed
;
top
:
0
;
bottom
:
0
;
left
:
0
;
right
:
0
;
background-color
:
rgba
(
55
,
55
,
55
,
.6
);
height
:
100%
;
z-index
:
1100
!important
}
[
data-v-18b74e2e
]
.ivu-drawer-wrap
{
position
:
fixed
;
overflow
:
auto
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
z-index
:
1100
!important
;
-webkit-overflow-scrolling
:
touch
;
outline
:
0
}
.ivu-form-item
[
data-v-18b74e2e
]
{
padding-right
:
15px
}
.fileRow
[
data-v-18b74e2e
]
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
}
.fileRow
.delIcon
[
data-v-18b74e2e
]
{
color
:
#ed4014
}
.fileRow
.delIcon
[
data-v-18b74e2e
]
:hover
{
color
:
#f16643
;
cursor
:
pointer
}
.class-drawer
[
data-v-18b74e2e
]
{
height
:
"calc(100% - 55px)"
;
overflow
:
"auto"
;
padding-bottom
:
"53px"
;
position
:
"static"
;
z-index
:
1100
!important
}
.class-drawer
.subTitle
[
data-v-18b74e2e
]
{
margin-top
:
20px
;
font-size
:
14px
;
color
:
#191f25
;
font-weight
:
700
}
.class-drawer
.drawer-footer
[
data-v-18b74e2e
]
{
width
:
100%
;
position
:
absolute
;
bottom
:
0
;
left
:
0
;
border-top
:
1px
solid
#e8e8e8
;
padding
:
10px
16px
;
text-align
:
right
;
background
:
#fff
}
.class-drawer
[
data-v-18b74e2e
]
.ivu-drawer-header-inner
{
font-size
:
20px
;
font-weight
:
600
}
.searchDiv
.ivu-form-item
[
data-v-28ca940a
]
{
margin-bottom
:
12px
}
.searchDiv
.buttonCol
[
data-v-28ca940a
]
{
margin-left
:
auto
;
text-align
:
right
}
.searchDiv
.buttonCol
.ivu-btn
[
data-v-28ca940a
]
{
margin-left
:
8px
}
\ No newline at end of file
dist/css/chunk-4b2a2114.9d29a8db.css
已删除
100644 → 0
浏览文件 @
91e03960
.searchDiv
.ivu-form-item
[
data-v-28ca940a
]
{
margin-bottom
:
12px
}
.searchDiv
.buttonCol
[
data-v-28ca940a
]
{
margin-left
:
auto
;
text-align
:
right
}
.searchDiv
.buttonCol
.ivu-btn
[
data-v-28ca940a
]
{
margin-left
:
8px
}
\ No newline at end of file
dist/index.html
浏览文件 @
2fa4b0b7
<!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"
><link
rel=
"shortcut icon"
href=
favicon.ico
><title>
自习室占座预约系统
</title><link
href=
css/chunk-vendors.cc1990b1.css
rel=
stylesheet
><link
href=
css/app.de53c9b8.css
rel=
stylesheet
></head><body><script
src=
https://mapapi.qq.com/web/mapComponents/geoLocation/v/geolocation.min.js
></script><script
src=
"https://map.qq.com/api/gljs?v=1.exp&libraries=service&key=IZXBZ-OTAWV-XU7PV-5FAAL-F6VXH-7XBQP"
></script><script
charset=
utf-8
src=
"https://map.qq.com/api/js?v=2.exp&key=ZNMBZ-NYOEO-WNMWL-SJF4C-MWKQT-KJB7W&libraries=drawing,geometry,place,convertor,visualization"
></script><script
src=
/a/manager/identify/identify.js
></script><noscript><strong>
请开启 JavaScript 功能来使用 自习室占座预约系统。
</strong></noscript><div
id=
app
></div><script
src=
js/chunk-vendors.0e2a893c.js
></script><script
src=
js/app.ef03c55b.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"
><link
rel=
"shortcut icon"
href=
favicon.ico
><title>
自习室占座预约系统
</title><link
href=
css/chunk-vendors.cc1990b1.css
rel=
stylesheet
><link
href=
css/app.de53c9b8.css
rel=
stylesheet
></head><body><script
src=
https://mapapi.qq.com/web/mapComponents/geoLocation/v/geolocation.min.js
></script><script
src=
"https://map.qq.com/api/gljs?v=1.exp&libraries=service&key=IZXBZ-OTAWV-XU7PV-5FAAL-F6VXH-7XBQP"
></script><script
charset=
utf-8
src=
"https://map.qq.com/api/js?v=2.exp&key=ZNMBZ-NYOEO-WNMWL-SJF4C-MWKQT-KJB7W&libraries=drawing,geometry,place,convertor,visualization"
></script><script
src=
/a/manager/identify/identify.js
></script><noscript><strong>
请开启 JavaScript 功能来使用 自习室占座预约系统。
</strong></noscript><div
id=
app
></div><script
src=
js/chunk-vendors.0e2a893c.js
></script><script
src=
js/app.cb24ec64.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/js/app.
ef03c55b
.js
→
dist/js/app.
cb24ec64
.js
浏览文件 @
2fa4b0b7
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
dist/js/chunk-0484c63f.4f1db2d1.js
0 → 100644
浏览文件 @
2fa4b0b7
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-0484c63f
"
],{
"
0f7c6
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
(
"
9795
"
)},
"
2e08
"
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"
9def
"
),
i
=
n
(
"
9744
"
),
o
=
n
(
"
be13
"
);
e
.
exports
=
function
(
e
,
t
,
n
,
r
){
var
l
=
String
(
o
(
e
)),
s
=
l
.
length
,
c
=
void
0
===
n
?
"
"
:
String
(
n
),
d
=
a
(
t
);
if
(
d
<=
s
||
""
==
c
)
return
l
;
var
u
=
d
-
s
,
m
=
i
.
call
(
c
,
Math
.
ceil
(
u
/
c
.
length
));
return
m
.
length
>
u
&&
(
m
=
m
.
slice
(
0
,
u
)),
r
?
m
+
l
:
l
+
m
}},
"
51cb
"
:
function
(
e
,
t
,
n
){},
"
689e
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
.
r
(
t
);
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,[
n
(
"
Card
"
,{
ref
:
"
card
"
},[
n
(
"
Button
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
function
(
t
){
return
e
.
add
(
"
teacher
"
)}}},[
n
(
"
Icon
"
,{
attrs
:{
type
:
"
md-add
"
}}),
e
.
_v
(
"
\n
新增教师
\n
"
)],
1
),
n
(
"
Button
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
function
(
t
){
return
e
.
add
(
"
student
"
)}}},[
n
(
"
Icon
"
,{
attrs
:{
type
:
"
md-add
"
}}),
e
.
_v
(
"
\n
新增学生
\n
"
)],
1
),
n
(
"
CTable
"
,{
attrs
:{
tableColumns
:
e
.
tableColumns
.
filter
((
function
(
e
){
return
e
.
show
})),
tableData
:
e
.
tableDataCal
,
tableLoading
:
e
.
tableLoading
,
tableSize
:
e
.
tableSize
,
dataCount
:
e
.
dataCount
,
pageIndex
:
e
.
params
.
page_index
,
pageSize
:
e
.
params
.
page_size
},
on
:{
switchChange
:
e
.
switchChange
,
rowEdit
:
e
.
rowEdit
,
rowDelete
:
e
.
rowDelete
,
onPageChange
:
e
.
onPageChange
,
onPageSizeChange
:
e
.
onPageSizeChange
},
scopedSlots
:
e
.
_u
([{
key
:
"
room_name_list
"
,
fn
:
function
(
t
){
var
a
=
t
.
row
;
return
e
.
_l
(
a
.
room_name_list
,(
function
(
t
,
a
){
return
n
(
"
Tag
"
,{
key
:
a
,
attrs
:{
color
:
"
blue
"
}},[
e
.
_v
(
e
.
_s
(
t
))])}))}},{
key
:
"
place_name
"
,
fn
:
function
(
e
){
var
t
=
e
.
row
;
return
[
n
(
"
Ellipsis
"
,{
attrs
:{
transfer
:
!
0
,
text
:
t
.
place_name
,
height
:
80
,
tooltip
:
""
}})]}}])}),
n
(
"
CEditModalUserManagement
"
,{
ref
:
"
ceditmodal
"
,
attrs
:{
formItem
:
e
.
formItem
,
loading
:
e
.
editModalLoading
,
formLabelWidth
:
100
,
width
:
800
},
on
:{
onClose
:
function
(
t
){
e
.
editModalshow
=!
1
},
getPeopleList
:
e
.
getPeopleList
,
onSubmit
:
e
.
modalSubmit
},
model
:{
value
:
e
.
editModalshow
,
callback
:
function
(
t
){
e
.
editModalshow
=
t
},
expression
:
"
editModalshow
"
}})],
1
)],
1
)},
i
=
[],
o
=
(
n
(
"
8e6e
"
),
n
(
"
96cf
"
),
n
(
"
3b8d
"
)),
r
=
(
n
(
"
7514
"
),
n
(
"
28a5
"
),
n
(
"
456d
"
),
n
(
"
ac6a
"
),
n
(
"
c5f6
"
),
n
(
"
20d6
"
),
n
(
"
7f7f
"
),
n
(
"
bd86
"
)),
l
=
n
(
"
967e
"
),
s
=
n
.
n
(
l
),
c
=
n
(
"
84af
"
),
d
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,[
n
(
"
Drawer
"
,{
staticClass
:
"
class-drawer
"
,
attrs
:{
title
:
"
配置开放时间
"
,
transfer
:
""
,
width
:
"
800
"
},
model
:{
value
:
e
.
showDrawer
,
callback
:
function
(
t
){
e
.
showDrawer
=
t
},
expression
:
"
showDrawer
"
}},[
n
(
"
div
"
,{
staticStyle
:{
"
margin-top
"
:
"
20px
"
}},[
n
(
"
Card
"
,{
attrs
:{
"
dis-hover
"
:
""
}},[
n
(
"
Row
"
,{
staticStyle
:{
"
margin-bottom
"
:
"
10px
"
,
padding
:
"
12px 0
"
,
"
background-color
"
:
"
#f6f6f6
"
}},[
n
(
"
Col
"
,{
attrs
:{
span
:
"
14
"
}},[
e
.
_v
(
"
开放范围限制
"
)])],
1
),
n
(
"
Row
"
,{
staticStyle
:{
"
margin-bottom
"
:
"
10px
"
}},
e
.
_l
(
e
.
formDataTimeTable
.
time
,(
function
(
t
,
a
){
return
n
(
"
Col
"
,{
key
:
a
,
staticStyle
:{
"
margin-bottom
"
:
"
10px
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
},
attrs
:{
span
:
"
24
"
}},[
n
(
"
TimePicker
"
,{
staticStyle
:{
width
:
"
240px
"
},
attrs
:{
clearable
:
!
1
,
format
:
"
HH:mm
"
,
placeholder
:
"
未设置
"
,
placement
:
"
bottom-end
"
,
type
:
"
timerange
"
},
on
:{
"
on-change
"
:
function
(
n
){
return
e
.
onChangeTimeTable
(
n
,
t
,
a
)},
"
on-open-change
"
:
function
(
n
){
return
e
.
onOpenChangeTimeTable
(
n
,
t
,
a
)}},
model
:{
value
:
t
.
timeRange
,
callback
:
function
(
n
){
e
.
$set
(
t
,
"
timeRange
"
,
n
)},
expression
:
"
item.timeRange
"
}}),
e
.
_v
(
"
\n
可预约座位
\n
"
),
n
(
"
div
"
,{
staticStyle
:{
"
margin-left
"
:
"
auto
"
}},[
n
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
title
:
"
是否继续该操作?
"
},
on
:{
"
on-ok
"
:
function
(){
e
.
formDataTimeTable
.
time
.
splice
(
a
,
1
)},
"
on-cancel
"
:
function
(
e
){}}},[
n
(
"
Button
"
,{
attrs
:{
icon
:
"
ios-close
"
,
shape
:
"
circle
"
}})],
1
)],
1
)],
1
)})),
1
),
n
(
"
Row
"
,{
staticStyle
:{
"
margin-bottom
"
:
"
10px
"
,
display
:
"
flex
"
,
"
justify-content
"
:
"
center
"
}},[
n
(
"
Button
"
,{
staticStyle
:{
width
:
"
200px
"
},
attrs
:{
icon
:
"
ios-add
"
,
type
:
"
dashed
"
},
on
:{
click
:
function
(
t
){
return
e
.
formDataTimeTable
.
time
.
push
({
begin
:
""
,
end
:
""
})}}},[
e
.
_v
(
"
添加时间
\n
"
)])],
1
)],
1
)],
1
),
n
(
"
div
"
,{
staticClass
:
"
drawer-footer
"
},[
n
(
"
Button
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
on
:{
click
:
function
(
t
){
e
.
showDrawer
=!
1
}}},[
e
.
_v
(
"
取消
"
)]),
n
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
save
}},[
e
.
_v
(
"
保存
"
)])],
1
)]),
n
(
"
Modal
"
,{
attrs
:{
"
before-close
"
:
e
.
beforeClose
,
"
mask-closable
"
:
e
.
maskClosable
,
title
:
e
.
modalTitle
,
transfer
:
!
0
,
width
:
e
.
width
},
scopedSlots
:
e
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
e
.
isDetails
?
n
(
"
div
"
,[
n
(
"
Button
"
,{
on
:{
click
:
e
.
onCancel
}},[
e
.
_v
(
"
关闭
"
)])],
1
):
n
(
"
div
"
,[
n
(
"
Button
"
,{
on
:{
click
:
e
.
onCancel
}},[
e
.
_v
(
"
取消
"
)]),
n
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"
提交
"
)])],
1
)]},
proxy
:
!
0
}]),
model
:{
value
:
e
.
show
,
callback
:
function
(
t
){
e
.
show
=
t
},
expression
:
"
show
"
}},[[
e
.
loading
?
n
(
"
Spin
"
,{
attrs
:{
fix
:
""
,
size
:
"
large
"
}}):
e
.
_e
(),
n
(
"
Form
"
,{
ref
:
"
form
"
,
attrs
:{
"
label-width
"
:
e
.
formLabelWidth
,
model
:
e
.
formData
,
rules
:
e
.
formRule
,
"
label-colon
"
:
""
}},[
e
.
isDetails
?
e
.
_e
():
n
(
"
Row
"
,[
e
.
_l
(
e
.
formItem
.
filter
((
function
(
e
){
return
"
file
"
!=
e
.
type
&&
"
timeTable
"
!=
e
.
type
&&
(
!
e
.
hasOwnProperty
(
"
show
"
)
||
e
.
show
)})),(
function
(
t
){
return
n
(
"
Col
"
,
e
.
_b
({
key
:
t
.
id
},
"
Col
"
,
e
.
grid
,
!
1
),[
"
multipleselectRoomIdList
"
!=
t
.
type
||
"
1
"
!=
e
.
formData
.
role_id
?
n
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
,
prop
:
t
.
id
}},[
"
input
"
==
t
.
type
?
n
(
"
Input
"
,{
attrs
:{
disabled
:
t
.
disabled
,
placeholder
:
"
请输入
"
+
t
.
name
,
clearable
:
""
},
model
:{
value
:
e
.
formData
[
t
.
id
],
callback
:
function
(
n
){
e
.
$set
(
e
.
formData
,
t
.
id
,
n
)},
expression
:
"
formData[item.id]
"
}}):
e
.
_e
(),
"
textarea
"
==
t
.
type
?
n
(
"
Input
"
,{
attrs
:{
disabled
:
t
.
disabled
,
placeholder
:
"
请输入
"
+
t
.
name
,
rows
:
t
.
rows
,
clearable
:
""
,
type
:
"
textarea
"
},
model
:{
value
:
e
.
formData
[
t
.
id
],
callback
:
function
(
n
){
e
.
$set
(
e
.
formData
,
t
.
id
,
n
)},
expression
:
"
formData[item.id]
"
}}):
"
select
"
==
t
.
type
?
n
(
"
Select
"
,{
attrs
:{
disabled
:
t
.
disabled
,
placeholder
:
"
请选择
"
+
t
.
name
,
clearable
:
""
,
filterable
:
""
},
on
:{
"
on-query-change
"
:
e
.
onQueryChange
},
model
:{
value
:
e
.
formData
[
t
.
id
],
callback
:
function
(
n
){
e
.
$set
(
e
.
formData
,
t
.
id
,
n
)},
expression
:
"
formData[item.id]
"
}},
e
.
_l
(
t
.
optList
,(
function
(
t
){
return
n
(
"
Option
"
,{
key
:
t
.
value
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
):
"
multipleselect
"
==
t
.
type
||
"
multipleselectRoomIdList
"
==
t
.
type
?
n
(
"
Select
"
,{
attrs
:{
disabled
:
t
.
disabled
,
placeholder
:
"
请选择
"
+
t
.
name
,
clearable
:
""
,
filterable
:
""
,
multiple
:
""
},
model
:{
value
:
e
.
formData
[
t
.
id
],
callback
:
function
(
n
){
e
.
$set
(
e
.
formData
,
t
.
id
,
n
)},
expression
:
"
formData[item.id]
"
}},
e
.
_l
(
t
.
optList
,(
function
(
t
){
return
n
(
"
Option
"
,{
key
:
t
.
value
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
):
"
switch
"
==
t
.
type
?
n
(
"
i-switch
"
,{
attrs
:{
"
false-value
"
:
0
,
"
true-value
"
:
1
},
model
:{
value
:
e
.
formData
[
t
[
"
id
"
]],
callback
:
function
(
n
){
e
.
$set
(
e
.
formData
,
t
[
"
id
"
],
n
)},
expression
:
"
formData[item['id']]
"
}}):
"
timerange
"
==
t
.
type
?
n
(
"
TimePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
placeholder
:
"
请选择
"
+
t
.
name
,
format
:
"
HH:mm
"
,
placement
:
"
bottom-end
"
,
type
:
"
timerange
"
},
on
:{
"
on-clear
"
:
function
(
n
){
return
e
.
onClearTimerange
(
n
,
t
[
"
id
"
])}},
model
:{
value
:
e
.
formData
[
t
[
"
id
"
]],
callback
:
function
(
n
){
e
.
$set
(
e
.
formData
,
t
[
"
id
"
],
n
)},
expression
:
"
formData[item['id']]
"
}}):
"
datetime
"
==
t
.
type
?
n
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
placeholder
:
"
请选择
"
+
t
.
name
,
format
:
"
yyyy-MM-dd
"
,
type
:
"
date
"
},
on
:{
"
on-change
"
:
function
(
n
,
a
){
return
e
.
datetimeChange1
(
n
,
a
,
t
.
id
)}},
model
:{
value
:
e
.
formData
[
t
[
"
id
"
]],
callback
:
function
(
n
){
e
.
$set
(
e
.
formData
,
t
[
"
id
"
],
n
)},
expression
:
"
formData[item['id']]
"
}}):
"
area
"
===
t
.
type
?
n
(
"
div
"
,[
n
(
"
Button
"
,{
attrs
:{
ghost
:
""
,
type
:
"
primary
"
},
on
:{
click
:
e
.
setMap
}},[
e
.
_v
(
e
.
_s
([
"
设置区域
"
,
"
更改区域
"
][
Number
(
e
.
regionDot
.
length
>
0
)])
+
"
\n
"
)])],
1
):
e
.
_e
()],
1
):
e
.
_e
()],
1
)})),
e
.
_l
(
e
.
formItem
.
filter
((
function
(
e
){
return
"
file
"
==
e
.
type
&&
(
!
e
.
hasOwnProperty
(
"
show
"
)
||
e
.
show
)})),(
function
(
t
,
a
){
return
n
(
"
Col
"
,{
key
:
t
.
id
,
attrs
:{
span
:
"
12
"
}},[
n
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
,
prop
:
t
.
name
}},[
n
(
"
Upload
"
,{
attrs
:{
"
before-upload
"
:
function
(
n
){
return
e
.
uploadFile
(
n
,
t
.
id
,
a
)},
action
:
"
#
"
,
multiple
:
""
}},[
n
(
"
Button
"
,{
attrs
:{
loading
:
e
.
uploadBtLoading
[
a
],
icon
:
"
ios-cloud-upload-outline
"
}},[
e
.
_v
(
"
选择文件
\n
"
)])],
1
),
e
.
_l
(
e
.
formData
[
t
.
id
],(
function
(
a
){
return
n
(
"
p
"
,{
key
:
a
.
path
,
staticClass
:
"
fileRow
"
},[
n
(
"
a
"
,{
attrs
:{
href
:
a
.
path
,
target
:
"
_blank
"
}},[
e
.
_v
(
e
.
_s
(
a
.
file_name
))]),
n
(
"
Icon
"
,{
staticClass
:
"
delIcon
"
,
attrs
:{
type
:
"
md-close
"
},
on
:{
click
:
function
(
n
){
return
e
.
fileDel
(
a
,
t
.
id
)}}})],
1
)}))],
2
)],
1
)}))],
2
),
!
e
.
isDetails
&&
e
.
formItem
.
filter
((
function
(
e
){
return
"
timeTable
"
===
e
.
type
})).
length
?
n
(
"
Row
"
,
e
.
_l
(
e
.
formItem
.
filter
((
function
(
e
){
return
"
timeTable
"
===
e
.
type
})),(
function
(
t
,
a
){
return
n
(
"
FormItem
"
,{
key
:
t
.
id
,
attrs
:{
label
:
"
默认开放区间
"
}},[
n
(
"
Table
"
,{
key
:
e
.
aaa
,
attrs
:{
columns
:
t
.
columns
,
data
:
t
.
data
,
border
:
""
,
size
:
"
small
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
time
"
,
fn
:
function
(
t
){
var
a
=
t
.
row
;
t
.
index
;
return
e
.
_l
(
a
.
time
,(
function
(
t
,
a
){
return
n
(
"
Tag
"
,{
key
:
a
,
staticStyle
:{
"
margin-right
"
:
"
5px
"
},
attrs
:{
color
:
"
blue
"
}},[
e
.
_v
(
e
.
_s
(
t
)
+
"
\n
"
)])}))}},{
key
:
"
action
"
,
fn
:
function
(
a
){
var
i
=
a
.
row
,
o
=
a
.
index
;
return
[
n
(
"
a
"
,{
on
:{
click
:
function
(
n
){
return
e
.
openClass
(
i
,
o
,
t
)}}},[
e
.
_v
(
"
配置
"
)])]}}],
null
,
!
0
)})],
1
)})),
1
):
e
.
_e
(),
e
.
isDetails
?
n
(
"
Row
"
,[
e
.
_l
(
e
.
formItem
.
filter
((
function
(
e
){
return
"
file
"
!=
e
.
type
&&
"
timeTable
"
!=
e
.
type
&&
(
!
e
.
hasOwnProperty
(
"
show
"
)
||
e
.
show
)})),(
function
(
t
){
return
n
(
"
Col
"
,
e
.
_b
({
key
:
t
.
id
},
"
Col
"
,
e
.
grid
,
!
1
),[
n
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
,
prop
:
t
.
name
}},[
"
input
"
==
t
.
type
?
n
(
"
span
"
,[
e
.
_v
(
e
.
_s
(
e
.
formData
[
t
.
id
]))]):
e
.
_e
(),
"
datetime
"
==
t
.
type
?
n
(
"
span
"
,[
e
.
_v
(
e
.
_s
(
e
.
formData
[
t
.
id
]))]):
e
.
_e
(),
"
textarea
"
==
t
.
type
?
n
(
"
span
"
,[
e
.
_v
(
e
.
_s
(
e
.
formData
[
t
.
id
]))]):
e
.
_e
(),
"
timerange
"
==
t
.
type
?
n
(
"
span
"
,[
e
.
_v
(
e
.
_s
(
e
.
formData
[
t
.
id
]))]):
e
.
_e
(),
"
signRecord
"
==
t
.
type
?
n
(
"
span
"
,{
on
:{
click
:
function
(
t
){
return
e
.
signRecord
(
e
.
formData
.
id
)}}},[
n
(
"
span
"
,{
staticStyle
:{
color
:
"
#1e93ff
"
,
cursor
:
"
pointer
"
}},[
e
.
_v
(
"
查看
"
)])]):
e
.
_e
(),
"
area
"
==
t
.
type
?
n
(
"
div
"
,[
n
(
"
Button
"
,{
attrs
:{
ghost
:
""
,
type
:
"
primary
"
},
on
:{
click
:
e
.
setMap
}},[
e
.
_v
(
"
查看区域
"
)])],
1
):
e
.
_e
(),
"
select
"
==
t
.
type
?
n
(
"
span
"
,[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
optList
[
t
.
optList
.
findIndex
((
function
(
n
){
return
n
.
value
==
e
.
formData
[
t
.
id
]}))].
label
)
+
"
\n
"
)]):
e
.
_e
(),
"
switch
"
==
t
.
type
?
n
(
"
span
"
,[
e
.
_v
(
e
.
_s
(
1
==
e
.
formData
[
t
.
id
]?
"
是
"
:
"
否
"
))]):
e
.
_e
()])],
1
)})),
e
.
_l
(
e
.
formItem
.
filter
((
function
(
e
){
return
"
file
"
==
e
.
type
&&
(
!
e
.
hasOwnProperty
(
"
show
"
)
||
e
.
show
)})),(
function
(
t
){
return
n
(
"
Col
"
,{
key
:
t
.
id
,
attrs
:{
span
:
"
12
"
}},[
n
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
,
prop
:
t
.
name
}},
e
.
_l
(
e
.
formData
[
t
.
id
],(
function
(
a
){
return
n
(
"
p
"
,{
key
:
a
.
path
,
staticClass
:
"
fileRow
"
},[
n
(
"
a
"
,{
attrs
:{
href
:
a
.
path
,
target
:
"
_blank
"
}},[
e
.
_v
(
e
.
_s
(
a
.
file_name
))]),
n
(
"
Icon
"
,{
staticClass
:
"
delIcon
"
,
attrs
:{
type
:
"
md-close
"
},
on
:{
click
:
function
(
n
){
return
e
.
fileDel
(
a
,
t
.
id
)}}})],
1
)})),
0
)],
1
)}))],
2
):
e
.
_e
(),
e
.
isDetails
&&
e
.
formItem
.
filter
((
function
(
e
){
return
"
timeTable
"
===
e
.
type
})).
length
?
n
(
"
Row
"
,
e
.
_l
(
e
.
formItem
.
filter
((
function
(
e
){
return
"
timeTable
"
===
e
.
type
})),(
function
(
t
,
a
){
return
n
(
"
FormItem
"
,{
key
:
t
.
id
,
attrs
:{
label
:
"
默认开放区间
"
}},[
n
(
"
Table
"
,{
key
:
t
.
id
,
attrs
:{
columns
:
t
.
columns
,
data
:
t
.
data
,
border
:
""
,
size
:
"
small
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
time
"
,
fn
:
function
(
t
){
var
a
=
t
.
row
;
t
.
index
;
return
e
.
_l
(
a
.
time
,(
function
(
t
,
a
){
return
n
(
"
Tag
"
,{
key
:
a
,
staticStyle
:{
"
margin-right
"
:
"
5px
"
},
attrs
:{
color
:
"
blue
"
}},[
e
.
_v
(
e
.
_s
(
t
)
+
"
\n
"
)])}))}}],
null
,
!
0
)})],
1
)})),
1
):
e
.
_e
()],
1
)]],
2
)],
1
)},
u
=
[],
m
=
(
n
(
"
f576
"
),
n
(
"
768b
"
)),
f
=
n
(
"
2ef0
"
),
p
=
n
.
n
(
f
);
function
h
(
e
,
t
){
var
n
=
Object
.
keys
(
e
);
if
(
Object
.
getOwnPropertySymbols
){
var
a
=
Object
.
getOwnPropertySymbols
(
e
);
t
&&
(
a
=
a
.
filter
((
function
(
t
){
return
Object
.
getOwnPropertyDescriptor
(
e
,
t
).
enumerable
}))),
n
.
push
.
apply
(
n
,
a
)}
return
n
}
function
b
(
e
){
for
(
var
t
=
1
;
t
<
arguments
.
length
;
t
++
){
var
n
=
null
!=
arguments
[
t
]?
arguments
[
t
]:{};
t
%
2
?
h
(
Object
(
n
),
!
0
).
forEach
((
function
(
t
){
Object
(
r
[
"
a
"
])(
e
,
t
,
n
[
t
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
e
,
Object
.
getOwnPropertyDescriptors
(
n
)):
h
(
Object
(
n
)).
forEach
((
function
(
t
){
Object
.
defineProperty
(
e
,
t
,
Object
.
getOwnPropertyDescriptor
(
n
,
t
))}))}
return
e
}
var
g
=
{
props
:{
loading
:{
type
:
Boolean
,
default
:
!
1
},
formItem
:{
type
:
Array
,
require
:
!
0
},
formRule
:{
type
:
Object
,
default
:
function
(){}},
formLabelWidth
:{
type
:
Number
,
default
:
80
},
value
:{
type
:
Boolean
,
require
:
!
0
},
width
:{
default
:
"
520
"
},
maskClosable
:{
type
:
Boolean
,
default
:
!
1
},
__PROP_NAMES_MAP
:{
maskClosable
:
"
mask-closable
"
}},
watch
:{
value
:
function
(
e
){
this
.
show
=
e
}},
data
:
function
(){
return
{
show
:
this
.
value
,
modalTitle
:
"
编辑
"
,
formData
:{},
grid
:{
xl
:
12
,
lg
:
12
,
md
:
24
,
sm
:
24
,
xs
:
24
},
uploadBtLoading
:[],
isDetails
:
!
1
,
peopleKey
:
""
,
regionDot
:[],
aaa
:
123123
,
showDrawer
:
!
1
,
formDataTimeTable
:{
time
:[{
begin
:
"
12:00
"
,
end
:
"
15:00
"
},{
begin
:
"
12:00
"
,
end
:
"
15:00
"
}]}}},
computed
:{},
created
:
function
(){},
mounted
:
function
(){},
methods
:{
checkTimes
:
function
(
e
,
t
){
function
n
(
e
){
var
t
=
e
.
split
(
"
:
"
).
map
(
Number
),
n
=
Object
(
m
[
"
a
"
])(
t
,
2
),
a
=
n
[
0
],
i
=
n
[
1
];
return
60
*
a
+
i
}
var
a
=
e
.
map
((
function
(
e
){
var
t
=
e
.
split
(
"
~
"
).
map
(
n
),
a
=
Object
(
m
[
"
a
"
])(
t
,
2
),
i
=
a
[
0
],
o
=
a
[
1
];
return
{
start
:
i
,
end
:
o
}})),
i
=
t
.
map
(
n
),
o
=
i
.
every
((
function
(
e
){
return
a
.
every
((
function
(
t
){
var
n
=
t
.
end
;
return
e
>
n
}))})),
r
=
i
.
every
((
function
(
e
){
return
a
.
every
((
function
(
t
){
var
n
=
t
.
start
;
return
e
<
n
}))})),
l
=
i
.
every
((
function
(
e
){
return
a
.
every
((
function
(
t
){
var
n
=
t
.
start
,
a
=
t
.
end
;
return
e
<
n
||
e
>
a
}))}));
return
o
||
r
||
l
},
onOpenChangeTimeTable
:
function
(
e
,
t
,
n
){
if
(
console
.
log
(
"
🚀🚀event, item, index🚀,
"
,
e
,
t
,
n
),
!
e
){
var
a
=
this
.
formDataTimeTable
.
time
.
map
((
function
(
e
){
if
(
void
0
!==
e
.
timeRange
)
return
e
.
timeRange
.
join
(
"
~
"
)})).
filter
((
function
(
e
){
return
void
0
!==
e
}));
-
1
!==
a
.
indexOf
(
t
.
timeRange
.
join
(
"
~
"
))
&&
a
.
splice
(
a
.
indexOf
(
t
.
timeRange
.
join
(
"
~
"
)),
1
),
this
.
checkTimes
(
a
,
t
.
timeRange
)
||
(
this
.
formDataTimeTable
.
time
.
splice
(
n
,
1
),
this
.
$Message
.
error
(
"
配置时间重叠,请重新配置时间
"
))}},
onChangeTimeTable
:
function
(
e
,
t
,
n
){},
save
:
function
(){
var
e
=
this
,
t
=
p
.
a
.
cloneDeep
(
this
.
formItem
.
find
((
function
(
e
){
return
"
timeTable
"
===
e
.
type
})).
data
);
function
n
(
e
){
return
e
.
map
((
function
(
e
){
if
(
void
0
!==
e
.
timeRange
)
return
e
.
timeRange
.
join
(
"
~
"
)})).
filter
((
function
(
e
){
return
void
0
!==
e
}))}
var
a
=
{
"
周一
"
:
function
(){
return
t
[
0
].
time
=
n
(
e
.
formDataTimeTable
.
time
)},
"
周二
"
:
function
(){
return
t
[
1
].
time
=
n
(
e
.
formDataTimeTable
.
time
)},
"
周三
"
:
function
(){
return
t
[
2
].
time
=
n
(
e
.
formDataTimeTable
.
time
)},
"
周四
"
:
function
(){
return
t
[
3
].
time
=
n
(
e
.
formDataTimeTable
.
time
)},
"
周五
"
:
function
(){
return
t
[
4
].
time
=
n
(
e
.
formDataTimeTable
.
time
)},
"
周六
"
:
function
(){
return
t
[
5
].
time
=
n
(
e
.
formDataTimeTable
.
time
)},
"
周日
"
:
function
(){
return
t
[
6
].
time
=
n
(
e
.
formDataTimeTable
.
time
)}};
a
[
this
.
formDataTimeTable
.
day
](),
this
.
formItem
.
find
((
function
(
e
){
return
"
timeTable
"
===
e
.
type
})).
data
=
t
;
var
i
=
{
one
:
t
[
0
].
time
,
two
:
t
[
1
].
time
,
three
:
t
[
2
].
time
,
four
:
t
[
3
].
time
,
five
:
t
[
4
].
time
,
six
:
t
[
5
].
time
,
seven
:
t
[
6
].
time
};
this
.
formData
[
"
service_interval_time
"
]
=
JSON
.
stringify
(
i
),
this
.
formData
[
"
service_interval_time_info
"
]
=
i
,
this
.
showDrawer
=!
1
},
openClass
:
function
(
e
,
t
,
n
){
console
.
log
(
"
🚀🚀openClass,
"
,
e
,
t
),
this
.
formDataTimeTable
=
b
(
b
({},
e
),{},{
id
:
n
.
id
,
index
:
t
,
time
:
e
.
time
.
map
((
function
(
e
){
return
{
begin
:
e
.
split
(
"
~
"
)[
0
],
end
:
e
.
split
(
"
~
"
)[
1
],
timeRange
:[
e
.
split
(
"
~
"
)[
0
],
e
.
split
(
"
~
"
)[
1
]]}}))}),
this
.
showDrawer
=!
0
},
signRecord
:
function
(
e
){
this
.
$emit
(
"
signRecord
"
,
e
)},
setMap
:
function
(){
this
.
$emit
(
"
setMap
"
,
""
)},
onQueryChange
:
function
(
e
){
this
.
peopleKey
=
e
,
this
.
$emit
(
"
getPeopleList
"
,
e
)},
modalInit
:
function
(){
var
e
=
this
,
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
"
add
"
,
n
=
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
a
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
""
;
if
(
this
.
isDetails
=!
1
,
this
.
uploadBtLoading
=
[],
"
add
"
==
t
)
this
.
$refs
.
form
.
resetFields
(),
this
.
modalTitle
=
a
||
"
新增
"
,
this
.
formData
=
n
?
Object
(
f
[
"
cloneDeep
"
])(
n
):{};
else
if
(
"
edit
"
==
t
){
this
.
isDetails
=!
1
,
this
.
modalTitle
=
"
编辑
"
,
this
.
$refs
.
form
.
resetFields
(),
this
.
formData
=
Object
(
f
[
"
cloneDeep
"
])(
n
);
var
i
=
this
.
formItem
.
findIndex
((
function
(
e
){
return
"
timerange
"
==
e
.
type
}));
if
(
-
1
!=
i
){
var
o
=
this
.
formItem
[
i
].
id
;
this
.
formData
[
o
]
=
this
.
formData
[
o
].
split
(
"
-
"
)}}
this
.
formItem
.
forEach
((
function
(
t
){
"
file
"
==
t
.
type
&&
e
.
uploadBtLoading
.
push
(
!
1
)}))},
modalDetailsInit
:
function
(
e
,
t
){
this
.
isDetails
=!
0
,
this
.
modalTitle
=
""
.
concat
(
e
[
t
],
"
- 详情
"
),
this
.
formData
=
Object
(
f
[
"
cloneDeep
"
])(
e
)},
uploadFile
:
function
(
e
,
t
,
n
){
var
a
=
this
;
this
.
uploadBtLoading
[
n
]
=!
0
,
this
.
$forceUpdate
();
var
i
=
new
FormData
;
return
i
.
append
(
"
file
"
,
e
),
this
.
asc
.
postApiCommonFileUpload
(
i
).
then
((
function
(
e
){
1
==
e
.
code
?(
a
.
formData
[
t
].
push
(
e
.
response
),
a
.
$Message
.
success
(
e
.
msg
)):
a
.
$Message
.
error
(
e
.
msg_detail
)})).
finally
((
function
(){
a
.
uploadBtLoading
[
n
]
=!
1
,
a
.
$forceUpdate
()})),
!
1
},
fileDel
:
function
(
e
,
t
){
var
n
=
this
.
formData
[
t
].
findIndex
((
function
(
t
){
return
t
.
id
==
e
.
id
}));
this
.
formData
[
t
].
splice
(
n
,
1
)},
datetimeChange1
:
function
(
e
,
t
,
n
){
this
.
formData
[
n
]
=
e
},
onClearTimerange
:
function
(
e
,
t
){
this
.
formData
[
t
]
=
[]},
beforeClose
:
function
(){
this
.
$emit
(
"
onClose
"
)},
onCancel
:
function
(){
this
.
$emit
(
"
onCancel
"
),
this
.
$emit
(
"
onClose
"
)},
onSubmit
:
function
(){
var
e
=
this
;
this
.
$refs
.
form
.
validate
((
function
(
t
){
if
(
t
){
var
n
=
Object
(
f
[
"
cloneDeep
"
])(
e
.
formData
),
a
=
e
.
formItem
.
findIndex
((
function
(
e
){
return
"
timerange
"
==
e
.
type
}));
if
(
-
1
!=
a
){
var
i
=
e
.
formItem
[
a
].
id
;
n
[
i
]
=
n
[
i
].
join
(
"
-
"
)}
console
.
log
(
"
🚀🚀obj🚀,
"
,
n
),
e
.
$emit
(
"
onSubmit
"
,
n
)}
else
e
.
$Message
.
warning
(
"
请检查输入项
"
)}))}}},
y
=
g
,
v
=
(
n
(
"
702f
"
),
n
(
"
2877
"
)),
_
=
Object
(
v
[
"
a
"
])(
y
,
d
,
u
,
!
1
,
null
,
"
18b74e2e
"
,
null
),
w
=
_
.
exports
,
C
=
n
(
"
69dc
"
),
D
=
n
(
"
d02c
"
),
k
=
n
(
"
61be
"
);
function
O
(
e
,
t
){
var
n
=
Object
.
keys
(
e
);
if
(
Object
.
getOwnPropertySymbols
){
var
a
=
Object
.
getOwnPropertySymbols
(
e
);
t
&&
(
a
=
a
.
filter
((
function
(
t
){
return
Object
.
getOwnPropertyDescriptor
(
e
,
t
).
enumerable
}))),
n
.
push
.
apply
(
n
,
a
)}
return
n
}
function
S
(
e
){
for
(
var
t
=
1
;
t
<
arguments
.
length
;
t
++
){
var
n
=
null
!=
arguments
[
t
]?
arguments
[
t
]:{};
t
%
2
?
O
(
Object
(
n
),
!
0
).
forEach
((
function
(
t
){
Object
(
r
[
"
a
"
])(
e
,
t
,
n
[
t
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
e
,
Object
.
getOwnPropertyDescriptors
(
n
)):
O
(
Object
(
n
)).
forEach
((
function
(
t
){
Object
.
defineProperty
(
e
,
t
,
Object
.
getOwnPropertyDescriptor
(
n
,
t
))}))}
return
e
}
var
x
=
{
components
:{
CTable
:
c
[
"
a
"
],
CEditModalUserManagement
:
w
,
SearchCondForm
:
C
[
"
a
"
]},
data
:
function
(){
return
{
searchCondList
:[{
id
:
"
name
"
,
name
:
"
类型名称
"
,
type
:
"
input
"
,
show
:
!
0
,
optList
:[]}],
params
:{
page_index
:
1
,
page_size
:
10
},
tableColumns
:[{
type
:
"
index
"
,
title
:
"
序号
"
,
align
:
"
center
"
,
width
:
80
,
show
:
!
0
,
fixed
:
"
left
"
},{
key
:
"
card
"
,
title
:
"
卡号
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
key
:
"
name
"
,
title
:
"
名称
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
key
:
"
is_tea_name
"
,
title
:
"
用户类型
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
key
:
"
role_name
"
,
title
:
"
角色
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
slot
:
"
room_name_list
"
,
title
:
"
管辖房间
"
,
align
:
"
center
"
,
minWidth
:
350
,
show
:
!
0
},{
slot
:
"
generalSwitch
"
,
title
:
"
启用
"
,
align
:
"
center
"
,
minWidth
:
80
,
show
:
!
0
},{
slot
:
"
action
"
,
title
:
"
操作
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
,
fixed
:
"
right
"
}],
tableLoading
:
!
1
,
tableData
:[],
tableSize
:
"
default
"
,
tableFullscreen
:
!
1
,
dataCount
:
0
,
collapse
:
!
1
,
editModalshow
:
!
1
,
editModalLoading
:
!
1
,
formItem
:[{
id
:
"
cardName
"
,
name
:
"
用戶
"
,
type
:
"
select
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]},{
id
:
"
role_id
"
,
name
:
"
角色
"
,
type
:
"
select
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]},{
id
:
"
room_id_list
"
,
name
:
"
管辖房间
"
,
type
:
"
multipleselectRoomIdList
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]},{
id
:
"
is_enable
"
,
name
:
"
启用
"
,
type
:
"
switch
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]}],
defaultFormData
:{
role_id
:
""
,
card
:
""
,
userid
:
""
,
name
:
""
,
is_enable
:
1
,
is_del
:
0
,
is_tea
:
""
},
addTeacherOrStudentFlag
:
1
,
roleList
:[]}},
watch
:{
"
$refs.ceditmodal.formData.role_id
"
:{
handler
:
function
(
e
,
t
){
console
.
log
(
"
ceditmodal ref changed:
"
,
e
,
t
)},
deep
:
!
0
}},
computed
:{
tableDataCal
:
function
(){
var
e
=
(
this
.
params
.
page_index
-
1
)
*
this
.
params
.
page_size
,
t
=
e
+
this
.
params
.
page_size
;
return
this
.
tableData
.
slice
(
e
,
t
)}},
created
:
function
(){},
mounted
:
function
(){
var
e
=
this
;
this
.
asc
.
getApiCommonGetRoleSelect
().
then
((
function
(
t
){
var
n
=
t
.
response
.
map
((
function
(
e
){
return
S
(
S
({},
e
),{},{
label
:
e
.
name
,
value
:
e
.
id
})}));
e
.
formItem
[
e
.
formItem
.
findIndex
((
function
(
e
){
return
"
role_id
"
==
e
.
id
}))].
optList
=
n
})),
this
.
getRoomSelect
(),
this
.
getData
()},
methods
:{
getRoomSelect
:
function
(){
var
e
=
this
;
D
[
"
getApiCommonGetRoomSelect
"
]().
then
((
function
(
t
){
console
.
log
(
"
场地
"
,
t
),
e
.
formItem
[
e
.
formItem
.
findIndex
((
function
(
e
){
return
"
room_id_list
"
===
e
.
id
}))].
optList
=
t
.
response
.
map
((
function
(
e
){
return
S
(
S
({},
e
),{},{
label
:
e
.
name
,
value
:
e
.
id
})}))}))},
getPeopleList
:
function
(){
var
e
=
this
,
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
""
;
console
.
log
(
"
🚀🚀🚀,
"
,
t
),
D
[
"
getApiCommonGetPersonByCondiction
"
]({
user_type
:
Number
(
this
.
addTeacherOrStudentFlag
),
keyword
:
t
}).
then
((
function
(
t
){
var
n
=
t
.
response
.
map
((
function
(
e
){
return
S
(
S
({},
e
),{},{
label
:
e
.
name
+
"
-
"
+
e
.
card
,
value
:
e
.
name
+
"
-
"
+
e
.
card
})}));
e
.
formItem
[
e
.
formItem
.
findIndex
((
function
(
e
){
return
"
cardName
"
===
e
.
id
}))].
optList
=
n
}))},
search
:
function
(
e
){
var
t
=
this
;
Object
.
keys
(
e
).
forEach
((
function
(
n
){
e
[
n
]?
t
.
params
[
n
]
=
e
[
n
]:
t
.
params
[
n
]
=
""
})),
this
.
onPageChange
(
1
)},
reset
:
function
(){
var
e
=
this
;
this
.
searchCondList
.
forEach
((
function
(
t
){
e
.
params
[
t
.
id
]
=
""
})),
this
.
onPageChange
(
1
)},
getData
:
function
(){
var
e
=
this
;
this
.
tableLoading
=!
0
,
this
.
asc
.
getApiRoleGetRolePowerList
().
then
((
function
(
t
){
e
.
tableData
=
t
.
response
.
map
((
function
(
e
){
return
S
(
S
({},
e
),{},{
room_name_list
:
e
.
room_name
?
e
.
room_name
.
split
(
"
,
"
):[]})})),
console
.
log
(
e
.
tableData
),
e
.
dataCount
=
t
.
response
.
length
,
e
.
tableLoading
=!
1
}))},
switchChange
:
function
(
e
,
t
,
n
){
var
a
=
this
;
k
[
"
myEncapsulationFunction
"
]((
function
(){
return
a
.
asc
.
getApiRoleRolePowerEnable
({
id
:
t
.
id
,
is_enable
:
e
}).
then
((
function
(
e
){
return
1
===
e
.
code
&&
a
.
getData
(),
e
}))}))},
add
:
function
(
e
){
var
t
=
this
,
n
=
{
teacher
:
function
(){
t
.
addTeacherOrStudentFlag
=
1
,
t
.
getPeopleList
()},
student
:
function
(){
t
.
addTeacherOrStudentFlag
=
0
,
t
.
getPeopleList
()}};
n
[
e
](),
this
.
editModalshow
=!
0
,
this
.
formItem
.
find
((
function
(
e
){
return
"
cardName
"
===
e
.
id
})).
disabled
=!
1
,
this
.
$refs
.
ceditmodal
.
modalInit
(
"
add
"
,
this
.
defaultFormData
,
"
新增用户权限
"
)},
rowEdit
:
function
(){
var
e
=
Object
(
o
[
"
a
"
])(
s
.
a
.
mark
((
function
e
(
t
){
var
n
,
a
=
this
;
return
s
.
a
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
this
.
editModalshow
=!
0
,
this
.
editModalLoading
=!
0
,
this
.
addTeacherOrStudentFlag
=
t
.
is_tea
,
e
.
next
=
5
,
new
Promise
((
function
(
e
,
n
){
a
.
asc
.
getApiCommonGetPersonByCondiction
({
user_type
:
t
.
is_tea
,
keyword
:
t
.
card
}).
then
((
function
(
t
){
var
n
=
t
.
response
.
map
((
function
(
e
){
return
S
(
S
({},
e
),{},{
label
:
e
.
name
+
"
-
"
+
e
.
card
,
value
:
e
.
name
+
"
-
"
+
e
.
card
})}));
a
.
formItem
[
a
.
formItem
.
findIndex
((
function
(
e
){
return
"
cardName
"
===
e
.
id
}))].
optList
=
n
,
e
()}))}));
case
5
:
this
.
formItem
.
find
((
function
(
e
){
return
"
cardName
"
===
e
.
id
})).
disabled
=!
0
,
n
=
Object
(
f
[
"
cloneDeep
"
])(
t
),
n
.
place_id
&&
(
n
.
place_id
=
n
.
place_id
.
split
(
"
,
"
)),
n
.
room_id
&&
(
n
.
room_id_list
=
n
.
room_id
.
split
(
"
,
"
)),
n
.
cardName
=
n
.
name
+
"
-
"
+
n
.
card
,
this
.
$refs
.
ceditmodal
.
modalInit
(
"
edit
"
,
n
),
this
.
editModalLoading
=!
1
;
case
12
:
case
"
end
"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(
t
){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
modalSubmit
:
function
(
e
){
var
t
=
this
;
console
.
log
(
"
modal提交
"
,
e
),
e
.
place_id
&&
(
e
.
place_id
=
e
.
place_id
.
join
(
"
,
"
)),
e
.
name
=
e
.
cardName
.
split
(
"
-
"
)[
0
],
e
.
card
=
e
.
cardName
.
split
(
"
-
"
)[
1
],
e
.
is_tea
=
this
.
addTeacherOrStudentFlag
,
delete
e
.
cardName
,
this
.
$Modal
.
confirm
({
title
:
"
提示
"
,
content
:
"
是否确定提交?
"
,
loading
:
!
0
,
onOk
:
function
(){
t
.
asc
.
postApiRoleRolePowerSave
(
e
).
then
((
function
(
e
){
1
==
e
.
code
?(
t
.
$Message
.
success
(
e
.
response
),
t
.
editModalshow
=!
1
,
t
.
getData
()):
t
.
$Message
.
error
(
e
.
msg_detail
)})).
finally
((
function
(){
t
.
$Modal
.
remove
()}))}})},
rowDelete
:
function
(
e
){
var
t
=
this
;
this
.
asc
.
getApiRoleRolePowerDel
({
id
:
e
.
id
,
is_del
:
1
}).
then
((
function
(
e
){
1
==
e
.
code
?(
t
.
$Message
.
success
(
e
.
msg
),
t
.
getData
()):
t
.
$Message
.
error
(
e
.
msg_detail
)}))},
onPageChange
:
function
(
e
){
this
.
params
.
page_index
=
e
},
onPageSizeChange
:
function
(
e
){
this
.
params
.
page_size
=
e
,
1
==
this
.
params
.
page_index
&&
this
.
onPageChange
(
1
)}}},
T
=
x
,
j
=
Object
(
v
[
"
a
"
])(
T
,
a
,
i
,
!
1
,
null
,
null
,
null
);
t
[
"
default
"
]
=
j
.
exports
},
"
69dc
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,[
n
(
"
Form
"
,{
staticClass
:
"
searchDiv
"
,
attrs
:{
model
:
e
.
searchCondObj
,
"
label-width
"
:
e
.
labelWidth
,
"
label-colon
"
:
e
.
labelColon
}},[
n
(
"
Row
"
,[
e
.
_l
(
e
.
searchCondList
.
filter
((
function
(
e
){
return
e
.
show
})),(
function
(
t
){
return
n
(
"
Col
"
,
e
.
_b
({
key
:
t
.
id
},
"
Col
"
,
e
.
grid
,
!
1
),[
n
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
}},[
"
input
"
==
t
.
type
?
n
(
"
Input
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
clearable
:
""
,
placeholder
:
"
请输入
"
+
t
.
name
},
model
:{
value
:
e
.
searchCondObj
[
t
.
id
],
callback
:
function
(
n
){
e
.
$set
(
e
.
searchCondObj
,
t
.
id
,
n
)},
expression
:
"
searchCondObj[item.id]
"
}}):
"
select
"
==
t
.
type
?
n
(
"
Select
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
clearable
:
""
,
placeholder
:
"
请选择
"
+
t
.
name
},
model
:{
value
:
e
.
searchCondObj
[
t
.
id
],
callback
:
function
(
n
){
e
.
$set
(
e
.
searchCondObj
,
t
.
id
,
n
)},
expression
:
"
searchCondObj[item.id]
"
}},
e
.
_l
(
t
.
optList
,(
function
(
t
){
return
n
(
"
Option
"
,{
key
:
t
.
value
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
):
"
datetime
"
==
t
.
type
?
n
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
datetime
"
,
format
:
"
yyyy-MM-dd HH:mm
"
,
placeholder
:
"
请选择
"
+
t
.
name
},
on
:{
"
on-change
"
:
function
(
n
,
a
){
return
e
.
datetimeChange
(
n
,
a
,
t
.
id
)}},
model
:{
value
:
e
.
searchCondObj
[
t
[
"
id
"
]],
callback
:
function
(
n
){
e
.
$set
(
e
.
searchCondObj
,
t
[
"
id
"
],
n
)},
expression
:
"
searchCondObj[item['id']]
"
}}):
"
date
"
==
t
.
type
?
n
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
date
"
,
format
:
"
yyyy-MM-dd
"
,
placeholder
:
"
请选择
"
+
t
.
name
},
on
:{
"
on-change
"
:
function
(
n
,
a
){
return
e
.
datetimeChange1
(
n
,
a
,
t
.
id
)}},
model
:{
value
:
e
.
searchCondObj
[
t
[
"
id
"
]],
callback
:
function
(
n
){
e
.
$set
(
e
.
searchCondObj
,
t
[
"
id
"
],
n
)},
expression
:
"
searchCondObj[item['id']]
"
}}):
e
.
_e
()],
1
)],
1
)})),
n
(
"
Col
"
,
e
.
_b
({
staticClass
:
"
buttonCol
"
},
"
Col
"
,
e
.
grid
,
!
1
),[
n
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
searchBt
}},[
e
.
_v
(
"
查询
"
)]),
n
(
"
Button
"
,{
on
:{
click
:
e
.
resetBt
}},[
e
.
_v
(
"
重置
"
)])],
1
)],
2
)],
1
)],
1
)},
i
=
[],
o
=
(
n
(
"
c5f6
"
),{
props
:{
searchCondList
:{
type
:
Array
,
require
:
!
0
},
labelWidth
:{
type
:
Number
,
default
:
100
},
labelColon
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
return
{
grid
:{
sm
:
12
,
md
:
12
,
lg
:
8
,
xl
:
6
},
searchCondObj
:{}}},
computed
:{},
created
:
function
(){},
mounted
:
function
(){},
methods
:{
searchBt
:
function
(){
this
.
$emit
(
"
onSubmit
"
,
this
.
searchCondObj
)},
resetBt
:
function
(){
this
.
searchCondObj
=
{},
this
.
$emit
(
"
onReset
"
)},
datetimeChange
:
function
(
e
,
t
,
n
){
this
.
searchCondObj
[
n
]
=
e
},
datetimeChange1
:
function
(
e
,
t
,
n
){
this
.
searchCondObj
[
n
]
=
e
}}}),
r
=
o
,
l
=
(
n
(
"
0f7c6
"
),
n
(
"
2877
"
)),
s
=
Object
(
l
[
"
a
"
])(
r
,
a
,
i
,
!
1
,
null
,
"
28ca940a
"
,
null
);
t
[
"
a
"
]
=
s
.
exports
},
"
702f
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
(
"
51cb
"
)},
"
768b
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
.
d
(
t
,
"
a
"
,(
function
(){
return
f
}));
var
a
=
n
(
"
a745
"
),
i
=
n
.
n
(
a
);
function
o
(
e
){
if
(
i
()(
e
))
return
e
}
var
r
=
n
(
"
67bb
"
),
l
=
n
.
n
(
r
),
s
=
n
(
"
5d58
"
),
c
=
n
.
n
(
s
);
function
d
(
e
,
t
){
var
n
=
null
==
e
?
null
:
"
undefined
"
!==
typeof
l
.
a
&&
e
[
c
.
a
]
||
e
[
"
@@iterator
"
];
if
(
null
!=
n
){
var
a
,
i
,
o
=
[],
r
=!
0
,
s
=!
1
;
try
{
for
(
n
=
n
.
call
(
e
);
!
(
r
=
(
a
=
n
.
next
()).
done
);
r
=!
0
)
if
(
o
.
push
(
a
.
value
),
t
&&
o
.
length
===
t
)
break
}
catch
(
d
){
s
=!
0
,
i
=
d
}
finally
{
try
{
r
||
null
==
n
[
"
return
"
]
||
n
[
"
return
"
]()}
finally
{
if
(
s
)
throw
i
}}
return
o
}}
var
u
=
n
(
"
e630
"
);
function
m
(){
throw
new
TypeError
(
"
Invalid attempt to destructure non-iterable instance.
\n
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
"
)}
function
f
(
e
,
t
){
return
o
(
e
)
||
d
(
e
,
t
)
||
Object
(
u
[
"
a
"
])(
e
,
t
)
||
m
()}},
"
84af
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,[
n
(
"
Table
"
,{
staticClass
:
"
ivu-mt
"
,
attrs
:{
columns
:
e
.
tableColumns
,
data
:
e
.
tableData
,
loading
:
e
.
tableLoading
,
size
:
e
.
tableSize
},
scopedSlots
:
e
.
_u
([{
key
:
"
generalSwitch
"
,
fn
:
function
(
t
){
var
a
=
t
.
row
,
i
=
t
.
index
;
return
[
n
(
"
i-switch
"
,{
attrs
:{
size
:
"
large
"
,
"
true-value
"
:
1
,
"
false-value
"
:
0
},
on
:{
"
on-change
"
:
function
(
t
){
return
e
.
switchChange
(
t
,
a
,
i
)}},
model
:{
value
:
a
.
is_enable
,
callback
:
function
(
t
){
e
.
$set
(
a
,
"
is_enable
"
,
t
)},
expression
:
"
row.is_enable
"
}},[
n
(
"
span
"
,{
attrs
:{
slot
:
"
open
"
,
type
:
"
md-checkmark
"
},
slot
:
"
open
"
},[
e
.
_v
(
"
启用
"
)]),
n
(
"
span
"
,{
attrs
:{
slot
:
"
close
"
,
type
:
"
md-close
"
},
slot
:
"
close
"
},[
e
.
_v
(
"
停用
"
)])])]}},{
key
:
"
action
"
,
fn
:
function
(
t
){
var
a
=
t
.
row
;
return
[
n
(
"
Button
"
,{
attrs
:{
type
:
"
info
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
t
){
return
e
.
edit
(
a
)}}},[
e
.
_v
(
"
编辑
"
)]),
n
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
transfer
:
""
,
title
:
"
是否确认删除?
"
},
on
:{
"
on-ok
"
:
function
(
t
){
return
e
.
del
(
a
)}}},[
n
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
error
"
,
size
:
"
small
"
}},[
e
.
_v
(
"
删除
"
)])],
1
)]}},{
key
:
"
actionAndDetails
"
,
fn
:
function
(
t
){
var
a
=
t
.
row
;
return
[
n
(
"
a
"
,{
on
:{
click
:
function
(
t
){
return
e
.
details
(
a
)}}},[
e
.
_v
(
"
详情
"
)]),
n
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
info
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
t
){
return
e
.
edit
(
a
)}}},[
e
.
_v
(
"
编辑
"
)]),
n
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
transfer
:
""
,
title
:
"
是否确认删除?
"
},
on
:{
"
on-ok
"
:
function
(
t
){
return
e
.
del
(
a
)}}},[
n
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
error
"
,
size
:
"
small
"
}},[
e
.
_v
(
"
删除
"
)])],
1
)]}},
e
.
_l
(
e
.
$scopedSlots
,(
function
(
t
,
n
){
return
{
key
:
n
,
fn
:
function
(
t
){
return
[
e
.
_t
(
n
,
null
,
null
,
t
)]}}}))],
null
,
!
0
)}),
n
(
"
div
"
,{
staticClass
:
"
ivu-text-center ivu-mt
"
},[
n
(
"
Page
"
,{
attrs
:{
total
:
e
.
dataCount
,
current
:
e
.
pageIndex
,
"
page-size
"
:
e
.
pageSize
,
"
page-size-opts
"
:
e
.
pageSizeOpts
,
"
show-total
"
:
""
,
"
show-sizer
"
:
""
},
on
:{
"
on-change
"
:
e
.
handleChangePage
,
"
on-page-size-change
"
:
e
.
handleChangePageSize
}})],
1
)],
1
)},
i
=
[],
o
=
(
n
(
"
c5f6
"
),{
props
:{
tableColumns
:{
type
:
Array
,
require
:
!
0
},
tableData
:{
type
:
Array
,
require
:
!
0
},
tableLoading
:{
type
:
Boolean
,
default
:
!
1
},
tableSize
:{
type
:
String
,
default
:
"
default
"
},
dataCount
:{
type
:
Number
,
require
:
!
0
},
pageIndex
:{
type
:
Number
,
require
:
!
0
},
pageSize
:{
type
:
Number
,
require
:
!
0
},
pageSizeOpts
:{
type
:
Array
,
default
:
function
(){
return
[
10
,
20
,
50
,
100
]}}},
data
:
function
(){
return
{}},
computed
:{},
created
:
function
(){},
mounted
:
function
(){},
methods
:{
switchChange
:
function
(
e
,
t
,
n
){
this
.
$emit
(
"
switchChange
"
,
e
,
t
,
n
)},
details
:
function
(
e
){
this
.
$emit
(
"
rowDetails
"
,
e
)},
edit
:
function
(
e
){
this
.
$emit
(
"
rowEdit
"
,
e
)},
del
:
function
(
e
){
this
.
$emit
(
"
rowDelete
"
,
e
)},
handleChangePage
:
function
(
e
){
this
.
$emit
(
"
onPageChange
"
,
e
)},
handleChangePageSize
:
function
(
e
){
this
.
$emit
(
"
onPageSizeChange
"
,
e
)}}}),
r
=
o
,
l
=
n
(
"
2877
"
),
s
=
Object
(
l
[
"
a
"
])(
r
,
a
,
i
,
!
1
,
null
,
"
3fc26d08
"
,
null
);
t
[
"
a
"
]
=
s
.
exports
},
9744
:
function
(
e
,
t
,
n
){
"
use strict
"
;
var
a
=
n
(
"
4588
"
),
i
=
n
(
"
be13
"
);
e
.
exports
=
function
(
e
){
var
t
=
String
(
i
(
this
)),
n
=
""
,
o
=
a
(
e
);
if
(
o
<
0
||
o
==
1
/
0
)
throw
RangeError
(
"
Count can't be negative
"
);
for
(;
o
>
0
;(
o
>>>=
1
)
&&
(
t
+=
t
))
1
&
o
&&
(
n
+=
t
);
return
n
}},
9795
:
function
(
e
,
t
,
n
){},
f576
:
function
(
e
,
t
,
n
){
"
use strict
"
;
var
a
=
n
(
"
5ca1
"
),
i
=
n
(
"
2e08
"
),
o
=
n
(
"
a25f
"
),
r
=
/Version
\/
10
\.\d
+
(\.\d
+
)?(
Mobile
\/\w
+
)?
Safari
\/
/
.
test
(
o
);
a
(
a
.
P
+
a
.
F
*
r
,
"
String
"
,{
padStart
:
function
(
e
){
return
i
(
this
,
e
,
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
!
0
)}})}}]);
\ No newline at end of file
dist/js/chunk-4b2a2114.3cc66595.js
已删除
100644 → 0
浏览文件 @
91e03960
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-4b2a2114
"
],{
"
0f7c6
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
(
"
9795
"
)},
"
689e
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
n
.
r
(
t
);
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,[
n
(
"
Card
"
,{
ref
:
"
card
"
},[
n
(
"
Button
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
function
(
t
){
return
e
.
add
(
"
teacher
"
)}}},[
n
(
"
Icon
"
,{
attrs
:{
type
:
"
md-add
"
}}),
e
.
_v
(
"
\n
新增教师
\n
"
)],
1
),
n
(
"
Button
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
function
(
t
){
return
e
.
add
(
"
student
"
)}}},[
n
(
"
Icon
"
,{
attrs
:{
type
:
"
md-add
"
}}),
e
.
_v
(
"
\n
新增学生
\n
"
)],
1
),
n
(
"
CTable
"
,{
attrs
:{
tableColumns
:
e
.
tableColumns
.
filter
((
function
(
e
){
return
e
.
show
})),
tableData
:
e
.
tableDataCal
,
tableLoading
:
e
.
tableLoading
,
tableSize
:
e
.
tableSize
,
dataCount
:
e
.
dataCount
,
pageIndex
:
e
.
params
.
page_index
,
pageSize
:
e
.
params
.
page_size
},
on
:{
switchChange
:
e
.
switchChange
,
rowEdit
:
e
.
rowEdit
,
rowDelete
:
e
.
rowDelete
,
onPageChange
:
e
.
onPageChange
,
onPageSizeChange
:
e
.
onPageSizeChange
},
scopedSlots
:
e
.
_u
([{
key
:
"
room_name_list
"
,
fn
:
function
(
t
){
var
a
=
t
.
row
;
return
e
.
_l
(
a
.
room_name_list
,(
function
(
t
,
a
){
return
n
(
"
Tag
"
,{
key
:
a
,
attrs
:{
color
:
"
blue
"
}},[
e
.
_v
(
e
.
_s
(
t
))])}))}},{
key
:
"
place_name
"
,
fn
:
function
(
e
){
var
t
=
e
.
row
;
return
[
n
(
"
Ellipsis
"
,{
attrs
:{
transfer
:
!
0
,
text
:
t
.
place_name
,
height
:
80
,
tooltip
:
""
}})]}}])}),
n
(
"
CEditModal
"
,{
ref
:
"
ceditmodal
"
,
attrs
:{
formItem
:
e
.
formItem
,
loading
:
e
.
editModalLoading
,
formLabelWidth
:
100
,
width
:
800
},
on
:{
onClose
:
function
(
t
){
e
.
editModalshow
=!
1
},
getPeopleList
:
e
.
getPeopleList
,
onSubmit
:
e
.
modalSubmit
},
model
:{
value
:
e
.
editModalshow
,
callback
:
function
(
t
){
e
.
editModalshow
=
t
},
expression
:
"
editModalshow
"
}})],
1
)],
1
)},
i
=
[],
o
=
(
n
(
"
8e6e
"
),
n
(
"
96cf
"
),
n
(
"
3b8d
"
)),
r
=
(
n
(
"
7514
"
),
n
(
"
28a5
"
),
n
(
"
456d
"
),
n
(
"
ac6a
"
),
n
(
"
c5f6
"
),
n
(
"
20d6
"
),
n
(
"
7f7f
"
),
n
(
"
bd86
"
)),
s
=
n
(
"
967e
"
),
l
=
n
.
n
(
s
),
c
=
n
(
"
84af
"
),
d
=
n
(
"
ee00
"
),
u
=
n
(
"
69dc
"
),
m
=
n
(
"
2ef0
"
),
h
=
n
(
"
d02c
"
),
p
=
n
(
"
61be
"
);
function
f
(
e
,
t
){
var
n
=
Object
.
keys
(
e
);
if
(
Object
.
getOwnPropertySymbols
){
var
a
=
Object
.
getOwnPropertySymbols
(
e
);
t
&&
(
a
=
a
.
filter
((
function
(
t
){
return
Object
.
getOwnPropertyDescriptor
(
e
,
t
).
enumerable
}))),
n
.
push
.
apply
(
n
,
a
)}
return
n
}
function
g
(
e
){
for
(
var
t
=
1
;
t
<
arguments
.
length
;
t
++
){
var
n
=
null
!=
arguments
[
t
]?
arguments
[
t
]:{};
t
%
2
?
f
(
Object
(
n
),
!
0
).
forEach
((
function
(
t
){
Object
(
r
[
"
a
"
])(
e
,
t
,
n
[
t
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
e
,
Object
.
getOwnPropertyDescriptors
(
n
)):
f
(
Object
(
n
)).
forEach
((
function
(
t
){
Object
.
defineProperty
(
e
,
t
,
Object
.
getOwnPropertyDescriptor
(
n
,
t
))}))}
return
e
}
var
b
=
{
components
:{
CTable
:
c
[
"
a
"
],
CEditModal
:
d
[
"
a
"
],
SearchCondForm
:
u
[
"
a
"
]},
data
:
function
(){
return
{
searchCondList
:[{
id
:
"
name
"
,
name
:
"
类型名称
"
,
type
:
"
input
"
,
show
:
!
0
,
optList
:[]}],
params
:{
page_index
:
1
,
page_size
:
10
},
tableColumns
:[{
type
:
"
index
"
,
title
:
"
序号
"
,
align
:
"
center
"
,
width
:
80
,
show
:
!
0
,
fixed
:
"
left
"
},{
key
:
"
card
"
,
title
:
"
卡号
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
key
:
"
name
"
,
title
:
"
名称
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
key
:
"
is_tea_name
"
,
title
:
"
用户类型
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
key
:
"
role_name
"
,
title
:
"
角色
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
slot
:
"
room_name_list
"
,
title
:
"
管辖房间
"
,
align
:
"
center
"
,
minWidth
:
350
,
show
:
!
0
},{
slot
:
"
generalSwitch
"
,
title
:
"
启用
"
,
align
:
"
center
"
,
minWidth
:
80
,
show
:
!
0
},{
slot
:
"
action
"
,
title
:
"
操作
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
,
fixed
:
"
right
"
}],
tableLoading
:
!
1
,
tableData
:[],
tableSize
:
"
default
"
,
tableFullscreen
:
!
1
,
dataCount
:
0
,
collapse
:
!
1
,
editModalshow
:
!
1
,
editModalLoading
:
!
1
,
formItem
:[{
id
:
"
cardName
"
,
name
:
"
用戶
"
,
type
:
"
select
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]},{
id
:
"
role_id
"
,
name
:
"
角色
"
,
type
:
"
select
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]},{
id
:
"
room_id_list
"
,
name
:
"
管辖房间
"
,
type
:
"
multipleselect
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]},{
id
:
"
is_enable
"
,
name
:
"
启用
"
,
type
:
"
switch
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]}],
defaultFormData
:{
role_id
:
""
,
card
:
""
,
userid
:
""
,
name
:
""
,
is_enable
:
1
,
is_del
:
0
,
is_tea
:
""
},
addTeacherOrStudentFlag
:
1
,
roleList
:[]}},
computed
:{
tableDataCal
:
function
(){
var
e
=
(
this
.
params
.
page_index
-
1
)
*
this
.
params
.
page_size
,
t
=
e
+
this
.
params
.
page_size
;
return
this
.
tableData
.
slice
(
e
,
t
)}},
created
:
function
(){},
mounted
:
function
(){
var
e
=
this
;
this
.
asc
.
getApiCommonGetRoleSelect
().
then
((
function
(
t
){
var
n
=
t
.
response
.
map
((
function
(
e
){
return
g
(
g
({},
e
),{},{
label
:
e
.
name
,
value
:
e
.
id
})}));
e
.
formItem
[
e
.
formItem
.
findIndex
((
function
(
e
){
return
"
role_id
"
==
e
.
id
}))].
optList
=
n
})),
this
.
getRoomSelect
(),
this
.
getData
()},
methods
:{
getRoomSelect
:
function
(){
var
e
=
this
;
h
[
"
getApiCommonGetRoomSelect
"
]().
then
((
function
(
t
){
console
.
log
(
"
场地
"
,
t
),
e
.
formItem
[
e
.
formItem
.
findIndex
((
function
(
e
){
return
"
room_id_list
"
===
e
.
id
}))].
optList
=
t
.
response
.
map
((
function
(
e
){
return
g
(
g
({},
e
),{},{
label
:
e
.
name
,
value
:
e
.
id
})}))}))},
getPeopleList
:
function
(){
var
e
=
this
,
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
""
;
console
.
log
(
"
🚀🚀🚀,
"
,
t
),
h
[
"
getApiCommonGetPersonByCondiction
"
]({
user_type
:
Number
(
this
.
addTeacherOrStudentFlag
),
keyword
:
t
}).
then
((
function
(
t
){
var
n
=
t
.
response
.
map
((
function
(
e
){
return
g
(
g
({},
e
),{},{
label
:
e
.
name
+
"
-
"
+
e
.
card
,
value
:
e
.
name
+
"
-
"
+
e
.
card
})}));
e
.
formItem
[
e
.
formItem
.
findIndex
((
function
(
e
){
return
"
cardName
"
===
e
.
id
}))].
optList
=
n
}))},
search
:
function
(
e
){
var
t
=
this
;
Object
.
keys
(
e
).
forEach
((
function
(
n
){
e
[
n
]?
t
.
params
[
n
]
=
e
[
n
]:
t
.
params
[
n
]
=
""
})),
this
.
onPageChange
(
1
)},
reset
:
function
(){
var
e
=
this
;
this
.
searchCondList
.
forEach
((
function
(
t
){
e
.
params
[
t
.
id
]
=
""
})),
this
.
onPageChange
(
1
)},
getData
:
function
(){
var
e
=
this
;
this
.
tableLoading
=!
0
,
this
.
asc
.
getApiRoleGetRolePowerList
().
then
((
function
(
t
){
e
.
tableData
=
t
.
response
.
map
((
function
(
e
){
return
g
(
g
({},
e
),{},{
room_name_list
:
e
.
room_name
?
e
.
room_name
.
split
(
"
,
"
):[]})})),
console
.
log
(
e
.
tableData
),
e
.
dataCount
=
t
.
response
.
length
,
e
.
tableLoading
=!
1
}))},
switchChange
:
function
(
e
,
t
,
n
){
var
a
=
this
;
p
[
"
myEncapsulationFunction
"
]((
function
(){
return
a
.
asc
.
getApiRoleRolePowerEnable
({
id
:
t
.
id
,
is_enable
:
e
}).
then
((
function
(
e
){
return
1
===
e
.
code
&&
a
.
getData
(),
e
}))}))},
add
:
function
(
e
){
var
t
=
this
,
n
=
{
teacher
:
function
(){
t
.
addTeacherOrStudentFlag
=
1
,
t
.
getPeopleList
()},
student
:
function
(){
t
.
addTeacherOrStudentFlag
=
0
,
t
.
getPeopleList
()}};
n
[
e
](),
this
.
editModalshow
=!
0
,
this
.
formItem
.
find
((
function
(
e
){
return
"
cardName
"
===
e
.
id
})).
disabled
=!
1
,
this
.
$refs
.
ceditmodal
.
modalInit
(
"
add
"
,
this
.
defaultFormData
,
"
新增用户权限
"
)},
rowEdit
:
function
(){
var
e
=
Object
(
o
[
"
a
"
])(
l
.
a
.
mark
((
function
e
(
t
){
var
n
,
a
=
this
;
return
l
.
a
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
this
.
editModalshow
=!
0
,
this
.
editModalLoading
=!
0
,
this
.
addTeacherOrStudentFlag
=
t
.
is_tea
,
e
.
next
=
5
,
new
Promise
((
function
(
e
,
n
){
a
.
asc
.
getApiCommonGetPersonByCondiction
({
user_type
:
t
.
is_tea
,
keyword
:
t
.
card
}).
then
((
function
(
t
){
var
n
=
t
.
response
.
map
((
function
(
e
){
return
g
(
g
({},
e
),{},{
label
:
e
.
name
+
"
-
"
+
e
.
card
,
value
:
e
.
name
+
"
-
"
+
e
.
card
})}));
a
.
formItem
[
a
.
formItem
.
findIndex
((
function
(
e
){
return
"
cardName
"
===
e
.
id
}))].
optList
=
n
,
e
()}))}));
case
5
:
this
.
formItem
.
find
((
function
(
e
){
return
"
cardName
"
===
e
.
id
})).
disabled
=!
0
,
n
=
Object
(
m
[
"
cloneDeep
"
])(
t
),
n
.
place_id
&&
(
n
.
place_id
=
n
.
place_id
.
split
(
"
,
"
)),
n
.
room_id
&&
(
n
.
room_id_list
=
n
.
room_id
.
split
(
"
,
"
)),
n
.
cardName
=
n
.
name
+
"
-
"
+
n
.
card
,
this
.
$refs
.
ceditmodal
.
modalInit
(
"
edit
"
,
n
),
this
.
editModalLoading
=!
1
;
case
12
:
case
"
end
"
:
return
e
.
stop
()}}),
e
,
this
)})));
function
t
(
t
){
return
e
.
apply
(
this
,
arguments
)}
return
t
}(),
modalSubmit
:
function
(
e
){
var
t
=
this
;
console
.
log
(
"
modal提交
"
,
e
),
e
.
place_id
&&
(
e
.
place_id
=
e
.
place_id
.
join
(
"
,
"
)),
e
.
name
=
e
.
cardName
.
split
(
"
-
"
)[
0
],
e
.
card
=
e
.
cardName
.
split
(
"
-
"
)[
1
],
e
.
is_tea
=
this
.
addTeacherOrStudentFlag
,
delete
e
.
cardName
,
this
.
$Modal
.
confirm
({
title
:
"
提示
"
,
content
:
"
是否确定提交?
"
,
loading
:
!
0
,
onOk
:
function
(){
t
.
asc
.
postApiRoleRolePowerSave
(
e
).
then
((
function
(
e
){
1
==
e
.
code
?(
t
.
$Message
.
success
(
e
.
response
),
t
.
editModalshow
=!
1
,
t
.
getData
()):
t
.
$Message
.
error
(
e
.
msg_detail
)})).
finally
((
function
(){
t
.
$Modal
.
remove
()}))}})},
rowDelete
:
function
(
e
){
var
t
=
this
;
this
.
asc
.
getApiRoleRolePowerDel
({
id
:
e
.
id
,
is_del
:
1
}).
then
((
function
(
e
){
1
==
e
.
code
?(
t
.
$Message
.
success
(
e
.
msg
),
t
.
getData
()):
t
.
$Message
.
error
(
e
.
msg_detail
)}))},
onPageChange
:
function
(
e
){
this
.
params
.
page_index
=
e
},
onPageSizeChange
:
function
(
e
){
this
.
params
.
page_size
=
e
,
1
==
this
.
params
.
page_index
&&
this
.
onPageChange
(
1
)}}},
y
=
b
,
_
=
n
(
"
2877
"
),
C
=
Object
(
_
[
"
a
"
])(
y
,
a
,
i
,
!
1
,
null
,
null
,
null
);
t
[
"
default
"
]
=
C
.
exports
},
"
69dc
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,[
n
(
"
Form
"
,{
staticClass
:
"
searchDiv
"
,
attrs
:{
model
:
e
.
searchCondObj
,
"
label-width
"
:
e
.
labelWidth
,
"
label-colon
"
:
e
.
labelColon
}},[
n
(
"
Row
"
,[
e
.
_l
(
e
.
searchCondList
.
filter
((
function
(
e
){
return
e
.
show
})),(
function
(
t
){
return
n
(
"
Col
"
,
e
.
_b
({
key
:
t
.
id
},
"
Col
"
,
e
.
grid
,
!
1
),[
n
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
}},[
"
input
"
==
t
.
type
?
n
(
"
Input
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
clearable
:
""
,
placeholder
:
"
请输入
"
+
t
.
name
},
model
:{
value
:
e
.
searchCondObj
[
t
.
id
],
callback
:
function
(
n
){
e
.
$set
(
e
.
searchCondObj
,
t
.
id
,
n
)},
expression
:
"
searchCondObj[item.id]
"
}}):
"
select
"
==
t
.
type
?
n
(
"
Select
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
clearable
:
""
,
placeholder
:
"
请选择
"
+
t
.
name
},
model
:{
value
:
e
.
searchCondObj
[
t
.
id
],
callback
:
function
(
n
){
e
.
$set
(
e
.
searchCondObj
,
t
.
id
,
n
)},
expression
:
"
searchCondObj[item.id]
"
}},
e
.
_l
(
t
.
optList
,(
function
(
t
){
return
n
(
"
Option
"
,{
key
:
t
.
value
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
):
"
datetime
"
==
t
.
type
?
n
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
datetime
"
,
format
:
"
yyyy-MM-dd HH:mm
"
,
placeholder
:
"
请选择
"
+
t
.
name
},
on
:{
"
on-change
"
:
function
(
n
,
a
){
return
e
.
datetimeChange
(
n
,
a
,
t
.
id
)}},
model
:{
value
:
e
.
searchCondObj
[
t
[
"
id
"
]],
callback
:
function
(
n
){
e
.
$set
(
e
.
searchCondObj
,
t
[
"
id
"
],
n
)},
expression
:
"
searchCondObj[item['id']]
"
}}):
"
date
"
==
t
.
type
?
n
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
date
"
,
format
:
"
yyyy-MM-dd
"
,
placeholder
:
"
请选择
"
+
t
.
name
},
on
:{
"
on-change
"
:
function
(
n
,
a
){
return
e
.
datetimeChange1
(
n
,
a
,
t
.
id
)}},
model
:{
value
:
e
.
searchCondObj
[
t
[
"
id
"
]],
callback
:
function
(
n
){
e
.
$set
(
e
.
searchCondObj
,
t
[
"
id
"
],
n
)},
expression
:
"
searchCondObj[item['id']]
"
}}):
e
.
_e
()],
1
)],
1
)})),
n
(
"
Col
"
,
e
.
_b
({
staticClass
:
"
buttonCol
"
},
"
Col
"
,
e
.
grid
,
!
1
),[
n
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
searchBt
}},[
e
.
_v
(
"
查询
"
)]),
n
(
"
Button
"
,{
on
:{
click
:
e
.
resetBt
}},[
e
.
_v
(
"
重置
"
)])],
1
)],
2
)],
1
)],
1
)},
i
=
[],
o
=
(
n
(
"
c5f6
"
),{
props
:{
searchCondList
:{
type
:
Array
,
require
:
!
0
},
labelWidth
:{
type
:
Number
,
default
:
100
},
labelColon
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
return
{
grid
:{
sm
:
12
,
md
:
12
,
lg
:
8
,
xl
:
6
},
searchCondObj
:{}}},
computed
:{},
created
:
function
(){},
mounted
:
function
(){},
methods
:{
searchBt
:
function
(){
this
.
$emit
(
"
onSubmit
"
,
this
.
searchCondObj
)},
resetBt
:
function
(){
this
.
searchCondObj
=
{},
this
.
$emit
(
"
onReset
"
)},
datetimeChange
:
function
(
e
,
t
,
n
){
this
.
searchCondObj
[
n
]
=
e
},
datetimeChange1
:
function
(
e
,
t
,
n
){
this
.
searchCondObj
[
n
]
=
e
}}}),
r
=
o
,
s
=
(
n
(
"
0f7c6
"
),
n
(
"
2877
"
)),
l
=
Object
(
s
[
"
a
"
])(
r
,
a
,
i
,
!
1
,
null
,
"
28ca940a
"
,
null
);
t
[
"
a
"
]
=
l
.
exports
},
"
84af
"
:
function
(
e
,
t
,
n
){
"
use strict
"
;
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,[
n
(
"
Table
"
,{
staticClass
:
"
ivu-mt
"
,
attrs
:{
columns
:
e
.
tableColumns
,
data
:
e
.
tableData
,
loading
:
e
.
tableLoading
,
size
:
e
.
tableSize
},
scopedSlots
:
e
.
_u
([{
key
:
"
generalSwitch
"
,
fn
:
function
(
t
){
var
a
=
t
.
row
,
i
=
t
.
index
;
return
[
n
(
"
i-switch
"
,{
attrs
:{
size
:
"
large
"
,
"
true-value
"
:
1
,
"
false-value
"
:
0
},
on
:{
"
on-change
"
:
function
(
t
){
return
e
.
switchChange
(
t
,
a
,
i
)}},
model
:{
value
:
a
.
is_enable
,
callback
:
function
(
t
){
e
.
$set
(
a
,
"
is_enable
"
,
t
)},
expression
:
"
row.is_enable
"
}},[
n
(
"
span
"
,{
attrs
:{
slot
:
"
open
"
,
type
:
"
md-checkmark
"
},
slot
:
"
open
"
},[
e
.
_v
(
"
启用
"
)]),
n
(
"
span
"
,{
attrs
:{
slot
:
"
close
"
,
type
:
"
md-close
"
},
slot
:
"
close
"
},[
e
.
_v
(
"
停用
"
)])])]}},{
key
:
"
action
"
,
fn
:
function
(
t
){
var
a
=
t
.
row
;
return
[
n
(
"
Button
"
,{
attrs
:{
type
:
"
info
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
t
){
return
e
.
edit
(
a
)}}},[
e
.
_v
(
"
编辑
"
)]),
n
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
transfer
:
""
,
title
:
"
是否确认删除?
"
},
on
:{
"
on-ok
"
:
function
(
t
){
return
e
.
del
(
a
)}}},[
n
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
error
"
,
size
:
"
small
"
}},[
e
.
_v
(
"
删除
"
)])],
1
)]}},{
key
:
"
actionAndDetails
"
,
fn
:
function
(
t
){
var
a
=
t
.
row
;
return
[
n
(
"
a
"
,{
on
:{
click
:
function
(
t
){
return
e
.
details
(
a
)}}},[
e
.
_v
(
"
详情
"
)]),
n
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
info
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
t
){
return
e
.
edit
(
a
)}}},[
e
.
_v
(
"
编辑
"
)]),
n
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
transfer
:
""
,
title
:
"
是否确认删除?
"
},
on
:{
"
on-ok
"
:
function
(
t
){
return
e
.
del
(
a
)}}},[
n
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
error
"
,
size
:
"
small
"
}},[
e
.
_v
(
"
删除
"
)])],
1
)]}},
e
.
_l
(
e
.
$scopedSlots
,(
function
(
t
,
n
){
return
{
key
:
n
,
fn
:
function
(
t
){
return
[
e
.
_t
(
n
,
null
,
null
,
t
)]}}}))],
null
,
!
0
)}),
n
(
"
div
"
,{
staticClass
:
"
ivu-text-center ivu-mt
"
},[
n
(
"
Page
"
,{
attrs
:{
total
:
e
.
dataCount
,
current
:
e
.
pageIndex
,
"
page-size
"
:
e
.
pageSize
,
"
page-size-opts
"
:
e
.
pageSizeOpts
,
"
show-total
"
:
""
,
"
show-sizer
"
:
""
},
on
:{
"
on-change
"
:
e
.
handleChangePage
,
"
on-page-size-change
"
:
e
.
handleChangePageSize
}})],
1
)],
1
)},
i
=
[],
o
=
(
n
(
"
c5f6
"
),{
props
:{
tableColumns
:{
type
:
Array
,
require
:
!
0
},
tableData
:{
type
:
Array
,
require
:
!
0
},
tableLoading
:{
type
:
Boolean
,
default
:
!
1
},
tableSize
:{
type
:
String
,
default
:
"
default
"
},
dataCount
:{
type
:
Number
,
require
:
!
0
},
pageIndex
:{
type
:
Number
,
require
:
!
0
},
pageSize
:{
type
:
Number
,
require
:
!
0
},
pageSizeOpts
:{
type
:
Array
,
default
:
function
(){
return
[
10
,
20
,
50
,
100
]}}},
data
:
function
(){
return
{}},
computed
:{},
created
:
function
(){},
mounted
:
function
(){},
methods
:{
switchChange
:
function
(
e
,
t
,
n
){
this
.
$emit
(
"
switchChange
"
,
e
,
t
,
n
)},
details
:
function
(
e
){
this
.
$emit
(
"
rowDetails
"
,
e
)},
edit
:
function
(
e
){
this
.
$emit
(
"
rowEdit
"
,
e
)},
del
:
function
(
e
){
this
.
$emit
(
"
rowDelete
"
,
e
)},
handleChangePage
:
function
(
e
){
this
.
$emit
(
"
onPageChange
"
,
e
)},
handleChangePageSize
:
function
(
e
){
this
.
$emit
(
"
onPageSizeChange
"
,
e
)}}}),
r
=
o
,
s
=
n
(
"
2877
"
),
l
=
Object
(
s
[
"
a
"
])(
r
,
a
,
i
,
!
1
,
null
,
"
3fc26d08
"
,
null
);
t
[
"
a
"
]
=
l
.
exports
},
9795
:
function
(
e
,
t
,
n
){}}]);
\ No newline at end of file
src/components/CEditModalUserManagement.vue
0 → 100644
浏览文件 @
2fa4b0b7
<
template
>
<!-- 通用新增、编辑Modal -->
<div>
<!-- timeTable 添加班次抽屉 -->
<Drawer
v-model=
"showDrawer"
class=
"class-drawer"
title=
"配置开放时间"
transfer
width=
"800"
>
<!--
<div
class=
"subTitle"
>
打卡时段
</div>
-->
<div
style=
"margin-top: 20px"
>
<!-- 第一次上班 -->
<Card
dis-hover
>
<Row
style=
"
margin-bottom: 10px;
padding: 12px 0;
background-color: #f6f6f6;
"
>
<Col
span=
"14"
>
开放范围限制
</Col>
</Row>
<Row
style=
"margin-bottom: 10px"
>
<Col
v-for=
"(item,index) in formDataTimeTable.time"
:key=
"index"
span=
"24"
style=
"margin-bottom: 10px;display: flex;align-items: center"
>
<!--
<TimePicker
v-model=
"item.begin"
:editable=
"false"
confirm
format=
"HH:mm"
placeholder=
"未设置"
size=
"default"
style=
"width: 120px"
></TimePicker>
至
<TimePicker
v-model=
"item.end"
:editable=
"false"
confirm
format=
"HH:mm"
placeholder=
"未设置"
size=
"default"
style=
"width: 120px"
></TimePicker>
-->
<TimePicker
v-model=
"item.timeRange"
:clearable=
"false"
format=
"HH:mm"
placeholder=
"未设置"
placement=
"bottom-end"
style=
"width: 240px"
type=
"timerange"
@
on-change=
"onChangeTimeTable($event,item,index)"
@
on-open-change=
"onOpenChangeTimeTable($event,item,index)"
/>
可预约座位
<div
style=
"margin-left: auto"
>
<Poptip
confirm
title=
"是否继续该操作?"
@
on-ok=
"()=>
{
//删除某项时间配置
formDataTimeTable.time.splice(index,1);
}"
@on-cancel="">
<Button
icon=
"ios-close"
shape=
"circle"
></Button>
</Poptip>
</div>
</Col>
</Row>
<Row
style=
"margin-bottom: 10px;display: flex;justify-content: center"
>
<Button
icon=
"ios-add"
style=
"width: 200px;"
type=
"dashed"
@
click=
" formDataTimeTable.time.push(
{begin: '',end:''})">添加时间
</Button>
</Row>
</Card>
</div>
<div
class=
"drawer-footer"
>
<Button
style=
"margin-right: 8px"
@
click=
"showDrawer = false"
>
取消
</Button>
<Button
type=
"primary"
@
click=
"save"
>
保存
</Button>
</div>
</Drawer>
<Modal
v-model=
"show"
:before-close=
"beforeClose"
:mask-closable=
"maskClosable"
:title=
"modalTitle"
:transfer=
"true"
:width=
"width"
>
<template>
<!-- Modal全局loading -->
<Spin
v-if=
"loading"
fix
size=
"large"
></Spin>
<Form
ref=
"form"
:label-width=
"formLabelWidth"
:model=
"formData"
:rules=
"formRule"
label-colon
>
<!-- 新增 / 编辑 -->
<Row
v-if=
"!isDetails"
>
<Col
v-for=
"item in formItem.filter(a => a.type != 'file' && a.type != 'timeTable' && (!a.hasOwnProperty('show') || a.show))"
:key=
"item.id"
v-bind=
"grid"
>
<FormItem
:label=
"item.name"
:prop=
"item.id"
v-if=
"!(item.type == 'multipleselectRoomIdList' && formData.role_id == '1')"
>
<Input
v-if=
"item.type == 'input'"
v-model=
"formData[item.id]"
:disabled=
"item.disabled"
:placeholder=
"'请输入'+item.name"
clearable
/>
<Input
v-if=
"item.type == 'textarea'"
v-model=
"formData[item.id]"
:disabled=
"item.disabled"
:placeholder=
"'请输入'+item.name"
:rows=
"item.rows"
clearable
type=
"textarea"
/>
<Select
v-else-if=
"item.type == 'select' "
v-model=
"formData[item.id]"
:disabled=
"item.disabled"
:placeholder=
"'请选择'+item.name"
clearable
filterable
@
on-query-change=
"onQueryChange"
>
<Option
v-for=
"it in item.optList"
:key=
"it.value"
:value=
"it.value"
>
{{
it
.
label
}}
</Option>
</Select>
<Select
v-else-if=
"item.type == 'multipleselect'"
v-model=
"formData[item.id]"
:disabled=
"item.disabled"
:placeholder=
"'请选择'+item.name"
clearable
filterable
multiple
>
<Option
v-for=
"it in item.optList"
:key=
"it.value"
:value=
"it.value"
>
{{
it
.
label
}}
</Option>
</Select>
<Select
v-else-if=
"item.type == 'multipleselectRoomIdList' "
v-model=
"formData[item.id]"
:disabled=
"item.disabled "
:placeholder=
"'请选择'+item.name"
clearable
filterable
multiple
>
<Option
v-for=
"it in item.optList"
:key=
"it.value"
:value=
"it.value"
>
{{
it
.
label
}}
</Option>
</Select>
<Switch
v-else-if=
"item.type == 'switch'"
v-model=
"formData[item['id']]"
:false-value=
"0"
:true-value=
"1"
/>
<TimePicker
v-else-if=
"item.type == 'timerange'"
v-model=
"formData[item['id']]"
:placeholder=
"'请选择'+item.name"
format=
"HH:mm"
placement=
"bottom-end"
style=
"width: 100%;"
type=
"timerange"
@
on-clear=
"onClearTimerange($event,item['id'])"
/>
<DatePicker
v-else-if=
"item.type == 'datetime'"
v-model=
"formData[item['id']]"
:placeholder=
"'请选择'+item.name"
format=
"yyyy-MM-dd"
style=
"width: 100%;"
type=
"date"
@
on-change=
"(val1, val2) => datetimeChange1(val1, val2, item.id)"
/>
<div
v-else-if=
"item.type === 'area'"
>
<Button
ghost
type=
"primary"
@
click=
"setMap"
>
{{
[
'
设置区域
'
,
'
更改区域
'
][
Number
(
regionDot
.
length
>
0
)]
}}
</Button>
</div>
</FormItem>
</Col>
<!-- 文件类型 -->
<Col
v-for=
"(item, index) in formItem.filter(a => a.type == 'file' && (!a.hasOwnProperty('show') || a.show))"
:key=
"item.id"
span=
"12"
>
<FormItem
:label=
"item.name"
:prop=
"item.name"
>
<Upload
:before-upload=
"(file) => uploadFile(file, item.id, index)"
action=
"#"
multiple
>
<Button
:loading=
"uploadBtLoading[index]"
icon=
"ios-cloud-upload-outline"
>
选择文件
</Button>
</Upload>
<p
v-for=
"file in formData[item.id]"
:key=
"file.path"
class=
"fileRow"
>
<a
:href=
"file.path"
target=
"_blank"
>
{{
file
.
file_name
}}
</a>
<Icon
class=
"delIcon"
type=
"md-close"
@
click=
"fileDel(file, item.id)"
/>
</p>
</FormItem>
</Col>
</Row>
<Row
v-if=
"!isDetails && !!formItem.filter(cur=>cur.type === 'timeTable').length"
>
<FormItem
v-for=
"(item,index) in formItem.filter(cur=>cur.type === 'timeTable')"
:key=
"item.id"
label=
"默认开放区间"
>
<Table
:key=
"aaa"
:columns=
"item.columns"
:data=
"item.data"
border
size=
"small"
>
<template
slot=
"time"
slot-scope=
"
{ row, index }">
<Tag
v-for=
"(item,inde) in row.time"
:key=
"inde"
color=
"blue"
style=
"margin-right: 5px"
>
{{
item
}}
</Tag>
</
template
>
<
template
#action
="{
row
,
index
}"
>
<a
@
click=
"openClass(row, index,item)"
>
配置
</a>
</
template
>
</Table>
</FormItem>
</Row>
<!-- 详情 -->
<Row
v-if=
"isDetails"
>
<Col
v-for=
"item in formItem.filter(a => a.type != 'file'&& a.type != 'timeTable' && (!a.hasOwnProperty('show') || a.show))"
:key=
"item.id"
v-bind=
"grid"
>
<FormItem
:label=
"item.name"
:prop=
"item.name"
>
<span
v-if=
"item.type == 'input'"
>
{{ formData[item.id] }}
</span>
<span
v-if=
"item.type == 'datetime'"
>
{{ formData[item.id] }}
</span>
<span
v-if=
"item.type == 'textarea'"
>
{{ formData[item.id] }}
</span>
<span
v-if=
"item.type == 'timerange'"
>
{{ formData[item.id] }}
</span>
<span
v-if=
"item.type == 'signRecord'"
@
click=
"signRecord(formData.id)"
>
<span
style=
"color: #1e93ff;cursor: pointer"
>
查看
</span>
</span>
<div
v-if=
"item.type == 'area'"
>
<Button
ghost
type=
"primary"
@
click=
"setMap"
>
查看区域
</Button>
</div>
<!-- 存在问题:性别项,有时返回值为null,select的“不限”值为空字符串,会报错 -->
<span
v-if=
"item.type == 'select'"
>
{{ item.optList[item.optList.findIndex(a => a.value == formData[item.id])].label }}
</span>
<span
v-if=
"item.type == 'switch'"
>
{{ `${formData[item.id] == 1 ? '是' : '否'}` }}
</span>
</FormItem>
</Col>
<Col
v-for=
"item in formItem.filter(a => a.type == 'file' && (!a.hasOwnProperty('show') || a.show))"
:key=
"item.id"
span=
"12"
>
<FormItem
:label=
"item.name"
:prop=
"item.name"
>
<p
v-for=
"file in formData[item.id]"
:key=
"file.path"
class=
"fileRow"
>
<a
:href=
"file.path"
target=
"_blank"
>
{{ file.file_name }}
</a>
<Icon
class=
"delIcon"
type=
"md-close"
@
click=
"fileDel(file, item.id)"
/>
</p>
</FormItem>
</Col>
</Row>
<Row
v-if=
"isDetails && !!formItem.filter(cur=>cur.type === 'timeTable').length"
>
<FormItem
v-for=
"(item,index) in formItem.filter(cur=>cur.type === 'timeTable')"
:key=
"item.id"
label=
"默认开放区间"
>
<Table
:key=
"item.id"
:columns=
"item.columns"
:data=
"item.data"
border
size=
"small"
>
<
template
slot=
"time"
slot-scope=
"{ row, index }"
>
<Tag
v-for=
"(item,inde) in row.time"
:key=
"inde"
color=
"blue"
style=
"margin-right: 5px"
>
{{
item
}}
</Tag>
</
template
>
</Table>
</FormItem>
</Row>
</Form>
</template>
<
template
#footer
>
<!-- 新增 / 编辑 -->
<div
v-if=
"!isDetails"
>
<Button
@
click=
"onCancel"
>
取消
</Button>
<Button
type=
"primary"
@
click=
"onSubmit"
>
提交
</Button>
</div>
<!-- 详情 -->
<div
v-else
>
<Button
@
click=
"onCancel"
>
关闭
</Button>
</div>
</
template
>
</Modal>
</div>
</template>
<
script
>
import
_
,
{
cloneDeep
}
from
'
lodash
'
export
default
{
props
:
{
// Modal全局loading
loading
:
{
type
:
Boolean
,
default
:
false
},
// 表单项、规则、label宽度
formItem
:
{
type
:
Array
,
require
:
true
},
formRule
:
{
type
:
Object
,
default
:
()
=>
{
}
},
formLabelWidth
:
{
type
:
Number
,
default
:
80
},
// Modal显示value
value
:
{
type
:
Boolean
,
require
:
true
},
// Modal宽度
width
:
{
default
:
'
520
'
},
// 是否允许点击遮罩层关闭
maskClosable
:
{
type
:
Boolean
,
default
:
false
},
__PROP_NAMES_MAP
:
{
maskClosable
:
'
mask-closable
'
},
},
watch
:
{
value
(
newVal
)
{
this
.
show
=
newVal
},
},
data
()
{
return
{
// Modal显示value
show
:
this
.
value
,
modalTitle
:
'
编辑
'
,
// 表单数据
formData
:
{},
grid
:
{
xl
:
12
,
lg
:
12
,
md
:
24
,
sm
:
24
,
xs
:
24
,
},
// 上传按钮loading
uploadBtLoading
:
[],
// 详情显示 true.显示详情 false.新增/编辑
isDetails
:
false
,
peopleKey
:
''
,
//select 搜索文字
regionDot
:
[],
// 坐标范围
//timeTable
aaa
:
123123
,
showDrawer
:
false
,
formDataTimeTable
:
{
time
:
[
{
begin
:
'
12:00
'
,
end
:
'
15:00
'
},
{
begin
:
'
12:00
'
,
end
:
'
15:00
'
},
],
},
//timeTable
}
},
computed
:
{},
created
()
{
},
mounted
()
{
},
methods
:
{
/***
默认开放时间
*/
checkTimes
(
intervals
,
times
)
{
// Helper function to convert time string to minutes
function
timeToMinutes
(
timeStr
)
{
const
[
hours
,
minutes
]
=
timeStr
.
split
(
'
:
'
).
map
(
Number
);
return
hours
*
60
+
minutes
;
}
// Helper function to convert minutes back to time string
function
minutesToTime
(
minutes
)
{
const
hours
=
Math
.
floor
(
minutes
/
60
);
const
mins
=
minutes
%
60
;
return
`
${
String
(
hours
).
padStart
(
2
,
'
0
'
)}
:
${
String
(
mins
).
padStart
(
2
,
'
0
'
)}
`
;
}
// Convert intervals to start and end minutes
const
intervalMinutes
=
intervals
.
map
(
interval
=>
{
const
[
start
,
end
]
=
interval
.
split
(
'
~
'
).
map
(
timeToMinutes
);
return
{
start
,
end
};
});
// Convert times to minutes
const
timeMinutes
=
times
.
map
(
timeToMinutes
);
// Check if all times are greater than all intervals
const
allGreater
=
timeMinutes
.
every
(
time
=>
intervalMinutes
.
every
(({
end
})
=>
time
>
end
)
);
// Check if all times are less than all intervals
const
allLess
=
timeMinutes
.
every
(
time
=>
intervalMinutes
.
every
(({
start
})
=>
time
<
start
)
);
// Check if all times are outside all intervals
const
allOutside
=
timeMinutes
.
every
(
time
=>
intervalMinutes
.
every
(({
start
,
end
})
=>
time
<
start
||
time
>
end
)
);
return
allGreater
||
allLess
||
allOutside
;
},
onOpenChangeTimeTable
(
event
,
item
,
index
)
{
console
.
log
(
"
🚀🚀event, item, index🚀,
"
,
event
,
item
,
index
)
if
(
!
event
)
{
// 关闭浮层时触发
let
deleteEventArray
=
this
.
formDataTimeTable
.
time
.
map
(
cur
=>
{
if
(
cur
.
timeRange
!==
void
0
)
return
cur
.
timeRange
.
join
(
'
~
'
);
}).
filter
(
cur
=>
{
return
cur
!==
void
0
})
if
(
deleteEventArray
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
))
!==
-
1
)
deleteEventArray
.
splice
(
deleteEventArray
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
)),
1
);
if
(
!
(
this
.
checkTimes
(
deleteEventArray
,
item
.
timeRange
)))
{
//对比算法 ,大于、小于且不在已有时间段内
this
.
formDataTimeTable
.
time
.
splice
(
index
,
1
)
this
.
$Message
.
error
(
'
配置时间重叠,请重新配置时间
'
)
}
}
},
onChangeTimeTable
(
event
,
item
,
index
)
{
/* try {
let deleteEventArray = this.formDataTimeTable.time.map(cur => {
return cur.timeRange.join('~');
})
if (deleteEventArray.indexOf(event.join('~')) !== -1) deleteEventArray.splice(deleteEventArray.indexOf(event.join('~')), 1);
if (!(this.checkTimes(deleteEventArray, event))) {
//对比算法 ,大于、小于且不在已有时间段内
this.formDataTimeTable.time.splice(index, 1)
this.$Message.error('配置时间重叠,请重新配置时间')
}
} catch (e) {
}*/
},
save
()
{
//深拷贝,防止污染 1~7天的数据
let
array
=
_
.
cloneDeep
(
this
.
formItem
.
find
(
cur
=>
cur
.
type
===
'
timeTable
'
).
data
);
function
getFormatData
(
data
)
{
//获取开放时间段,格式化
return
data
.
map
(
cur
=>
{
if
(
cur
.
timeRange
!==
void
0
)
return
cur
.
timeRange
.
join
(
'
~
'
);
}).
filter
(
cur
=>
{
return
cur
!==
void
0
})
}
let
info
=
{
//策略判断日期,把数据分配给对应日期,最后保存
'
周一
'
:
()
=>
array
[
0
].
time
=
getFormatData
(
this
.
formDataTimeTable
.
time
),
'
周二
'
:
()
=>
array
[
1
].
time
=
getFormatData
(
this
.
formDataTimeTable
.
time
),
'
周三
'
:
()
=>
array
[
2
].
time
=
getFormatData
(
this
.
formDataTimeTable
.
time
),
'
周四
'
:
()
=>
array
[
3
].
time
=
getFormatData
(
this
.
formDataTimeTable
.
time
),
'
周五
'
:
()
=>
array
[
4
].
time
=
getFormatData
(
this
.
formDataTimeTable
.
time
),
'
周六
'
:
()
=>
array
[
5
].
time
=
getFormatData
(
this
.
formDataTimeTable
.
time
),
'
周日
'
:
()
=>
array
[
6
].
time
=
getFormatData
(
this
.
formDataTimeTable
.
time
),
}
info
[
this
.
formDataTimeTable
.
day
]();
this
.
formItem
.
find
(
cur
=>
cur
.
type
===
'
timeTable
'
).
data
=
array
;
//Table列表输出
let
data
=
{
//格式化数据,
"
one
"
:
array
[
0
].
time
,
"
two
"
:
array
[
1
].
time
,
"
three
"
:
array
[
2
].
time
,
"
four
"
:
array
[
3
].
time
,
"
five
"
:
array
[
4
].
time
,
"
six
"
:
array
[
5
].
time
,
"
seven
"
:
array
[
6
].
time
,
};
this
.
formData
[
'
service_interval_time
'
]
=
JSON
.
stringify
(
data
)
//格式化为后端接口格式
this
.
formData
[
'
service_interval_time_info
'
]
=
data
//格式化为后端接口格式
// timeTable
this
.
showDrawer
=
false
;
},
openClass
(
row
,
index
,
item
)
{
//触发配置时间
console
.
log
(
"
🚀🚀openClass,
"
,
row
,
index
)
this
.
formDataTimeTable
=
{
// 某天的时间
...
row
,
id
:
item
.
id
,
index
,
time
:
row
.
time
.
map
(
cur
=>
{
return
{
begin
:
cur
.
split
(
'
~
'
)[
0
],
end
:
cur
.
split
(
'
~
'
)[
1
],
timeRange
:
[
cur
.
split
(
'
~
'
)[
0
],
cur
.
split
(
'
~
'
)[
1
]]
}
})
}
this
.
showDrawer
=
true
},
/***
默认开放时间
*/
signRecord
(
e
)
{
//签到轨迹
this
.
$emit
(
'
signRecord
'
,
e
)
},
setMap
()
{
//地图画点 this.formItem.regionDot ||[]
this
.
$emit
(
'
setMap
'
,
''
)
},
onQueryChange
(
query
)
{
//select 搜索文字 改变触发
this
.
peopleKey
=
query
this
.
$emit
(
'
getPeopleList
'
,
query
)
},
/**
* Modal打开初始化(新增编辑用)
* @param {String} addOrEdit add.新增 edit.编辑
*/
modalInit
(
addOrEdit
=
'
add
'
,
row
,
title
=
''
)
{
this
.
isDetails
=
false
;
this
.
uploadBtLoading
=
[];
if
(
addOrEdit
==
'
add
'
)
{
this
.
$refs
.
form
.
resetFields
()
this
.
modalTitle
=
title
?
title
:
'
新增
'
this
.
formData
=
row
?
cloneDeep
(
row
)
:
{}
}
else
if
(
addOrEdit
==
'
edit
'
)
{
this
.
isDetails
=
false
this
.
modalTitle
=
'
编辑
'
this
.
$refs
.
form
.
resetFields
()
this
.
formData
=
cloneDeep
(
row
)
// 时间范围处理
let
tri
=
this
.
formItem
.
findIndex
(
a
=>
a
.
type
==
'
timerange
'
)
if
(
tri
!=
-
1
)
{
let
id
=
this
.
formItem
[
tri
].
id
this
.
formData
[
id
]
=
this
.
formData
[
id
].
split
(
'
-
'
)
}
}
// 设置上传按钮loading
this
.
formItem
.
forEach
(
a
=>
{
if
(
a
.
type
==
'
file
'
)
{
this
.
uploadBtLoading
.
push
(
false
)
}
})
},
// 查看详情时初始化
modalDetailsInit
(
row
,
itemName
)
{
this
.
isDetails
=
true
this
.
modalTitle
=
`
${
row
[
itemName
]}
- 详情`
this
.
formData
=
cloneDeep
(
row
)
},
// 上传文件
uploadFile
(
file
,
id
,
i
)
{
this
.
uploadBtLoading
[
i
]
=
true
this
.
$forceUpdate
();
let
fd
=
new
FormData
();
fd
.
append
(
'
file
'
,
file
)
this
.
asc
.
postApiCommonFileUpload
(
fd
).
then
(
res
=>
{
// console.log('上传后', res)
if
(
res
.
code
==
1
)
{
this
.
formData
[
id
].
push
(
res
.
response
)
this
.
$Message
.
success
(
res
.
msg
)
}
else
{
this
.
$Message
.
error
(
res
.
msg_detail
)
}
}).
finally
(()
=>
{
this
.
uploadBtLoading
[
i
]
=
false
this
.
$forceUpdate
()
})
return
false
},
// 删除文件
fileDel
(
file
,
id
)
{
let
i
=
this
.
formData
[
id
].
findIndex
(
a
=>
a
.
id
==
file
.
id
)
this
.
formData
[
id
].
splice
(
i
,
1
)
},
datetimeChange1
(
val1
,
val2
,
id
)
{
// console.log('日期时间改变选择', val1, val2, id)
this
.
formData
[
id
]
=
val1
},
onClearTimerange
(
event
,
item
)
{
//清空时间时触发 清空的时间应该是数组 才能触发 表单检验
this
.
formData
[
item
]
=
[]
},
// Modal关闭前回调
beforeClose
()
{
this
.
$emit
(
'
onClose
'
)
},
// 取消
onCancel
()
{
this
.
$emit
(
'
onCancel
'
)
this
.
$emit
(
'
onClose
'
)
},
// 提交
onSubmit
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
let
obj
=
cloneDeep
(
this
.
formData
)
// 时间范围处理
let
tri
=
this
.
formItem
.
findIndex
(
a
=>
a
.
type
==
'
timerange
'
);
if
(
tri
!=
-
1
)
{
let
id
=
this
.
formItem
[
tri
].
id
obj
[
id
]
=
obj
[
id
].
join
(
'
-
'
)
}
console
.
log
(
"
🚀🚀obj🚀,
"
,
obj
)
this
.
$emit
(
'
onSubmit
'
,
obj
)
}
else
{
this
.
$Message
.
warning
(
'
请检查输入项
'
)
}
})
},
},
}
</
script
>
<
style
lang=
"less"
scoped
>
/*/deep/.ivu-message {
font-size: 14px;
position: fixed;
z-index: 999999 !important;
width: 100%;
top: 16px;
left: 0;
pointer-events: none;
}*/
/deep/ .ivu-modal-mask {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(55, 55, 55, 0.6);
height: 100%;
z-index: 1050 !important;
}
/deep/ .ivu-modal-wrap {
position: fixed;
overflow: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1050 !important;
-webkit-overflow-scrolling: touch;
outline: 0;
}
/deep/ .ivu-drawer-mask {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(55, 55, 55, 0.6);
height: 100%;
z-index: 1100 !important;
}
/deep/ .ivu-drawer-wrap {
position: fixed;
overflow: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1100 !important;
-webkit-overflow-scrolling: touch;
outline: 0;
}
.ivu-form-item {
padding-right: 15px;
}
.fileRow {
display: flex;
justify-content: space-between;
align-items: center;
.delIcon {
color: #ed4014;
}
.delIcon:hover {
color: #f16643;
cursor: pointer;
}
}
.class-drawer {
height: "calc(100% - 55px)";
overflow: "auto";
padding-bottom: "53px";
position: "static";
z-index: 1100 !important;
.subTitle {
margin-top: 20px;
font-size: 14px;
color: #191f25;
font-weight: 700;
}
.drawer-footer {
width: 100%;
position: absolute;
bottom: 0;
left: 0;
border-top: 1px solid #e8e8e8;
padding: 10px 16px;
text-align: right;
background: #fff;
}
/deep/ .ivu-drawer-header-inner {
font-size: 20px;
font-weight: 600;
}
}
</
style
>
src/layouts/basic-layout/menu-side/index.vue
浏览文件 @
2fa4b0b7
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
width: 100%;
width: 100%;
"
"
>
>
V1.0.1.241215-25031
0
V1.0.1.241215-25031
2
</span>
</span>
</div>
</div>
</div>
</div>
...
...
src/pages/userManagement/index.vue
浏览文件 @
2fa4b0b7
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
</CTable>
</CTable>
<!-- 新增修改Modal-分配教师用户权限 -->
<!-- 新增修改Modal-分配教师用户权限 -->
<CEditModal
<CEditModal
UserManagement
ref=
"ceditmodal"
ref=
"ceditmodal"
v-model=
"editModalshow"
v-model=
"editModalshow"
:formItem=
"formItem"
:formItem=
"formItem"
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
@
onClose=
"editModalshow = false"
@
onClose=
"editModalshow = false"
@
getPeopleList=
"getPeopleList"
@
getPeopleList=
"getPeopleList"
@
onSubmit=
"modalSubmit"
>
@
onSubmit=
"modalSubmit"
>
</CEditModal>
</CEditModal
UserManagement
>
</Card>
</Card>
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<
script
>
<
script
>
import
CTable
from
'
@/components/CTable.vue
'
import
CTable
from
'
@/components/CTable.vue
'
import
CEditModal
from
'
@/components/CEditModal
.vue
'
import
CEditModal
UserManagement
from
'
@/components/CEditModalUserManagement
.vue
'
import
SearchCondForm
from
'
@/components/SearchCondForm.vue
'
import
SearchCondForm
from
'
@/components/SearchCondForm.vue
'
import
{
cloneDeep
}
from
'
lodash
'
import
{
cloneDeep
}
from
'
lodash
'
import
*
as
api
from
'
@/api/controller/index.js
'
import
*
as
api
from
'
@/api/controller/index.js
'
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
components
:
{
components
:
{
CTable
,
CTable
,
CEditModal
,
CEditModal
UserManagement
,
SearchCondForm
,
SearchCondForm
,
},
},
data
()
{
data
()
{
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
formItem
:
[
formItem
:
[
{
id
:
'
cardName
'
,
name
:
'
用戶
'
,
type
:
'
select
'
,
disabled
:
false
,
require
:
false
,
optList
:
[]},
{
id
:
'
cardName
'
,
name
:
'
用戶
'
,
type
:
'
select
'
,
disabled
:
false
,
require
:
false
,
optList
:
[]},
{
id
:
'
role_id
'
,
name
:
'
角色
'
,
type
:
'
select
'
,
disabled
:
false
,
require
:
false
,
optList
:
[]},
{
id
:
'
role_id
'
,
name
:
'
角色
'
,
type
:
'
select
'
,
disabled
:
false
,
require
:
false
,
optList
:
[]},
{
id
:
'
room_id_list
'
,
name
:
'
管辖房间
'
,
type
:
'
multipleselect
'
,
disabled
:
false
,
require
:
false
,
optList
:
[]
},
{
id
:
'
room_id_list
'
,
name
:
'
管辖房间
'
,
type
:
'
multipleselect
RoomIdList
'
,
disabled
:
false
,
require
:
false
,
optList
:
[]
},
{
id
:
'
is_enable
'
,
name
:
'
启用
'
,
type
:
'
switch
'
,
disabled
:
false
,
require
:
false
,
optList
:
[]},
{
id
:
'
is_enable
'
,
name
:
'
启用
'
,
type
:
'
switch
'
,
disabled
:
false
,
require
:
false
,
optList
:
[]},
],
],
defaultFormData
:
{
defaultFormData
:
{
...
@@ -118,6 +118,7 @@
...
@@ -118,6 +118,7 @@
"
card
"
:
""
,
"
card
"
:
""
,
"
userid
"
:
""
,
"
userid
"
:
""
,
"
name
"
:
""
,
"
name
"
:
""
,
"
is_enable
"
:
1
,
"
is_enable
"
:
1
,
"
is_del
"
:
0
,
"
is_del
"
:
0
,
is_tea
:
''
,
is_tea
:
''
,
...
@@ -131,6 +132,15 @@
...
@@ -131,6 +132,15 @@
}
}
},
},
watch
:{
'
$refs.ceditmodal.formData.role_id
'
:
{
handler
(
newVal
,
oldVal
)
{
// 监听ceditmodal变化
console
.
log
(
'
ceditmodal ref changed:
'
,
newVal
,
oldVal
)
},
deep
:
true
}
},
computed
:
{
computed
:
{
tableDataCal
()
{
tableDataCal
()
{
let
start
=
(
this
.
params
.
page_index
-
1
)
*
this
.
params
.
page_size
let
start
=
(
this
.
params
.
page_index
-
1
)
*
this
.
params
.
page_size
...
@@ -238,6 +248,7 @@
...
@@ -238,6 +248,7 @@
})
})
},
},
// 新增
// 新增
add
(
key
)
{
add
(
key
)
{
const
strategy
=
{
const
strategy
=
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录