|
|
|
@ -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) => {
|
|
|
|
|