!64 czh-20260626-替换抄送选人组件
Merge pull request !64 from 陈志浩/fix/ccTask-20260626
This commit is contained in:
+20
-8
@@ -83,7 +83,13 @@
|
||||
<!-- 抄送 -->
|
||||
<a-list-item style="line-height: 32px" v-show="checkedCc">
|
||||
<span>抄送给:</span>
|
||||
<bpm-select-user style="display: inline-block" placeholder="请选择抄送人" :value="defaultCc" @change="handleSelectCcUser"></bpm-select-user>
|
||||
<SzDeptUserModal
|
||||
style="display: inline-block; width: 500px"
|
||||
triggerMode="button"
|
||||
title="选择抄送人"
|
||||
v-model:value="ccUserIds"
|
||||
@confirm="handleSelectCcUser"
|
||||
/>
|
||||
</a-list-item>
|
||||
</a-list>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user