Browse Source

fix:[表单管理]导出

luojie
15881625488@163.com 2 weeks ago
parent
commit
4b5ce3d8cb
8 changed files with 12 additions and 5 deletions
  1. +1
    -0
      .env.development
  2. +1
    -0
      .env.production
  3. +1
    -0
      src/views/business/comps/template/comps/gsp/GSP015.vue
  4. +2
    -1
      src/views/business/resource/gsp/comps/gsp/Xq.vue
  5. +2
    -1
      src/views/business/resource/gyzj/comps/gyzj/Xq.vue
  6. +2
    -1
      src/views/business/resource/mjy/comps/mjy/Xq.vue
  7. +1
    -1
      src/views/business/resource/sj/comps/Xq.vue
  8. +2
    -1
      src/views/business/study/comp/tbbd/Xq.vue

+ 1
- 0
.env.development View File

@ -1,5 +1,6 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 华西海圻实验室电子记录系统 VUE_APP_TITLE = 华西海圻实验室电子记录系统
VUE_APP_TITLE_EN = WCFP Electronic Laboratory Notebook
# 开发环境配置 # 开发环境配置
ENV = 'development' ENV = 'development'

+ 1
- 0
.env.production View File

@ -1,5 +1,6 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 华西海圻实验室电子记录系统 VUE_APP_TITLE = 华西海圻实验室电子记录系统
VUE_APP_TITLE_EN = WCFP Electronic Laboratory Notebook
# 生产环境配置 # 生产环境配置
ENV = 'production' ENV = 'production'

+ 1
- 0
src/views/business/comps/template/comps/gsp/GSP015.vue View File

@ -216,6 +216,7 @@ export default {
refConfig, refConfig,
currentIndex: -1, currentIndex: -1,
appTitle: process.env.VUE_APP_TITLE, appTitle: process.env.VUE_APP_TITLE,
appTitleEn: process.env.VUE_APP_TITLE_EN,
baseUrl: process.env.VUE_APP_FILE_DOMAIN, baseUrl: process.env.VUE_APP_FILE_DOMAIN,
uploadFileUrl: process.env.VUE_APP_BASE_API + '/file/upload', // uploadFileUrl: process.env.VUE_APP_BASE_API + '/file/upload', //
}; };

+ 2
- 1
src/views/business/resource/gsp/comps/gsp/Xq.vue View File

@ -136,6 +136,7 @@ export default {
data() { data() {
return { return {
appTitle: process.env.VUE_APP_TITLE, appTitle: process.env.VUE_APP_TITLE,
appTitleEn: process.env.VUE_APP_TITLE_EN,
form: {}, form: {},
tzList: [], tzList: [],
totalTz: 0, totalTz: 0,
@ -160,7 +161,7 @@ export default {
methods: { methods: {
exportPDF() { exportPDF() {
this.$modal.loading() 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) 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.saveSimpleLog({name:this.form.bh,nameEn:this.form.bh,jcmc:'供试品导出',jcmcEn:'Test Item Export'})
this.$modal.closeLoading() this.$modal.closeLoading()

+ 2
- 1
src/views/business/resource/gyzj/comps/gyzj/Xq.vue View File

@ -163,6 +163,7 @@ export default {
return { return {
form: {}, form: {},
appTitle: process.env.VUE_APP_TITLE, appTitle: process.env.VUE_APP_TITLE,
appTitleEn: process.env.VUE_APP_TITLE_EN,
tzList: [], tzList: [],
totalTz: 0, totalTz: 0,
loadingTz: true, loadingTz: true,
@ -186,7 +187,7 @@ export default {
methods: { methods: {
exportExcel() { exportExcel() {
this.$modal.loading() 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) window.open(process.env.VUE_APP_FILE_DOMAIN +response.msg)
this.$modal.closeLoading() this.$modal.closeLoading()
}).finally(() => { }).finally(() => {

+ 2
- 1
src/views/business/resource/mjy/comps/mjy/Xq.vue View File

@ -161,6 +161,7 @@ export default {
return { return {
form: {}, form: {},
appTitle: process.env.VUE_APP_TITLE, appTitle: process.env.VUE_APP_TITLE,
appTitleEn: process.env.VUE_APP_TITLE_EN,
tzList: [], tzList: [],
totalTz: 0, totalTz: 0,
loadingTz: true, loadingTz: true,
@ -184,7 +185,7 @@ export default {
methods: { methods: {
exportExcel() { exportExcel() {
this.$modal.loading() 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) window.open(process.env.VUE_APP_FILE_DOMAIN +response.msg)
this.$modal.closeLoading() this.$modal.closeLoading()
}).finally(() => { }).finally(() => {

+ 1
- 1
src/views/business/resource/sj/comps/Xq.vue View File

@ -190,7 +190,7 @@ export default {
methods: { methods: {
exportPDF() { exportPDF() {
this.$modal.loading() 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) 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.saveSimpleLog({name:this.form.bh,nameEn:this.form.bh,jcmc:'试剂导出',jcmcEn:'Reagent Export'})
this.$modal.closeLoading() this.$modal.closeLoading()

+ 2
- 1
src/views/business/study/comp/tbbd/Xq.vue View File

@ -183,6 +183,7 @@ export default {
return { return {
watermarkText: '', watermarkText: '',
appTitle: process.env.VUE_APP_TITLE, appTitle: process.env.VUE_APP_TITLE,
appTitleEn: process.env.VUE_APP_TITLE_EN,
baseUrl: process.env.VUE_APP_FILE_DOMAIN, baseUrl: process.env.VUE_APP_FILE_DOMAIN,
uploadFileUrl: process.env.VUE_APP_BASE_API + '/file/upload', // uploadFileUrl: process.env.VUE_APP_BASE_API + '/file/upload', //
opacity: 0.8, opacity: 0.8,
@ -403,7 +404,7 @@ export default {
url: data.data.url, url: data.data.url,
studyFormFillId: this.form.id, studyFormFillId: this.form.id,
jcgjlx: this.jcgjlxExport, 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] lang: this.$store.getters.language.split("_")[0]
} }
).then(response => { ).then(response => {

Loading…
Cancel
Save