Browse Source

feat: [操作日志] 试验操作日志

lkf
memorylkf 2 months ago
parent
commit
54c9684f3b
11 changed files with 40 additions and 4 deletions
  1. +2
    -1
      src/lang/en.js
  2. +2
    -1
      src/lang/zh.js
  3. +1
    -1
      src/lang/zh/business/study/drug.js
  4. +1
    -1
      src/utils/menu.js
  5. +7
    -0
      src/views/business/form/drug/comp/enter.vue
  6. +2
    -0
      src/views/business/form/drug/list.vue
  7. +7
    -0
      src/views/business/form/nonTrial/comp/enter.vue
  8. +2
    -0
      src/views/business/form/nonTrial/list.vue
  9. +7
    -0
      src/views/business/study/comp/enter.vue
  10. +2
    -0
      src/views/business/study/list.vue
  11. +7
    -0
      src/views/business/systemLog/list.vue

+ 2
- 1
src/lang/en.js View File

@ -77,7 +77,8 @@ export default {
timeOutContent: timeOutContent:
'The login status has expired. You can enter your password to access the page, or cancel', 'The login status has expired. You can enter your password to access the page, or cancel',
timeOutEnter: 'Enter', timeOutEnter: 'Enter',
timeOutTip: 'Invalid Session, Or Session Has Expired. Please Log In Again.'
timeOutTip: 'Invalid Session, Or Session Has Expired. Please Log In Again.',
enterPage: 'Enter Page'
}, },
form: { form: {
search: 'Search', search: 'Search',

+ 2
- 1
src/lang/zh.js View File

@ -74,7 +74,8 @@ export default {
crowdOut: '该账户已在其他地方登录,是否继续登录,继续登录挤掉原登录账号', crowdOut: '该账户已在其他地方登录,是否继续登录,继续登录挤掉原登录账号',
timeOutContent: '登录状态已过期,您可以输入密码进入页面,或者取消', timeOutContent: '登录状态已过期,您可以输入密码进入页面,或者取消',
timeOutEnter: '进入页面', timeOutEnter: '进入页面',
timeOutTip: '无效的会话,或者会话已过期,请重新登录。'
timeOutTip: '无效的会话,或者会话已过期,请重新登录。',
enterPage: '进入页面'
}, },
form: { form: {
search: '查询', search: '查询',

+ 1
- 1
src/lang/zh/business/study/drug.js View File

@ -36,7 +36,7 @@ export default {
jd: '解档', jd: '解档',
js: '解锁', js: '解锁',
create: '创建精药文件夹',
create: '创建精药文件夹',
inputName: '请输入名称', inputName: '请输入名称',
inputSn: '请输入编号', inputSn: '请输入编号',
inputLeader: '请选择负责人', inputLeader: '请选择负责人',

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

@ -20,7 +20,7 @@ let menuObj = {
档案管理: 'Archive', 档案管理: 'Archive',
试验档案管理: 'Study Archive', 试验档案管理: 'Study Archive',
非试验档案管理: 'Non-study Archive', 非试验档案管理: 'Non-study Archive',
麻精药配档案管理: 'Drug Archive',
麻精药配档案管理: 'Drug Archive',
供试品档案管理: 'Test Item Archive', 供试品档案管理: 'Test Item Archive',
给药制剂档案管理: 'Formulation Archive', 给药制剂档案管理: 'Formulation Archive',
麻精药档案管理: 'Controlled Drug Archive', 麻精药档案管理: 'Controlled Drug Archive',

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

@ -61,6 +61,12 @@ export default {
this.tabList.push({ key: 'wzlb', name: 'page.business.study.studyEnter.wzlb' }) this.tabList.push({ key: 'wzlb', name: 'page.business.study.studyEnter.wzlb' })
} }
this.active = this.$route.params.tab && _.findIndex(this.tabList,(o)=>{return o.key===this.$route.params.tab})>-1 ? this.$route.params.tab: this.tabList.length>0 ? this.tabList[0].key :'' this.active = this.$route.params.tab && _.findIndex(this.tabList,(o)=>{return o.key===this.$route.params.tab})>-1 ? this.$route.params.tab: this.tabList.length>0 ? this.tabList[0].key :''
if(this.active){
let name = this.tabList[_.findIndex(this.tabList,(o)=>{return o.key===this.active})].name
if(name){
this.saveSimpleLog({name:this.$t(name,'zh_CN'),nameEn:this.$t(name,'en_US'),jcmc:this.$t('system.enterPage','zh_CN'),jcmcEn:this.$t('system.enterPage','en_US')})
}
}
}, },
getInfo(){ getInfo(){
this.$modal.loading() this.$modal.loading()
@ -80,6 +86,7 @@ export default {
}, },
changeTab(item) { changeTab(item) {
if (this.active !== item.key) { if (this.active !== item.key) {
this.saveSimpleLog({name:this.$t(item.name,'zh_CN'),nameEn:this.$t(item.name,'en_US'),jcmc:this.$t('system.enterPage','zh_CN'),jcmcEn:this.$t('system.enterPage','en_US')})
this.active = item.key this.active = item.key
} }
} }

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

@ -239,11 +239,13 @@ export default {
this.getList() this.getList()
}, },
enter(row){ enter(row){
this.saveSimpleLog({name:row.name+'('+row.sn+')',nameEn:row.name+'('+row.sn+')',jcmc:'进入麻精药表单',jcmcEn:'Enter Controlled Drug'})
this.$tab.openPage(" ", '/drug/enter/' + row.id+'/ytbd') this.$tab.openPage(" ", '/drug/enter/' + row.id+'/ytbd')
// this.showType = 'enter' // this.showType = 'enter'
// this.$refs.enter.show(row) // this.$refs.enter.show(row)
}, },
detail(row){ detail(row){
this.saveSimpleLog({name:row.name+'('+row.sn+')',nameEn:row.name+'('+row.sn+')',jcmc:'麻精药表单详情',jcmcEn:'Controlled Drug Detail'})
this.showType = 'detail' this.showType = 'detail'
this.$refs.detail.show(row) this.$refs.detail.show(row)
}, },

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

@ -61,6 +61,12 @@ export default {
this.tabList.push({ key: 'syff', name: 'page.business.study.studyEnter.pzfflb' }) this.tabList.push({ key: 'syff', name: 'page.business.study.studyEnter.pzfflb' })
} }
this.active = this.$route.params.tab && _.findIndex(this.tabList,(o)=>{return o.key===this.$route.params.tab})>-1 ? this.$route.params.tab: this.tabList.length>0 ? this.tabList[0].key :'' this.active = this.$route.params.tab && _.findIndex(this.tabList,(o)=>{return o.key===this.$route.params.tab})>-1 ? this.$route.params.tab: this.tabList.length>0 ? this.tabList[0].key :''
if(this.active){
let name = this.tabList[_.findIndex(this.tabList,(o)=>{return o.key===this.active})].name
if(name){
this.saveSimpleLog({name:this.$t(name,'zh_CN'),nameEn:this.$t(name,'en_US'),jcmc:this.$t('system.enterPage','zh_CN'),jcmcEn:this.$t('system.enterPage','en_US')})
}
}
}, },
getInfo(){ getInfo(){
this.$modal.loading() this.$modal.loading()
@ -80,6 +86,7 @@ export default {
}, },
changeTab(item) { changeTab(item) {
if (this.active !== item.key) { if (this.active !== item.key) {
this.saveSimpleLog({name:this.$t(item.name,'zh_CN'),nameEn:this.$t(item.name,'en_US'),jcmc:this.$t('system.enterPage','zh_CN'),jcmcEn:this.$t('system.enterPage','en_US')})
this.active = item.key this.active = item.key
} }
} }

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

@ -239,11 +239,13 @@ export default {
this.getList() this.getList()
}, },
enter(row){ enter(row){
this.saveSimpleLog({name:row.name+'('+row.sn+')',nameEn:row.name+'('+row.sn+')',jcmc:'进入非试验表单',jcmcEn:'Enter Non-study'})
this.$tab.openPage(" ", '/nonTrial/enter/' + row.id+'/ytbd') this.$tab.openPage(" ", '/nonTrial/enter/' + row.id+'/ytbd')
// this.showType = 'enter' // this.showType = 'enter'
// this.$refs.enter.show(row) // this.$refs.enter.show(row)
}, },
detail(row){ detail(row){
this.saveSimpleLog({name:row.name+'('+row.sn+')',nameEn:row.name+'('+row.sn+')',jcmc:'非试验表单详情',jcmcEn:'Non-study Detail'})
this.showType = 'detail' this.showType = 'detail'
this.$refs.detail.show(row) this.$refs.detail.show(row)
}, },

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

@ -75,6 +75,12 @@ export default {
this.tabList.push({ key: 'syj', name: 'page.business.study.studyEnter.syjsygl' }) this.tabList.push({ key: 'syj', name: 'page.business.study.studyEnter.syjsygl' })
} }
this.active = this.$route.params.tab && _.findIndex(this.tabList,(o)=>{return o.key===this.$route.params.tab})>-1 ? this.$route.params.tab: this.tabList.length>0 ? this.tabList[0].key :'' this.active = this.$route.params.tab && _.findIndex(this.tabList,(o)=>{return o.key===this.$route.params.tab})>-1 ? this.$route.params.tab: this.tabList.length>0 ? this.tabList[0].key :''
if(this.active){
let name = this.tabList[_.findIndex(this.tabList,(o)=>{return o.key===this.active})].name
if(name){
this.saveSimpleLog({name:this.$t(name,'zh_CN'),nameEn:this.$t(name,'en_US'),jcmc:this.$t('system.enterPage','zh_CN'),jcmcEn:this.$t('system.enterPage','en_US')})
}
}
}, },
getInfo(){ getInfo(){
this.$modal.loading() this.$modal.loading()
@ -94,6 +100,7 @@ export default {
}, },
changeTab(item) { changeTab(item) {
if (this.active !== item.key) { if (this.active !== item.key) {
this.saveSimpleLog({name:this.$t(item.name,'zh_CN'),nameEn:this.$t(item.name,'en_US'),jcmc:this.$t('system.enterPage','zh_CN'),jcmcEn:this.$t('system.enterPage','en_US')})
this.active = item.key this.active = item.key
} }
} }

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

@ -238,12 +238,14 @@ export default {
this.getList() this.getList()
}, },
enter(row){ enter(row){
this.saveSimpleLog({name:row.name+'('+row.sn+')',nameEn:row.name+'('+row.sn+')',jcmc:'进入试验',jcmcEn:'Enter Study'})
this.$tab.openPage(" ", '/study/enter/' + row.id+'/ytbd') this.$tab.openPage(" ", '/study/enter/' + row.id+'/ytbd')
// this.showType = 'enter' // this.showType = 'enter'
// this.$refs.enter.show(row) // this.$refs.enter.show(row)
}, },
detail(row){ detail(row){
this.saveSimpleLog({name:row.name+'('+row.sn+')',nameEn:row.name+'('+row.sn+')',jcmc:'试验详情',jcmcEn:'Study Detail'})
this.showType = 'detail' this.showType = 'detail'
this.$refs.detail.show(row) this.$refs.detail.show(row)
}, },

+ 7
- 0
src/views/business/systemLog/list.vue View File

@ -48,9 +48,16 @@ export default {
this.tabList.push({ key: 'dlrz', name: 'page.system.systemLog.dlrz' }) this.tabList.push({ key: 'dlrz', name: 'page.system.systemLog.dlrz' })
} }
this.active = this.$route.params.tab && _.findIndex(this.tabList,(o)=>{return o.key===this.$route.params.tab})>-1 ? this.$route.params.tab: this.tabList.length>0 ? this.tabList[0].key :'' this.active = this.$route.params.tab && _.findIndex(this.tabList,(o)=>{return o.key===this.$route.params.tab})>-1 ? this.$route.params.tab: this.tabList.length>0 ? this.tabList[0].key :''
if(this.active){
let name = this.tabList[_.findIndex(this.tabList,(o)=>{return o.key===this.active})].name
if(name){
this.saveSimpleLog({name:this.$t(name,'zh_CN'),nameEn:this.$t(name,'en_US'),jcmc:this.$t('system.enterPage','zh_CN'),jcmcEn:this.$t('system.enterPage','en_US')})
}
}
}, },
changeTab(item) { changeTab(item) {
if (this.active !== item.key) { if (this.active !== item.key) {
this.saveSimpleLog({name:this.$t(item.name,'zh_CN'),nameEn:this.$t(item.name,'en_US'),jcmc:this.$t('system.enterPage','zh_CN'),jcmcEn:this.$t('system.enterPage','en_US')})
this.active = item.key this.active = item.key
} }
} }

Loading…
Cancel
Save