From 597ff1873c35e18bd865882c71d917beceee9bbe Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Sat, 10 Jan 2026 11:02:48 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A[=E8=B5=84=E6=BA=90=E5=BA=93?= =?UTF-8?q?=E7=AE=A1=E7=90=86][=E9=BA=BB=E7=B2=BE=E8=8D=AF=EF=BC=8C?= =?UTF-8?q?=E7=BB=99=E8=8D=AF=E5=88=B6=E5=89=82]=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E6=93=8D=E4=BD=9Cbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/resource/gsp/comps/gsp/Ff.vue | 4 +- .../business/resource/gyzj/comps/gyzj/Czrq.vue | 4 +- .../business/resource/gyzj/comps/gyzj/Czyj.vue | 4 +- src/views/business/resource/gyzj/comps/gyzj/Ff.vue | 32 ++++++---- src/views/business/resource/mjy/comps/mjy/Czrq.vue | 4 +- src/views/business/resource/mjy/comps/mjy/Czyj.vue | 4 +- src/views/business/resource/mjy/comps/mjy/Ff.vue | 68 +++++++++++++--------- 7 files changed, 67 insertions(+), 53 deletions(-) diff --git a/src/views/business/resource/gsp/comps/gsp/Ff.vue b/src/views/business/resource/gsp/comps/gsp/Ff.vue index 7fa1808..b57568e 100644 --- a/src/views/business/resource/gsp/comps/gsp/Ff.vue +++ b/src/views/business/resource/gsp/comps/gsp/Ff.vue @@ -315,9 +315,7 @@ export default { }, handleSc(row) { const that = this - this.$modal.confirm(this.$t('form.confirmDelete')).then(function () { - return delDept(row.deptId) - }).then(() => { + this.$modal.confirm(this.$t('form.confirmDelete')).then(() => { const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id }) if (_index > -1) { that.selectList.splice(_index, 1) diff --git a/src/views/business/resource/gyzj/comps/gyzj/Czrq.vue b/src/views/business/resource/gyzj/comps/gyzj/Czrq.vue index f025d2d..6dea830 100644 --- a/src/views/business/resource/gyzj/comps/gyzj/Czrq.vue +++ b/src/views/business/resource/gyzj/comps/gyzj/Czrq.vue @@ -191,9 +191,7 @@ export default { methods: { handleSc(row) { const that = this - this.$modal.confirm(this.$t('form.confirmDelete')).then(function () { - return delDept(row.deptId) - }).then(() => { + this.$modal.confirm(this.$t('form.confirmDelete')).then(() => { const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id }) if (_index > -1) { that.selectList.splice(_index, 1) diff --git a/src/views/business/resource/gyzj/comps/gyzj/Czyj.vue b/src/views/business/resource/gyzj/comps/gyzj/Czyj.vue index 66fb434..50d2365 100644 --- a/src/views/business/resource/gyzj/comps/gyzj/Czyj.vue +++ b/src/views/business/resource/gyzj/comps/gyzj/Czyj.vue @@ -210,9 +210,7 @@ export default { methods: { handleSc(row) { const that = this - this.$modal.confirm(this.$t('form.confirmDelete')).then(function () { - return delDept(row.deptId) - }).then(() => { + this.$modal.confirm(this.$t('form.confirmDelete')).then(() => { const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id }) if (_index > -1) { that.selectList.splice(_index, 1) diff --git a/src/views/business/resource/gyzj/comps/gyzj/Ff.vue b/src/views/business/resource/gyzj/comps/gyzj/Ff.vue index ade0300..d4c5a78 100644 --- a/src/views/business/resource/gyzj/comps/gyzj/Ff.vue +++ b/src/views/business/resource/gyzj/comps/gyzj/Ff.vue @@ -78,7 +78,7 @@ + }} @@ -99,7 +99,7 @@ + }} @@ -296,9 +296,7 @@ export default { }, handleSc(row) { const that = this - this.$modal.confirm(this.$t('form.confirmDelete')).then(function () { - return delDept(row.deptId) - }).then(() => { + this.$modal.confirm(this.$t('form.confirmDelete')).then(() => { const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id }) if (_index > -1) { that.selectList.splice(_index, 1) @@ -312,13 +310,23 @@ export default { this.form.ids = val.map(item => item.id) let tmp = [] _.forEach(val, function (item) { - let a = item - a.zytj = null - a.mdIds = null - a.mdMcs = null - a.mdOther = null - a.remark = null - tmp.push(a) + tmp.push({ + id: item.id, + mc: item.mc, + bh: item.bh, + nd: item.nd, + nddw: item.nddw, + kc: item.kc, + kcdw: item.kcdw, + cctj: item.cctj, + sxrq: item.sxrq, + ccwz: item.ccwz, + zytj: null, + mdIds: null, + mdMcs: null, + mdOther: null, + remark: null + }) }) this.selectList = tmp this.open = true diff --git a/src/views/business/resource/mjy/comps/mjy/Czrq.vue b/src/views/business/resource/mjy/comps/mjy/Czrq.vue index d55d5b0..3e387ac 100644 --- a/src/views/business/resource/mjy/comps/mjy/Czrq.vue +++ b/src/views/business/resource/mjy/comps/mjy/Czrq.vue @@ -191,9 +191,7 @@ export default { methods: { handleSc(row) { const that = this - this.$modal.confirm(this.$t('form.confirmDelete')).then(function () { - return delDept(row.deptId) - }).then(() => { + this.$modal.confirm(this.$t('form.confirmDelete')).then(() => { const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id }) if (_index > -1) { that.selectList.splice(_index, 1) diff --git a/src/views/business/resource/mjy/comps/mjy/Czyj.vue b/src/views/business/resource/mjy/comps/mjy/Czyj.vue index d4ddde4..071c973 100644 --- a/src/views/business/resource/mjy/comps/mjy/Czyj.vue +++ b/src/views/business/resource/mjy/comps/mjy/Czyj.vue @@ -212,9 +212,7 @@ export default { methods: { handleSc(row) { const that = this - this.$modal.confirm(this.$t('form.confirmDelete')).then(function () { - return delDept(row.deptId) - }).then(() => { + this.$modal.confirm(this.$t('form.confirmDelete')).then(() => { const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id }) if (_index > -1) { that.selectList.splice(_index, 1) diff --git a/src/views/business/resource/mjy/comps/mjy/Ff.vue b/src/views/business/resource/mjy/comps/mjy/Ff.vue index 952e294..6dc9632 100644 --- a/src/views/business/resource/mjy/comps/mjy/Ff.vue +++ b/src/views/business/resource/mjy/comps/mjy/Ff.vue @@ -44,8 +44,8 @@ @@ -87,7 +87,7 @@ + }} @@ -108,7 +108,7 @@ + }} @@ -121,7 +121,7 @@ - + @@ -221,7 +221,7 @@ import SelectStudy from '@/views/business/comps/select/SelectStudy'; export default { name: "Ff", - components: { SelectList, SelectDeptUser,SelectStudy }, + components: { SelectList, SelectDeptUser, SelectStudy }, data() { return { isBatch: false, @@ -270,7 +270,7 @@ export default { message: ' ', trigger: 'blur' }], - + ckmzdw: [{ required: true, message: ' ', @@ -309,19 +309,25 @@ export default { created() { }, methods: { - selectStudyChange(val){ - this.form.mdMcs=val.name - this.form.mdOther=val.other + selectStudyChange(val) { + this.form.mdMcs = val.name + this.form.mdOther = val.other + }, + selectStudyChangeBatch(val) { + if (val && val.id && val.id !== '') { + const _index = _.findIndex(this.selectList, function (o) { return o.id + '' === val.key }) + if (_index > -1) { + this.selectList[_index].mdMcs = val.name + this.selectList[_index].mdOther = val.mdOther + } + } }, handleSc(row) { - const that = this - this.$modal.confirm(this.$t('form.confirmDelete')).then(function () { - return delDept(row.deptId) - }).then(() => { - const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id }) + this.$modal.confirm(this.$t('form.confirmDelete')).then(() => { + const _index = _.findIndex(this.selectList, function (o) { return o.id === row.id }) if (_index > -1) { - that.selectList.splice(_index, 1) - that.form.ids = that.selectList.map(item => item.id) + this.selectList.splice(_index, 1) + this.form.ids = this.selectList.map(item => item.id) } }).catch(() => { }) }, @@ -331,15 +337,25 @@ export default { this.form.ids = val.map(item => item.id) let tmp = [] _.forEach(val, function (item) { - let a = item - a.ckmzdw = a.kcdw - a.zytj = null - a.ckmz = null - a.mdIds = null - a.mdMcs = null - a.mdOther = null - a.remark = null - tmp.push(a) + tmp.push({ + id: item.id, + mc: item.mc, + bh: item.bh, + nd: item.nd, + nddw: item.nddw, + kc: item.kc, + kcdw: item.kcdw, + cctj: item.cctj, + sxrq: item.sxrq, + ccwz: item.ccwz, + ckmzdw:item.kcdw, + zytj: null, + ckmz: null, + mdIds: null, + mdMcs: null, + mdOther: null, + remark: null + }) }) this.selectList = tmp this.open = true