Commit d8b3e0cd by crushh

update: dist

parent 8a7d626e
......@@ -35,7 +35,7 @@
</div>
</div>
<div v-if="item.templateCode == 'com020' && templateCode == 'com020'" class="leftContent">
<dm-store-selector @saving="val => (saving = val)" v-if="item.templateCode == 'com020' && storeSelectorKey" ref="storeSelector" scenes="edaixi" scenesVal="marketing" @store-change="val => storeChange(val, item.esScreeningWidgetChainId)" :uuid.sync="item.value"></dm-store-selector>
<dm-store-selector @saving="val => (saving = val)" v-if="item.templateCode == 'com020' && storeSelectorKey" ref="storeSelector" scenes="edaixi" scenesVal="marketing" :defaultAll="false" @store-change="val => storeChange(val, item.esScreeningWidgetChainId)" :uuid.sync="item.value"></dm-store-selector>
</div>
</div>
<div v-else>
......@@ -203,6 +203,8 @@ export default {
this.echoFlag = false;
},
edit() {
this.activeName = this.conditionTypeList.length && this.conditionTypeList[0].esScreeningWidgetChainId;
this.getNode(this.activeName);
this.$emit('update:visiable', true);
},
deleteRow(row) {
......@@ -219,8 +221,13 @@ export default {
storeChange(uuid, esScreeningWidgetChainId) {
const obj = this.conditionTypeList.find(item => item.esScreeningWidgetChainId == esScreeningWidgetChainId);
const res = this.$refs.storeSelector[0].getList();
if (res && res.length && res[0] == 1) return;
const str = res.map(item => (item.name ? item.name : item.id)).join(',');
if (res && !res.length) return;
let str = '';
if (res[0] == 1) {
str = '所有门店';
} else {
str = res.map(item => (item.name ? item.name : item.id)).join(',');
}
obj.value = uuid;
obj.selectValue = str;
},
......
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