czh-20260626-替换抄送选人组件
This commit is contained in:
+20
-8
@@ -83,7 +83,13 @@
|
|||||||
<!-- 抄送 -->
|
<!-- 抄送 -->
|
||||||
<a-list-item style="line-height: 32px" v-show="checkedCc">
|
<a-list-item style="line-height: 32px" v-show="checkedCc">
|
||||||
<span>抄送给:</span>
|
<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-item>
|
||||||
</a-list>
|
</a-list>
|
||||||
|
|
||||||
@@ -117,6 +123,7 @@
|
|||||||
import { AuditOutlined } from '@ant-design/icons-vue';
|
import { AuditOutlined } from '@ant-design/icons-vue';
|
||||||
import { JUpload } from '/@/components/Form/src/jeecg/components/JUpload';
|
import { JUpload } from '/@/components/Form/src/jeecg/components/JUpload';
|
||||||
import BpmSelectUser from '/@/views/super/bpm/process/components/bpmSelectUser/index.vue';
|
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 AddSignTaskModal from '/@/views/super/bpm/process/personalOffice/myHandleTask/modal/AddSignTaskModal.vue';
|
||||||
import UserSelectModal from '/@/components/Form/src/jeecg/components/userSelect/UserSelectModal.vue';
|
import UserSelectModal from '/@/components/Form/src/jeecg/components/userSelect/UserSelectModal.vue';
|
||||||
import { useUserStore } from '/@/store/modules/user';
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
@@ -138,6 +145,7 @@
|
|||||||
JUpload,
|
JUpload,
|
||||||
AuditOutlined,
|
AuditOutlined,
|
||||||
BpmSelectUser,
|
BpmSelectUser,
|
||||||
|
SzDeptUserModal,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
historyList: {
|
historyList: {
|
||||||
@@ -286,10 +294,14 @@
|
|||||||
|
|
||||||
// 选择抄送人
|
// 选择抄送人
|
||||||
const checkedCc = ref(false);
|
const checkedCc = ref(false);
|
||||||
const ccPersonList = ref([]);
|
const ccUserIds = ref('');
|
||||||
function handleCheckedCc(e) {
|
function handleCheckedCc(e) {
|
||||||
checkedCc.value = e.target.checked;
|
checkedCc.value = e.target.checked;
|
||||||
ccPersonList.value = [];
|
if (!checkedCc.value) {
|
||||||
|
ccUserIds.value = '';
|
||||||
|
model.ccUserIds = '';
|
||||||
|
model.ccUserRealNames = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
@@ -300,6 +312,7 @@
|
|||||||
checkedCc.value = true;
|
checkedCc.value = true;
|
||||||
const usernames = list.map((u) => u.username);
|
const usernames = list.map((u) => u.username);
|
||||||
const realnames = list.map((u) => u.realname);
|
const realnames = list.map((u) => u.realname);
|
||||||
|
ccUserIds.value = usernames.join(',');
|
||||||
model.ccUserIds = usernames.join(',');
|
model.ccUserIds = usernames.join(',');
|
||||||
model.ccUserRealNames = realnames.join(',');
|
model.ccUserRealNames = realnames.join(',');
|
||||||
},
|
},
|
||||||
@@ -478,10 +491,9 @@
|
|||||||
model.nextUserName = realnames.join(',');
|
model.nextUserName = realnames.join(',');
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleSelectCcUser(arr) {
|
function handleSelectCcUser(userIds, realnames) {
|
||||||
let { usernames, realnames } = getInfo(arr);
|
model.ccUserIds = userIds || '';
|
||||||
model.ccUserIds = usernames.join(',');
|
model.ccUserRealNames = realnames || '';
|
||||||
model.ccUserRealNames = realnames.join(',');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getInfo(arr) {
|
function getInfo(arr) {
|
||||||
@@ -512,7 +524,7 @@
|
|||||||
handleCheckedNext,
|
handleCheckedNext,
|
||||||
|
|
||||||
checkedCc,
|
checkedCc,
|
||||||
ccPersonList,
|
ccUserIds,
|
||||||
handleCheckedCc,
|
handleCheckedCc,
|
||||||
|
|
||||||
loading,
|
loading,
|
||||||
|
|||||||
Reference in New Issue
Block a user