From 4c82748a17e9a12976a295a43a52bde0b9ef19e5 Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Sat, 3 Jan 2026 09:20:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[=E8=AF=95=E9=AA=8C=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=20=E8=AE=BE=E7=BD=AE=E5=AD=A6=E7=A7=91=E5=92=8C=E9=82=80?= =?UTF-8?q?=E8=AF=B7=E4=BA=BA=E5=91=98=E5=A2=9E=E5=8A=A0=E7=AD=BE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/study/comp/suject.vue | 42 ++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/src/views/business/study/comp/suject.vue b/src/views/business/study/comp/suject.vue index 3dc3fb9..b9c5368 100644 --- a/src/views/business/study/comp/suject.vue +++ b/src/views/business/study/comp/suject.vue @@ -51,6 +51,8 @@ + + @@ -66,6 +68,7 @@ import { } from '@/api/business/study/studySubjectUser' import SelectDeptUserDialog from '../../comps/select/SelectDeptUserDialog.vue'; import SelectDeptUserMultipleDialog from '../../comps/select/SelectDeptUserMultipleDialog.vue'; +import Sign from './sign.vue' export default { name: 'StudySubject', props: { @@ -84,7 +87,7 @@ export default { } }, }, - components: {SelectDeptUserDialog,SelectDeptUserMultipleDialog}, + components: {SelectDeptUserDialog,SelectDeptUserMultipleDialog,Sign}, computed: {}, filters: {}, data() { @@ -100,10 +103,15 @@ export default { subject:{ leader:'', leaderName:'', - } + }, + + saveList:[] }, - memberSubject:{} + memberSubject:{}, + + signType:'', + memberList:[] } }, created() {}, @@ -140,12 +148,27 @@ export default { } } } + this.infoDialog.saveList = postList + this.signType = 'save' + this.$refs.subjectSignRef.show(this.$t('page.business.study.study.rybg'),this.$t('page.business.study.study.rybg')) + }, + doSign(val){ + if(this.signType==='save'){ + this.doSave(val) + } + if(this.signType==='member'){ + this.doChangeMember(val) + } + }, + doSave(sign){ this.$modal.loading() studySubject_save({ studyId:this.study.id, - subjectList:postList + subjectList:this.infoDialog.saveList, + sign:sign }).then(() => { this.infoDialog.visible = false + this.$refs.subjectSignRef.cancel() this.getList() }).finally(() => { this.$modal.closeLoading() @@ -166,6 +189,7 @@ export default { this.infoDialog.list.splice(index,1,this.infoDialog.subject) } }, + yq(item){ this.memberSubject = item studySubjectUser_getListByStudySubjectId({studySubjectId:item.id}).then(response => { @@ -191,11 +215,19 @@ export default { }) } } + this.memberList = postList + this.signType = 'member' + this.$refs.subjectSignRef.show(this.$t('page.business.study.study.rybg'),this.$t('page.business.study.study.rybg')) + }, + + doChangeMember(sign){ this.$modal.loading() studySubjectUser_save({ studySubjectId:this.memberSubject.id, - subjectUserList:postList + subjectUserList:this.memberList, + sign:sign }).then(() => { + this.$refs.subjectSignRef.cancel() }).finally(() => { this.$modal.closeLoading() })