Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
H
HY占座系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
HY占座系统
提交
3148bc52
提交
3148bc52
编写于
12月 27, 2024
作者:
刘英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
20241227 系统配置》用户管理〉新增学生用户权限分配
上级
1f83b57d
流水线
#32226
已通过 ,包含阶段
in 55 second
变更
8
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
21 行增加
和
26 行删除
+21
-26
index.html
dist/index.html
+1
-1
app.77ac8b9c.js
dist/js/app.77ac8b9c.js
+0
-15
chunk-4b2a2114.9b33fafa.js
dist/js/chunk-4b2a2114.9b33fafa.js
+0
-1
getApiRoleGetRolePowerList.d.ts
src/api/controller/RolePower/getApiRoleGetRolePowerList.d.ts
+2
-0
PlaceOccupyseatRolePower.d.ts
src/api/interface/apiTypes/PlaceOccupyseatRolePower.d.ts
+1
-0
RolePowerViewModel.d.ts
src/api/interface/apiTypes/RolePowerViewModel.d.ts
+2
-0
index.vue
src/layouts/basic-layout/menu-side/index.vue
+1
-1
index.vue
src/pages/userManagement/index.vue
+14
-8
未找到文件。
dist/index.html
浏览文件 @
3148bc52
<!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.77ac8b9c.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
http-equiv=
X-UA-Compatible
content=
"IE=edge"
><meta
name=
viewport
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"
><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.7c4f5b35.js
></script></body></html>
\ No newline at end of file
dist/js/app.77ac8b9c.js
已删除
100644 → 0
浏览文件 @
1f83b57d
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
dist/js/chunk-4b2a2114.9b33fafa.js
已删除
100644 → 0
浏览文件 @
1f83b57d
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-4b2a2114
"
],{
"
0f7c6
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
(
"
9795
"
)},
"
689e
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
.
r
(
t
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,[
a
(
"
Card
"
,{
ref
:
"
card
"
},[
a
(
"
Button
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
function
(
t
){
return
e
.
add
(
"
teacher
"
)}}},[
a
(
"
Icon
"
,{
attrs
:{
type
:
"
md-add
"
}}),
e
.
_v
(
"
\n
新增教师
\n
"
)],
1
),
a
(
"
Button
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
function
(
t
){
return
e
.
add
(
"
student
"
)}}},[
a
(
"
Icon
"
,{
attrs
:{
type
:
"
md-add
"
}}),
e
.
_v
(
"
\n
新增学生
\n
"
)],
1
),
a
(
"
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
:
"
place_name
"
,
fn
:
function
(
e
){
var
t
=
e
.
row
;
return
[
a
(
"
Ellipsis
"
,{
attrs
:{
transfer
:
!
0
,
text
:
t
.
place_name
,
height
:
80
,
tooltip
:
""
}})]}}])}),
a
(
"
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
=
(
a
(
"
8e6e
"
),
a
(
"
28a5
"
),
a
(
"
96cf
"
),
a
(
"
3b8d
"
)),
r
=
(
a
(
"
7514
"
),
a
(
"
456d
"
),
a
(
"
ac6a
"
),
a
(
"
c5f6
"
),
a
(
"
20d6
"
),
a
(
"
7f7f
"
),
a
(
"
bd86
"
)),
s
=
a
(
"
967e
"
),
l
=
a
.
n
(
s
),
c
=
a
(
"
84af
"
),
d
=
a
(
"
ee00
"
),
u
=
a
(
"
69dc
"
),
h
=
a
(
"
2ef0
"
),
m
=
a
(
"
d02c
"
),
p
=
a
(
"
61be
"
);
function
f
(
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
g
(
e
){
for
(
var
t
=
1
;
t
<
arguments
.
length
;
t
++
){
var
a
=
null
!=
arguments
[
t
]?
arguments
[
t
]:{};
t
%
2
?
f
(
Object
(
a
),
!
0
).
forEach
((
function
(
t
){
Object
(
r
[
"
a
"
])(
e
,
t
,
a
[
t
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
e
,
Object
.
getOwnPropertyDescriptors
(
a
)):
f
(
Object
(
a
)).
forEach
((
function
(
t
){
Object
.
defineProperty
(
e
,
t
,
Object
.
getOwnPropertyDescriptor
(
a
,
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
:
"
role_name
"
,
title
:
"
角色
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
key
:
"
place_id
"
,
title
:
"
场地id
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
1
},{
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
:
"
is_enable
"
,
name
:
"
启用
"
,
type
:
"
switch
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]}],
defaultFormData
:{
role_id
:
""
,
card
:
""
,
userid
:
""
,
name
:
""
,
is_enable
:
1
,
is_del
:
0
},
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
a
=
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
=
a
})),
this
.
getData
()},
methods
:{
getPeopleList
:
function
(){
var
e
=
this
,
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
""
;
console
.
log
(
"
🚀🚀🚀,
"
,
t
),
m
[
"
getApiCommonGetPersonByCondiction
"
]({
user_type
:
Number
(
this
.
addTeacherOrStudentFlag
),
keyword
:
t
}).
then
((
function
(
t
){
var
a
=
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
=
a
}))},
search
:
function
(
e
){
var
t
=
this
;
Object
.
keys
(
e
).
forEach
((
function
(
a
){
e
[
a
]?
t
.
params
[
a
]
=
e
[
a
]:
t
.
params
[
a
]
=
""
})),
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
,
e
.
dataCount
=
t
.
response
.
length
,
e
.
tableLoading
=!
1
}))},
switchChange
:
function
(
e
,
t
,
a
){
var
n
=
this
;
p
[
"
myEncapsulationFunction
"
]((
function
(){
return
n
.
asc
.
getApiRoleRolePowerEnable
({
id
:
t
.
id
,
is_enable
:
e
}).
then
((
function
(
e
){
return
1
===
e
.
code
&&
n
.
getData
(),
e
}))}))},
add
:
function
(
e
){
var
t
=
this
,
a
=
{
teacher
:
function
(){
t
.
addTeacherOrStudentFlag
=
1
,
t
.
getPeopleList
()},
student
:
function
(){
t
.
addTeacherOrStudentFlag
=
0
,
t
.
getPeopleList
()}};
a
[
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
a
,
n
=
this
;
return
l
.
a
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
this
.
editModalshow
=!
0
,
this
.
editModalLoading
=!
0
,
e
.
next
=
4
,
new
Promise
((
function
(
e
,
a
){
n
.
asc
.
getApiCommonGetPersonByCondiction
({
user_type
:
t
.
is_tea
,
keyword
:
t
.
card
}).
then
((
function
(
t
){
var
a
=
t
.
response
.
map
((
function
(
e
){
return
g
(
g
({},
e
),{},{
label
:
e
.
name
+
"
-
"
+
e
.
card
,
value
:
e
.
name
+
"
-
"
+
e
.
card
})}));
n
.
formItem
[
n
.
formItem
.
findIndex
((
function
(
e
){
return
"
cardName
"
===
e
.
id
}))].
optList
=
a
,
e
()}))}));
case
4
:
this
.
formItem
.
find
((
function
(
e
){
return
"
cardName
"
===
e
.
id
})).
disabled
=!
0
,
a
=
Object
(
h
[
"
cloneDeep
"
])(
t
),
a
.
place_id
&&
(
a
.
place_id
=
a
.
place_id
.
split
(
"
,
"
)),
a
.
cardName
=
a
.
name
+
"
-
"
+
a
.
card
,
this
.
$refs
.
ceditmodal
.
modalInit
(
"
edit
"
,
a
),
this
.
editModalLoading
=!
1
;
case
10
:
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
],
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
,
C
=
a
(
"
2877
"
),
w
=
Object
(
C
[
"
a
"
])(
y
,
n
,
i
,
!
1
,
null
,
null
,
null
);
t
[
"
default
"
]
=
w
.
exports
},
"
69dc
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,[
a
(
"
Form
"
,{
staticClass
:
"
searchDiv
"
,
attrs
:{
model
:
e
.
searchCondObj
,
"
label-width
"
:
e
.
labelWidth
,
"
label-colon
"
:
e
.
labelColon
}},[
a
(
"
Row
"
,[
e
.
_l
(
e
.
searchCondList
.
filter
((
function
(
e
){
return
e
.
show
})),(
function
(
t
){
return
a
(
"
Col
"
,
e
.
_b
({
key
:
t
.
id
},
"
Col
"
,
e
.
grid
,
!
1
),[
a
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
}},[
"
input
"
==
t
.
type
?
a
(
"
Input
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
clearable
:
""
,
placeholder
:
"
请输入
"
+
t
.
name
},
model
:{
value
:
e
.
searchCondObj
[
t
.
id
],
callback
:
function
(
a
){
e
.
$set
(
e
.
searchCondObj
,
t
.
id
,
a
)},
expression
:
"
searchCondObj[item.id]
"
}}):
"
select
"
==
t
.
type
?
a
(
"
Select
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
clearable
:
""
,
placeholder
:
"
请选择
"
+
t
.
name
},
model
:{
value
:
e
.
searchCondObj
[
t
.
id
],
callback
:
function
(
a
){
e
.
$set
(
e
.
searchCondObj
,
t
.
id
,
a
)},
expression
:
"
searchCondObj[item.id]
"
}},
e
.
_l
(
t
.
optList
,(
function
(
t
){
return
a
(
"
Option
"
,{
key
:
t
.
value
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
):
"
datetime
"
==
t
.
type
?
a
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
datetime
"
,
format
:
"
yyyy-MM-dd HH:mm
"
,
placeholder
:
"
请选择
"
+
t
.
name
},
on
:{
"
on-change
"
:
function
(
a
,
n
){
return
e
.
datetimeChange
(
a
,
n
,
t
.
id
)}},
model
:{
value
:
e
.
searchCondObj
[
t
[
"
id
"
]],
callback
:
function
(
a
){
e
.
$set
(
e
.
searchCondObj
,
t
[
"
id
"
],
a
)},
expression
:
"
searchCondObj[item['id']]
"
}}):
"
date
"
==
t
.
type
?
a
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
date
"
,
format
:
"
yyyy-MM-dd
"
,
placeholder
:
"
请选择
"
+
t
.
name
},
on
:{
"
on-change
"
:
function
(
a
,
n
){
return
e
.
datetimeChange1
(
a
,
n
,
t
.
id
)}},
model
:{
value
:
e
.
searchCondObj
[
t
[
"
id
"
]],
callback
:
function
(
a
){
e
.
$set
(
e
.
searchCondObj
,
t
[
"
id
"
],
a
)},
expression
:
"
searchCondObj[item['id']]
"
}}):
e
.
_e
()],
1
)],
1
)})),
a
(
"
Col
"
,
e
.
_b
({
staticClass
:
"
buttonCol
"
},
"
Col
"
,
e
.
grid
,
!
1
),[
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
searchBt
}},[
e
.
_v
(
"
查询
"
)]),
a
(
"
Button
"
,{
on
:{
click
:
e
.
resetBt
}},[
e
.
_v
(
"
重置
"
)])],
1
)],
2
)],
1
)],
1
)},
i
=
[],
o
=
(
a
(
"
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
,
a
){
this
.
searchCondObj
[
a
]
=
e
},
datetimeChange1
:
function
(
e
,
t
,
a
){
this
.
searchCondObj
[
a
]
=
e
}}}),
r
=
o
,
s
=
(
a
(
"
0f7c6
"
),
a
(
"
2877
"
)),
l
=
Object
(
s
[
"
a
"
])(
r
,
n
,
i
,
!
1
,
null
,
"
28ca940a
"
,
null
);
t
[
"
a
"
]
=
l
.
exports
},
"
84af
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,[
a
(
"
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
n
=
t
.
row
,
i
=
t
.
index
;
return
[
a
(
"
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
"
}},[
a
(
"
span
"
,{
attrs
:{
slot
:
"
open
"
,
type
:
"
md-checkmark
"
},
slot
:
"
open
"
},[
e
.
_v
(
"
启用
"
)]),
a
(
"
span
"
,{
attrs
:{
slot
:
"
close
"
,
type
:
"
md-close
"
},
slot
:
"
close
"
},[
e
.
_v
(
"
停用
"
)])])]}},{
key
:
"
action
"
,
fn
:
function
(
t
){
var
n
=
t
.
row
;
return
[
a
(
"
Button
"
,{
attrs
:{
type
:
"
info
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
t
){
return
e
.
edit
(
n
)}}},[
e
.
_v
(
"
编辑
"
)]),
a
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
transfer
:
""
,
title
:
"
是否确认删除?
"
},
on
:{
"
on-ok
"
:
function
(
t
){
return
e
.
del
(
n
)}}},[
a
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
error
"
,
size
:
"
small
"
}},[
e
.
_v
(
"
删除
"
)])],
1
)]}},{
key
:
"
actionAndDetails
"
,
fn
:
function
(
t
){
var
n
=
t
.
row
;
return
[
a
(
"
a
"
,{
on
:{
click
:
function
(
t
){
return
e
.
details
(
n
)}}},[
e
.
_v
(
"
详情
"
)]),
a
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
info
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
t
){
return
e
.
edit
(
n
)}}},[
e
.
_v
(
"
编辑
"
)]),
a
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
transfer
:
""
,
title
:
"
是否确认删除?
"
},
on
:{
"
on-ok
"
:
function
(
t
){
return
e
.
del
(
n
)}}},[
a
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
error
"
,
size
:
"
small
"
}},[
e
.
_v
(
"
删除
"
)])],
1
)]}},
e
.
_l
(
e
.
$scopedSlots
,(
function
(
t
,
a
){
return
{
key
:
a
,
fn
:
function
(
t
){
return
[
e
.
_t
(
a
,
null
,
null
,
t
)]}}}))],
null
,
!
0
)}),
a
(
"
div
"
,{
staticClass
:
"
ivu-text-center ivu-mt
"
},[
a
(
"
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
=
(
a
(
"
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
,
a
){
this
.
$emit
(
"
switchChange
"
,
e
,
t
,
a
)},
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
=
a
(
"
2877
"
),
l
=
Object
(
s
[
"
a
"
])(
r
,
n
,
i
,
!
1
,
null
,
"
3fc26d08
"
,
null
);
t
[
"
a
"
]
=
l
.
exports
},
9795
:
function
(
e
,
t
,
a
){}}]);
\ No newline at end of file
src/api/controller/RolePower/getApiRoleGetRolePowerList.d.ts
浏览文件 @
3148bc52
...
...
@@ -19,5 +19,7 @@ export declare function getApiRoleGetRolePowerList(config?: AxiosRequestConfig):
createby
:
string
;
createtime
:
string
;
userid
:
string
;
is_tea
:
number
;
is_tea_name
:
string
;
}[];
}
>
;
src/api/interface/apiTypes/PlaceOccupyseatRolePower.d.ts
浏览文件 @
3148bc52
...
...
@@ -8,4 +8,5 @@ export interface PlaceOccupyseatRolePower {
is_del
?:
number
;
createby
?:
string
;
createtime
?:
string
;
is_tea
?:
number
;
}
src/api/interface/apiTypes/RolePowerViewModel.d.ts
浏览文件 @
3148bc52
...
...
@@ -9,4 +9,6 @@ export interface RolePowerViewModel {
createby
?:
string
;
createtime
?:
string
;
userid
?:
string
;
is_tea
?:
number
;
is_tea_name
?:
string
;
}
src/layouts/basic-layout/menu-side/index.vue
浏览文件 @
3148bc52
...
...
@@ -32,7 +32,7 @@
</Menu>
<div
style=
"position: absolute ;bottom: 10px;width: 100%;"
>
<div
style=
"display: flex;width:100%;height: 50px; justify-content: center;align-items: center;"
>
<span
style=
"font-size: 12px;"
>
build v241
126
1.0.1
</span>
<span
style=
"font-size: 12px;"
>
build v241
227
1.0.1
</span>
</div>
</div>
</div>
...
...
src/pages/userManagement/index.vue
浏览文件 @
3148bc52
...
...
@@ -85,6 +85,7 @@
{
type
:
'
index
'
,
title
:
'
序号
'
,
align
:
'
center
'
,
width
:
80
,
show
:
true
,
fixed
:
'
left
'
},
{
key
:
'
card
'
,
title
:
'
卡号
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
true
},
{
key
:
'
name
'
,
title
:
'
名称
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
true
},
{
key
:
'
is_tea_name
'
,
title
:
'
用户类型
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
true
},
{
key
:
'
role_name
'
,
title
:
'
角色
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
true
},
{
key
:
'
place_id
'
,
title
:
'
场地id
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
false
},
// { key: 'is_enable', title: '启用', align: 'center', minWidth: 150, show: true },
...
...
@@ -116,11 +117,10 @@
"
name
"
:
""
,
"
is_enable
"
:
1
,
"
is_del
"
:
0
,
is_tea
:
''
,
},
addTeacherOrStudentFlag
:
1
,
//新增教师或学生 0=>学生。 1=>教师
addTeacherOrStudentFlag
:
1
,
//新增教师或学生 0=>学生。 1=>教师
// 角色
...
...
@@ -158,7 +158,10 @@
console
.
log
(
"
🚀🚀🚀,
"
,
keyword
)
// 获取用戶信息
api
.
getApiCommonGetPersonByCondiction
({
user_type
:
Number
(
this
.
addTeacherOrStudentFlag
),
keyword
:
keyword
}).
then
(
res
=>
{
api
.
getApiCommonGetPersonByCondiction
({
user_type
:
Number
(
this
.
addTeacherOrStudentFlag
),
keyword
:
keyword
}).
then
(
res
=>
{
let
arr
=
res
.
response
.
map
(
a
=>
{
return
{
...
a
,
...
...
@@ -212,11 +215,11 @@
// 新增
add
(
key
)
{
const
strategy
=
{
'
teacher
'
:
()
=>
{
'
teacher
'
:
()
=>
{
this
.
addTeacherOrStudentFlag
=
1
this
.
getPeopleList
()
},
'
student
'
:
()
=>
{
'
student
'
:
()
=>
{
this
.
addTeacherOrStudentFlag
=
0
this
.
getPeopleList
()
}
...
...
@@ -232,7 +235,7 @@
// console.log('编辑行', row)
this
.
editModalshow
=
true
this
.
editModalLoading
=
true
this
.
addTeacherOrStudentFlag
=
row
.
is_tea
await
new
Promise
((
resolve
,
reject
)
=>
{
this
.
asc
.
getApiCommonGetPersonByCondiction
({
user_type
:
row
.
is_tea
,
keyword
:
row
.
card
}).
then
(
res
=>
{
...
...
@@ -268,18 +271,21 @@
modalSubmit
(
val
)
{
console
.
log
(
'
modal提交
'
,
val
)
if
(
val
.
place_id
)
{
val
.
place_id
=
val
.
place_id
.
join
(
'
,
'
)
}
val
.
name
=
val
.
cardName
.
split
(
'
-
'
)[
0
]
val
.
card
=
val
.
cardName
.
split
(
'
-
'
)[
1
]
val
.
is_tea
=
this
.
addTeacherOrStudentFlag
//用户类型
delete
val
.
cardName
this
.
$Modal
.
confirm
({
title
:
'
提示
'
,
content
:
'
是否确定提交?
'
,
loading
:
true
,
onOk
:
()
=>
{
this
.
asc
.
postApiRoleRolePowerSave
(
val
).
then
(
res
=>
{
// console.log('保存信息', res)
if
(
res
.
code
==
1
)
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录