交办时间年月日,整改时回显整改人
This commit is contained in:
@@ -446,6 +446,22 @@
|
||||
}
|
||||
};
|
||||
|
||||
const applyAssigneeFromOptions = (assigneeId, assigneeName) => {
|
||||
if (!assigneeId) return;
|
||||
const id = String(assigneeId);
|
||||
const name = assigneeName ? decodeURIComponent(String(assigneeName)).trim() : '';
|
||||
const exists = detailPersonPool.value.some((user) => String(user.userId) === id);
|
||||
if (!exists) {
|
||||
detailPersonPool.value.push({
|
||||
userId: assigneeId,
|
||||
nickName: name,
|
||||
deptName: ''
|
||||
});
|
||||
}
|
||||
selectedUserIds.value = [id];
|
||||
syncSelectedUsersFromIds(selectedUserIds.value);
|
||||
};
|
||||
|
||||
const parseIdList = (raw) => {
|
||||
if (raw === null || raw === undefined || raw === '') return [];
|
||||
if (Array.isArray(raw)) {
|
||||
@@ -1212,6 +1228,10 @@
|
||||
if (options.assignId) {
|
||||
assignId.value = options.assignId;
|
||||
}
|
||||
|
||||
if (!options.rectifyId && options.assigneeId) {
|
||||
applyAssigneeFromOptions(options.assigneeId, options.assigneeName);
|
||||
}
|
||||
|
||||
// 在hazardId赋值后调用,确保有值
|
||||
if (!options.rectifyId) fetchPersonnelLists();
|
||||
|
||||
Reference in New Issue
Block a user