|
|
|
|
@ -77,11 +77,21 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
uploadSuccess(response) {
|
|
|
|
|
console.log("response",response)
|
|
|
|
|
if(response.errmsg){
|
|
|
|
|
this.$message({
|
|
|
|
|
message: response.errmsg,
|
|
|
|
|
type: "warning",
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
this.$message({
|
|
|
|
|
message: `There are a total of ${response.total} pieces of data, with ${response.create} new pieces added and ${response.update} updated`,
|
|
|
|
|
type: "success",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.tableList = response;
|
|
|
|
|
this.$message({
|
|
|
|
|
message: `Upload successful`,
|
|
|
|
|
type: "success",
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.hidden();
|
|
|
|
|
this.$emit('refresh')
|
|
|
|
|
},
|
|
|
|
|
|