加入ypt判断
This commit is contained in:
@@ -47,13 +47,13 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</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 label-width="60px" label-position="left">
|
||||||
<el-form-item label="监测点" size="small" class="mt-10px">
|
<el-form-item label="监测点" size="small" class="mt-10px">
|
||||||
<div>
|
<div>
|
||||||
<el-cascader
|
<el-cascader
|
||||||
:key="cascaderKey"
|
:key="cascaderKey"
|
||||||
:options="treeData_wx"
|
:options="useData.graphicDisplay == 'ypt' ? treeData : treeData_wx"
|
||||||
:props="{ value: 'id', label: 'name', children: 'children' }"
|
:props="{ value: 'id', label: 'name', children: 'children' }"
|
||||||
clearable
|
clearable
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
@@ -195,6 +195,11 @@ watch(
|
|||||||
if (item_title.value == '绑定指标' && deptIds.value) {
|
if (item_title.value == '绑定指标' && deptIds.value) {
|
||||||
indexList()
|
indexList()
|
||||||
}
|
}
|
||||||
|
if (useData.graphicDisplay == 'ypt') {
|
||||||
|
if (deptIds.value) {
|
||||||
|
indexList()
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -339,6 +344,12 @@ const handleDeptChange = (deptId: []) => {
|
|||||||
indexList()
|
indexList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (useData.graphicDisplay == 'ypt') {
|
||||||
|
if (deptId) {
|
||||||
|
indexList()
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 给每一个元件绑定下拉框数据
|
// 给每一个元件绑定下拉框数据
|
||||||
|
|||||||
Reference in New Issue
Block a user