|
@@ -794,14 +794,18 @@ const batchLocal = async () => {
|
|
|
const ids = arrToId(rows)
|
|
const ids = arrToId(rows)
|
|
|
//请求数据
|
|
//请求数据
|
|
|
localLoading.value = true
|
|
localLoading.value = true
|
|
|
- const { error, code, data } = await queryApi.localVerify({
|
|
|
|
|
|
|
+ const { error, code, data, disposition, res } = await queryApi.localVerify({
|
|
|
ids: ids,
|
|
ids: ids,
|
|
|
})
|
|
})
|
|
|
//处理数据
|
|
//处理数据
|
|
|
localLoading.value = false
|
|
localLoading.value = false
|
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
|
- console.log(data)
|
|
|
|
|
|
|
+ if (disposition) {
|
|
|
|
|
+ downloadBlob(res, disposition)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ window.$message?.error('数据异常')
|
|
|
}
|
|
}
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
window.$message?.warning('存在未审批或未上报数据')
|
|
window.$message?.warning('存在未审批或未上报数据')
|
|
|
}
|
|
}
|