luojun 2 سال پیش
والد
کامیت
70925066b8
2فایلهای تغییر یافته به همراه18 افزوده شده و 9 حذف شده
  1. 15 8
      src/views/system/dept/dialog.edit.vue
  2. 3 1
      src/views/system/dept/index.vue

+ 15 - 8
src/views/system/dept/dialog.edit.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="rule-type">
     <el-dialog
-      :title="id ? '编辑离行式自助银行' : '新增离行式自助银行'"
+      :title="id ? '编辑' : '新增离行式自助银行'"
       :visible.sync="isShow"
       width="800px"
     >
@@ -131,7 +131,7 @@
           @selection-change="handleOrgSelectionChange"
         >
           <el-table-column type="selection" width="55" align="center" />
-          <el-table-column label="序号" align="center" prop="id" />
+          <el-table-column v-if="false" label="序号" align="center" prop="id" />
           <el-table-column label="标准" align="center" prop="standard" />
           <el-table-column
             label="达标日期"
@@ -274,6 +274,7 @@ export default {
   dicts: ["sys_normal_disable", "sys_org_type"],
   data() {
     return {
+      tempRow:null,
       // 查询参数
       queryParams: {
         pageNum: 1,
@@ -330,7 +331,8 @@ export default {
   methods: {
     getOrgPhysicalDefenseConstructionInfo() {
       this.orgloading = true;
-      let dat = { orgId: this.orgid, type: 4 };
+      let dat = { orgId: this.id, type: 4 };
+      // console.log(dat,2222222222)
       listOrgPhysicalDefenseConstruction(dat).then((data) => {
         console.log("机构信息获取成功");
         this.constructionList = data.rows;
@@ -356,6 +358,7 @@ export default {
         certificate:this.orgform.certificate,
         evidence:this.orgform.evidence
       };
+      this.constructionList.splice(this.tempRow, 1)
       this.constructionList.push(dat);
       this.orgopen = false;
       // this.orgform.orgId = this.orgid;
@@ -397,13 +400,17 @@ export default {
     /** 修改按钮操作 */
     handleOrgUpdate(row) {
       this.orgreset();
-      const id = row.id || this.orgids;
-      getOrgPhysicalDefenseConstruction(id).then((response) => {
-        // console.log(response)
-        this.orgform = response.data;
+      this.tempRow=row;
+      this.orgform = row;
         this.orgopen = true;
         this.orgtitle = "修改机构物防建设";
-      });
+      // const id = row.id || this.orgids;
+      // getOrgPhysicalDefenseConstruction(id).then((response) => {
+      //   // console.log(response)
+      //   this.orgform = response.data;
+      //   this.orgopen = true;
+      //   this.orgtitle = "修改机构物防建设";
+      // });
     },
     /** 新增按钮操作 */
     handleOrgAdd() {

+ 3 - 1
src/views/system/dept/index.vue

@@ -79,6 +79,7 @@
                 <el-button size="mini" type="text" icon="el-icon-plus"
                   v-hasPermi="['system:dept:extend']">补充信息</el-button>
               </router-link>
+              
               <el-button size="mini" type="text" icon="el-icon-edit" @click="showDialogEdit(scope.row)"
                 v-hasPermi="['system:dept:edit']">修改</el-button>
               <el-button v-if="scope.row.parentId != 0" size="mini" type="text" icon="el-icon-delete"
@@ -412,7 +413,8 @@ export default {
       this.multiple = !selection.length;
     },
     showDialogEdit(row){
-
+      console.log(row,33333333333)
+// row.id=row.orgid;
       this.$refs.dialogEdit.show(row);
     },
   },