diff --git a/src/components/negative/add.vue b/src/components/negative/add.vue index 3400947..626cd44 100644 --- a/src/components/negative/add.vue +++ b/src/components/negative/add.vue @@ -68,22 +68,17 @@ { + if (Array.isArray(form.value.specialSupervision)) { + return form.value.specialSupervision.filter(v => v).join(','); + } + return form.value.specialSupervision; }); watch( @@ -636,6 +639,10 @@ async function handleAddNegative() { form.value.thingFiles = form.value.thingFiles.filter( (item) => item.filePath ); + // 专项督察多选转逗号分隔字符串 + if (Array.isArray(form.value.specialSupervision)) { + form.value.specialSupervision = form.value.specialSupervision.filter(v => v).join(','); + } loading.value = true; try { await addNegative(form.value); @@ -649,6 +656,7 @@ async function handleAddNegative() { hostLevel: HostLevel.THREE, timeLimit: TimeLimit.WORK_137, approvalFlow: ApprovalFlow.SECOND, + specialSupervision: [], }; reportData.value=null; feedback.msgSuccess("下发成功"); diff --git a/src/components/negative/description.vue b/src/components/negative/description.vue index dcbdd2d..3052973 100644 --- a/src/components/negative/description.vue +++ b/src/components/negative/description.vue @@ -40,7 +40,7 @@
- {{ getDictLable(dict.specialSupervision, negative.specialSupervision) }} + {{ getInvolveProblem(negative.specialSupervision, dict.specialSupervision) }}
@@ -82,7 +82,7 @@