Browse Source

feat: [试验管理] 英文状态下tab不显示

lkf
memorylkf 3 months ago
parent
commit
b627587f9c
7 changed files with 10 additions and 7 deletions
  1. +4
    -1
      src/utils/menu.js
  2. +1
    -1
      src/views/business/form/drug/comp/enter.vue
  3. +1
    -1
      src/views/business/form/drug/list.vue
  4. +1
    -1
      src/views/business/form/nonTrial/comp/enter.vue
  5. +1
    -1
      src/views/business/form/nonTrial/list.vue
  6. +1
    -1
      src/views/business/study/comp/enter.vue
  7. +1
    -1
      src/views/business/study/list.vue

+ 4
- 1
src/utils/menu.js View File

@ -40,5 +40,8 @@ export function getMenuName(menuName) {
if (!this.$i18n.locale || this.$i18n.locale === 'zh_CN') { if (!this.$i18n.locale || this.$i18n.locale === 'zh_CN') {
return menuName return menuName
} }
return menuObj[menuName]
if (menuName.indexOf(':') > -1) {
return menuObj[menuName.split(':')[0]] + menuName.split(':')[1]
}
return menuObj[menuName] || menuName
} }

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

@ -52,7 +52,7 @@ export default {
this.$modal.loading() this.$modal.loading()
drug_info({id:this.$route.params.studyId}).then(({data}) => { drug_info({id:this.$route.params.studyId}).then(({data}) => {
this.study = data this.study = data
const obj = Object.assign({}, this.$route, { title: '麻精药'+this.study.sn })
const obj = Object.assign({}, this.$route, { title: '麻精药表单:'+this.study.sn })
this.$tab.updatePage(obj); this.$tab.updatePage(obj);
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()

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

@ -237,7 +237,7 @@ export default {
this.getList() this.getList()
}, },
enter(row){ enter(row){
this.$tab.openPage("进入", '/drug/enter/' + row.id)
this.$tab.openPage(" ", '/drug/enter/' + row.id)
// this.showType = 'enter' // this.showType = 'enter'
// this.$refs.enter.show(row) // this.$refs.enter.show(row)
}, },

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

@ -50,7 +50,7 @@ export default {
this.$modal.loading() this.$modal.loading()
nonTrial_info({id:this.$route.params.studyId}).then(({data}) => { nonTrial_info({id:this.$route.params.studyId}).then(({data}) => {
this.study = data this.study = data
const obj = Object.assign({}, this.$route, { title: '非试验'+this.study.sn })
const obj = Object.assign({}, this.$route, { title: '非试验表单:'+this.study.sn })
this.$tab.updatePage(obj); this.$tab.updatePage(obj);
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()

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

@ -237,7 +237,7 @@ export default {
this.getList() this.getList()
}, },
enter(row){ enter(row){
this.$tab.openPage("进入", '/nonTrial/enter/' + row.id)
this.$tab.openPage(" ", '/nonTrial/enter/' + row.id)
// this.showType = 'enter' // this.showType = 'enter'
// this.$refs.enter.show(row) // this.$refs.enter.show(row)
}, },

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

@ -62,7 +62,7 @@ export default {
this.$modal.loading() this.$modal.loading()
study_info({id:this.$route.params.studyId}).then(({data}) => { study_info({id:this.$route.params.studyId}).then(({data}) => {
this.study = data this.study = data
const obj = Object.assign({}, this.$route, { title: '进入试验:'+this.study.sn })
const obj = Object.assign({}, this.$route, { title: '试验管理:'+this.study.sn })
this.$tab.updatePage(obj); this.$tab.updatePage(obj);
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()

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

@ -236,7 +236,7 @@ export default {
this.getList() this.getList()
}, },
enter(row){ enter(row){
this.$tab.openPage("进入试验", '/study/enter/' + row.id)
this.$tab.openPage(" ", '/study/enter/' + row.id)
// this.showType = 'enter' // this.showType = 'enter'
// this.$refs.enter.show(row) // this.$refs.enter.show(row)

Loading…
Cancel
Save