瀏覽代碼

调整机构扩展字段类型

luojun 2 年之前
父節點
當前提交
032737b6ec
共有 1 個文件被更改,包括 8 次插入4 次删除
  1. 8 4
      src/views/system/dept/extend.vue

+ 8 - 4
src/views/system/dept/extend.vue

@@ -1545,6 +1545,7 @@ export default {
       getOrgPhysicalDefenseConstruction(id).then((response) => {
         // console.log(response.data,"response.data")
         this.Businessform = response.data;
+        this.Businessform.certificateEvidence=parseInt(response.data.certificateEvidence);
         this.Businessopen = true;
         this.Businesstitle = "编辑安全防范设施建设达标情况";
       });
@@ -1650,6 +1651,7 @@ export default {
       const id = row.id || this.Bankids;
       getOrgPhysicalDefenseConstruction(id).then((response) => {
         this.Bankform = response.data;
+        this.Bankform.certificateEvidence=parseInt(response.data.certificateEvidence);
         this.Bankopen = true;
         this.Banktitle = "编辑安全防范设施建设达标情况";
       });
@@ -1752,7 +1754,9 @@ export default {
       const id = row.id || this.detachedids;
       getOrgPhysicalDefenseConstruction(id).then((response) => {
         this.detachedform = response.data;
+        this.detachedform.certificateEvidence=parseInt(response.data.certificateEvidence);
         this.detachedopen = true;
+        
         this.detachedtitle = "编辑安全防范设施建设达标情况";
       });
     },
@@ -1820,7 +1824,7 @@ export default {
         id: null,
         standard: null,
         dateOfCompliance: null,
-        certificateEvidence: null,
+        certificateEvidence: 0,
         certificate: null,
         evidence: null,
         createTime: null,
@@ -1857,9 +1861,9 @@ export default {
         
         this.orgform = response.data;
         this.orgopen = true;
-        console.log(response.data.certificateEvidence,"response.data.certificateEvidence")
-        this.orgform.certificateEvidence=1;
-        console.log(this.orgform,"this.orgform")
+        // console.log(response.data.certificateEvidence,"response.data.certificateEvidence")
+         this.orgform.certificateEvidence=parseInt(response.data.certificateEvidence);
+        // console.log(this.orgform,"this.orgform")
         this.orgtitle = "编辑安全防范设施建设达标情况";
       });
     },