Commit fa1cd0c1 by 前端

修复店面配置中人员设置里提交信息会置空员工姓名的BUG

1 parent 5061adc1
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
<template> <template>
<div style="paddingTop:5px;"> <div style="paddingTop:5px;">
<!-- <d2-container> --> <!-- <d2-container> -->
<div class="header bg" slot="header" style="padding: 10px 20px;"> <div class="header bg"
<d2-search ref="showSearch" class="show-search" label-width="100px" :search-form="searchForm" slot="header"
:form-data="showFormData"> style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
label-width="100px"
:search-form="searchForm"
:form-data="showFormData">
<!-- <div slot="departments"> <!-- <div slot="departments">
<el-select v-model="searchForm.department" <el-select v-model="searchForm.department"
filterable filterable
...@@ -21,19 +26,30 @@ ...@@ -21,19 +26,30 @@
</el-select> </el-select>
</div> --> </div> -->
<div slot="sourceMerchant"> <div slot="sourceMerchant">
<el-select v-model="searchForm.merchantId" filterable remote reserve-keyword clearable placeholder="请输入关键字" <el-select v-model="searchForm.merchantId"
:remote-method="remoteMethod_merchant" :loading="loading"> filterable
<el-option v-for="(opt, optIndex) in baseData.merchantList" :key="optIndex" remote
:label="opt.merchantName + ' / ' + opt.merchantNo" :value="opt.id"> 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-option>
</el-select> </el-select>
</div> </div>
</d2-search> </d2-search>
<div class="up-btns"> <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>
<el-button size="small" @click="handleReset"> <el-button size="small"
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -42,25 +58,37 @@ ...@@ -42,25 +58,37 @@
<d2-table-header> <d2-table-header>
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" <d2-table ref="recordTable"
:before-search-fn="beforeSearchFn"> :get-list-api="getListApi"
<template slot="staffLabel" slot-scope="scope"> :search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<template slot="staffLabel"
slot-scope="scope">
<span> <span>
<el-checkbox-group v-model="scope.scope.labelList"> <el-checkbox-group v-model="scope.scope.labelList">
<el-checkbox v-for="(item, index) in sceneForPerson" :key="index" :label="item.confId" <el-checkbox v-for="(item, index) in sceneForPerson"
@change="changgeCheck(scope.scope)">{{ item.confValue }}</el-checkbox> :key="index"
:label="item.confId"
@change="changgeCheck(scope.scope)">{{ item.confValue }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</span> </span>
</template> </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> </d2-table>
</div> </div>
<!-- </d2-container> --> <!-- </d2-container> -->
<div class="btnCon"> <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>
<el-button class="cancel-btn" @click="handleCancel"> <el-button class="cancel-btn"
@click="handleCancel">
取消 取消
</el-button> </el-button>
</div> </div>
...@@ -324,6 +352,7 @@ export default { ...@@ -324,6 +352,7 @@ export default {
this.checkRowList.forEach(item => { this.checkRowList.forEach(item => {
_obj = { _obj = {
id: item.id, id: item.id,
staffName: item.staffName,
staffLabel: item.labelList.join(",") staffLabel: item.labelList.join(",")
} }
_staffList.push(_obj) _staffList.push(_obj)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!