Commit 6cedad92 by 无尘

fix: 修改选择门店

parent 87119162
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 11:07:46
* @LastEditors: 无尘
* @LastEditTime: 2020-09-11 15:36:00
* @LastEditTime: 2020-09-11 16:01:24
-->
<!--
<edit-visiable :brand-id="brandId" :set-item-id="setItemId" :set-type="setType" :select-mode="selectMode" :range-data="rangeData" @refreshData="refreshData"></edit-visiable>
......@@ -108,8 +108,6 @@ export default {
const that = this;
that.formData.sendRange = e;
that.formData.selectList = [];
that.formData.selectGroupData = []; // 选择的分组数据
that.formData.selectStoreData = []; // 选择的门店数据
},
/**
* @description: 关闭弹窗
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘
* @LastEditTime: 2020-09-09 15:52:05
* @LastEditTime: 2020-09-11 16:02:34
-->
<!--
门店绑定-选择门店(限制50个)
......@@ -65,7 +65,7 @@ export default {
isIndeterminate: false,
searchSelect: '', // 搜索字段
stores: [], // 门店列表集合
storesCopy: [],
storesCopy: [], // 保存选择数据使用
dailyRuleForm: {
stores: [], // 已选门店id结果集
},
......@@ -111,7 +111,7 @@ export default {
handleStoresChange(value) {
const that = this;
let arr = [];
that.stores.forEach(ele => {
that.storesCopy.forEach(ele => {
if (value.includes(ele.storeInfoId)) {
arr.push(ele);
}
......@@ -162,11 +162,11 @@ export default {
.then(res => {
if (that.pageNum == 1) {
that.stores = JSON.parse(JSON.stringify(res.result.result)) || [];
that.storesCopy = JSON.parse(JSON.stringify(res.result.result)) || [];
that.searchSelect === '' ? that.storesCopy = JSON.parse(JSON.stringify(res.result.result)) || [] : '';
}else {
res.result.result.forEach(ele => {
that.stores.push(ele);
that.storesCopy.push(ele);
that.searchSelect === '' ? that.storesCopy.push(ele) : '';
});
}
if (that.pageNum * that.pageSize < res.result.totalCount) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment