YY 2 年之前
父節點
當前提交
5b8525f437

+ 3 - 0
src/views/system/banner/detail.vue

@@ -53,7 +53,9 @@ export default {
           url: '/files/point/banner/upload',
         },
       ],
+      // 类型
       typeList: [],
+      // 是否使用
       statusList: [],
     };
   },
@@ -94,6 +96,7 @@ export default {
       if (this.$checkRes(res)) {
         this.$set(this, `typeList`, res.data);
       }
+      // 是否使用
       res = await this.dictQuery({ code: 'status' });
       if (this.$checkRes(res)) {
         this.$set(this, `statusList`, res.data);

+ 3 - 0
src/views/system/banner/index.vue

@@ -106,6 +106,7 @@ export default {
     async toEdit({ data }) {
       this.$router.push({ path: '/system/banner/detail', query: { id: data.id } });
     },
+    // 删除
     async toDel({ data }) {
       let res = await this.delete(data._id);
       if (this.$checkRes(res)) {
@@ -113,6 +114,7 @@ export default {
         this.search();
       }
     },
+    // 重置
     toClose() {
       this.searchForm = {};
       this.search();
@@ -129,6 +131,7 @@ export default {
       if (this.$checkRes(res)) {
         this.$set(this, `typeList`, res.data);
       }
+      // 是否使用
       res = await this.dictQuery({ code: 'status' });
       if (this.$checkRes(res)) {
         this.$set(this, `statusList`, res.data);

+ 1 - 2
src/views/system/banner/parts/search-1.vue

@@ -44,8 +44,7 @@ export default {
       this.$emit('toReset');
     },
   },
-  computed: {
-  },
+  computed: {},
   metaInfo() {
     return { title: this.$route.meta.title };
   },

+ 2 - 0
src/views/system/coupon/detail.vue

@@ -187,6 +187,7 @@ export default {
       statusList: [],
       // 商铺
       shopList: [],
+      // 店铺远程搜索加载
       loading: false,
     };
   },
@@ -233,6 +234,7 @@ export default {
       }
       this.loading = false;
     },
+    // 店铺远程搜索多选
     handleSelect(value) {
       this.$set(this.form, `shop`, value);
     },

+ 1 - 1
src/views/system/coupon/index.vue

@@ -51,6 +51,7 @@ export default {
   data: function () {
     const that = this;
     return {
+      // 查询
       searchForm: {},
       list: [],
       total: 0,
@@ -98,7 +99,6 @@ export default {
       statusList: [],
       // 商铺
       shopList: [],
-
       // 减免方式
       discount_typeList: [],
     };