Browse Source

fix:[模板管理]优化

zhangteng
15881625488@163.com 4 days ago
parent
commit
ce5f53a5ba
3 changed files with 9 additions and 7 deletions
  1. +2
    -2
      src/views/business/comps/select/SelectBalanceValue.vue
  2. +1
    -1
      src/views/business/resource/gyzj/comps/gyzj/Ff.vue
  3. +6
    -4
      src/views/business/resource/mjy/comps/mjy/Ff.vue

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

@ -95,11 +95,11 @@ export default {
this.tpzChange() this.tpzChange()
}, },
tpzChange() { tpzChange() {
this.$emit('change', { tpz: this.tpz, dw: this.tpdw,selectkey:this.selectkey})
this.$emit('change', { tpz: this.tpz, dw: this.tpdw,key:this.selectkey})
this.$emit('input', this.tpz) this.$emit('input', this.tpz)
}, },
inputChange() { inputChange() {
this.$emit('change', { tpz: this.srz, dw: this.dw,selectkey:this.selectkey })
this.$emit('change', { tpz: this.srz, dw: this.dw,key:this.selectkey })
this.$emit('input', this.srz) this.$emit('input', this.srz)
}, },
typeChange(){ typeChange(){

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

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<!-- 发放弹窗 --> <!-- 发放弹窗 -->
<el-dialog :title="$t('page.business.resource.gyzj.fafang')" :visible.sync="open" width="1200px" append-to-body
<el-dialog :title="$t('page.business.resource.gyzj.fafang')" :visible.sync="open" width="80%" append-to-body
:close-on-click-modal="false"> :close-on-click-modal="false">
<el-form ref="form" :model="form" :rules="rules" :label-width="$i18n.locale === 'zh_CN' ? '120px' : '170px'" <el-form ref="form" :model="form" :rules="rules" :label-width="$i18n.locale === 'zh_CN' ? '120px' : '170px'"
v-if="open"> v-if="open">

+ 6
- 4
src/views/business/resource/mjy/comps/mjy/Ff.vue View File

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<!-- 发放弹窗 --> <!-- 发放弹窗 -->
<el-dialog :title="$t('page.business.resource.mjy.fafang')" :visible.sync="open" width="1200px" append-to-body
<el-dialog :title="$t('page.business.resource.mjy.fafang')" :visible.sync="open" width="80%" append-to-body
:close-on-click-modal="false"> :close-on-click-modal="false">
<el-form ref="form" :model="form" :rules="rules" :label-width="$i18n.locale === 'zh_CN' ? '120px' : '170px'" <el-form ref="form" :model="form" :rules="rules" :label-width="$i18n.locale === 'zh_CN' ? '120px' : '170px'"
v-if="open"> v-if="open">
@ -319,7 +319,7 @@ export default {
}, },
selectStudyChangeBatch(val) { selectStudyChangeBatch(val) {
if (val && val.id && val.id !== '') { if (val && val.id && val.id !== '') {
const _index = _.findIndex(this.selectList, function (o) { return o.id + '' === val.key })
let _index = _.findIndex(this.selectList, function (o) { return o.id + '' === val.key })
if (_index > -1) { if (_index > -1) {
this.selectList[_index].mdMcs = val.name this.selectList[_index].mdMcs = val.name
this.selectList[_index].mdOther = val.mdOther this.selectList[_index].mdOther = val.mdOther
@ -338,8 +338,10 @@ export default {
}, },
tpChange(val) { tpChange(val) {
let that = this let that = this
debugger
if (val) { if (val) {
const _index = _.findIndex(that.selectList, function (o) { return o.id + '' === val.key })
let _index = _.findIndex(that.selectList, function (o) { return o.id + '' === val.key })
debugger
if (_index > -1) { if (_index > -1) {
that.selectList[_index].ckmz = val.tpz that.selectList[_index].ckmz = val.tpz
that.selectList[_index].ckmzdw = val.dw that.selectList[_index].ckmzdw = val.dw
@ -351,7 +353,7 @@ export default {
}, },
handleSc(row) { handleSc(row) {
this.$modal.confirm(this.$t('form.confirmDelete')).then(() => { this.$modal.confirm(this.$t('form.confirmDelete')).then(() => {
const _index = _.findIndex(this.selectList, function (o) { return o.id === row.id })
let _index = _.findIndex(this.selectList, function (o) { return o.id === row.id })
if (_index > -1) { if (_index > -1) {
this.selectList.splice(_index, 1) this.selectList.splice(_index, 1)
this.form.ids = this.selectList.map(item => item.id) this.form.ids = this.selectList.map(item => item.id)

Loading…
Cancel
Save