Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
杨明
/
scrm-micro-config
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 76eeab67
authored
Nov 04, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/yangming/scrm-micro-config
2 parents
f643176b
bf8c5c1c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
15 deletions
src/views/employee/index.vue
src/views/employee/index.vue
View file @
76eeab6
<!-- 员工管理 -->
<!-- 员工管理 -->
<
template
>
<
template
>
<div
class=
"config-employee employee-list"
>
<div
class=
"config-employee employee-list"
>
<div
class=
"container
"
>
<div
style=
"margin-bottom: 20px;
"
>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
创建员工
</el-button>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"handleEdit(1)"
>
创建员工
</el-button>
<glsx-combi-form
v-if=
"userInfo.accountLevel != 4"
style=
"float: right;"
ref=
"showSearch"
labelWidth=
"90px"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"topSearchFormData"
>
<
!--
<
glsx-combi-form
v-if=
"userInfo.accountLevel != 4"
style=
"float: right;"
ref=
"showSearch"
labelWidth=
"90px"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"topSearchFormData"
>
<template
slot=
"merchantId"
slot-scope=
"item"
>
<template
slot=
"merchantId"
slot-scope=
"item"
>
<select-page
:form=
"searchForm"
width=
"200"
:targetItem=
"item.scope"
@
handleChange=
"handleChangeMerchant"
></select-page>
<select-page
:form=
"searchForm"
width=
"200"
:targetItem=
"item.scope"
@
handleChange=
"handleChangeMerchant"
></select-page>
</
template
>
</
template
>
</glsx-combi-form>
</glsx-combi-form>
-->
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<div>
<div>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"60px"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"90px"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
>
<
template
slot=
"merchantId"
slot-scope=
"item"
>
<select-page
:form=
"searchForm"
width=
"200"
:targetItem=
"item.scope"
@
handleChange=
"handleChangeMerchant"
></select-page>
</
template
>
<span
slot=
"footer"
class=
"footer-btns"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
...
@@ -66,7 +69,20 @@ export default {
...
@@ -66,7 +69,20 @@ export default {
value
:
''
value
:
''
}
}
},
},
topSearchFormData
:
[
// topSearchFormData: [
// {
// label: '商户名称',
// name: 'merchantId',
// nameLabel: 'merchantName',
// optionList: [],
// optionId: 'id',
// optionLabel: 'merchantName',
// optionsName: 'allMerchantList',
// addHtml: 'merchantId'
// }
// ],
// 搜索
searchFormData
:
[
{
{
label
:
'商户名称'
,
label
:
'商户名称'
,
name
:
'merchantId'
,
name
:
'merchantId'
,
...
@@ -76,15 +92,12 @@ export default {
...
@@ -76,15 +92,12 @@ export default {
optionLabel
:
'merchantName'
,
optionLabel
:
'merchantName'
,
optionsName
:
'allMerchantList'
,
optionsName
:
'allMerchantList'
,
addHtml
:
'merchantId'
addHtml
:
'merchantId'
}
},
],
// 搜索
searchFormData
:
[
{
{
label
:
'角色'
,
label
:
'角色'
,
name
:
'roleId'
,
name
:
'roleId'
,
type
:
'select'
,
type
:
'select'
,
width
:
'
20
0px'
,
width
:
'
16
0px'
,
optionList
:
[],
optionList
:
[],
optionId
:
'id'
,
optionId
:
'id'
,
optionLabel
:
'roleName'
,
optionLabel
:
'roleName'
,
...
@@ -94,7 +107,7 @@ export default {
...
@@ -94,7 +107,7 @@ export default {
label
:
'状态'
,
label
:
'状态'
,
name
:
'status'
,
name
:
'status'
,
type
:
'select'
,
type
:
'select'
,
width
:
'
20
0px'
,
width
:
'
11
0px'
,
optionList
:
[],
optionList
:
[],
optionId
:
'dictValue'
,
optionId
:
'dictValue'
,
optionLabel
:
'dictLabel'
,
optionLabel
:
'dictLabel'
,
...
@@ -207,7 +220,7 @@ export default {
...
@@ -207,7 +220,7 @@ export default {
this
.
userInfo
=
this
.
$globalState
.
session
this
.
userInfo
=
this
.
$globalState
.
session
// 门店
// 门店
if
(
this
.
userInfo
.
accountLevel
==
4
)
{
if
(
this
.
userInfo
.
accountLevel
==
4
)
{
//
this.searchFormData.splice(0, 1)
this
.
searchFormData
.
splice
(
0
,
1
)
var
idx
=
this
.
tableParams
.
tableColumns
.
findIndex
(
item
=>
item
.
prop
==
'merchantName'
)
var
idx
=
this
.
tableParams
.
tableColumns
.
findIndex
(
item
=>
item
.
prop
==
'merchantName'
)
this
.
tableParams
.
tableColumns
.
splice
(
idx
,
1
)
this
.
tableParams
.
tableColumns
.
splice
(
idx
,
1
)
}
}
...
@@ -219,7 +232,7 @@ export default {
...
@@ -219,7 +232,7 @@ export default {
getAllMerchantList
()
{
getAllMerchantList
()
{
this
.
$apis
.
employee
.
getAllMerchantListApi
({}).
then
(
res
=>
{
this
.
$apis
.
employee
.
getAllMerchantListApi
({}).
then
(
res
=>
{
this
.
baseData
.
allMerchantList
=
res
this
.
baseData
.
allMerchantList
=
res
this
.
userInfo
.
accountLevel
==
4
?
this
.
handleChangeMerchant
(
res
[
0
].
id
)
:
this
.
getOptionsList
(
'
topS
earchFormData'
,
true
,
'merchantId'
)
this
.
userInfo
.
accountLevel
==
4
?
this
.
handleChangeMerchant
(
res
[
0
].
id
)
:
this
.
getOptionsList
(
'
s
earchFormData'
,
true
,
'merchantId'
)
})
})
},
},
getStaffStatusList
()
{
getStaffStatusList
()
{
...
@@ -292,8 +305,7 @@ export default {
...
@@ -292,8 +305,7 @@ export default {
},
},
// 1-新增;2-编辑
// 1-新增;2-编辑
handleEdit
(
addOrEdit
,
row
)
{
handleEdit
(
addOrEdit
,
row
)
{
var
id
=
row
?
row
.
id
:
'-1'
addOrEdit
==
1
?
this
.
$router
.
push
(
'/employee/editEmployee/'
+
addOrEdit
)
:
this
.
$router
.
push
(
'/employee/editEmployee/'
+
addOrEdit
+
'/'
+
row
.
id
)
this
.
$router
.
push
(
'/employee/editEmployee/'
+
addOrEdit
+
'/'
+
id
)
},
},
handleSwitchChange
(
val
,
row
)
{
handleSwitchChange
(
val
,
row
)
{
...
...
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