瀏覽代碼

门户脱敏

skcj 2 年之前
父節點
當前提交
804009995e
共有 3 個文件被更改,包括 1013 次插入0 次删除
  1. 1 0
      ruoyi-web/package.json
  2. 1003 0
      ruoyi-web/src/api/tool/sm4.js
  3. 9 0
      ruoyi-web/src/components/CareHomeSel/index.vue

+ 1 - 0
ruoyi-web/package.json

@@ -20,6 +20,7 @@
     "vuex": "^4.0.2"
   },
   "devDependencies": {
+    "crypto-js": "^4.1.1",
     "@types/node": "^18.0.3",
     "@vitejs/plugin-vue": "^2.3.3",
     "@vue/compiler-sfc": "^3.0.4",

File diff suppressed because it is too large
+ 1003 - 0
ruoyi-web/src/api/tool/sm4.js


+ 9 - 0
ruoyi-web/src/components/CareHomeSel/index.vue

@@ -111,6 +111,8 @@ import {defineComponent,getCurrentInstance,reactive} from "vue";
 import { ElMessageBox } from 'element-plus'
 import {gettreedata,jcxxList} from "@/api/home";
 import {mapState} from 'vuex';
+import {encrypt_ECB,decrypt_ECB,encrypt_CBC,decrypt_CBC,encrypt_ECBA} from "@/api/tool/sm4";
+
 let MyDict= {};
 export default {
   setup() {
@@ -342,8 +344,15 @@ export default {
            szxzqh: this.formLabelAlign.szxzqh
           }
         }
+
+
+
           jcxxList(quer).then(response => {
             this.jgList = response.rows;
+            for (let i = 0; i <this.jgList.length ; i++) {
+              this.jgList[i].txdz= decrypt_ECB( this.jgList[i].txdz);
+              this.jgList[i].frlxfs= decrypt_ECB( this.jgList[i].frlxfs);
+            }
             this.totalcount=response.total;
           });
           },