diff --git a/src/views/super/bpm/process/personalOffice/myHandleTask/content/MyHandleContent.vue b/src/views/super/bpm/process/personalOffice/myHandleTask/content/MyHandleContent.vue index 3280ca6..2428898 100644 --- a/src/views/super/bpm/process/personalOffice/myHandleTask/content/MyHandleContent.vue +++ b/src/views/super/bpm/process/personalOffice/myHandleTask/content/MyHandleContent.vue @@ -83,7 +83,13 @@ 抄送给: - + @@ -117,6 +123,7 @@ import { AuditOutlined } from '@ant-design/icons-vue'; import { JUpload } from '/@/components/Form/src/jeecg/components/JUpload'; import BpmSelectUser from '/@/views/super/bpm/process/components/bpmSelectUser/index.vue'; + import SzDeptUserModal from '/@/components/semri/deptUserComponent/SzDeptUserModal.vue'; import AddSignTaskModal from '/@/views/super/bpm/process/personalOffice/myHandleTask/modal/AddSignTaskModal.vue'; import UserSelectModal from '/@/components/Form/src/jeecg/components/userSelect/UserSelectModal.vue'; import { useUserStore } from '/@/store/modules/user'; @@ -138,6 +145,7 @@ JUpload, AuditOutlined, BpmSelectUser, + SzDeptUserModal, }, props: { historyList: { @@ -286,10 +294,14 @@ // 选择抄送人 const checkedCc = ref(false); - const ccPersonList = ref([]); + const ccUserIds = ref(''); function handleCheckedCc(e) { checkedCc.value = e.target.checked; - ccPersonList.value = []; + if (!checkedCc.value) { + ccUserIds.value = ''; + model.ccUserIds = ''; + model.ccUserRealNames = ''; + } } watch( @@ -300,6 +312,7 @@ checkedCc.value = true; const usernames = list.map((u) => u.username); const realnames = list.map((u) => u.realname); + ccUserIds.value = usernames.join(','); model.ccUserIds = usernames.join(','); model.ccUserRealNames = realnames.join(','); }, @@ -478,10 +491,9 @@ model.nextUserName = realnames.join(','); } - function handleSelectCcUser(arr) { - let { usernames, realnames } = getInfo(arr); - model.ccUserIds = usernames.join(','); - model.ccUserRealNames = realnames.join(','); + function handleSelectCcUser(userIds, realnames) { + model.ccUserIds = userIds || ''; + model.ccUserRealNames = realnames || ''; } function getInfo(arr) { @@ -512,7 +524,7 @@ handleCheckedNext, checkedCc, - ccPersonList, + ccUserIds, handleCheckedCc, loading,