update 2023.4.23
This commit is contained in:
@@ -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'
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -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...
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user