修改dataLevel赋值位置

This commit is contained in:
zhujiyan
2024-08-14 16:51:12 +08:00
parent f3f435e704
commit 5228bbb525

View File

@@ -61,12 +61,12 @@ const echartsData = ref<any>(null)
const dialogVisible = ref(false) const dialogVisible = ref(false)
const loading = ref(true) const loading = ref(true)
onMounted(() => { onMounted(() => {
form.dataLevel = props.detail.dataLevel
init() init()
}) })
const init = () => { const init = () => {
echartsData.value = null echartsData.value = null
loading.value = true loading.value = true
form.dataLevel = props.detail.dataLevel
getDeviceDataTrend({ getDeviceDataTrend({
devId: props.detail.devId, devId: props.detail.devId,
endTime: datePickerRef.value.timeValue[1], endTime: datePickerRef.value.timeValue[1],