diff --git a/src/components/Detail/src/TemplateDetails.vue b/src/components/Detail/src/TemplateDetails.vue index 5a1e95d..b337c3a 100644 --- a/src/components/Detail/src/TemplateDetails.vue +++ b/src/components/Detail/src/TemplateDetails.vue @@ -282,7 +282,13 @@ const buttonTableClick = async (val, row) => { const basicFormRef = ref() const openForm = (type: string, row?: any) => { if(type=='update'){ - console.log(row) + + if(type=='update'){ + TemplateItemDetails.allSchemas.formSchema[3].componentProps.disabled=true; + }else{ + TemplateItemDetails.allSchemas.formSchema[3].componentProps.disabled=false; + } + TemplateItemDetails.allSchemas.formSchema.forEach(item=>{ if(item.component == 'UploadFile'){ if(row[item.field]){ diff --git a/src/views/tjanalysis/zlanalysis/components/ztfbview.vue b/src/views/tjanalysis/zlanalysis/components/ztfbview.vue index 1b102a8..7f45619 100644 --- a/src/views/tjanalysis/zlanalysis/components/ztfbview.vue +++ b/src/views/tjanalysis/zlanalysis/components/ztfbview.vue @@ -11,9 +11,14 @@ const dialogVisible = ref(false) // 弹窗的是否展示 /** 打开弹窗 */ const open = (_data , _lowLimit , _upLimit) => { - initData(_data , _lowLimit , _upLimit) - dialogVisible.value = true -} + if(_data.length<=0){ + dialogVisible.value = false + }else{ + initData(_data , _lowLimit , _upLimit) + dialogVisible.value = true + } + } + defineExpose({ open }) // 提供 open 方法,用于打开弹窗 diff --git a/src/views/tjanalysis/zlanalysis/index.vue b/src/views/tjanalysis/zlanalysis/index.vue index 5292f48..c2ff6f2 100644 --- a/src/views/tjanalysis/zlanalysis/index.vue +++ b/src/views/tjanalysis/zlanalysis/index.vue @@ -384,6 +384,8 @@ function setChart2(rangeData) { function setChart3(ztData) { if (ztData != null) { myEcharts3Ref.value.open(ztData.datas , ztData.downLimit , ztData.upLimit) + }else{ + myEcharts3Ref.value.open([] , null , null) } } function setChart4(ybData) { @@ -562,6 +564,7 @@ const changTabIndex = async (tIndexV) => { ec5Loading.value = false } }else{ + setChart3(null); ec1Loading.value = false ec2Loading.value = false ec3Loading.value = false @@ -632,7 +635,6 @@ function resetDats() { setChart1(null) setChart2(null) - setChart3(null) setChart4(null) setChart5(null)