|
@@ -78,13 +78,16 @@ const EqSelfInspection = (props) => {
|
|
|
if (!autoReport.Id) {
|
|
|
return;
|
|
|
}
|
|
|
- const mandateIDs = await getMandateIDs({
|
|
|
+ let mandateIDs = await getMandateIDs({
|
|
|
project_id: projectId,
|
|
|
id: autoReport.Id,
|
|
|
}).catch((err) => {
|
|
|
console.log(err);
|
|
|
});
|
|
|
+ console.log(mandateIDs);
|
|
|
if (mandateIDs?.length) {
|
|
|
+ mandateIDs = [...new Set(mandateIDs)];
|
|
|
+ console.log(mandateIDs.join());
|
|
|
UnityAction.sendMsg('OpenTaskModal', `mandate_id=${mandateIDs.join()}`);
|
|
|
} else {
|
|
|
message.info('未查询到相关任务');
|