Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 fa1cd0c1
authored
Dec 14, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复店面配置中人员设置里提交信息会置空员工姓名的BUG
1 parent
5061adc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
17 deletions
src/views/systemConfig/ShopConfig/personnelManagement.vue
src/views/systemConfig/ShopConfig/personnelManagement.vue
View file @
fa1cd0c
...
...
@@ -2,9 +2,14 @@
<
template
>
<div
style=
"paddingTop:5px;"
>
<!--
<d2-container>
-->
<div
class=
"header bg"
slot=
"header"
style=
"padding: 10px 20px;"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
label-width=
"100px"
:search-form=
"searchForm"
:form-data=
"showFormData"
>
<div
class=
"header bg"
slot=
"header"
style=
"padding: 10px 20px;"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
label-width=
"100px"
:search-form=
"searchForm"
:form-data=
"showFormData"
>
<!--
<div
slot=
"departments"
>
<el-select
v-model=
"searchForm.department"
filterable
...
...
@@ -21,19 +26,30 @@
</el-select>
</div>
-->
<div
slot=
"sourceMerchant"
>
<el-select
v-model=
"searchForm.merchantId"
filterable
remote
reserve-keyword
clearable
placeholder=
"请输入关键字"
:remote-method=
"remoteMethod_merchant"
:loading=
"loading"
>
<el-option
v-for=
"(opt, optIndex) in baseData.merchantList"
:key=
"optIndex"
:label=
"opt.merchantName + ' / ' + opt.merchantNo"
:value=
"opt.id"
>
<el-select
v-model=
"searchForm.merchantId"
filterable
remote
reserve-keyword
clearable
placeholder=
"请输入关键字"
:remote-method=
"remoteMethod_merchant"
:loading=
"loading"
>
<el-option
v-for=
"(opt, optIndex) in baseData.merchantList"
:key=
"optIndex"
:label=
"opt.merchantName + ' / ' + opt.merchantNo"
:value=
"opt.id"
>
</el-option>
</el-select>
</div>
</d2-search>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
...
...
@@ -42,25 +58,37 @@
<d2-table-header>
<auth-button
category=
"Button"
/>
</d2-table-header>
<d2-table
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
<template
slot=
"staffLabel"
slot-scope=
"scope"
>
<d2-table
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
<template
slot=
"staffLabel"
slot-scope=
"scope"
>
<span>
<el-checkbox-group
v-model=
"scope.scope.labelList"
>
<el-checkbox
v-for=
"(item, index) in sceneForPerson"
:key=
"index"
:label=
"item.confId"
@
change=
"changgeCheck(scope.scope)"
>
{{
item
.
confValue
}}
</el-checkbox>
<el-checkbox
v-for=
"(item, index) in sceneForPerson"
:key=
"index"
:label=
"item.confId"
@
change=
"changgeCheck(scope.scope)"
>
{{
item
.
confValue
}}
</el-checkbox>
</el-checkbox-group>
</span>
</
template
>
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
/>
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
/>
</d2-table>
</div>
<!-- </d2-container> -->
<div
class=
"btnCon"
>
<el-button
type=
"primary"
@
click=
"handleSave"
:disabled=
"$store.state.d2admin.loading.value"
class=
"ok-btn"
>
<el-button
type=
"primary"
@
click=
"handleSave"
:disabled=
"$store.state.d2admin.loading.value"
class=
"ok-btn"
>
提交
</el-button>
<el-button
class=
"cancel-btn"
@
click=
"handleCancel"
>
<el-button
class=
"cancel-btn"
@
click=
"handleCancel"
>
取消
</el-button>
</div>
...
...
@@ -324,6 +352,7 @@ export default {
this
.
checkRowList
.
forEach
(
item
=>
{
_obj
=
{
id
:
item
.
id
,
staffName
:
item
.
staffName
,
staffLabel
:
item
.
labelList
.
join
(
","
)
}
_staffList
.
push
(
_obj
)
...
...
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