From 4a6f51169b21bf0c035c2cdcfc9ac813ec7f78dd Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Wed, 13 Dec 2023 11:34:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/spc/detectiontemplate/templateItemDetails.data.ts | 4 ++-- src/views/tjanalysis/zlanalysis/index.vue | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/spc/detectiontemplate/templateItemDetails.data.ts b/src/views/spc/detectiontemplate/templateItemDetails.data.ts index 172171e..0889798 100644 --- a/src/views/spc/detectiontemplate/templateItemDetails.data.ts +++ b/src/views/spc/detectiontemplate/templateItemDetails.data.ts @@ -75,7 +75,7 @@ export const TemplateItemDetails = useCrudSchemas(reactive([ form: { component: 'InputNumber', componentProps: { - min: 0.00, + // min: 0.00, precision: 2 } } @@ -88,7 +88,7 @@ export const TemplateItemDetails = useCrudSchemas(reactive([ form: { component: 'InputNumber', componentProps: { - min: 0.00, + // min: 0.00, precision: 2 } } diff --git a/src/views/tjanalysis/zlanalysis/index.vue b/src/views/tjanalysis/zlanalysis/index.vue index 296eaf5..5292f48 100644 --- a/src/views/tjanalysis/zlanalysis/index.vue +++ b/src/views/tjanalysis/zlanalysis/index.vue @@ -545,7 +545,6 @@ const changTabIndex = async (tIndexV) => { tabIndex.value = tIndexV queryParams.ecTab = tIndexV const dvDatas = await ZlnalysisAPI.getZcnlEcharts(queryParams) - debugger if (dvDatas != null) { if (tIndexV == 0) { setChart1(dvDatas.menMap) @@ -602,8 +601,10 @@ const initQuerys = async () => { itemList.value = _itemList queryParams.itemCode = _itemList[0].code } + const _detectionItemList = await TemplateItemDetailsApi.selectDetectionItems(queryParams.itemCode , queryParams.detectionType) - if (_detectionItemList != null && _detectionItemList.lenght > 0) { + if (_detectionItemList != null && _detectionItemList.length > 0) { + detectionItemList.value = _detectionItemList queryParams.detectionItemContentId = _detectionItemList[0].value }