暂态事件lineId参数问题修改
This commit is contained in:
@@ -80,7 +80,6 @@
|
|||||||
<el-form
|
<el-form
|
||||||
:inline="true"
|
:inline="true"
|
||||||
style="white-space: nowrap; margin-top: 10px"
|
style="white-space: nowrap; margin-top: 10px"
|
||||||
id="formRef"
|
|
||||||
v-if="
|
v-if="
|
||||||
dataSet.indexOf('_trenddata') == -1 &&
|
dataSet.indexOf('_trenddata') == -1 &&
|
||||||
dataSet.indexOf('_realtimedata') == -1 &&
|
dataSet.indexOf('_realtimedata') == -1 &&
|
||||||
@@ -109,9 +108,7 @@
|
|||||||
<el-option value="Secondary" label="二次值"></el-option>
|
<el-option value="Secondary" label="二次值"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
|
||||||
<el-button type="primary" icon="el-icon-Search" @click="handleClick">查询</el-button>
|
<el-button type="primary" icon="el-icon-Search" @click="handleClick">查询</el-button>
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<div
|
<div
|
||||||
style="height: calc(100vh - 300px)"
|
style="height: calc(100vh - 300px)"
|
||||||
@@ -330,6 +327,7 @@ const devTypeOptions = ref([])
|
|||||||
const devModelOptions = ref([])
|
const devModelOptions = ref([])
|
||||||
const tableData = ref<any[]>([])
|
const tableData = ref<any[]>([])
|
||||||
|
|
||||||
|
const tableHeight = mainHeight(330).height
|
||||||
const mangePopup = ref()
|
const mangePopup = ref()
|
||||||
const datePickerRef = ref()
|
const datePickerRef = ref()
|
||||||
const formInline = reactive({
|
const formInline = reactive({
|
||||||
@@ -492,8 +490,6 @@ const timer: any = ref()
|
|||||||
//tab点击事件
|
//tab点击事件
|
||||||
const handleClick = async (tab?: any) => {
|
const handleClick = async (tab?: any) => {
|
||||||
tableLoading.value = true
|
tableLoading.value = true
|
||||||
// formInline.dataLevel = 'Secondary'
|
|
||||||
// loading.value = true
|
|
||||||
//点击tab时更新dataSet最新值
|
//点击tab时更新dataSet最新值
|
||||||
if (tab && tab.props && tab.props.name && dataSet.value != tab.props.name) {
|
if (tab && tab.props && tab.props.name && dataSet.value != tab.props.name) {
|
||||||
dataSet.value = tab.props.name
|
dataSet.value = tab.props.name
|
||||||
@@ -541,7 +537,9 @@ const handleClick = async (tab?: any) => {
|
|||||||
lineId: lineId.value,
|
lineId: lineId.value,
|
||||||
devId: dataSet.value.replace('_trenddata', '')
|
devId: dataSet.value.replace('_trenddata', '')
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
// startTime: datePickerRef.value && datePickerRef.value.timeValue[0],
|
||||||
|
// endTime: datePickerRef.value && datePickerRef.value.timeValue[1]
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
trendRef.value && trendRef.value.getTrendRequest(obj)
|
trendRef.value && trendRef.value.getTrendRequest(obj)
|
||||||
@@ -575,9 +573,9 @@ const handleClick = async (tab?: any) => {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
setTimeout(() => {
|
||||||
//暂态事件表格请求参数
|
//暂态事件表格请求参数
|
||||||
eventRef.value && eventRef.value.getTableParams(obj)
|
eventRef.value && eventRef.value.getTableParams(obj)
|
||||||
setTimeout(() => {
|
|
||||||
tableLoading.value = false
|
tableLoading.value = false
|
||||||
}, 1500)
|
}, 1500)
|
||||||
}
|
}
|
||||||
@@ -662,11 +660,8 @@ const openGroup = () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const tableHeight = mainHeight(330).height
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {})
|
||||||
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
Reference in New Issue
Block a user