|
@@ -228,6 +228,7 @@ import {addNlpg, delNlpg, getNlpg, listNlpg, updateNlpg} from "@/api/organizatio
|
|
|
import khSelect from '@/components/khSelect/index'
|
|
|
import {mapState} from "vuex";
|
|
|
import {chineseOne} from '@/utils/regular'
|
|
|
+import { decryptData_ECB, decryptRowData_ECB } from "@/api/tool/sm4";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
@@ -348,7 +349,7 @@ export default {
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
listNlpg(this.queryParams).then(response => {
|
|
|
- this.nlpgList = response.rows;
|
|
|
+ this.nlpgList = decryptRowData_ECB(response.rows, ["xm", "zjhm"], [1, 2]);
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
@@ -410,7 +411,7 @@ export default {
|
|
|
this.reset();
|
|
|
const id = row.id || this.ids
|
|
|
getNlpg(id).then(response => {
|
|
|
- this.form = response.data;
|
|
|
+ this.form = decryptData_ECB(response.data, ["xm", "zjhm"], [1, 2]);
|
|
|
this.copyForm=this.deepCopy(response.data);
|
|
|
this.open = true;
|
|
|
this.title = "修改老人能力信息";
|
|
@@ -419,7 +420,7 @@ export default {
|
|
|
},
|
|
|
handleDetails(row) {
|
|
|
getNlpg(row.id).then(response => {
|
|
|
- this.detailsData = response.data;
|
|
|
+ this.detailsData = decryptData_ECB(response.data, ["xm", "zjhm"], [1, 2]);
|
|
|
this.detailsOpen = true;
|
|
|
});
|
|
|
},
|