mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-21 10:25:53 +08:00
批量上传、添加注释
This commit is contained in:
@@ -32,7 +32,7 @@ export default {
|
||||
},
|
||||
storeId: "", // 店铺id
|
||||
dates: [], // 日期列表
|
||||
params: {
|
||||
params: { // 请求参数
|
||||
pageNumber: 1,
|
||||
pageSize: 10,
|
||||
storeName: "",
|
||||
@@ -65,8 +65,6 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.storeId = JSON.parse(Cookies.get("userInfo")).id;
|
||||
|
||||
|
||||
this.getFiveYears();
|
||||
},
|
||||
methods: {
|
||||
@@ -91,7 +89,7 @@ export default {
|
||||
}
|
||||
this.dates = dates.reverse();
|
||||
},
|
||||
|
||||
// 选择回调
|
||||
changeSelect() {
|
||||
if (this.month) {
|
||||
this.dateList.forEach((res) => {
|
||||
@@ -105,7 +103,7 @@ export default {
|
||||
} else {
|
||||
}
|
||||
},
|
||||
|
||||
// 点击时间筛选
|
||||
clickBreadcrumb(item) {
|
||||
this.dateList.forEach((res) => {
|
||||
res.selected = false;
|
||||
@@ -119,7 +117,6 @@ export default {
|
||||
}
|
||||
|
||||
this.selectedWay = item;
|
||||
// this.month = "";
|
||||
this.selectedWay.year = new Date().getFullYear();
|
||||
this.selectedWay.month = "";
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ export default {
|
||||
this.init();
|
||||
},
|
||||
methods: {
|
||||
clear() {
|
||||
clear() { // 引用该组件的父组件会调用
|
||||
this.data = [];
|
||||
this.selectedWay = [];
|
||||
this.init();
|
||||
@@ -49,13 +49,9 @@ export default {
|
||||
*/
|
||||
open(val, index) {
|
||||
if (val) {
|
||||
// console.warn(val);
|
||||
//已选中的地址
|
||||
let checkedData = this.$store.state.shipTemplate;
|
||||
|
||||
// console.warn(this.$store.state.shipTemplate);
|
||||
// 禁止选中的地址
|
||||
|
||||
let checkData = [];
|
||||
let disabledData = checkedData.filter((item, i) => {
|
||||
if (i != index) {
|
||||
@@ -177,7 +173,7 @@ export default {
|
||||
|
||||
this.cancel();
|
||||
},
|
||||
|
||||
// 初始化地区数据
|
||||
init() {
|
||||
getAllCity().then((res) => {
|
||||
if (res.result) {
|
||||
|
||||
@@ -29,6 +29,7 @@ export default {
|
||||
|
||||
props: ['addressId'],
|
||||
methods: {
|
||||
// 选择地区回显
|
||||
change(val, selectedData) {
|
||||
/**
|
||||
* @returns [regionId,region]
|
||||
@@ -46,8 +47,7 @@ export default {
|
||||
handleChangeOnSelect(value) {
|
||||
this.changeOnSelect = value;
|
||||
},
|
||||
getArea(val) {
|
||||
},
|
||||
// 动态加载数据
|
||||
loadData(item, callback) {
|
||||
item.loading = true;
|
||||
API_Setup.getChildRegion(item.value).then((res) => {
|
||||
@@ -87,6 +87,7 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
// 初始化数据
|
||||
init() {
|
||||
API_Setup.getChildRegion(this.id).then((res) => {
|
||||
let way = [];
|
||||
@@ -116,5 +117,3 @@ export default {
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user