Commit 123ce1e7 authored by chenzj's avatar chenzj

修复物料分类的同步的bug

parent 553f40d4
......@@ -37,6 +37,7 @@
</el-col>
<el-col :span="1.5">
<el-button
:loading="syncLoading"
type="primary"
icon="el-icon-refresh"
size="mini"
......@@ -184,6 +185,8 @@ export default {
isExpandAll: true,
// 重新渲染表格状态
refreshTable: true,
syncLoading: false,
// 查询参数
queryParams: {
itemTypeName: undefined,
......@@ -298,11 +301,14 @@ export default {
},
/** 同步SAP */
handleSynchronism() {
this.syncLoading = true;
this.reset();
synItemType().then(res => {
if(res.code === 200) {
this.$modal.msgSuccess("同步成功");
this.getList();
}
this.syncLoading = false;
});
},
/** 提交按钮 */
......
Markdown is supported
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