From 4ea24ea4d5f9c1bb58076c27d95eae23d0d2a323 Mon Sep 17 00:00:00 2001 From: skjia <106962133@qq.com> Date: Thu, 3 Jul 2025 19:50:43 +0800 Subject: [PATCH 1/2] =?UTF-8?q?jsk=20=20=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/canteen/healthCenter/examinationReport/index.vue | 7 ++----- src/views/canteen/healthCenter/nutritionScience/index.vue | 2 +- src/views/kitchen/staffManage/intoRecords/index.vue | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/views/canteen/healthCenter/examinationReport/index.vue b/src/views/canteen/healthCenter/examinationReport/index.vue index 6c2fac73..5f0b8770 100644 --- a/src/views/canteen/healthCenter/examinationReport/index.vue +++ b/src/views/canteen/healthCenter/examinationReport/index.vue @@ -153,13 +153,10 @@ -
-
用户姓名:测试操作员
+
用户姓名:{{personData.nickName}}
-
性别:
-
-
年龄:未知
+
性别:{{personData.sex==2?'未知':(personData.sex==0?'男':'女')}}
检验机构:
diff --git a/src/views/canteen/healthCenter/nutritionScience/index.vue b/src/views/canteen/healthCenter/nutritionScience/index.vue index aa5759d8..2b9aafa1 100644 --- a/src/views/canteen/healthCenter/nutritionScience/index.vue +++ b/src/views/canteen/healthCenter/nutritionScience/index.vue @@ -406,7 +406,7 @@ export default { }, // 图片上传 imgUpLoad(param, name, index) { - // console.log(param,'image') + console.log(param,'image') param.type = 'canteen' imgUpLoadTwo(param).then((res) => { if (res.code == 200) { diff --git a/src/views/kitchen/staffManage/intoRecords/index.vue b/src/views/kitchen/staffManage/intoRecords/index.vue index 0166e404..36c4c33b 100644 --- a/src/views/kitchen/staffManage/intoRecords/index.vue +++ b/src/views/kitchen/staffManage/intoRecords/index.vue @@ -69,7 +69,7 @@ - + From f187c2096808453a40a8d2ac857e654cb8db3f76 Mon Sep 17 00:00:00 2001 From: skjia <106962133@qq.com> Date: Fri, 4 Jul 2025 10:58:56 +0800 Subject: [PATCH 2/2] =?UTF-8?q?jsk=20=20=20=E7=94=B5=E8=AF=9D=E5=8F=B7?= =?UTF-8?q?=E7=A0=81=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../healthCenter/examinationReport/index.vue | 5 ++++- .../canteen/healthCenter/healthRecords/index.vue | 14 ++++++++++++-- .../kitchen/staffManage/intoRecords/index.vue | 13 ++++++++++++- 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/views/canteen/healthCenter/examinationReport/index.vue b/src/views/canteen/healthCenter/examinationReport/index.vue index 5f0b8770..6323eb85 100644 --- a/src/views/canteen/healthCenter/examinationReport/index.vue +++ b/src/views/canteen/healthCenter/examinationReport/index.vue @@ -319,7 +319,7 @@ import { dictHealthChronicApi,getHealthSciencePageApi,addHealthScienceApi,editHealthScienceApi,delHealthScienceApi,getHealthInfoPageApi ,getModelListApi,getHealthInfoDetailApi,getModelByIdApi,addReportApi,getReportApi,delReportListApi,getReportByIdApi } from "@/api/healthCenter/index"; import { imgUpLoadTwo } from '@/api/system/upload' - + import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm'; export default { name: "", dicts: [], @@ -486,6 +486,9 @@ export default { // } getHealthInfoPageApi(param).then(response => { this.tableListData = response.rows; + this.tableListData.forEach(item=>{ + this.$set(item,"mobile",decryptWithSM4(item.mobile)) + }); this.total = Number(response.total); this.loading = false; }); diff --git a/src/views/canteen/healthCenter/healthRecords/index.vue b/src/views/canteen/healthCenter/healthRecords/index.vue index 2c616038..9e5fc30c 100644 --- a/src/views/canteen/healthCenter/healthRecords/index.vue +++ b/src/views/canteen/healthCenter/healthRecords/index.vue @@ -106,7 +106,7 @@ - + @@ -314,6 +314,7 @@ import { deptTreeSelect } from '@/api/system/user' import { dictHealthChronicApi,getHealthSciencePageApi,addHealthScienceApi,editHealthScienceApi,delHealthScienceApi,getHealthInfoPageApi,getHealthInfoDetailApi,editHealthInfoApi,delHealthInfoApi } from "@/api/healthCenter/index"; import { imgUpLoadTwo } from '@/api/system/upload' + import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm'; export default { name: "", @@ -485,6 +486,9 @@ export default { getHealthInfoPageApi(param).then(response => { this.tableListData = response.rows; console.log("this.tableListData",this.tableListData); + this.tableListData.forEach(item=>{ + this.$set(item,"mobile",decryptWithSM4(item.mobile)) + }) this.total = Number(response.total); this.loading = false; }); @@ -607,7 +611,13 @@ export default { const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始 const day = String(date.getDate()).padStart(2, '0'); return `${year}-${month}-${day}`; - } + }, + getDecryptWithSM4(obj){ + return decryptWithSM4(obj); + }, + getEncryptWithSM4(obj){ + return encryptWithSM4(obj); + }, } }; diff --git a/src/views/kitchen/staffManage/intoRecords/index.vue b/src/views/kitchen/staffManage/intoRecords/index.vue index 36c4c33b..46b99152 100644 --- a/src/views/kitchen/staffManage/intoRecords/index.vue +++ b/src/views/kitchen/staffManage/intoRecords/index.vue @@ -310,7 +310,7 @@ import { deptTreeSelect } from '@/api/system/user' import { getIntoRecordsListApi } from "@/api/kitchen/intoRecords"; import { imgUpLoadTwo } from '@/api/system/upload' - + import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm'; export default { name: "", dicts: [], @@ -436,10 +436,21 @@ export default { getIntoRecordsListApi(param).then(response => { this.tableListData = response.rows; console.log("this.tableListData",this.tableListData); + this.tableListData.forEach(item=>{ + this.$set(item,"mobile",this.getDecryptWithSM4(item.mobile)) + }); this.total = Number(response.total); this.loading = false; }); }, + getDecryptWithSM4(obj){ + const str=decryptWithSM4(obj); + if(str==""||str==''){ + return obj; + }else{ + return str; + } + }, // 取消按钮 cancel() { this.open = false;