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