多监测点修改
This commit is contained in:
@@ -39,7 +39,9 @@
|
||||
<Shishishuju />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
<div class="monitoring-point">当前位置:{{ monitoringPoint.state.lineName }}</div>
|
||||
<div class="monitoring-point" v-if="!monitoringPoint.state.showCheckBox">
|
||||
当前位置:{{ monitoringPoint.state.lineName }}
|
||||
</div>
|
||||
</div>
|
||||
</pane>
|
||||
</splitpanes>
|
||||
@@ -80,11 +82,11 @@ onMounted(() => {
|
||||
const handleNodeClick = (data: any, node: any) => {
|
||||
if (data.level === 6) {
|
||||
monitoringPoint.setValue('lineId', data.id)
|
||||
monitoringPoint.setValue('lineName', data.alias)
|
||||
}
|
||||
}
|
||||
const handleCheckChange = (data: any, node: any) => {
|
||||
// let checkNodes = pointTree.value.getCheckedNodes()
|
||||
// console.log(checkNodes)
|
||||
console.log(data)
|
||||
}
|
||||
watch(
|
||||
() => router.currentRoute.value.query.lineId,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div style="display: flex; flex-direction: column; height: 100%">
|
||||
<el-form :inline="true">
|
||||
<el-form-item label="多监测点">
|
||||
<el-checkbox v-model="checked" @change="checkChange" />
|
||||
<el-checkbox v-model="checked" @change="checkChange" />
|
||||
</el-form-item>
|
||||
<el-form-item label="日期">
|
||||
<DatePicker ref="datePickerRef"></DatePicker>
|
||||
@@ -25,7 +25,7 @@ import { getProbabilityDistribution } from '@/api/event-boot/monitor'
|
||||
|
||||
const datePickerRef = ref()
|
||||
const monitoringPoint = useMonitoringPoint()
|
||||
const checked = ref(false)
|
||||
const checked = ref(monitoringPoint.state.showCheckBox)
|
||||
const loading = ref(true)
|
||||
const formData = reactive({
|
||||
lineIndex: monitoringPoint.state.lineId,
|
||||
@@ -38,6 +38,7 @@ const checkChange = () => {
|
||||
monitoringPoint.setShowCheckBox(true)
|
||||
} else {
|
||||
monitoringPoint.setShowCheckBox(false)
|
||||
init()
|
||||
}
|
||||
}
|
||||
const init = () => {
|
||||
|
||||
Reference in New Issue
Block a user