Commit 212735b6 by 无尘

fix: 修改同步人群选择

parent 06cfa72a
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 10:31:09
* @LastEditors: 无尘
* @LastEditTime: 2020-09-15 17:07:38
* @LastEditTime: 2020-09-15 17:16:04
-->
<!--
<sync-crowd-dialog :brand-id="brandId" :select-ids="selectIds" :total-num="totalNum" @refreshData="refreshData"></sync-crowd-dialog>
......@@ -174,13 +174,13 @@ export default {
const that = this;
// 1.选择的数量>可选数量
const selNum = 20 - that.totalNum;
localStorage.setItem('selNum', JSON.stringify(val));
if (val && val.length > selNum) {
that.multipleSelection = val.slice(0, selNum);
localStorage.setItem('selNum', JSON.stringify(that.multipleSelection));
const ids = that.multipleSelection.map(ele => ele.sceneCrowdId);
that.tableData.forEach(row => {
localStorage.setItem('ids', ids);
if (ids.includes(row.sceneCrowdId)) {
localStorage.setItem('id2s', ids);
that.$refs.multipleTable.toggleRowSelection(row, true);
}
});
......
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