diff --git a/.env.development b/.env.development index 4391aff..439cdac 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,6 @@ # 页面标题 VUE_APP_TITLE = 华西海圻实验室电子记录系统 +VUE_APP_TITLE_EN = WCFP Electronic Laboratory Notebook # 开发环境配置 ENV = 'development' diff --git a/.env.production b/.env.production index 1e483e5..c2612ac 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,6 @@ # 页面标题 VUE_APP_TITLE = 华西海圻实验室电子记录系统 +VUE_APP_TITLE_EN = WCFP Electronic Laboratory Notebook # 生产环境配置 ENV = 'production' diff --git a/src/views/business/comps/template/comps/gsp/GSP015.vue b/src/views/business/comps/template/comps/gsp/GSP015.vue index 2478c32..43dcb8f 100644 --- a/src/views/business/comps/template/comps/gsp/GSP015.vue +++ b/src/views/business/comps/template/comps/gsp/GSP015.vue @@ -216,6 +216,7 @@ export default { refConfig, currentIndex: -1, appTitle: process.env.VUE_APP_TITLE, + appTitleEn: process.env.VUE_APP_TITLE_EN, baseUrl: process.env.VUE_APP_FILE_DOMAIN, uploadFileUrl: process.env.VUE_APP_BASE_API + '/file/upload', // 上传文件服务器地址 }; diff --git a/src/views/business/resource/gsp/comps/gsp/Xq.vue b/src/views/business/resource/gsp/comps/gsp/Xq.vue index 6f2045a..dc7b271 100644 --- a/src/views/business/resource/gsp/comps/gsp/Xq.vue +++ b/src/views/business/resource/gsp/comps/gsp/Xq.vue @@ -136,6 +136,7 @@ export default { data() { return { appTitle: process.env.VUE_APP_TITLE, + appTitleEn: process.env.VUE_APP_TITLE_EN, form: {}, tzList: [], totalTz: 0, @@ -160,7 +161,7 @@ export default { methods: { exportPDF() { this.$modal.loading() - exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0],version:this.appTitle }).then(response => { + exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0],version:this.$store.getters.language.split("_")[0]=='zh'?this.appTitle:this.appTitleEn }).then(response => { window.open(process.env.VUE_APP_FILE_DOMAIN +response.msg) this.saveSimpleLog({name:this.form.bh,nameEn:this.form.bh,jcmc:'供试品导出',jcmcEn:'Test Item Export'}) this.$modal.closeLoading() diff --git a/src/views/business/resource/gyzj/comps/gyzj/Xq.vue b/src/views/business/resource/gyzj/comps/gyzj/Xq.vue index 3bb2f68..b9cd79a 100644 --- a/src/views/business/resource/gyzj/comps/gyzj/Xq.vue +++ b/src/views/business/resource/gyzj/comps/gyzj/Xq.vue @@ -163,6 +163,7 @@ export default { return { form: {}, appTitle: process.env.VUE_APP_TITLE, + appTitleEn: process.env.VUE_APP_TITLE_EN, tzList: [], totalTz: 0, loadingTz: true, @@ -186,7 +187,7 @@ export default { methods: { exportExcel() { this.$modal.loading() - exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0],version:this.appTitle }).then(response => { + exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0],version:this.$store.getters.language.split("_")[0]=='zh'?this.appTitle:this.appTitleEn }).then(response => { window.open(process.env.VUE_APP_FILE_DOMAIN +response.msg) this.$modal.closeLoading() }).finally(() => { diff --git a/src/views/business/resource/mjy/comps/mjy/Xq.vue b/src/views/business/resource/mjy/comps/mjy/Xq.vue index bde5a58..a78f7cc 100644 --- a/src/views/business/resource/mjy/comps/mjy/Xq.vue +++ b/src/views/business/resource/mjy/comps/mjy/Xq.vue @@ -161,6 +161,7 @@ export default { return { form: {}, appTitle: process.env.VUE_APP_TITLE, + appTitleEn: process.env.VUE_APP_TITLE_EN, tzList: [], totalTz: 0, loadingTz: true, @@ -184,7 +185,7 @@ export default { methods: { exportExcel() { this.$modal.loading() - exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0],version:this.appTitle }).then(response => { + exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0],version:this.$store.getters.language.split("_")[0]=='zh'?this.appTitle:this.appTitleEn }).then(response => { window.open(process.env.VUE_APP_FILE_DOMAIN +response.msg) this.$modal.closeLoading() }).finally(() => { diff --git a/src/views/business/resource/sj/comps/Xq.vue b/src/views/business/resource/sj/comps/Xq.vue index 7256d25..09e825a 100644 --- a/src/views/business/resource/sj/comps/Xq.vue +++ b/src/views/business/resource/sj/comps/Xq.vue @@ -190,7 +190,7 @@ export default { methods: { exportPDF() { this.$modal.loading() - exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0],version:this.appTitle }).then(response => { + exportDetail({ id: this.form.id,lang:this.$store.getters.language.split("_")[0],version:this.$store.getters.language.split("_")[0]=='zh'?this.appTitle:this.appTitleEn }).then(response => { window.open(process.env.VUE_APP_FILE_DOMAIN +response.msg) this.saveSimpleLog({name:this.form.bh,nameEn:this.form.bh,jcmc:'试剂导出',jcmcEn:'Reagent Export'}) this.$modal.closeLoading() diff --git a/src/views/business/study/comp/tbbd/Xq.vue b/src/views/business/study/comp/tbbd/Xq.vue index 3f6ce25..102972c 100644 --- a/src/views/business/study/comp/tbbd/Xq.vue +++ b/src/views/business/study/comp/tbbd/Xq.vue @@ -183,6 +183,7 @@ export default { return { watermarkText: '', appTitle: process.env.VUE_APP_TITLE, + appTitleEn: process.env.VUE_APP_TITLE_EN, baseUrl: process.env.VUE_APP_FILE_DOMAIN, uploadFileUrl: process.env.VUE_APP_BASE_API + '/file/upload', // 上传文件服务器地址 opacity: 0.8, @@ -403,7 +404,7 @@ export default { url: data.data.url, studyFormFillId: this.form.id, jcgjlx: this.jcgjlxExport, - version:this.appTitle, + version:this.$store.getters.language.split("_")[0]=='zh'?this.appTitle:this.appTitleEn, lang: this.$store.getters.language.split("_")[0] } ).then(response => {