From fe35e7e9faa159a58b59a9f8085934ae60535856 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期三, 23 四月 2025 14:30:54 +0800
Subject: [PATCH] feat: 单丝参数
---
src/pages/production/list/index.vue | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/pages/production/list/index.vue b/src/pages/production/list/index.vue
index 2fb4362..7d6c9ac 100644
--- a/src/pages/production/list/index.vue
+++ b/src/pages/production/list/index.vue
@@ -13,7 +13,13 @@
<ProductCard
v-for="(item, index) in list"
:key="index"
- :data="item"
+ :data="{
+ deviceModel: item.deviceModel,
+ model: item.model,
+ totalAmount: item.totalLength,
+ amount: item.length,
+ unAmount: item.unLength,
+ }"
@click="toDetail(item.id, item.type)"
/>
</z-paging>
@@ -25,7 +31,8 @@
import ProductCard from "@/components/product_card/index.vue";
import { useUserStore } from "@/store/modules/user";
import zPaging from "@/components/z-paging/z-paging.vue";
-
+const userStore = useUserStore();
+const userInfo: any = computed(() => userStore.userInfo);
const pagingRef = ref();
const props = defineProps({
api: {
@@ -54,10 +61,8 @@
};
const getList = async (pageNo: number, pageSize: number) => {
- const userStore = useUserStore();
- const userInfo: any = computed(() => userStore.userInfo);
const { code, data } = await props.api({
- userName: userInfo.value.user?.userName,
+ userName: userInfo.value.userName,
state: props.state,
current: pageNo,
size: pageSize,
--
Gitblit v1.9.3