diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json index 28279f84..b3fef962 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json @@ -70,7 +70,7 @@ "AuthServer": { - "Authority": "http://dev.ccwin-in.com:10582", + "Authority": "http://dev.ccwin-in.com:16082", "ClientId": "basic-web", "ClientSecret": "1q2w3e*" }, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/start.cmd b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/start.cmd index 4171afe4..7ad8f0f8 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/start.cmd +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/start.cmd @@ -8,4 +8,4 @@ if %errorlevel% == 0 ( %1 start mshta vbscript:createobject("wscript.shell").run("""%~0"" ::",0)(window.close)&&exit -start /b SettleAccount.HttpApi.Host.exe --urls http://*:10582 +start /b SettleAccount.HttpApi.Host.exe --urls http://*:16082 diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/vmi/balance.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/vmi/balance.js index a78c2278..f078dddf 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/vmi/balance.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/vmi/balance.js @@ -10,7 +10,6 @@ export default { setup() { const config = ref(null); const route = useRoute(); - const messageCount = ref(-1); const onCommand = async (item, rows) => { console.log(item.path, item, rows); }; @@ -19,16 +18,18 @@ export default { const model = "vmi/balance"; const useConfig = (await import(`../../models/${model}.js`)).default; config.value = useConfig(route.meta?.businessType, route.meta); + let notify = null; PubSub.subscribe(event, async (_, data) => { - messageCount.value = parseInt(data); - }); - ElNotification({ - title: "Prompt", - message: messageCount.value, - duration: 0, + notify?.close(); + notify = ElNotification({ + position: "bottom-right", + title: "待同步库存数量", + message: data, + duration: 0, + }); }); }); onUnmounted(() => PubSub.unsubscribe(event)); - return { config, onCommand, messageCount }; + return { config, onCommand }; }, };