|
@@ -508,10 +508,11 @@ export default {
|
|
|
this.downloadUrl(res);
|
|
|
this.getDataList();
|
|
|
} else {
|
|
|
+ if (that.result != undefined) {
|
|
|
let r = new FileReader();
|
|
|
r.onload = function() {
|
|
|
- const code = JSON.parse(this.result);
|
|
|
- if (code.code === '00020004') {
|
|
|
+ const code = JSON.parse(that.result);
|
|
|
+ if (code.code === '00020007') {
|
|
|
that
|
|
|
.$alert(`${code.msg}`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
@@ -523,19 +524,20 @@ export default {
|
|
|
})
|
|
|
.then(() => {})
|
|
|
.catch(() => {});
|
|
|
- } else {
|
|
|
- that.$alert(`导入成功`, '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- // cancelButtonText: '取消',
|
|
|
- // cancelButtonClass: 'cancelSure',
|
|
|
- // confirmButtonClass: 'sure',
|
|
|
- // customClass: 'exportConfirm',
|
|
|
- type: 'success'
|
|
|
- });
|
|
|
- that.getDataList();
|
|
|
}
|
|
|
};
|
|
|
r.readAsText(res.data);
|
|
|
+ } else {
|
|
|
+ that.$alert(`导入成功`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ // cancelButtonText: '取消',
|
|
|
+ // cancelButtonClass: 'cancelSure',
|
|
|
+ // confirmButtonClass: 'sure',
|
|
|
+ // customClass: 'exportConfirm',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ that.getDataList();
|
|
|
+ }
|
|
|
}
|
|
|
// if (res.data.code === '00000001') {
|
|
|
// this.$confirm(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
|