|
@@ -1100,14 +1100,16 @@ const search = (keyword: string) => {
|
|
})
|
|
})
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
if (Array.isArray(res.data) && res.data.length) {
|
|
if (Array.isArray(res.data) && res.data.length) {
|
|
- qcList.value = res.data.map((i: any) => {
|
|
|
|
- return {
|
|
|
|
- ...i,
|
|
|
|
- isSearch: true,
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ qcList.value.concat(
|
|
|
|
+ res.data.map((i: any) => {
|
|
|
|
+ return {
|
|
|
|
+ ...i,
|
|
|
|
+ isSearch: true,
|
|
|
|
+ }
|
|
|
|
+ }),
|
|
|
|
+ )
|
|
} else {
|
|
} else {
|
|
- qcList.value = []
|
|
|
|
|
|
+ // qcList.value = []
|
|
ElMessage.warning('No Data Found')
|
|
ElMessage.warning('No Data Found')
|
|
}
|
|
}
|
|
})
|
|
})
|