rjy 4 yıl önce
ebeveyn
işleme
c7f7fe7a98
1 değiştirilmiş dosya ile 10 ekleme ve 20 silme
  1. 10 20
      src/views/index.vue

+ 10 - 20
src/views/index.vue

@@ -257,14 +257,7 @@ export default {
       form: {},
       total: '',
       activeName: 'first',
-      list: [
-        // {
-        //   company: '1',
-        // },
-        // {
-        //   company: '2',
-        // },
-      ],
+      list: [],
       fieldList: [],
       cooperationList: [],
       achievestatusList: [],
@@ -284,19 +277,16 @@ export default {
         }
       }
     },
-    async delDelete(index) {
-      this.list.splice(index, 1);
+    async delDelete({ data }) {
+      let res = await this.delete(data.id);
+      if (this.$checkRes(res)) {
+        this.$message({
+          message: '信息删除成功',
+          type: 'success',
+        });
+        this.clic();
+      }
     },
-    // async delDelete({ data }) {
-    //   let res = await this.delete(data.id);
-    //   if (this.$checkRes(res)) {
-    //     this.$message({
-    //       message: '信息删除成功',
-    //       type: 'success',
-    //     });
-    //     this.search();
-    //   }
-    // },
     async searchtype() {
       // 所属领域;
       let res = await this.markettypeList({ category: '01' });