Commit f5c7b7d4 by 陈羽

update: 门店帮顶bug修复

parent 0ae0d4f7
......@@ -97,7 +97,7 @@ export default {
children: 'children',
label: 'storeGroupName'
},
checkedKeys: this.selectData.length ? this.selectData.map(ele => ele.relationId) : []
checkedKeys: []
};
},
......@@ -242,8 +242,8 @@ export default {
selectData: function(newData, oldData) {
let that = this;
if (!!newData.length) {
that.groupIds = newData;
that.checkedKeys = that.newData.map(ele => ele.relationId);
that.checkedKeys = newData.map(ele => ele.relationId);
that.groupIds = that.$refs.groupTree.getCheckedNodes();
} else {
that.groupIds = [];
}
......@@ -263,6 +263,7 @@ export default {
},
checkedListCopy(val) {
this.$nextTick(() => {
this.groupIds = [];
val.forEach(i => {
const node = this.$refs.groupTree.getNode(i);
this.groupIds.push(node.data);
......@@ -276,12 +277,6 @@ export default {
},
mounted() {
const that = this;
// 对否有默认选中数据
if (!!that.selectData.length) {
that.groupIds = that.selectData;
} else {
that.groupIds = [];
}
that.getGroup();
}
};
......
......@@ -173,9 +173,9 @@ export default {
let para = {};
getRequest('/haoban-manage3-web/wx-enterprise-list', para)
.then(res => {
that.loading = false;
let resData = res.data;
if (resData.errorCode == 1) {
that.loading = false;
that.tableData = resData.result || [];
return false;
}
......
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