Browse Source

feat: [操作日志] 试验日志加上名称编号

lkf
memorylkf 2 months ago
parent
commit
db8cf5ade0
4 changed files with 8 additions and 8 deletions
  1. +1
    -1
      src/views/business/form/drug/comp/enter.vue
  2. +1
    -1
      src/views/business/form/nonTrial/comp/enter.vue
  3. +1
    -1
      src/views/business/study/comp/enter.vue
  4. +5
    -5
      src/views/business/systemLog/comp/czrz.vue

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

@ -66,7 +66,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.name+'('+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/comp/enter.vue View File

@ -66,7 +66,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.name+'('+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/comp/enter.vue View File

@ -80,7 +80,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.name+'('+this.study.sn+')' })
this.$tab.updatePage(obj); this.$tab.updatePage(obj);
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()

+ 5
- 5
src/views/business/systemLog/comp/czrz.vue View File

@ -46,7 +46,7 @@
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column :label="$t('page.system.systemLog.czr')" prop="qmrMc" width="200" /> <el-table-column :label="$t('page.system.systemLog.czr')" prop="qmrMc" width="200" />
<el-table-column :label="$t('page.system.systemLog.czlx')" :prop="$i18n.locale === 'zh_CN'?'jcmc':'jcmcEn'" width="200" /> <el-table-column :label="$t('page.system.systemLog.czlx')" :prop="$i18n.locale === 'zh_CN'?'jcmc':'jcmcEn'" width="200" />
<el-table-column :label="$t('page.system.systemLog.czxq')" align="center">
<el-table-column :label="$t('page.system.systemLog.czxq')">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{initNr(scope.row)}}</span> <span>{{initNr(scope.row)}}</span>
</template> </template>
@ -122,9 +122,9 @@ export default {
_.forEach(list,(o,index)=>{ _.forEach(list,(o,index)=>{
nr+=o.name+':'+o.value+(index===list.length-1?'':';') nr+=o.name+':'+o.value+(index===list.length-1?'':';')
}) })
return nr
return (row.name || '')+nr+(row.remark?(';'+this.$t('form.remark')+":"+row.remark):'')
}else{ }else{
return row.jcnr
return (row.name || '')+(row.jcnr || '')+(row.remark?(';'+this.$t('form.remark')+":"+row.remark):'')
} }
}else{ }else{
if(this.isJSON(row.jcnrEn)){ if(this.isJSON(row.jcnrEn)){
@ -133,9 +133,9 @@ export default {
_.forEach(list,(o,index)=>{ _.forEach(list,(o,index)=>{
nr+=o.name+':'+o.value+(index===list.length-1?'':';') nr+=o.name+':'+o.value+(index===list.length-1?'':';')
}) })
return nr
return (row.name || '')+nr+(row.remark?(';'+this.$t('form.remark')+":"+row.remark):'')
}else{ }else{
return row.jcnrEn
return (row.name || '')+(row.jcnrEn || '')+(row.remark?(';'+this.$t('form.remark')+":"+row.remark):'')
} }
} }
}, },

Loading…
Cancel
Save