update 2023.4.23

This commit is contained in:
lb
2023-04-23 14:15:20 +08:00
parent aaa571d77b
commit dfbc7e08f9
10 changed files with 68 additions and 66 deletions

View File

@@ -5,7 +5,7 @@
**/
-->
<template>
<div class="list-view-with-head">
<div class="list-view-with-head" ref="cursor-loading-ref">
<!-- <head-form :form-config="headFormConfig" @headBtnClick="btnClick" /> -->
<BaseSearchForm :head-config="headConfig" @btn-click="handleBtnClick" />
@@ -326,6 +326,25 @@ export default {
case "导入":
this.openUploadDialog();
break;
case "同步":
this.$message({
message: '正在同步...',
type: 'success',
duration: 1000
})
this.$refs['cursor-loading-ref'].style.cursor = 'wait'
return this.$http.post(this.urls.syncUrl).then(({ data: res }) => {
this.$message({
message: res.msg,
type: res.code === 0 ? 'succes' : 'error',
duration: 1500
, onClose: () => {
this.getList()
this.$refs['cursor-loading-ref'].style.cursor = 'unset'
}
})
})
}
},

View File

@@ -69,6 +69,13 @@ export default function () {
plain: true,
},
},
{
button: {
type: "plain",
name: "同步",
permission: "",
}
},
];
/**
@@ -272,6 +279,7 @@ export default function () {
subpage: "/pms/materialArrt/page",
importUrl: "/pms/material/importExcel",
templateUrl: "/importTemplates/materialImport.xlsx",
syncUrl: "/pms/trans/matSync",
// more...
},
};