Browse Source

fix:[试验管理]填报表单单开加密

lkf
15881625488@163.com 3 months ago
parent
commit
2526473824
5 changed files with 7 additions and 6 deletions
  1. +1
    -0
      package.json
  2. +3
    -3
      src/utils/index.js
  3. +1
    -1
      src/views/business/form/drug/comp/tbbdList.vue
  4. +1
    -1
      src/views/business/form/nonTrial/comp/tbbdList.vue
  5. +1
    -1
      src/views/business/study/comp/tbbdList.vue

+ 1
- 0
package.json View File

@ -28,6 +28,7 @@
"axios": "0.28.1", "axios": "0.28.1",
"clipboard": "2.0.8", "clipboard": "2.0.8",
"core-js": "3.37.1", "core-js": "3.37.1",
"crypto-js": "^4.2.0",
"echarts": "5.4.0", "echarts": "5.4.0",
"element-ui": "2.15.14", "element-ui": "2.15.14",
"file-saver": "2.0.5", "file-saver": "2.0.5",

+ 3
- 3
src/utils/index.js View File

@ -1,5 +1,5 @@
import { parseTime } from './ruoyi' import { parseTime } from './ruoyi'
import { encrypt,decrypt } from '@/utils/encryptUtil'
/** /**
* 表格时间格式化 * 表格时间格式化
*/ */
@ -390,11 +390,11 @@ export function isNumberStr(str) {
// 编码 // 编码
export function caesarCipher(str) { export function caesarCipher(str) {
return btoa(btoa(str))
return btoa(encrypt(str))
} }
// 解码 // 解码
export function caesarDecipher(str) { export function caesarDecipher(str) {
return atob(atob(str));
return decrypt(atob(str));
} }

+ 1
- 1
src/views/business/form/drug/comp/tbbdList.vue View File

@ -321,7 +321,7 @@ export default {
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
formId: null formId: null
})) }))
this.$tab.openPage("新增表单", '/drug/formFillBj/' + params)
this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/drug/formFillBj/' + params)
}, },
edit(row) { edit(row) {
// this.showEdit = true // this.showEdit = true

+ 1
- 1
src/views/business/form/nonTrial/comp/tbbdList.vue View File

@ -322,7 +322,7 @@ export default {
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
formId: null formId: null
})) }))
this.$tab.openPage("新增表单", '/nonTrial/formFillBj/' + params)
this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/nonTrial/formFillBj/' + params)
}, },
edit(row) { edit(row) {
// this.showEdit = true // this.showEdit = true

+ 1
- 1
src/views/business/study/comp/tbbdList.vue View File

@ -329,7 +329,7 @@ export default {
studyId: this.searchForm.studyId, studyId: this.searchForm.studyId,
id:null id:null
})) }))
this.$tab.openPage("新增表单", '/study/formFillBj/'+params)
this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/study/formFillBj/'+params)
}, },
edit(row) { edit(row) {
// this.showEdit = true // this.showEdit = true

Loading…
Cancel
Save