"...resources/git@ustchcs.com:gujinli1118/springboot-plus.git" did not exist on "075b388e2b64130b3929570f1fcb6ef4f0d352a3"
Commit 6aba675d authored by 季圣华's avatar 季圣华
Browse files

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

parent 4830d690
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
:width="400" :width="400"
:visible="visible" :visible="visible"
:confirm-loading="confirmLoading" :confirm-loading="confirmLoading"
:maskClosable="false"
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp" wrapClassName="ant-modal-cust-warp"
style="top:25%;height: 45%;overflow-y: hidden"> style="top:25%;height: 45%;overflow-y: hidden">
......
...@@ -311,7 +311,7 @@ export const JeecgListMixin = { ...@@ -311,7 +311,7 @@ export const JeecgListMixin = {
}, },
/* 导入 */ /* 导入 */
handleImportExcel(info){ handleImportExcel(info){
this.loading = true this.confirmLoading = true
if (info.file.status !== 'uploading') { if (info.file.status !== 'uploading') {
console.log(info.file, info.fileList); console.log(info.file, info.fileList);
} }
...@@ -323,16 +323,16 @@ export const JeecgListMixin = { ...@@ -323,16 +323,16 @@ export const JeecgListMixin = {
} else { } else {
this.$message.warning(info.file.response.data) this.$message.warning(info.file.response.data)
} }
this.loading = false this.confirmLoading = false
this.visible = false this.visible = false
this.$emit('ok') this.$emit('ok')
} else { } else {
this.$message.error(`${info.file.name} ${info.file.response.data}.`); this.$message.error(`${info.file.name} ${info.file.response.data}.`);
this.loading = false this.confirmLoading = false
} }
} else if (info.file.status === 'error') { } else if (info.file.status === 'error') {
this.$message.error(`文件上传失败: ${info.file.msg} `) this.$message.error(`文件上传失败: ${info.file.msg} `)
this.loading = false this.confirmLoading = false
} }
}, },
/* 图片预览 */ /* 图片预览 */
......
...@@ -391,8 +391,6 @@ ...@@ -391,8 +391,6 @@
}, },
created () { created () {
this.maxBarCodeAction(); this.maxBarCodeAction();
this.loadTreeData();
this.loadUnitListData();
this.loadParseMaterialProperty(); this.loadParseMaterialProperty();
}, },
methods: { methods: {
...@@ -436,6 +434,8 @@ ...@@ -436,6 +434,8 @@
autoJumpNextInput('materialDetailModal') autoJumpNextInput('materialDetailModal')
}); });
this.initMaterialAttribute() this.initMaterialAttribute()
this.loadTreeData()
this.loadUnitListData()
// 加载子表数据 // 加载子表数据
if (this.model.id) { if (this.model.id) {
//禁用多属性开关 //禁用多属性开关
......
Supports Markdown
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