From 9b0fcd1efca6e101ed3d1b32da2abd9d25eedd27 Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Thu, 2 Jan 2025 19:15:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83=20=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Index/Index.vue | 2 +- src/pages/Index/components/Consumables/BallGrid.vue | 4 +++- src/pages/Index/components/Consumables/ChangeNum.vue | 4 ++-- src/pages/Index/components/Consumables/InfoBar.vue | 4 ++-- src/pages/Index/components/Consumables/MainComponent.vue | 4 ++-- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/pages/Index/Index.vue b/src/pages/Index/Index.vue index 4209577..3850be9 100644 --- a/src/pages/Index/Index.vue +++ b/src/pages/Index/Index.vue @@ -305,7 +305,7 @@ const openTest = () => { showModal.value = true; } }; -// 获取检测数据 +// 获取初始化检测数据 const getCheckData = async () => { try { const res = await getCheckList(); diff --git a/src/pages/Index/components/Consumables/BallGrid.vue b/src/pages/Index/components/Consumables/BallGrid.vue index 6fe021b..46f1305 100644 --- a/src/pages/Index/components/Consumables/BallGrid.vue +++ b/src/pages/Index/components/Consumables/BallGrid.vue @@ -17,6 +17,8 @@ import { defineEmits, } from 'vue' +// 移液盘复用组件 + // Props 定义 const props = defineProps({ total: { @@ -207,4 +209,4 @@ onBeforeUnmount(() => { .inner-circle { transition: background-color 0.3s ease; } -移液盘复用组件 \ No newline at end of file + \ No newline at end of file diff --git a/src/pages/Index/components/Consumables/ChangeNum.vue b/src/pages/Index/components/Consumables/ChangeNum.vue index d2071da..bebf852 100644 --- a/src/pages/Index/components/Consumables/ChangeNum.vue +++ b/src/pages/Index/components/Consumables/ChangeNum.vue @@ -57,7 +57,7 @@ const query = ref({ // 监听 value 的变化,同步更新 query watch(value, (newVal) => { query.value = { - group: `CG`${ plateIndex.value } `, + group: `CG${ plateIndex.value + 1 }`, num: Number(newVal) } }) @@ -76,7 +76,7 @@ const openDialog = (plate, index) => { // 初始化 query query.value = { - group: `CG`${index}`, + group: `CG${index+1}`, num: Number(plate.num) } } diff --git a/src/pages/Index/components/Consumables/InfoBar.vue b/src/pages/Index/components/Consumables/InfoBar.vue index 49ca56d..6a193e0 100644 --- a/src/pages/Index/components/Consumables/InfoBar.vue +++ b/src/pages/Index/components/Consumables/InfoBar.vue @@ -16,11 +16,11 @@ import { toRefs } from 'vue' const props = defineProps({ projectName: { type: String, - required: true, + // required: true, }, currentCount: { type: Number, - required: true, + // required: true, }, maxCount: { type: Number, diff --git a/src/pages/Index/components/Consumables/MainComponent.vue b/src/pages/Index/components/Consumables/MainComponent.vue index 00bfc9d..f6f40e5 100644 --- a/src/pages/Index/components/Consumables/MainComponent.vue +++ b/src/pages/Index/components/Consumables/MainComponent.vue @@ -17,11 +17,11 @@ import InfoBar from './InfoBar.vue' // 引入项目信息组件 const props = defineProps({ projectName: { type: String, - required: true, + // required: true, }, currentCount: { type: Number, - required: true, + // required: true, }, maxCount: { type: Number,