Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 66c3477a
authored
Apr 13, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交商户、员工
1 parent
3c8063cc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
209 additions
and
47 deletions
src/assets/css/demo.scss
src/setup/qiankun.js
src/views/account/detailAccount.vue
src/views/account/index.vue
src/views/employee/index.vue
src/assets/css/demo.scss
View file @
66c3477
...
@@ -9,3 +9,21 @@
...
@@ -9,3 +9,21 @@
.align-right
{
.align-right
{
text-align
:
right
;
text-align
:
right
;
}
}
.table-header
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
10px
;
}
.header-text
{
font-size
:
16px
;
color
:
#333333
;
font-weight
:
500
;
}
.el-button--primary.is-plain
{
color
:
#5850FF
;
border-color
:
#5850FF
;
}
\ No newline at end of file
\ No newline at end of file
src/setup/qiankun.js
View file @
66c3477
/*
/*
* @Author: your name
* @Author: your name
* @Date: 2022-03-02 15:56:07
* @Date: 2022-03-02 15:56:07
* @LastEditTime: 2022-04-12 1
1:09:56
* @LastEditTime: 2022-04-12 1
6:36:12
* @LastEditors: huyue
* @LastEditors: huyue
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-settings\src\setup\qiankun.js
* @FilePath: \scrm-micro-settings\src\setup\qiankun.js
...
@@ -10,13 +10,14 @@ import Vue from 'vue'
...
@@ -10,13 +10,14 @@ import Vue from 'vue'
// import { message } from '@/plugins/element.js'
// import { message } from '@/plugins/element.js'
import
{
fetchConfig
}
from
'@/config'
import
{
fetchConfig
}
from
'@/config'
import
ElementUI
from
'element-ui'
import
ElementUI
from
'element-ui'
import
{
GLButton
,
GLTable
,
GLFooter
,
GLCombiForm
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
GLButton
,
GLTable
,
GLFooter
,
GLCombiForm
,
GLTableButton
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
getRoutes
}
from
'@/router'
import
{
getRoutes
}
from
'@/router'
import
render
from
'./render'
import
render
from
'./render'
Vue
.
use
(
ElementUI
)
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLFooter
)
Vue
.
use
(
GLFooter
)
Vue
.
use
(
GLCombiForm
)
Vue
.
use
(
GLCombiForm
)
Vue
.
use
(
GLTableButton
)
// import GLTable from '@/components/glsx-table/index'
// import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable)
// Vue.component('GLTable', GLTable)
import
'glsx-components/dist/glsx-components.css'
import
'glsx-components/dist/glsx-components.css'
...
...
src/views/account/detailAccount.vue
View file @
66c3477
...
@@ -292,13 +292,11 @@ export default {
...
@@ -292,13 +292,11 @@ export default {
},
},
{
{
label
:
'操作人'
,
label
:
'操作人'
,
prop
:
'userName'
,
prop
:
'userName'
width
:
180
},
},
{
{
label
:
'操作时间'
,
label
:
'操作时间'
,
prop
:
'createdTime'
,
prop
:
'createdTime'
width
:
180
}
}
]
]
},
},
...
...
src/views/account/index.vue
View file @
66c3477
...
@@ -10,12 +10,22 @@
...
@@ -10,12 +10,22 @@
<GLCombiForm
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLTable
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
>
<GLTable
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
>
<div
slot=
"accountTypeNames"
slot-scope=
"scope"
>
<div
slot=
"accountTypeNames"
slot-scope=
"scope"
>
<div
class=
"accountType-row"
v-for=
"(item, index) in scope.scope.accountTypeNames.split(',')"
:key=
"index"
>
{{
item
}}
</div>
<!--
<div
class=
"accountType-row"
v-for=
"(item, index) in scope.scope.accountTypeNames.split(',')"
:key=
"index"
>
{{
item
}}
</div>
-->
<span
v-for=
"(item, index) in scope.scope.accountTypeNames.split(',')"
:key=
"index"
>
<span
class=
"account-type"
v-if=
"index
< 3
"
>
{{
item
}}
</span>
<span
class=
"account-type"
v-if=
"scope.scope.accountTypeNames.split(',').length > 3 && index == 3"
>
<el-popover
placement=
"top"
width=
"300"
trigger=
"hover"
>
<span
slot=
"reference"
>
...(
{{
scope
.
scope
.
accountTypeNames
.
split
(
','
).
length
}}
)
</span>
<span
class=
"account-type m-b-8"
v-for=
"(i, ids) in scope.scope.accountTypeNames.split(',')"
:key=
"ids"
:disable-transitions=
"false"
>
{{
i
}}
</span>
</el-popover>
</span>
</span>
</div>
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
type=
"text"
@
click=
"handleLook(scope.scope)"
fn=
"查看"
>
查看
</GLButton>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
:buttonNum=
"2"
></GLTableButton>
<!--
<GLButton
type=
"text"
@
click=
"handleLook(scope.scope)"
fn=
"查看"
>
查看
</GLButton>
<GLButton
type=
"text"
@
click=
"handleEdit(scope.scope)"
v-if=
"$globalState.session.merchantId != scope.scope.merchantNo"
fn=
"修改"
mode=
"el-button"
>
修改
</GLButton>
<GLButton
type=
"text"
@
click=
"handleEdit(scope.scope)"
v-if=
"$globalState.session.merchantId != scope.scope.merchantNo"
fn=
"修改"
mode=
"el-button"
>
修改
</GLButton>
<GLButton
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
fn=
"创建子商户/门店"
mode=
"el-button"
>
创建
子商户/门店
</GLButton
>
<GLButton
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
fn=
"创建子商户/门店"
mode=
"el-button"
>
创建
商户
</GLButton>
--
>
<!--
<el-button
type=
"text"
@
click=
"handleLook(scope.scope)"
>
查看
</el-button>
-->
<!--
<el-button
type=
"text"
@
click=
"handleLook(scope.scope)"
>
查看
</el-button>
-->
<!--
<el-button
type=
"text"
@
click=
"handleEdit(scope.scope)"
v-if=
"$globalState.session.merchantId != scope.scope.merchantNo"
>
修改
</el-button>
<!--
<el-button
type=
"text"
@
click=
"handleEdit(scope.scope)"
v-if=
"$globalState.session.merchantId != scope.scope.merchantNo"
>
修改
</el-button>
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
>
创建子商户/门店
</el-button>
-->
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
>
创建子商户/门店
</el-button>
-->
...
@@ -50,18 +60,22 @@ export default {
...
@@ -50,18 +60,22 @@ export default {
// 表格参数
// 表格参数
tableParams
:
{
tableParams
:
{
tableOption
:
{
tableOption
:
{
width
:
'1
5
0px'
width
:
'1
7
0px'
},
},
mutiSelectName
:
'merchant'
,
mutiSelectName
:
'merchant'
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'商户名'
,
label
:
'商户名'
,
prop
:
'merchantName'
prop
:
'merchantName'
,
width
:
'200'
,
line
:
1
},
},
{
{
label
:
'关联的企业微信'
,
label
:
'关联的企业微信'
,
prop
:
'entmicroName'
,
prop
:
'entmicroName'
,
width
:
'140'
,
line
:
1
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
entmicroName
?
cellValue
.
entmicroName
:
'-'
return
cellValue
.
entmicroName
?
cellValue
.
entmicroName
:
'-'
}
}
...
@@ -69,20 +83,25 @@ export default {
...
@@ -69,20 +83,25 @@ export default {
{
{
label
:
'账户类型'
,
label
:
'账户类型'
,
prop
:
'accountTypeNames'
,
prop
:
'accountTypeNames'
,
addHtml
:
'accountTypeNames'
addHtml
:
'accountTypeNames'
,
width
:
'300'
},
},
{
{
label
:
'登录账户'
,
label
:
'登录账户'
,
prop
:
'merchantLoginAccount'
prop
:
'merchantLoginAccount'
,
width
:
'200'
,
line
:
1
},
},
{
{
label
:
'账户等级'
,
label
:
'账户等级'
,
prop
:
'accountLevelName'
,
prop
:
'accountLevelName'
,
width
:
'
80px
'
width
:
'
100
'
},
},
{
{
label
:
'上级商户'
,
label
:
'上级商户'
,
prop
:
'parentMerchant'
,
prop
:
'parentMerchant'
,
width
:
'180'
,
line
:
1
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
parentMerchant
?
cellValue
.
parentMerchant
:
'-'
return
cellValue
.
parentMerchant
?
cellValue
.
parentMerchant
:
'-'
}
}
...
@@ -90,11 +109,14 @@ export default {
...
@@ -90,11 +109,14 @@ export default {
{
{
label
:
'账户状态'
,
label
:
'账户状态'
,
prop
:
'statusName'
,
prop
:
'statusName'
,
width
:
'80px'
width
:
'100'
,
line
:
1
},
},
{
{
label
:
'联系人'
,
label
:
'联系人'
,
prop
:
'merchantLegalPerson'
,
prop
:
'merchantLegalPerson'
,
width
:
'150'
,
line
:
1
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
merchantLegalPerson
?
cellValue
.
merchantLegalPerson
:
'-'
return
cellValue
.
merchantLegalPerson
?
cellValue
.
merchantLegalPerson
:
'-'
}
}
...
@@ -102,14 +124,65 @@ export default {
...
@@ -102,14 +124,65 @@ export default {
{
{
label
:
'手机号'
,
label
:
'手机号'
,
prop
:
'merchantLegalPersonPhone'
,
prop
:
'merchantLegalPersonPhone'
,
width
:
'1
20px
'
width
:
'1
30
'
},
},
{
{
label
:
'更新时间'
,
label
:
'更新时间'
,
prop
:
'updatedTime'
prop
:
'updatedTime'
,
width
:
'180'
}
}
]
]
},
},
buttonList
:
[
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'查看'
},
attrs
:
{
type
:
'text'
,
fn
:
'查看'
},
condition
:
row
=>
{
return
true
},
listeners
:
{
click
:
this
.
handleLook
}
},
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'修改'
},
condition
:
row
=>
{
return
this
.
$globalState
.
session
.
merchantId
!=
row
.
merchantNo
},
attrs
:
{
type
:
'text'
,
fn
:
'查看'
},
listeners
:
{
click
:
this
.
handleEdit
}
},
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'创建商户'
},
condition
:
row
=>
{
return
row
.
status
==
2
&&
row
.
merchantAccountLevel
!=
4
},
attrs
:
{
type
:
'text'
,
fn
:
'创建子商户/门店'
},
listeners
:
{
click
:
this
.
handleAdd
}
}
],
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
tableData
:
[],
tableData
:
[],
tableTotal
:
0
,
tableTotal
:
0
,
...
@@ -174,7 +247,7 @@ export default {
...
@@ -174,7 +247,7 @@ export default {
type
:
'input'
type
:
'input'
},
},
{
{
label
:
''
,
label
:
'
名称
'
,
name
:
'merchantName'
,
name
:
'merchantName'
,
type
:
'input'
,
type
:
'input'
,
placeholder
:
'请输入商户名称/关联的企业微信名'
placeholder
:
'请输入商户名称/关联的企业微信名'
...
@@ -349,6 +422,17 @@ export default {
...
@@ -349,6 +422,17 @@ export default {
top
:
5px
;
top
:
5px
;
}
}
}
}
.account-type
{
display
:
inline-block
;
padding
:
4px
8px
;
background-color
:
#e9ecf7
;
color
:
#666
;
margin-right
:
8px
;
margin-bottom
:
4px
;
}
.m-b-8
{
margin-bottom
:
8px
;
}
.merchant-row
{
.merchant-row
{
margin-left
:
20px
;
margin-left
:
20px
;
&-input
{
&-input
{
...
...
src/views/employee/index.vue
View file @
66c3477
...
@@ -9,19 +9,23 @@
...
@@ -9,19 +9,23 @@
<div>
<div>
<GLCombiForm
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"reSetFindData"
></GLCombiForm>
<GLCombiForm
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"reSetFindData"
></GLCombiForm>
</div>
</div>
<GLButton
@
click=
"handleExport"
fn=
"导出"
:size=
"size"
type=
"primary"
mode=
"el-button"
>
导出
</GLButton>
<div
class=
"table-header"
>
<div
class=
"header-text"
>
员工列表
</div>
<div
class=
"table-btn"
>
<div
class=
"table-btn"
>
<el-button
@
click=
"handleExport"
:size=
"size"
type=
"primary"
mode=
"el-button"
>
导出
</el-button>
<el-button
@
click=
"handleExport"
:size=
"size"
type=
"primary"
plain
mode=
"el-button"
>
导出
</el-button>
<GLButton
@
click=
"handleExport"
fn=
"导出"
:size=
"size"
type=
"primary"
mode=
"el-button"
>
导出
</GLButton>
</div>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"employeeRef"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"employeeRef"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<div
slot=
"optionBtns"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
></GLTableButton>
<!--
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-button>
-->
<!--
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-button>
-->
<!--
<el-button
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
修改
</el-button>
<!--
<el-button
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
修改
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
-->
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
-->
<GLButton
type=
"text"
@
click=
"handleDetail(scope.scope)"
fn=
"查看"
mode=
"el-button"
>
查看
</GLButton>
<
!--
<
GLButton
type=
"text"
@
click=
"handleDetail(scope.scope)"
fn=
"查看"
mode=
"el-button"
>
查看
</GLButton>
<GLButton
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
fn=
"修改"
mode=
"el-button"
>
修改
</GLButton>
<GLButton
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
fn=
"修改"
mode=
"el-button"
>
修改
</GLButton>
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
-->
</div>
</div>
<template
slot=
"otherOptions"
slot-scope=
"scope"
>
<template
slot=
"otherOptions"
slot-scope=
"scope"
>
...
@@ -36,9 +40,10 @@
...
@@ -36,9 +40,10 @@
<p>
启用前,你可先为该员工创建角色,配置其所需的功能权限。如下所示:
</p>
<p>
启用前,你可先为该员工创建角色,配置其所需的功能权限。如下所示:
</p>
<p>
1. 角色管理-创建角色
</p>
<p>
1. 角色管理-创建角色
</p>
<p>
2. 选择员工账户-修改角色
</p>
<p>
2. 选择员工账户-修改角色
</p>
<GLButton
mode=
"el-switch"
fn=
"开关"
:size=
"size
"
slot=
"reference"
v-model=
"scope.scope.statusName"
active-value=
"启用"
inactive-value=
"禁用"
@
change=
"e => handleSwitchChange(e, scope.scope)"
></GLButton>
<GLButton
mode=
"el-switch"
fn=
"开关"
size=
"mini
"
slot=
"reference"
v-model=
"scope.scope.statusName"
active-value=
"启用"
inactive-value=
"禁用"
@
change=
"e => handleSwitchChange(e, scope.scope)"
></GLButton>
</el-popover>
</el-popover>
<GLButton
mode=
"el-switch"
fn=
"开关"
v-else
:size=
"size"
slot=
"reference"
v-model=
"scope.scope.statusName"
active-value=
"启用"
inactive-value=
"禁用"
@
change=
"e => handleSwitchChange(e, scope.scope)"
></GLButton>
<GLButton
mode=
"el-switch"
fn=
"开关"
v-else
size=
"mini"
slot=
"reference"
v-model=
"scope.scope.statusName"
active-value=
"启用"
inactive-value=
"禁用"
@
change=
"e => handleSwitchChange(e, scope.scope)"
></GLButton>
<span
style=
"margin-left: 8px"
>
{{
scope
.
scope
.
statusName
}}
</span>
</GLButton>
</GLButton>
</
template
>
</
template
>
</GLTable>
</GLTable>
...
@@ -137,13 +142,15 @@ export default {
...
@@ -137,13 +142,15 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'员工姓名'
,
label
:
'员工姓名'
,
prop
:
'staffName'
prop
:
'staffName'
,
width
:
'100'
,
line
:
1
},
},
{
{
label
:
'员工企微号'
,
label
:
'员工企微号'
,
prop
:
'entmicroName'
,
prop
:
'entmicroName'
,
line
:
2
,
line
:
1
,
minWidth
:
'100px
'
,
width
:
'120
'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
entmicroName
||
'-'
return
cellValue
.
entmicroName
||
'-'
}
}
...
@@ -151,7 +158,8 @@ export default {
...
@@ -151,7 +158,8 @@ export default {
{
{
label
:
'角色'
,
label
:
'角色'
,
prop
:
'roleName'
,
prop
:
'roleName'
,
line
:
2
,
width
:
'200'
,
line
:
1
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
roleName
||
'-'
return
cellValue
.
roleName
||
'-'
}
}
...
@@ -159,45 +167,94 @@ export default {
...
@@ -159,45 +167,94 @@ export default {
{
{
label
:
'登录手机号'
,
label
:
'登录手机号'
,
prop
:
'staffPhone'
,
prop
:
'staffPhone'
,
width
:
'130
px
'
width
:
'130'
},
},
{
{
label
:
'所属门店'
,
label
:
'所属门店'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
,
line
:
2
width
:
'300'
,
line
:
1
},
},
{
{
label
:
'所属企微'
,
label
:
'所属企微'
,
prop
:
'belongingEntmicroName'
,
prop
:
'belongingEntmicroName'
,
line
:
2
width
:
'200'
,
},
line
:
1
{
},
label
:
'状态'
,
// {
prop
:
'statusName'
,
// label: '状态',
width
:
'80px'
// prop: 'statusName',
},
// width: '80px'
// },
{
{
label
:
'更新时间'
,
label
:
'更新时间'
,
prop
:
'updatedTime'
,
prop
:
'updatedTime'
,
line
:
2
,
line
:
1
,
minWidth
:
'88px'
minWidth
:
'180'
},
{
label
:
'启用开关'
,
prop
:
'otherOptions'
,
width
:
'120'
,
addHtml
:
'otherOptions'
,
fixed
:
'right'
},
},
{
{
label
:
'操作'
,
label
:
'操作'
,
prop
:
'optionBtns'
,
prop
:
'optionBtns'
,
width
:
'1
40px
'
,
width
:
'1
50
'
,
addHtml
:
'optionBtns'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
fixed
:
'right'
}
]
},
},
buttonList
:
[
{
{
label
:
'启用开关'
,
type
:
'GLButton'
,
prop
:
'otherOptions'
,
name
:
row
=>
{
width
:
'80px'
,
return
'查看'
addHtml
:
'otherOptions'
,
},
fixed
:
'right'
attrs
:
{
type
:
'text'
,
fn
:
'查看'
},
condition
:
row
=>
{
return
true
},
listeners
:
{
click
:
this
.
handleDetail
}
},
{
type
:
'GLButton'
,
name
:
'修改'
,
condition
:
row
=>
{
return
true
},
attrs
:
{
type
:
'text'
,
fn
:
'修改'
},
listeners
:
{
click
:
this
.
handleModify
}
}
]
},
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'删除'
},
condition
:
row
=>
{
return
true
},
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
this
.
handleDelete
}
}
],
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
baseData
:
{
baseData
:
{
allMerchantList
:
[],
allMerchantList
:
[],
...
@@ -306,6 +363,10 @@ export default {
...
@@ -306,6 +363,10 @@ export default {
addOrEdit
==
1
?
this
.
$router
.
push
(
'/employee/editEmployee/'
+
addOrEdit
)
:
this
.
$router
.
push
(
'/employee/editEmployee/'
+
addOrEdit
+
'/'
+
row
.
id
)
addOrEdit
==
1
?
this
.
$router
.
push
(
'/employee/editEmployee/'
+
addOrEdit
)
:
this
.
$router
.
push
(
'/employee/editEmployee/'
+
addOrEdit
+
'/'
+
row
.
id
)
},
},
handleModify
(
row
,
config
)
{
this
.
handleEdit
(
2
,
row
)
},
handleSwitchChange
(
val
,
row
)
{
handleSwitchChange
(
val
,
row
)
{
if
(
!
row
.
roleName
)
{
if
(
!
row
.
roleName
)
{
const
h
=
this
.
$createElement
const
h
=
this
.
$createElement
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment