From 25264738240b23a80202e4266d8c6f591c92453b Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Fri, 16 Jan 2026 10:18:34 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A[=E8=AF=95=E9=AA=8C=E7=AE=A1?= =?UTF-8?q?=E7=90=86]=E5=A1=AB=E6=8A=A5=E8=A1=A8=E5=8D=95=E5=8D=95?= =?UTF-8?q?=E5=BC=80=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/utils/index.js | 6 +++--- src/views/business/form/drug/comp/tbbdList.vue | 2 +- src/views/business/form/nonTrial/comp/tbbdList.vue | 2 +- src/views/business/study/comp/tbbdList.vue | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index f73530f..14cabca 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "axios": "0.28.1", "clipboard": "2.0.8", "core-js": "3.37.1", + "crypto-js": "^4.2.0", "echarts": "5.4.0", "element-ui": "2.15.14", "file-saver": "2.0.5", diff --git a/src/utils/index.js b/src/utils/index.js index fd3e206..7df6a5d 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -1,5 +1,5 @@ import { parseTime } from './ruoyi' - +import { encrypt,decrypt } from '@/utils/encryptUtil' /** * 表格时间格式化 */ @@ -390,11 +390,11 @@ export function isNumberStr(str) { // 编码 export function caesarCipher(str) { - return btoa(btoa(str)) + return btoa(encrypt(str)) } // 解码 export function caesarDecipher(str) { - return atob(atob(str)); + return decrypt(atob(str)); } diff --git a/src/views/business/form/drug/comp/tbbdList.vue b/src/views/business/form/drug/comp/tbbdList.vue index 17990e3..2f19a81 100644 --- a/src/views/business/form/drug/comp/tbbdList.vue +++ b/src/views/business/form/drug/comp/tbbdList.vue @@ -321,7 +321,7 @@ export default { studyId: this.searchForm.studyId, formId: null })) - this.$tab.openPage("新增表单", '/drug/formFillBj/' + params) + this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/drug/formFillBj/' + params) }, edit(row) { // this.showEdit = true diff --git a/src/views/business/form/nonTrial/comp/tbbdList.vue b/src/views/business/form/nonTrial/comp/tbbdList.vue index bcddce3..736a207 100644 --- a/src/views/business/form/nonTrial/comp/tbbdList.vue +++ b/src/views/business/form/nonTrial/comp/tbbdList.vue @@ -322,7 +322,7 @@ export default { studyId: this.searchForm.studyId, formId: null })) - this.$tab.openPage("新增表单", '/nonTrial/formFillBj/' + params) + this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/nonTrial/formFillBj/' + params) }, edit(row) { // this.showEdit = true diff --git a/src/views/business/study/comp/tbbdList.vue b/src/views/business/study/comp/tbbdList.vue index a55d84e..d549a4f 100644 --- a/src/views/business/study/comp/tbbdList.vue +++ b/src/views/business/study/comp/tbbdList.vue @@ -329,7 +329,7 @@ export default { studyId: this.searchForm.studyId, id:null })) - this.$tab.openPage("新增表单", '/study/formFillBj/'+params) + this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/study/formFillBj/'+params) }, edit(row) { // this.showEdit = true