添加注释,修改分销设置提交方式,左侧菜单无法选中问题

This commit is contained in:
mabo
2021-07-23 18:05:05 +08:00
parent ae329419a6
commit 9130485631
66 changed files with 301 additions and 2758 deletions

View File

@@ -3,11 +3,8 @@
<div class="breadcrumb">
<span @click="clickBreadcrumb(item,index)" :class="{'active':item.selected}" v-for="(item,index) in dateList" :key="index"> {{item.title}}</span>
<div class="date-picker">
<Select @on-change="changeSelect(selectedWay)" v-model="month" placeholder="年月查询" style="width:200px;margin-left:10px;">
<Option v-for="(item,index) in dates" :value="item.year+'-'+item.month" :key="index">{{ item.year+''+item.month+'' }}</Option>
</Select>
</div>
<div class="shop-list" v-if="!closeShop">
@@ -72,6 +69,7 @@ export default {
this.getShopList();
},
methods: {
// 页面触底
handleReachBottom() {
setTimeout(() => {
if (this.params.pageNumber * this.params.pageSize <= this.total) {
@@ -80,6 +78,7 @@ export default {
}
}, 1500);
},
// 查询店铺列表
getShopList() {
getShopListData(this.params).then((res) => {
if (res.success) {
@@ -92,6 +91,7 @@ export default {
}
});
},
// 变更店铺
changeshop(val) {
this.selectedWay.storeId = this.storeId;
this.$emit("selected", this.selectedWay);
@@ -118,7 +118,7 @@ export default {
}
this.dates = dates.reverse();
},
// 改变已选店铺
changeSelect() {
console.log(this.month);
if (this.month) {
@@ -130,11 +130,10 @@ export default {
this.selectedWay.searchType = "";
this.$emit("selected", this.selectedWay);
// console.log(this.$emit("selected", this.selectedWay));
} else {
}
},
// 变更时间
clickBreadcrumb(item) {
this.dateList.forEach((res) => {
res.selected = false;
@@ -148,7 +147,6 @@ export default {
}
this.selectedWay = item;
// this.month = "";
this.selectedWay.year = new Date().getFullYear();
this.selectedWay.month = "";

View File

@@ -27,6 +27,7 @@ export default {
props: ['addressId'],
methods: {
// 选择地区回调
change(val, selectedData) {
/**
* @returns [regionId,region]
@@ -44,6 +45,7 @@ export default {
handleChangeOnSelect(value) {
this.changeOnSelect = value;
},
// 加载地区数据
loadData(item, callback) {
item.loading = true;
API_Setup.getChildRegion(item.value).then((res) => {
@@ -83,6 +85,7 @@ export default {
}
});
},
// 初始化
init() {
API_Setup.getChildRegion(this.id).then((res) => {
let way = [];
@@ -105,7 +108,6 @@ export default {
}
way.push(data);
});
this.data = way;
});
},