Browse Source

feat: [操作日志] 档案日志

lkf
memorylkf 2 months ago
parent
commit
4d39ad8e86
4 changed files with 11 additions and 0 deletions
  1. +1
    -0
      src/views/business/archive/drugConfig/list.vue
  2. +1
    -0
      src/views/business/archive/nonTrial/list.vue
  3. +7
    -0
      src/views/business/archive/record/list.vue
  4. +2
    -0
      src/views/business/archive/trial/list.vue

+ 1
- 0
src/views/business/archive/drugConfig/list.vue View File

@ -158,6 +158,7 @@ export default {
this.search() this.search()
}, },
detail(row){ detail(row){
this.saveSimpleLog({name:row.name+'('+row.sn+')',nameEn:row.name+'('+row.sn+')',jcmc:'麻精药配制档案详情',jcmcEn:'Controlled Drug Formulation Detail'})
this.showType = 'detail' this.showType = 'detail'
this.$refs.detail.show(row) this.$refs.detail.show(row)
}, },

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

@ -158,6 +158,7 @@ export default {
this.search() this.search()
}, },
detail(row){ detail(row){
this.saveSimpleLog({name:row.name+'('+row.sn+')',nameEn:row.name+'('+row.sn+')',jcmc:'非试验档案详情',jcmcEn:'Non-study Archive Detail'})
this.showType = 'detail' this.showType = 'detail'
this.$refs.detail.show(row) this.$refs.detail.show(row)
}, },

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

@ -78,9 +78,16 @@ export default {
this.tabList.push({ key: 'sjda', name: 'page.business.archive.sjda' }) this.tabList.push({ key: 'sjda', name: 'page.business.archive.sjda' })
} }
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
} }
} }

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

@ -158,6 +158,8 @@ export default {
this.search() this.search()
}, },
detail(row){ detail(row){
this.saveSimpleLog({name:row.name+'('+row.sn+')',nameEn:row.name+'('+row.sn+')',jcmc:'试验档案详情',jcmcEn:'Study Archive Detail'})
this.showType = 'detail' this.showType = 'detail'
this.$refs.detail.show(row) this.$refs.detail.show(row)
}, },

Loading…
Cancel
Save