From c9120650b03c477c27ce5c9c492a416be21df1b0 Mon Sep 17 00:00:00 2001 From: chengxiangling <291105840@qq.com> Date: 星期五, 16 五月 2025 13:44:01 +0800 Subject: [PATCH] 提交负载统计更正 --- src/views/system/dict/index.vue | 27 ++++++++++++++++++++++++++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 1c84014..396a3e5 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -122,6 +122,17 @@ >鏇存柊鎺掍骇鍖哄煙</el-button > </el-col> + <el-col :span="1.5"> + <el-button + type="success" + plain + icon="Refresh" + :disabled="loadingRefresh" + @click="handleRefreshData" + v-hasPermi="['system:dict:remove']" + >鍒锋柊缂撳瓨BOM銆佸伐鑹鸿矾绾裤�佸簱瀛樻暟鎹�</el-button + > + </el-col> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList" @@ -259,13 +270,14 @@ refreshCache, refreshApsArea } from "@/api/system/dict/type"; - +import { refreshBomRouteStorageDataList } from "@/api/basicData/bom/bom.js" const { proxy } = getCurrentInstance(); const { sys_normal_disable } = proxy.useDict("sys_normal_disable"); const typeList = ref([]); const open = ref(false); const loading = ref(true); +const loadingRefresh = ref(false); const showSearch = ref(true); const ids = ref([]); const single = ref(true); @@ -426,5 +438,18 @@ }); handleQuery(); } +function handleRefreshData() { + loadingRefresh.value = true; + refreshBomRouteStorageDataList().then(res=>{ + if(res.code==200){ + proxy.$modal.msgSuccess("鏇存柊鎴愬姛"); + loadingRefresh.value = false; + }else{ + loadingRefresh.value = false; + } + }).catch(()=>{ + loadingRefresh.value = false; + }) +} getList(); </script> -- Gitblit v1.9.3