交办时间年月日,整改时回显整改人

This commit is contained in:
王利强
2026-06-23 16:58:40 +08:00
parent cc94d3e3e9
commit d4897284e8
588 changed files with 1551 additions and 1393 deletions

View File

@@ -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();