diff --git a/src/views/ContainerManagement/CheckCntrno/index.vue b/src/views/ContainerManagement/CheckCntrno/index.vue index b3880055..71a5f875 100644 --- a/src/views/ContainerManagement/CheckCntrno/index.vue +++ b/src/views/ContainerManagement/CheckCntrno/index.vue @@ -27,12 +27,19 @@ let waitingData = ref() let passData = ref() let failData = ref() + function ArrToStr(data) { + let RData = '' + data.forEach((item) => { + RData = RData == '' ? item : `${RData}\n${item}` + }) + return RData + } function FnCheck() { ApiCheck({ cntrno: waitingData.value }) .then((res) => { console.log(res) - failData.value = res.data.wrongCntrnoList - passData.value = res.data.rightCntrnoList + failData.value = ArrToStr(res.data.wrongCntrnoList) + passData.value = ArrToStr(res.data.rightCntrnoList) notification.success({ message: '校验完成', duration: 3 }) }) .catch((err) => {