修改一些问题,删除无用文件,商品选择器回显

This commit is contained in:
mabo
2021-05-25 17:08:23 +08:00
parent 7e668cc6d5
commit 7729031efa
23 changed files with 53 additions and 547 deletions

View File

@@ -111,9 +111,11 @@ export default {
initGoods(res) {
if (res.result.records.length !=0) {
console.log(this.selectedWay);
res.result.records.forEach((item) => {
item.selected = false;
item.___type = "goods"; //设置为goods让pc wap知道标识
this.selectedWay.forEach(e => {
if (e.id === item.id) {
item.selected = true

View File

@@ -25,9 +25,6 @@ export default {
flag: false, // modal显隐
};
},
props: ["types"],
watch: {},
mounted() {},
methods: {
// 关闭弹窗
clickClose() {
@@ -51,13 +48,17 @@ export default {
}
this.clickClose();
},
open(type) {
open(type, mutiple) {
this.flag = true;
if (type == "goods") {
this.goodsFlag = true;
if (mutiple) {
this.singleGoods()
}
} else {
this.goodsFlag = false;
}
},
close() {
this.flag = false;

View File

@@ -40,7 +40,7 @@ export default {
},
mounted() {
this.$nextTick(() => {
this.$refs["lili-component"][0].type = "single"; //如果商品页面设置成为单选
this.$refs["lili-component"][0].type = "single"; //商品页面设置成为单选
});
this.wap.forEach((item) => {

View File

@@ -65,7 +65,7 @@ export default {
},
{
title: "店铺名称",
key: "sellerName",
key: "storeName",
tooltip: true,
},
{
@@ -113,7 +113,7 @@ export default {
},
{
title: "店铺名称",
key: "sellerName",
key: "storeName",
tooltip: true,
},
{