From efd18e65b41265ff6f44b1f462e8087bf2ec4982 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Fri, 9 Jan 2026 18:03:42 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A[=E8=AF=95=E9=AA=8C=E7=AE=A1?= =?UTF-8?q?=E7=90=86][=E7=89=A9=E8=B5=84=E4=BF=A1=E6=81=AF]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lang/en/business/study/study.js | 4 +- src/lang/zh/business/study/study.js | 3 +- .../business/comps/select/SelectStudyDialog.vue | 100 +++++++++++++-------- src/views/business/resource/gyzj/comps/ffjl/Xq.vue | 3 +- .../business/resource/gyzj/comps/ffjlList.vue | 32 ++++--- src/views/business/resource/gyzj/comps/gyzj/Ff.vue | 21 ++--- src/views/business/resource/gyzj/comps/gyzj/Xq.vue | 6 +- 7 files changed, 103 insertions(+), 66 deletions(-) diff --git a/src/lang/en/business/study/study.js b/src/lang/en/business/study/study.js index b74ce47..405e5cf 100644 --- a/src/lang/en/business/study/study.js +++ b/src/lang/en/business/study/study.js @@ -71,5 +71,7 @@ export default { scsy: 'Remove Study', jysj: 'Checkout Period', - qxzsy: 'Please Select Study' + qxzsy: 'Please Select Study', + + other:'Other' } diff --git a/src/lang/zh/business/study/study.js b/src/lang/zh/business/study/study.js index ff2763b..4e1beee 100644 --- a/src/lang/zh/business/study/study.js +++ b/src/lang/zh/business/study/study.js @@ -71,5 +71,6 @@ export default { scsy: '删除试验', jysj: '借阅时间', - qxzsy: '请选择试验' + qxzsy: '请选择试验', + other:'其他' } diff --git a/src/views/business/comps/select/SelectStudyDialog.vue b/src/views/business/comps/select/SelectStudyDialog.vue index 63f13bc..bee68f8 100644 --- a/src/views/business/comps/select/SelectStudyDialog.vue +++ b/src/views/business/comps/select/SelectStudyDialog.vue @@ -8,47 +8,53 @@ - - + + - - + + {{ $t('form.search') }} {{ $t('form.reset') }} - - - - - + + - - - + + + - + + {{ + $t('page.business.study.study.other') }} + @@ -60,14 +66,18 @@ import { public_studyList } from "@/api/business/public/public"; import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; export default { name: "SelectStudyDialog", - components: {SelectDeptUser }, + components: { SelectDeptUser }, props: { }, watch: { }, data() { return { + checkedOther: false, + others: '', selectedId: null, + selectedName: null, + selectList: [], loading: false, open: false, total: 0, @@ -85,18 +95,35 @@ export default { mounted() { }, methods: { - handleRadioClick(row) { - this.selectedId = row.id + checkedOtherChange() { + if (!this.checkedOther) { + this.others = '' + } + }, + handleSelectionChange(selection) { + this.single = selection.length !== 1 + this.multiple = !selection.length + this.selectList = selection + this.selectedId = _.map(this.selectList, 'id').join(',') + this.selectedName = _.map(this.selectList, 'name').join(',') }, show(val) { - this.searchForm=_.merge({}, this.searchForm, val) - this.selectedId=null + this.searchForm = _.merge({}, this.searchForm, val) + this.selectedId = null + this.selectedName = null + this.checkedOther = false + this.others = null + this.$emit('callback', { id: '', name: '', other: '' }) this.search() }, search() { this.searchForm.pageNum = 1; this.open = true - this.selectedId=null + this.selectedId = null + this.selectedName = null + this.checkedOther = false + this.others = null + this.$emit('callback', { id: '', name: '', other: '' }) this.getList(); }, reset() { @@ -118,10 +145,13 @@ export default { }) }, handleSelect() { - let that = this - let _index = _.findIndex(this.list, function (item) { return item.id == that.selectedId }) - debugger - this.$emit('callback', this.list[_index]); + let name='' + if(this.selectedName!=''&&this.others!=''){ + name=this.selectedName+','+this.others + }else{ + name=this.selectedName+this.others + } + this.$emit('callback', { id: this.selectedId, name: name, other: this.others }) this.open = false } } @@ -129,7 +159,5 @@ export default { \ No newline at end of file diff --git a/src/views/business/resource/gyzj/comps/ffjl/Xq.vue b/src/views/business/resource/gyzj/comps/ffjl/Xq.vue index 605f234..66ba655 100644 --- a/src/views/business/resource/gyzj/comps/ffjl/Xq.vue +++ b/src/views/business/resource/gyzj/comps/ffjl/Xq.vue @@ -75,7 +75,8 @@
{{ $t('page.business.resource.gyzj.md') }}
- + +
diff --git a/src/views/business/resource/gyzj/comps/ffjlList.vue b/src/views/business/resource/gyzj/comps/ffjlList.vue index bf85370..afdb76e 100644 --- a/src/views/business/resource/gyzj/comps/ffjlList.vue +++ b/src/views/business/resource/gyzj/comps/ffjlList.vue @@ -86,13 +86,17 @@ - + - + + + @@ -141,9 +145,9 @@ @@ -186,7 +190,7 @@ - +
@@ -212,7 +216,7 @@ export default { daterangeCk: [], daterangeRk: [], loading: true, - showDetail:false, + showDetail: false, single: true, multiple: true, total: 0, @@ -263,15 +267,15 @@ export default { handlePlsd() { this.$refs.Sd.showBatch(this.selectList) }, - closeXq(){ - this.showDetail=false - this.$emit('showDetail',this.showDetail) + closeXq() { + this.showDetail = false + this.$emit('showDetail', this.showDetail) this.handleQuery() }, //详情 handleXq(row) { - this.showDetail=true - this.$emit('showDetail',this.showDetail) + this.showDetail = true + this.$emit('showDetail', this.showDetail) this.$refs.Xq.show(row) }, //归档 diff --git a/src/views/business/resource/gyzj/comps/gyzj/Ff.vue b/src/views/business/resource/gyzj/comps/gyzj/Ff.vue index 8c10dba..e935124 100644 --- a/src/views/business/resource/gyzj/comps/gyzj/Ff.vue +++ b/src/views/business/resource/gyzj/comps/gyzj/Ff.vue @@ -44,7 +44,7 @@ --> @@ -121,7 +121,7 @@ - +