guhongwei 5 years ago
parent
commit
8e8d5d873b
1 changed files with 21 additions and 21 deletions
  1. 21 21
      src/views/dockCenter/applyInfo/productList.vue

+ 21 - 21
src/views/dockCenter/applyInfo/productList.vue

@@ -83,25 +83,25 @@ export default {
     this.searchInfo();
   },
   methods: {
-    ...dock({ dockQuery: 'query', dockfetch: 'fetch',dockupdate:'update',updateGood:'updateGood' }),
+    ...dock({ dockQuery: 'query', dockfetch: 'fetch', dockupdate: 'update', updateGood: 'updateGood' }),
     async searchInfo() {
       let res = await this.dockfetch(this.user.uid);
       if (this.$checkRes(res)) {
-      var arr = res.data.apply.filter(item => item.user_id ===this.id);
-      this.$set(this, `list`, arr[0].goodsList);
+        var arr = res.data.apply.filter(item => item.user_id === this.id);
+        this.$set(this, `list`, arr[0].goodsList);
       }
     },
-     // 产品审核
+    // 产品审核
     // 产品审核同意参展
     async checkProduct(data) {
       data.dockStatus = '1';
       data.id = this.dockid;
       let res = await this.updateGood(data);
-       this.$notify({
-          message: '审核成功',
-          type: 'success',
-        });
-     this.$router.push({ path: '/dockCenter/applyInfo/index' });
+      this.$notify({
+        message: '审核成功',
+        type: 'success',
+      });
+      this.$router.push({ path: '/dockCenter/applyInfo/index' });
     },
     // 产品审核拒绝参展
     async closeProduct(data) {
@@ -109,21 +109,21 @@ export default {
       data.id = this.dockid;
       let res = await this.updateGood(data);
       this.$notify({
-          message: '审核成功',
-          type: 'success',
-        });
-     this.$router.push({ path: '/dockCenter/applyInfo/index' });
+        message: '审核成功',
+        type: 'success',
+      });
+      this.$router.push({ path: '/dockCenter/applyInfo/index' });
     },
   },
   computed: {
-     ...mapState(['user']),
-     dockid(){
-       return this.$route.query.dockid;
-     },
-     id(){
-       return this.$route.query.id;
-     },
-      },
+    ...mapState(['user']),
+    dockid() {
+      return this.$route.query.dockid;
+    },
+    id() {
+      return this.$route.query.id;
+    },
+  },
   mounted() {
     this.title = this.$route.meta.title;
     this.isleftarrow = this.$route.meta.isleftarrow;