nanMing vor 2 Jahren
Ursprung
Commit
85db54a04a

+ 11 - 17
ruoyi-ui/src/views/organization/jggl/xfaqzcxx/index.vue

@@ -96,7 +96,7 @@
                 </tr>
                 <tr>
                   <td>单位通信地址</td>
-                  <td colspan="3">{{fixation.txdz}}</td>
+                  <td colspan="3">{{fixation.szxzqhName + fixation.txdz}}</td>
                 </tr>
                 <tr>
                   <td class="tdX">消防安全负责人姓名(法定代表人或主要负责人)</td>
@@ -672,6 +672,7 @@ export default {
         ]
       },
       fixation: {},
+      decodeStr:{},
       // xfsspbqk:null,
       pbqk: [],
       pbqkqt: null,
@@ -824,8 +825,15 @@ export default {
     },
     selectYlJgMsg() {
       selectYlJgMsg().then(response => {
-        // this.fixation = response.data
-        this.fixation = decryptData_ECB(response.data, ["frxm", "frlxfs", "frzjhm","txdz"], [1, 3, 2, 4]);
+        this.fixation = response.data
+        this.decodeStr = {
+          frxm: decrypt_ECB(response.data.frxm),
+          frzjhm: decrypt_ECB(response.data.frzjhm),
+          frlxfs: decrypt_ECB(response.data.frlxfs),
+          txdz: decrypt_ECB(response.data.txdz),
+        }
+        console.log(this.decodeStr);
+        // this.fixation = decryptData_ECB(response.data, ["frxm", "frzjhm", "frlxfs","txdz"], [1, 2, 3, 4]);
       })
     },
     rightList() {
@@ -1074,20 +1082,6 @@ export default {
         }
         if (valid) {
           this.hold('2');
-          // this.submitFormLoading = true;
-          // if (this.form.id != null) {
-          //   updateXfaqzcxx({ ...this.form, zt: '2', pbqk: this.form.pbqk.join(',') }).then(response => {
-          //     this.$modal.msgSuccess('修改成功')
-          //     this.open = false
-          //     this.getList()
-          //   }).finally(()=>this.submitFormLoading =false);
-          // } else {
-          //   addXfaqzcxx({ ...this.form, zt: '2', pbqk: this.form.pbqk.join(',') }).then(response => {
-          //     this.$modal.msgSuccess('新增成功')
-          //     this.open = false
-          //     this.getList()
-          //   }).finally(()=>this.submitFormLoading =false);
-          // }
         }
       })
     },

+ 2 - 2
ruoyi-ui/src/views/organization/zwyw/djpdsq/bgdjpdSq/index.vue

@@ -419,7 +419,7 @@ import {
 import {getJgByUser} from '@/api/business/fwjggl/djpd/djpdSq'
 import {chineseOne, Mobile} from '@/utils/regular'
 import {mapState} from "vuex";
-import { decryptData_ECB, decryptRowData_ECB, decrypt_ECB } from "@/api/tool/sm4";
+import { decryptData_ECB } from "@/api/tool/sm4";
 
 export default {
   name: "BgdjpdSq",
@@ -752,7 +752,7 @@ export default {
      /** 详情按钮操作 */
     handleDetails(row){
       getBgdjpdSq(row.id).then(response => {
-        this.detailsData = response.data;
+        this.detailsData = decryptData_ECB(response.data, ["frxm", "frzjhm", "frlxfs", "jglxrxm", "jglxdh", "jgfzrxm", "jgfzrlxdh", "sqrxm", "sjhm", "txdz"], [1, 2, 3, 1, 3, 1, 3, 1, 3, 4])
         this.detailsOpen=true;
       });
     },

+ 3 - 2
ruoyi-ui/src/views/organization/zwyw/djpdsq/zsdqTx/index.vue

@@ -169,7 +169,7 @@
       v-dialog-drag
       :title="title"
       :visible.sync="open"
-      width="500px"
+      width="700px"
       append-to-body
     >
       <h3>证书信息:</h3>
@@ -249,6 +249,7 @@
 import {addDjzspb, delDjzspb, getDjzspb, updateDjzspb,} from "@/api/business/fwjggl/djpd/djzspb";
 import {listDjpdTx,} from "@/api/business/fwjggl/djpd/djpdSq";
 import {chineseOne} from "@/utils/regular";
+import { decryptData_ECB } from "@/api/tool/sm4";
 
 export default {
   name: "Djzspb",
@@ -540,7 +541,7 @@ export default {
       this.reset();
       const id = row.id || this.ids;
       getDjzspb(id).then((response) => {
-        this.form = response.data;
+        this.form = decryptData_ECB(response.data, ["pblqrxm", "pblqrlxdh","pbthxm", "pbthlxdh","zslqrxm","zslqrlxdh","zsthxm","zsthlxdh"], [1, 2, 1, 2, 1, 2, 1, 2]);
         /****** sks 需要改动的地方 start ******/
         this.copyForm = this.deepCopy(response.data);
         /****** sks 需要改动的地方 end ******/