Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
on-site-service-admin-view
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
external
on-site-service-admin-view
Commits
4ec8c497
Commit
4ec8c497
authored
Aug 01, 2022
by
shangtx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
Dev See merge request
!1
parents
ac20f0a1
1e942d1e
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
82 additions
and
63 deletions
+82
-63
sysRole.js
src/api/system/sysRole.js
+0
-1
sysUserApi.js
src/api/system/sysUserApi.js
+0
-1
GlobalLayout.vue
src/components/page/GlobalLayout.vue
+5
-3
user.js
src/store/modules/user.js
+5
-2
BannerEdit.vue
src/views/banner/BannerEdit.vue
+33
-5
BannerList.vue
src/views/banner/BannerList.vue
+3
-14
HomeNotice.vue
src/views/notice/HomeNotice.vue
+3
-2
NoticeDetail.vue
src/views/notice/NoticeDetail.vue
+5
-16
ChooseWorker.vue
src/views/order/ChooseWorker.vue
+0
-1
OrderDetail.vue
src/views/order/OrderDetail.vue
+16
-7
CategoryEdit.vue
src/views/serv/CategoryEdit.vue
+1
-1
ServiceList.vue
src/views/serv/ServiceList.vue
+1
-1
SubClassEdit.vue
src/views/serv/SubClassEdit.vue
+1
-1
ServiceWorkerEdit.vue
src/views/serviceWorker/ServiceWorkerEdit.vue
+1
-1
ServiceWorkerList.vue
src/views/serviceWorker/ServiceWorkerList.vue
+3
-2
SysRoleList.vue
src/views/system/role/SysRoleList.vue
+1
-1
SysUserList.vue
src/views/system/user/SysUserList.vue
+2
-2
UserList.vue
src/views/user/UserList.vue
+2
-2
No files found.
src/api/system/sysRole.js
View file @
4ec8c497
...
@@ -14,7 +14,6 @@ export function getPage(parameter) {
...
@@ -14,7 +14,6 @@ export function getPage(parameter) {
url
:
api
.
getPage
,
url
:
api
.
getPage
,
method
:
'post'
,
method
:
'post'
,
data
:
parameter
,
data
:
parameter
,
useFullLoading
:
true
})
})
}
}
...
...
src/api/system/sysUserApi.js
View file @
4ec8c497
...
@@ -18,7 +18,6 @@ export function getPage(parameter) {
...
@@ -18,7 +18,6 @@ export function getPage(parameter) {
url
:
api
.
getPage
,
url
:
api
.
getPage
,
method
:
'post'
,
method
:
'post'
,
data
:
parameter
,
data
:
parameter
,
useFullLoading
:
true
})
})
}
}
...
...
src/components/page/GlobalLayout.vue
View file @
4ec8c497
...
@@ -126,9 +126,10 @@ export default {
...
@@ -126,9 +126,10 @@ export default {
}
}
},
},
created
()
{
created
()
{
this
.
menus
=
this
.
filterHidenRouter
(
const
root
=
this
.
mainMenu
.
find
((
item
)
=>
item
.
path
===
'/'
)
this
.
mainMenu
.
find
((
item
)
=>
item
.
path
===
'/'
).
children
this
.
menus
=
this
.
filterHidenRouter
(
root
.
children
)
)
console
.
info
(
'main menu'
,
this
.
mainMenu
,
this
.
menus
)
console
.
info
(
'root'
,
root
)
},
},
methods
:
{
methods
:
{
...
mapActions
([
'setSidebar'
]),
...
mapActions
([
'setSidebar'
]),
...
@@ -143,6 +144,7 @@ export default {
...
@@ -143,6 +144,7 @@ export default {
}
}
},
},
filterHidenRouter
(
routes
,
init
=
[])
{
filterHidenRouter
(
routes
,
init
=
[])
{
for
(
let
i
=
0
;
i
<
routes
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
routes
.
length
;
i
++
)
{
let
item
=
routes
[
i
]
let
item
=
routes
[
i
]
if
(
item
.
hidden
==
true
)
{
if
(
item
.
hidden
==
true
)
{
...
...
src/store/modules/user.js
View file @
4ec8c497
...
@@ -78,8 +78,11 @@ const user = {
...
@@ -78,8 +78,11 @@ const user = {
commit
(
'SET_NAME'
,
data
.
userInfo
.
realName
||
data
.
userInfo
.
username
);
commit
(
'SET_NAME'
,
data
.
userInfo
.
realName
||
data
.
userInfo
.
username
);
commit
(
'SET_AVATAR'
,
data
.
userInfo
.
avatar
);
commit
(
'SET_AVATAR'
,
data
.
userInfo
.
avatar
);
commit
(
'SET_BUTTONS'
,
buttonAuthList
);
commit
(
'SET_BUTTONS'
,
buttonAuthList
);
try
{
SocketService
.
init
()
SocketService
.
init
()
}
catch
(
e
)
{
console
.
error
(
e
)
}
resolve
(
response
)
resolve
(
response
)
...
...
src/views/banner/BannerEdit.vue
View file @
4ec8c497
...
@@ -18,12 +18,32 @@
...
@@ -18,12 +18,32 @@
:form=
"form"
:form=
"form"
/>
/>
<a-form-item
label=
"排序"
>
<a-form-item
label=
"排序"
>
<a-input-number
v-decorator=
"['showOrder']"
/>
<a-input-number
v-decorator=
"['showOrder']"
defaultValue=
"0"
/>
</a-form-item>
<a-form-item
label=
"跳转类型"
>
<a-select
v-decorator=
"['type']"
defaultValue=
"0"
:options=
"[
{ label: '不跳转', value: 0 },
{ label: '公众号文章', value: 2 }
]"
@change="typeChange"
/>
</a-form-item>
<a-form-item
v-if=
"type == 2"
label=
"文章链接"
>
<a-input
v-decorator=
"[
'mpArticle',
{ rules: [{ required: true, message: '请输入文章链接' }] }
]"
/>
</a-form-item>
</a-form-item>
</a-form>
</a-form>
<div
class=
"drawer-form-bottom-toolbar"
>
<div
class=
"drawer-form-bottom-toolbar"
>
<a-button
:style=
"
{ marginRight: '8px' }" @click="close"> 取消
</a-button>
<a-button
:style=
"
{ marginRight: '8px' }" @click="close"> 取消
</a-button>
<a-button
type=
"primary"
@
click=
"submit"
>
保存
</a-button>
<a-button
type=
"primary"
v-if=
"hasPerm('SYS02102.EDIT')"
@
click=
"submit"
>
保存
</a-button>
</div>
</div>
</a-drawer>
</a-drawer>
</
template
>
</
template
>
...
@@ -39,7 +59,8 @@ export default {
...
@@ -39,7 +59,8 @@ export default {
return
{
return
{
form
:
this
.
$form
.
createForm
(
this
),
form
:
this
.
$form
.
createForm
(
this
),
visible
:
false
,
visible
:
false
,
id
:
null
id
:
null
,
type
:
0
}
}
},
},
methods
:
{
methods
:
{
...
@@ -49,7 +70,10 @@ export default {
...
@@ -49,7 +70,10 @@ export default {
this
.
visible
=
true
this
.
visible
=
true
if
(
this
.
id
)
{
if
(
this
.
id
)
{
getDetail
(
this
.
id
).
then
(({
data
})
=>
{
getDetail
(
this
.
id
).
then
(({
data
})
=>
{
this
.
type
=
data
.
type
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
data
)
this
.
form
.
setFieldsValue
(
data
)
})
this
.
$refs
.
image
.
setValue
([
data
.
url
])
this
.
$refs
.
image
.
setValue
([
data
.
url
])
})
})
}
}
...
@@ -58,14 +82,18 @@ export default {
...
@@ -58,14 +82,18 @@ export default {
this
.
id
=
null
this
.
id
=
null
this
.
$refs
.
image
.
reset
()
this
.
$refs
.
image
.
reset
()
this
.
form
.
resetFields
()
this
.
form
.
resetFields
()
this
.
type
=
0
this
.
form
.
setFieldsValue
({
type
:
0
})
this
.
visible
=
false
this
.
visible
=
false
},
},
typeChange
(
value
)
{
this
.
type
=
value
},
submit
()
{
submit
()
{
this
.
form
.
validateFields
((
err
,
values
)
=>
{
this
.
form
.
validateFields
((
err
,
values
)
=>
{
if
(
err
)
{
if
(
err
)
{
return
return
}
}
console
.
info
(
'values'
,
values
,
this
.
$refs
.
image
.
getValue
())
const
reqData
=
{
const
reqData
=
{
...
values
,
...
values
,
url
:
this
.
$refs
.
image
.
getValue
()[
0
],
url
:
this
.
$refs
.
image
.
getValue
()[
0
],
...
...
src/views/banner/BannerList.vue
View file @
4ec8c497
<
template
>
<
template
>
<table-template
:soul=
"this"
>
<table-template
:soul=
"this"
>
<template
#
preview=
"
{ record }">
<a
@
click=
"preview(record.url)"
><a-icon
type=
"eye"
/></a>
</
template
>
<template
#
switch=
"
{ record, index }">
<template
#
switch=
"
{ record, index }">
<a-switch
<a-switch
:checked=
"dataSource[index].enabled"
:checked=
"dataSource[index].enabled"
...
@@ -10,12 +7,13 @@
...
@@ -10,12 +7,13 @@
un-checked-children=
"禁用"
un-checked-children=
"禁用"
:loading=
"loadingKeys.includes(record.id)"
:loading=
"loadingKeys.includes(record.id)"
@
click=
"enableChange(record, index)"
@
click=
"enableChange(record, index)"
v-if=
"hasPerm('SYS02102.ENABLE')"
/>
/>
</
template
>
</
template
>
<
template
#
action=
"{ record }"
>
<
template
#
action=
"{ record }"
>
<a-space>
<a-space>
<a
@
click=
"edit(record.id)"
>
编辑
</a>
<a
@
click=
"edit(record.id)"
>
编辑
</a>
<a
style=
"color: red"
@
click=
"deleteRow(record.id)"
>
删除
</a>
<a
style=
"color: red"
v-if=
"hasPerm('SYS02102.DELETE')"
@
click=
"deleteRow(record.id)"
>
删除
</a>
</a-space>
</a-space>
</
template
>
</
template
>
<
template
#
free
>
<
template
#
free
>
...
@@ -32,12 +30,6 @@ import BannerEdit from './BannerEdit.vue'
...
@@ -32,12 +30,6 @@ import BannerEdit from './BannerEdit.vue'
const
columns
=
[
const
columns
=
[
{
title
:
'描述'
,
dataIndex
:
'description'
},
{
title
:
'描述'
,
dataIndex
:
'description'
},
{
title
:
'排序号'
,
dataIndex
:
'showOrder'
,
width
:
120
},
{
title
:
'排序号'
,
dataIndex
:
'showOrder'
,
width
:
120
},
{
title
:
'预览'
,
width
:
120
,
align
:
'center'
,
scopedSlots
:
{
customRender
:
'preview'
}
},
{
{
title
:
'启用/禁用'
,
title
:
'启用/禁用'
,
width
:
120
,
width
:
120
,
...
@@ -59,7 +51,7 @@ const columns = [
...
@@ -59,7 +51,7 @@ const columns = [
]
]
export
default
{
export
default
{
name
:
'
ErrorLog
List'
,
name
:
'
Banner
List'
,
mixins
:
[
TableScript
],
mixins
:
[
TableScript
],
components
:
{
TableTemplate
,
BannerEdit
},
components
:
{
TableTemplate
,
BannerEdit
},
data
()
{
data
()
{
...
@@ -85,9 +77,6 @@ export default {
...
@@ -85,9 +77,6 @@ export default {
edit
(
id
)
{
edit
(
id
)
{
this
.
$refs
.
BannerEdit
.
show
(
id
)
this
.
$refs
.
BannerEdit
.
show
(
id
)
},
},
preview
(
value
)
{
console
.
info
(
value
)
},
deleteRow
(
id
)
{
deleteRow
(
id
)
{
const
_this
=
this
const
_this
=
this
this
.
$confirm
({
this
.
$confirm
({
...
...
src/views/notice/HomeNotice.vue
View file @
4ec8c497
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
>
>
发布
发布
</a>
</a>
<a
v-if=
"record.releaseStatus == 2"
@
click=
"revoke(record)"
>
撤销
</a>
<a
v-if=
"
hasPerm('SYS02103.PUBLISH') &&
record.releaseStatus == 2"
@
click=
"revoke(record)"
>
撤销
</a>
<a
@
click=
"detail(record.id)"
>
详情
</a>
<a
@
click=
"detail(record.id)"
>
详情
</a>
<a
<a
style=
"color: red"
style=
"color: red"
...
@@ -78,7 +78,8 @@ export default {
...
@@ -78,7 +78,8 @@ export default {
toolbar
:
[
toolbar
:
[
{
{
text
:
'新建'
,
text
:
'新建'
,
handler
:
'add'
handler
:
'add'
,
bizCode
:
'SYS02103.EDIT'
}
}
]
]
}
}
...
...
src/views/notice/NoticeDetail.vue
View file @
4ec8c497
<
template
>
<
template
>
<a-drawer
:width=
"500"
:visible=
"visible"
title=
"
服务类别
"
@
close=
"close"
>
<a-drawer
:width=
"500"
:visible=
"visible"
title=
"
首页通知
"
@
close=
"close"
>
<a-form
:form=
"form"
layout=
"vertical"
>
<a-form
:form=
"form"
layout=
"vertical"
>
<a-form-item
label=
"名称"
>
<a-form-item
label=
"名称"
>
<a-input
<a-input
v-decorator=
"['title']"
/>
v-decorator=
"[
'title',
{
rules: [{ required: true }]
}
]"
/>
</a-form-item>
</a-form-item>
<a-form-item
label=
"内容(18字)"
>
<a-form-item
label=
"内容(18字)"
>
<a-input
<a-input
...
@@ -17,12 +10,8 @@
...
@@ -17,12 +10,8 @@
'content',
'content',
{
{
rules: [
rules: [
{
{ required: true, message: '请填写内容' },
required: true
{ max: 18, message: '为了显示效果内容应少于18字' }
},
{
max: 18
}
]
]
}
}
]"
]"
...
@@ -34,7 +23,7 @@
...
@@ -34,7 +23,7 @@
</a-form>
</a-form>
<div
class=
"drawer-form-bottom-toolbar"
>
<div
class=
"drawer-form-bottom-toolbar"
>
<a-button
:style=
"
{ marginRight: '8px' }" @click="close"> 取消
</a-button>
<a-button
:style=
"
{ marginRight: '8px' }" @click="close"> 取消
</a-button>
<a-button
type=
"primary"
@
click=
"submit"
>
保存
</a-button>
<a-button
v-if=
"hasPerm('SYS02103.EDIT')"
type=
"primary"
@
click=
"submit"
>
保存
</a-button>
</div>
</div>
</a-drawer>
</a-drawer>
</
template
>
</
template
>
...
...
src/views/order/ChooseWorker.vue
View file @
4ec8c497
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
</a-radio-group>
</a-radio-group>
</div>
</div>
<div
v-show=
"step == 1"
>
<div
v-show=
"step == 1"
>
<span>
选择上门时间
</span>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-form-item
label=
"备注"
>
<a-form-item
label=
"备注"
>
<a-textarea
<a-textarea
...
...
src/views/order/OrderDetail.vue
View file @
4ec8c497
...
@@ -58,6 +58,7 @@
...
@@ -58,6 +58,7 @@
</a-descriptions>
</a-descriptions>
</div>
</div>
<div
id=
"order-detail-drawer-box-timeline"
>
<div
id=
"order-detail-drawer-box-timeline"
>
<h3>
订单流程
</h3>
<a-timeline>
<a-timeline>
<
template
v-for=
"(log, i) in order.process"
>
<
template
v-for=
"(log, i) in order.process"
>
<a-timeline-item
:key=
"i"
>
<a-timeline-item
:key=
"i"
>
...
@@ -80,6 +81,7 @@
...
@@ -80,6 +81,7 @@
@
click=
"sendPrice"
@
click=
"sendPrice"
type=
"primary"
type=
"primary"
v-if=
"
v-if=
"
hasPerm('SYS02201.SEND') &&
!past &&
!past &&
(order.orderStatus == STATUS.RESERVE ||
(order.orderStatus == STATUS.RESERVE ||
order.orderStatus == STATUS.VALUATION)
order.orderStatus == STATUS.VALUATION)
...
@@ -89,32 +91,32 @@
...
@@ -89,32 +91,32 @@
</a-button>
</a-button>
<a-button
<a-button
@
click=
"sendValuator"
@
click=
"sendValuator"
v-if=
"!past && order.orderStatus == STATUS.RESERVE"
v-if=
"
hasPerm('SYS02201.VALUATOR') &&
!past && order.orderStatus == STATUS.RESERVE"
>
>
现场估价
现场估价
</a-button>
</a-button>
<a-button
<a-button
@
click=
"reSendValuator"
@
click=
"reSendValuator"
v-if=
"order.orderStatus == STATUS.VALUATION"
v-if=
"
hasPerm('SYS02201.VALUATOR') && !past &&
order.orderStatus == STATUS.VALUATION"
>
>
重新指派估价员
重新指派估价员
</a-button>
</a-button>
<a-button
<a-button
v-if=
"!past && order.orderStatus == STATUS.PAY"
v-if=
"
hasPerm('SYS02201.WORKER') &&
!past && order.orderStatus == STATUS.PAY"
type=
"primary"
type=
"primary"
@
click=
"dispatch"
@
click=
"dispatch"
>
>
派单
派单
</a-button>
</a-button>
<a-button
<a-button
v-if=
"!past && order.orderStatus == STATUS.DISPATCH"
v-if=
"
hasPerm('SYS02201.WORKER') &&
!past && order.orderStatus == STATUS.DISPATCH"
@
click=
"reDispatch"
@
click=
"reDispatch"
>
>
重新派单
重新派单
</a-button>
</a-button>
<a-button
<a-button
@
click=
"finish"
@
click=
"finish"
v-if=
"past && order.orderStatus == STATUS.DISPATCH"
v-if=
"
hasPerm('SYS02201.FINISH') &&
past && order.orderStatus == STATUS.DISPATCH"
type=
"primary"
type=
"primary"
>
>
完成
完成
...
@@ -214,7 +216,7 @@ export default {
...
@@ -214,7 +216,7 @@ export default {
mounted
()
{}
mounted
()
{}
}
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
>
#order-detail-drawer-box {
#order-detail-drawer-box {
height: 100%;
height: 100%;
display: flex;
display: flex;
...
@@ -225,7 +227,14 @@ export default {
...
@@ -225,7 +227,14 @@ export default {
width: 40%;
width: 40%;
max-height: 100%;
max-height: 100%;
overflow-y: auto;
overflow-y: auto;
padding-top: 10px;
h3 {
margin-bottom: 30px;
font-weight: bold;
}
}
.ant-descriptions-item-label {
margin-top: 5px;
font-weight: bold;
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/serv/CategoryEdit.vue
View file @
4ec8c497
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</a-form-item>
</a-form-item>
</a-form>
</a-form>
<div
class=
"drawer-form-bottom-toolbar"
>
<div
class=
"drawer-form-bottom-toolbar"
>
<a-button
:style=
"
{ marginRight: '8px' }" @click="close"> 取消
</a-button>
<a-button
:style=
"
{ marginRight: '8px' }"
v-if="hasPerm('SYS0210101.CATEGORY')"
@click="close"> 取消
</a-button>
<a-button
type=
"primary"
@
click=
"submit"
>
保存
</a-button>
<a-button
type=
"primary"
@
click=
"submit"
>
保存
</a-button>
</div>
</div>
</a-drawer>
</a-drawer>
...
...
src/views/serv/ServiceList.vue
View file @
4ec8c497
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</template>
</template>
<
template
#
enable=
"{ record, index }"
>
<
template
#
enable=
"{ record, index }"
>
<a-switch
<a-switch
v-if=
"record.type == 2"
v-if=
"
hasPerm('SYS0210101.ENABLE') &&
record.type == 2"
:checked=
"record.enabled"
:checked=
"record.enabled"
checked-children=
"启用"
checked-children=
"启用"
un-checked-children=
"禁用"
un-checked-children=
"禁用"
...
...
src/views/serv/SubClassEdit.vue
View file @
4ec8c497
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
</a-form>
</a-form>
<div
class=
"drawer-form-bottom-toolbar"
>
<div
class=
"drawer-form-bottom-toolbar"
>
<a-button
:style=
"
{ marginRight: '8px' }" @click="close"> 取消
</a-button>
<a-button
:style=
"
{ marginRight: '8px' }" @click="close"> 取消
</a-button>
<a-button
type=
"primary"
@
click=
"submit"
>
保存
</a-button>
<a-button
type=
"primary"
v-if=
"hasPerm('SYS0210101.EDIT')"
@
click=
"submit"
>
保存
</a-button>
</div>
</div>
</a-drawer>
</a-drawer>
</
template
>
</
template
>
...
...
src/views/serviceWorker/ServiceWorkerEdit.vue
View file @
4ec8c497
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</a-form>
</a-form>
<div
class=
"drawer-form-bottom-toolbar"
>
<div
class=
"drawer-form-bottom-toolbar"
>
<a-button
:style=
"
{ marginRight: '8px' }" @click="close"> 取消
</a-button>
<a-button
:style=
"
{ marginRight: '8px' }" @click="close"> 取消
</a-button>
<a-button
type=
"primary"
@
click=
"submit"
>
保存
</a-button>
<a-button
type=
"primary"
@
click=
"submit"
v-if=
"hasPerm('SYS0200201.EDIT')"
>
保存
</a-button>
</div>
</div>
</a-drawer>
</a-drawer>
</
template
>
</
template
>
...
...
src/views/serviceWorker/ServiceWorkerList.vue
View file @
4ec8c497
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<template
#
action=
"
{ record }">
<template
#
action=
"
{ record }">
<a-space>
<a-space>
<a
@
click=
"edit(record.id)"
>
编辑
</a>
<a
@
click=
"edit(record.id)"
>
编辑
</a>
<a
style=
"color: red"
@
click=
"deleteRow(record.id)"
>
删除
</a>
<a
v-if=
"hasPerm('SYS0200201.DELETE')"
style=
"color: red"
@
click=
"deleteRow(record.id)"
>
删除
</a>
</a-space>
</a-space>
</
template
>
</
template
>
<
template
#
free
>
<
template
#
free
>
...
@@ -53,7 +53,8 @@ export default {
...
@@ -53,7 +53,8 @@ export default {
toolbar
:
[
toolbar
:
[
{
{
text
:
'新增'
,
text
:
'新增'
,
handler
:
'add'
handler
:
'add'
,
bizCode
:
'SYS0200201.EDIT'
}
}
]
]
}
}
...
...
src/views/system/role/SysRoleList.vue
View file @
4ec8c497
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
checkedChildren=
"启用"
checkedChildren=
"启用"
unCheckedChildren=
"禁用"
unCheckedChildren=
"禁用"
@
click=
"setStatus(record)"
@
click=
"setStatus(record)"
:checked=
"record.
available
"
:checked=
"record.
isEnabled
"
:key=
"record.id"
/>
:key=
"record.id"
/>
</span>
</span>
</a-table>
</a-table>
...
...
src/views/system/user/SysUserList.vue
View file @
4ec8c497
<
template
>
<
template
>
<table-template
:soul=
"this"
>
<table-template
:soul=
"this"
>
<template
#
tags=
"
{ record }">
<template
#
tags=
"
{ record
, index
}">
<a-switch
<a-switch
:disabled=
"record.id == 1"
:disabled=
"record.id == 1"
checkedChildren=
"启用"
checkedChildren=
"启用"
unCheckedChildren=
"禁用"
unCheckedChildren=
"禁用"
@
click=
"setStatus(record)"
@
click=
"setStatus(record)"
:checked=
"
record.available
"
:checked=
"
dataSource[index].isEnabled
"
/>
/>
</
template
>
</
template
>
<
template
#
action=
"{ record }"
>
<
template
#
action=
"{ record }"
>
...
...
src/views/user/UserList.vue
View file @
4ec8c497
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<
template
#
userType=
"{ record }"
>
<
template
#
userType=
"{ record }"
>
<span
<span
>
{{
record
.
roleTypeValue
}}
>
{{
record
.
roleTypeValue
}}
<a-dropdown
:trigger=
"['click']"
>
<a-dropdown
:trigger=
"['click']"
v-if=
"hasPerm"
>
<a><a-icon
type=
"edit"
@
click=
"(e) => e.preventDefault()"
/></a>
<a><a-icon
type=
"edit"
@
click=
"(e) => e.preventDefault(
'SYS0200101.EDIT'
)"
/></a>
<a-menu
slot=
"overlay"
@
click=
"(
{ key }) => edit(key, record)">
<a-menu
slot=
"overlay"
@
click=
"(
{ key }) => edit(key, record)">
<a-menu-item
key=
"0"
>
修改为 普通用户
</a-menu-item>
<a-menu-item
key=
"0"
>
修改为 普通用户
</a-menu-item>
<a-menu-item
key=
"1"
>
修改为 客服
</a-menu-item>
<a-menu-item
key=
"1"
>
修改为 客服
</a-menu-item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment