完善商品的导入界面的展示逻辑

This commit is contained in:
季圣华
2022-09-23 19:47:56 +08:00
parent 4830d6903a
commit 6aba675d25
3 changed files with 7 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
:width="400"
:visible="visible"
:confirm-loading="confirmLoading"
:maskClosable="false"
@cancel="handleCancel"
wrapClassName="ant-modal-cust-warp"
style="top:25%;height: 45%;overflow-y: hidden">

View File

@@ -311,7 +311,7 @@ export const JeecgListMixin = {
},
/* 导入 */
handleImportExcel(info){
this.loading = true
this.confirmLoading = true
if (info.file.status !== 'uploading') {
console.log(info.file, info.fileList);
}
@@ -323,16 +323,16 @@ export const JeecgListMixin = {
} else {
this.$message.warning(info.file.response.data)
}
this.loading = false
this.confirmLoading = false
this.visible = false
this.$emit('ok')
} else {
this.$message.error(`${info.file.name} ${info.file.response.data}.`);
this.loading = false
this.confirmLoading = false
}
} else if (info.file.status === 'error') {
this.$message.error(`文件上传失败: ${info.file.msg} `)
this.loading = false
this.confirmLoading = false
}
},
/* 图片预览 */

View File

@@ -391,8 +391,6 @@
},
created () {
this.maxBarCodeAction();
this.loadTreeData();
this.loadUnitListData();
this.loadParseMaterialProperty();
},
methods: {
@@ -436,6 +434,8 @@
autoJumpNextInput('materialDetailModal')
});
this.initMaterialAttribute()
this.loadTreeData()
this.loadUnitListData()
// 加载子表数据
if (this.model.id) {
//禁用多属性开关