|
@@ -429,7 +429,7 @@ export default {
|
|
|
this.uploadInfo = '导入中...';
|
|
|
|
|
|
api.importExcelDataVerify(formData, header).then(res => {
|
|
|
- if (res.data.code === '00020001') {
|
|
|
+ if (res.data.code === '00020004') {
|
|
|
this.$confirm(`${res.data.msg}`, '提示1', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
@@ -445,6 +445,21 @@ export default {
|
|
|
});
|
|
|
} else if (res.data.data === true) {
|
|
|
this.importOperationRecord(formData, header);
|
|
|
+ }else {
|
|
|
+ this.$alert(`${res.data.msg}`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ // cancelButtonText: '取消',
|
|
|
+ // cancelButtonClass: 'cancelSure',
|
|
|
+ // confirmButtonClass: 'sure',
|
|
|
+ // customClass: 'exportConfirm',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {})
|
|
|
+ .catch(() => {});
|
|
|
+
|
|
|
+ setTimeout(() => {
|
|
|
+ this.uploadInfo = '导入';
|
|
|
+ }, 300);
|
|
|
}
|
|
|
});
|
|
|
|