From 03426aefbf891aa1fe3064d4301d17d5de869114 Mon Sep 17 00:00:00 2001 From: 曹睿 <360930172@qq.com> Date: 星期二, 22 四月 2025 17:20:20 +0800 Subject: [PATCH] fix: 修复用户信息无法及时响应 --- src/pages/production/index.vue | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/pages/production/index.vue b/src/pages/production/index.vue index 16dc0c3..a55a50a 100644 --- a/src/pages/production/index.vue +++ b/src/pages/production/index.vue @@ -12,10 +12,20 @@ </wd-row> <wd-tabs v-model="tab" auto-line-width> <wd-tab :title="`寰呯敓浜�(${total.wait})`" class="tab_bg"> - <ProductList :api="ManageApi.getProductList" state="寰呭畬鎴�" @ok="changeWait" /> + <ProductList + ref="waitRef" + :api="ManageApi.getProductList" + state="寰呭畬鎴�" + @ok="changeWait" + /> </wd-tab> <wd-tab :title="`宸茬敓浜�(${total.already})`" class="tab_bg"> - <ProductList :api="ManageApi.getProductList" state="宸插畬鎴�" @ok="changeAlready" /> + <ProductList + ref="alreadyRef" + :api="ManageApi.getProductList" + state="宸插畬鎴�" + @ok="changeAlready" + /> </wd-tab> </wd-tabs> </view> @@ -23,9 +33,11 @@ <script lang="ts" setup> import ManageApi from "@/api/product/manage"; -import { onMounted, ref } from "vue"; +import { ref } from "vue"; import ProductList from "./list/index.vue"; +const waitRef = ref(); +const alreadyRef = ref(); const tab = ref<number>(0); const total = reactive({ wait: 0, @@ -39,8 +51,6 @@ const changeAlready = (num: number) => { total.already = num; }; - -onMounted(() => {}); </script> <style lang="scss" scoped> @@ -48,12 +58,12 @@ border-radius: unset; } .scan_box { - padding: 6px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; + padding: 6px; background: #fff; } ::v-deep .wd-tabs__line { -- Gitblit v1.9.3