Browse Source

质量分析

master
songguoqiang 12 months ago
parent
commit
d3cfd2ee51
  1. 8
      src/components/Detail/src/TemplateDetails.vue
  2. 11
      src/views/tjanalysis/zlanalysis/components/ztfbview.vue
  3. 4
      src/views/tjanalysis/zlanalysis/index.vue

8
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]){

11
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

4
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)

Loading…
Cancel
Save