ysy 1 год назад
Родитель
Сommit
d395be443b

+ 2 - 2
src/views/inspectionPoint/components/newEdit.vue

@@ -134,9 +134,9 @@
 
 
           let URL = this.type == 'add' ? save : update;
           let URL = this.type == 'add' ? save : update;
           URL(param)
           URL(param)
-            .then((msg) => {
+            .then(() => {
               this.loading = false;
               this.loading = false;
-              this.$message.success(msg);
+              this.$emit('close', true);
             })
             })
             .catch((e) => {
             .catch((e) => {
               this.loading = false;
               this.loading = false;

+ 9 - 0
src/views/inspectionPoint/components/newInspectionProjectList.vue

@@ -107,12 +107,21 @@
     data() {
     data() {
       return {
       return {
         columns: [
         columns: [
+        {
+            prop: 'categoryLevelName',
+            label: '质检类型',
+            align: 'center',
+            minWidth: 110
+          },
           {
           {
             prop: 'inspectionCode',
             prop: 'inspectionCode',
             label: '参数编码',
             label: '参数编码',
             align: 'center',
             align: 'center',
             minWidth: 110
             minWidth: 110
           },
           },
+
+
+      
           {
           {
             prop: 'inspectionName',
             prop: 'inspectionName',
             label: '参数名称',
             label: '参数名称',

+ 7 - 4
src/views/inspectionPoint/index.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
   <div class="ele-body">
   <div class="ele-body">
     <el-card shadow="never">
     <el-card shadow="never">
-      <search ref="search" @search="search"></search>
+      <search ref="search" @search="reload"></search>
       <ele-pro-table ref="table" :columns="columns" :datasource="datasource">
       <ele-pro-table ref="table" :columns="columns" :datasource="datasource">
         <!-- 表头工具栏 -->
         <!-- 表头工具栏 -->
         <template v-slot:toolbar>
         <template v-slot:toolbar>
@@ -139,7 +139,7 @@
           size: limit
           size: limit
         });
         });
       },
       },
-      search(where) {
+      reload(where) {
         this.$refs.table.reload({
         this.$refs.table.reload({
           where: where,
           where: where,
           page: 1
           page: 1
@@ -150,8 +150,11 @@
         this.editObj = row || {};
         this.editObj = row || {};
         this.showEdit = true;
         this.showEdit = true;
       },
       },
-      close() {
+      close(val) {
         this.showEdit = false;
         this.showEdit = false;
+        if(val) {
+        this.reload()
+        }
       },
       },
 
 
       downloadFile(file) {
       downloadFile(file) {
@@ -161,7 +164,7 @@
         removeItem([row.id])
         removeItem([row.id])
           .then((message) => {
           .then((message) => {
             this.$message.success(message);
             this.$message.success(message);
-            this.done();
+    
           })
           })
           .catch((e) => {});
           .catch((e) => {});
       }
       }