Browse Source

修改微型消防站编辑人员的返回界面

“yueshang” 1 year ago
parent
commit
8e6e32f78e
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/views/unitorg/microStation/index.vue

+ 6 - 3
src/views/unitorg/microStation/index.vue

@@ -195,7 +195,7 @@
         <el-table-column prop="empName" label="姓名" width="120">
         </el-table-column>
         <el-table-column label="人员类型" width="120">
-          <template scope="scope">
+          <template slot-scope="scope">
             <!-- <span>{{ countType || scope.row.empType }}</span> -->
             <el-tag>{{ countType || scope.row.empType }}</el-tag>
             <!-- <dict-tag :type="DICT_TYPE.MICRO_EMP_TYPE" :value="scope.row.empType" /> -->
@@ -543,7 +543,7 @@ export default {
     },
     searchAllPeople(row) {
       this.firestationid = row.id
-      getAllPeople({ pageNo: 1, pageSize: 10, microstationid: row.id }).then(res => {
+      getAllPeople({ pageNo: 1, pageSize: 10, microstationid: this.firestationid }).then(res => {
         this.firePeople = res.data.list
       })
       this.lookFirePeople = true
@@ -589,7 +589,10 @@ export default {
               type: 'success'
             });
             this.insideModal = false
-            this.lookFirePeople = false
+            getAllPeople({ pageNo: 1, pageSize: 10, microstationid: this.firestationid }).then(res => {
+        this.firePeople = res.data.list
+      })
+            // this.lookFirePeople = false
           }
         })
       } else {