Browse Source

微调 解决报错

feature/history-20250108
zhangjiming 7 months ago
parent
commit
9b0fcd1efc
  1. 2
      src/pages/Index/Index.vue
  2. 4
      src/pages/Index/components/Consumables/BallGrid.vue
  3. 4
      src/pages/Index/components/Consumables/ChangeNum.vue
  4. 4
      src/pages/Index/components/Consumables/InfoBar.vue
  5. 4
      src/pages/Index/components/Consumables/MainComponent.vue

2
src/pages/Index/Index.vue

@ -305,7 +305,7 @@ const openTest = () => {
showModal.value = true; showModal.value = true;
} }
}; };
//
//
const getCheckData = async () => { const getCheckData = async () => {
try { try {
const res = await getCheckList(); const res = await getCheckList();

4
src/pages/Index/components/Consumables/BallGrid.vue

@ -17,6 +17,8 @@ import {
defineEmits, defineEmits,
} from 'vue' } from 'vue'
//
// Props // Props
const props = defineProps({ const props = defineProps({
total: { total: {
@ -207,4 +209,4 @@ onBeforeUnmount(() => {
.inner-circle { .inner-circle {
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
} }
</style>移液盘复用组件
</style>

4
src/pages/Index/components/Consumables/ChangeNum.vue

@ -57,7 +57,7 @@ const query = ref({
// value query // value query
watch(value, (newVal) => { watch(value, (newVal) => {
query.value = { query.value = {
group: `CG`${ plateIndex.value } `,
group: `CG${ plateIndex.value + 1 }`,
num: Number(newVal) num: Number(newVal)
} }
}) })
@ -76,7 +76,7 @@ const openDialog = (plate, index) => {
// query // query
query.value = { query.value = {
group: `CG`${index}`,
group: `CG${index+1}`,
num: Number(plate.num) num: Number(plate.num)
} }
} }

4
src/pages/Index/components/Consumables/InfoBar.vue

@ -16,11 +16,11 @@ import { toRefs } from 'vue'
const props = defineProps({ const props = defineProps({
projectName: { projectName: {
type: String, type: String,
required: true,
// required: true,
}, },
currentCount: { currentCount: {
type: Number, type: Number,
required: true,
// required: true,
}, },
maxCount: { maxCount: {
type: Number, type: Number,

4
src/pages/Index/components/Consumables/MainComponent.vue

@ -17,11 +17,11 @@ import InfoBar from './InfoBar.vue' // 引入项目信息组件
const props = defineProps({ const props = defineProps({
projectName: { projectName: {
type: String, type: String,
required: true,
// required: true,
}, },
currentCount: { currentCount: {
type: Number, type: Number,
required: true,
// required: true,
}, },
maxCount: { maxCount: {
type: Number, type: Number,

Loading…
Cancel
Save