guhongwei 2 lat temu
rodzic
commit
d1c6e86a7b
1 zmienionych plików z 15 dodań i 4 usunięć
  1. 15 4
      src/views/platActivi/act/index.vue

+ 15 - 4
src/views/platActivi/act/index.vue

@@ -10,7 +10,12 @@
           <el-button type="primary" size="mini" @click="toAdd()">新增</el-button>
         </el-col>
         <el-col :span="24" class="four">
-          <data-table :select="true" :selected="selected" @handleSelect="handleSelect" :fields="fields" :opera="opera"
+          <data-table
+            :select="true"
+            :selected="selected"
+            @handleSelect="handleSelect"
+            :fields="fields"
+            :opera="opera"
             @query="search"
             :data="list"
             :total="total"
@@ -99,11 +104,17 @@ export default {
     },
     // 修改
     async toEdit({ data }) {
-      this.$router.push({ path: '/platActivi/act/detail', query: { id: data.id } });
+      this.$router.push({
+        path: '/platActivi/act/detail',
+        query: { id: data.id },
+      });
     },
     // 平台管理
     async toManage({ data }) {
-      this.$router.push({ path: '/platActivi/act/goods', query: { id: data.id } });
+      this.$router.push({
+        path: '/platActivi/act/goods',
+        query: { id: data.id },
+      });
     },
     // 删除
     async toDel({ data }) {
@@ -142,7 +153,7 @@ export default {
     test: {
       deep: true,
       immediate: true,
-      handler(val) { },
+      handler(val) {},
     },
   },
 };