From 9e26cb5c920751cf7c38f50236c8bd17a2cba630 Mon Sep 17 00:00:00 2001 From: TengXF <302828528@qq.com> Date: Mon, 27 May 2024 14:35:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20update=20=E6=8C=89=E9=92=AE=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=9A=90=E8=97=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/mes/workScheduling/addBasicItem/index.vue | 8 ++++---- src/pages/mes/workScheduling/callMaterial.vue | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/pages/mes/workScheduling/addBasicItem/index.vue b/src/pages/mes/workScheduling/addBasicItem/index.vue index f7c81ed..0e25a3d 100644 --- a/src/pages/mes/workScheduling/addBasicItem/index.vue +++ b/src/pages/mes/workScheduling/addBasicItem/index.vue @@ -51,9 +51,9 @@ 提交 - + @@ -79,7 +79,7 @@ const paramData = ref() const typeList = ref([]) const list = ref([]) - const listSize = ref(1) + const listSize = ref(0) const productList = ref([{label:'产品1',value: '111',name:'产品'},{label:'产品2',value: '222',name:'产品'}]) const queryForm = ref({ @@ -110,7 +110,6 @@ if (index !== -1) { list.value.splice(index, 1); listSize.value -= 1 - console.log(listSize.value) } } @@ -189,6 +188,7 @@ list.value = list.value.concat(res.data); listSize.value = res.data.length } else { + listSize.value = 0 } }).catch(() => { proxy.$modal.closeLoading() diff --git a/src/pages/mes/workScheduling/callMaterial.vue b/src/pages/mes/workScheduling/callMaterial.vue index 44ba349..4c341d8 100644 --- a/src/pages/mes/workScheduling/callMaterial.vue +++ b/src/pages/mes/workScheduling/callMaterial.vue @@ -29,7 +29,7 @@ --> - + 提交 @@ -52,7 +52,7 @@ import { getCurrentInstance } from 'vue' import * as workSchedulingListApi from '@/api/mes/workScheduling/index.ts' - +const listSize = ref(0) const {proxy} = getCurrentInstance() const loading = ref(false) const status = ref('loadmore') //是否显示没有更多了 @@ -95,6 +95,7 @@ function getBomInspectList() { } else { status.value = 'nomore' } + listSize.value = list.value.length }).catch(() => { proxy.$modal.closeLoading() })