Browse Source

fix:模板选择组件bug

master
15881625488@163.com 1 week ago
parent
commit
c416ff483f
5 changed files with 9 additions and 7 deletions
  1. +2
    -1
      src/views/business/comps/select/SelectTemplateDialog.vue
  2. +2
    -2
      src/views/business/study/comp/sqbdList.vue
  3. +2
    -2
      src/views/business/study/comp/tbbdList.vue
  4. +1
    -0
      src/views/business/study/comp/ytbd/Bj.vue
  5. +2
    -2
      vue.config.js

+ 2
- 1
src/views/business/comps/select/SelectTemplateDialog.vue View File

@ -103,7 +103,8 @@ export default {
}, },
handleSelect() { handleSelect() {
let that = this let that = this
let _index = _.findIndex(this.list, function (item) { return item.id = that.selectedId })
let _index = _.findIndex(this.list, function (item) { return item.id == that.selectedId })
debugger
this.$emit('callback', this.list[_index]); this.$emit('callback', this.list[_index]);
this.open = false this.open = false
} }

+ 2
- 2
src/views/business/study/comp/sqbdList.vue View File

@ -93,8 +93,8 @@
<el-table-column :label="$t('page.business.study.studyFormApply.sfbl')" align="center" prop="status" <el-table-column :label="$t('page.business.study.studyFormApply.sfbl')" align="center" prop="status"
width="100"> width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.bdzt === 10">{{ $t('page.business.study.studyFormApply.yes') }}</span>
<span v-if="scope.row.bdzt === 1">{{ $t('page.business.study.studyFormApply.no') }}</span>
<span v-if="scope.row.sfbl === 10">{{ $t('page.business.study.studyFormApply.yes') }}</span>
<span v-if="scope.row.sfbl === 1">{{ $t('page.business.study.studyFormApply.no') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('page.business.form.tjsj')" align="center" prop="tjsj" width="140" /> <el-table-column :label="$t('page.business.form.tjsj')" align="center" prop="tjsj" width="140" />

+ 2
- 2
src/views/business/study/comp/tbbdList.vue View File

@ -93,8 +93,8 @@
<el-table-column :label="$t('page.business.study.studyFormFill.sfbl')" align="center" prop="status" <el-table-column :label="$t('page.business.study.studyFormFill.sfbl')" align="center" prop="status"
width="100"> width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.bdzt === 10">{{ $t('page.business.study.studyFormFill.yes') }}</span>
<span v-if="scope.row.bdzt === 1">{{ $t('page.business.study.studyFormFill.no') }}</span>
<span v-if="scope.row.sfbl === 10">{{ $t('page.business.study.studyFormFill.yes') }}</span>
<span v-if="scope.row.sfbl === 1">{{ $t('page.business.study.studyFormFill.no') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('page.business.form.tjsj')" align="center" prop="tjsj" width="140" /> <el-table-column :label="$t('page.business.form.tjsj')" align="center" prop="tjsj" width="140" />

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

@ -194,6 +194,7 @@ export default {
}) })
}, },
selectTemplateChange(val) { selectTemplateChange(val) {
debugger
this.form.bdnr = val.content this.form.bdnr = val.content
this.form.templateMc = val.name this.form.templateMc = val.name
this.form.templateSn = val.sn this.form.templateSn = val.sn

+ 2
- 2
vue.config.js View File

@ -34,8 +34,8 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [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, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''

Loading…
Cancel
Save