Browse Source

fix:[试验管理][预填表单]

lkf
15881625488@163.com 3 months ago
parent
commit
d314e67a80
3 changed files with 12 additions and 4 deletions
  1. +1
    -1
      src/lang/en.js
  2. +9
    -1
      src/views/business/study/comp/ytbd/Bj.vue
  3. +2
    -2
      vue.config.js

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

@ -80,7 +80,7 @@ export default {
close: 'Close',
operate: 'Action',
delete: 'Delete',
detail: 'View',
detail: 'Dtail',
placeholderInput: 'Please Input',
placeholderSelect: 'Please Select',
confirmDelete: 'Confirm Delete?',

+ 9
- 1
src/views/business/study/comp/ytbd/Bj.vue View File

@ -196,6 +196,14 @@ export default {
this.$refs["form"].validate(valid => {
if (valid) {
this.showIndex = 2
this.$modal.loading()
studyFormPre_bc(this.form).then(response => {
this.form = response.data
this.templateData = deepClone(this.form)
this.showIndex = 2
}).finally(() => {
this.$modal.closeLoading()
})
}
})
},
@ -236,7 +244,7 @@ export default {
studyFormPre_info({ id: row.id }).then(response => {
this.form = response.data
this.templateData = deepClone(this.form)
this.form.qmyy = this.$t('page.business.study.studyFormPre.zztjyzbd')
this.form.qmyy = this.$t('page.business.study.studyFormPre.zztjyzbd')
this.$modal.closeLoading()
}).finally(() => {
this.$modal.closeLoading()

+ 2
- 2
vue.config.js View File

@ -34,8 +34,8 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
// target: `http://localhost:8080`,
target: `http://39.99.251.173:8080`,
target: `http://localhost:8080`,
// target: `http://39.99.251.173:8080`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''

Loading…
Cancel
Save