|
@@ -138,7 +138,7 @@ import {
|
|
import { useMainStore } from "@/store";
|
|
import { useMainStore } from "@/store";
|
|
import { downloadFileURL } from "@/utils/utils";
|
|
import { downloadFileURL } from "@/utils/utils";
|
|
import { message, Modal } from "ant-design-vue";
|
|
import { message, Modal } from "ant-design-vue";
|
|
-import { watch, onMounted, ref, reactive, toRaw } from "vue-demi";
|
|
|
|
|
|
+import { watch, onMounted, ref, reactive, toRaw, h } from "vue-demi";
|
|
|
|
|
|
const store = useMainStore();
|
|
const store = useMainStore();
|
|
store.currentLocation = "基础管理 / 机构管理";
|
|
store.currentLocation = "基础管理 / 机构管理";
|
|
@@ -303,12 +303,11 @@ async function handleImport() {
|
|
importModalVisible = false;
|
|
importModalVisible = false;
|
|
message.success({ content: "导入成功" });
|
|
message.success({ content: "导入成功" });
|
|
} else {
|
|
} else {
|
|
|
|
+ const msg = res.data.failRecords.map((v) =>
|
|
|
|
+ h("div", `行号:${v.lineNum}, 错误:${v.msg}`)
|
|
|
|
+ );
|
|
message.error({
|
|
message.error({
|
|
- content:
|
|
|
|
- "导入失败 \n" +
|
|
|
|
- res.data.failRecords
|
|
|
|
- .map((v) => `行号:${v.lineNum}, 错误:${v.msg}`)
|
|
|
|
- .join("\n"),
|
|
|
|
|
|
+ content: h("span", ["导入失败", ...msg]),
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|