加入ypt判断

This commit is contained in:
stt
2025-12-01 14:14:11 +08:00
parent 99ad7a3021
commit e8ce98f80c

View File

@@ -47,13 +47,13 @@
</el-form>
</div>
<!-- 无锡监测点 指标 -->
<div v-if="useData.graphicDisplay == 'wx'">
<div v-if="useData.graphicDisplay == 'wx' || useData.graphicDisplay == 'ypt'">
<el-form label-width="60px" label-position="left">
<el-form-item label="监测点" size="small" class="mt-10px">
<div>
<el-cascader
:key="cascaderKey"
:options="treeData_wx"
:options="useData.graphicDisplay == 'ypt' ? treeData : treeData_wx"
:props="{ value: 'id', label: 'name', children: 'children' }"
clearable
placeholder="请选择"
@@ -195,6 +195,11 @@ watch(
if (item_title.value == '绑定指标' && deptIds.value) {
indexList()
}
if (useData.graphicDisplay == 'ypt') {
if (deptIds.value) {
indexList()
}
}
})
}
})
@@ -339,6 +344,12 @@ const handleDeptChange = (deptId: []) => {
indexList()
}
}
if (useData.graphicDisplay == 'ypt') {
if (deptId) {
indexList()
}
}
})
}
// 给每一个元件绑定下拉框数据