Commit 93044c83 authored by chenqikuai's avatar chenqikuai

上传excel解析后,展示录入情况

parent 834d0ece
......@@ -128,7 +128,16 @@ export default Vue.extend({
this.show = true;
this.show1 = true;
this.progress = 0;
Staff.getInstance().addExcel(this.file, Account.entId, this.onProgressChange).then(() => {
Staff.getInstance().addExcel(this.file, Account.entId, this.onProgressChange).then((ret: any) => {
const data = ret.data.data;
let str = '';
// if(data.success_num && data.success_num !== 0){
str += `${data.success_num}条录入成功`
// }
// if(data.failed_num && data.failed_num !== 0){
str += `\n${data.failed_num}条录入失败`
// }
str.length !== 0 && Toast(str)
this.$router.push({ name: "Team" })
}).catch((err) => {
Toast.fail(err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment