风机列表:修改实时曲线显示逻辑
This commit is contained in:
parent
e13085ae4e
commit
cef92b0340
@ -362,19 +362,6 @@ const runTask = async (data: any, index: number) => {
|
||||
} catch (error) {
|
||||
mutiTaskList.value[index].loading = 3
|
||||
}
|
||||
|
||||
// .then((res: any) => {
|
||||
// console.log(res)
|
||||
// if (res.success) {
|
||||
// console.log(data, 'success')
|
||||
// mutiTaskList.value[index].loading = 2
|
||||
// } else {
|
||||
// mutiTaskList.value[index].loading = 3
|
||||
// }
|
||||
// })
|
||||
// .catch(() => {
|
||||
// mutiTaskList.value[index].loading = 3
|
||||
// })
|
||||
}
|
||||
|
||||
const tableHaderStyle = {
|
||||
|
@ -117,6 +117,8 @@ const defaultList = [
|
||||
//#endregion
|
||||
const selectList = ref([])
|
||||
const changeCheck = () => {
|
||||
console.log('-----------------------------------',timer,selectList.value);
|
||||
|
||||
if (!timer && selectList.value[0]) {
|
||||
createTimer()
|
||||
}
|
||||
@ -126,18 +128,6 @@ const changeCheck = () => {
|
||||
chartInstance && chartInstance.clear()
|
||||
}
|
||||
}
|
||||
// watch(
|
||||
// () => selectList.value,
|
||||
// () => {
|
||||
// if (!timer && selectList.value[0]) {
|
||||
// createTimer()
|
||||
// }
|
||||
// if (selectList.value.length === 0) {
|
||||
// clearTimer()
|
||||
// chartInstance && chartInstance.clear()
|
||||
// }
|
||||
// }
|
||||
// )
|
||||
const realDataList = ref<any[]>(JSON.parse(JSON.stringify(defaultList)))
|
||||
|
||||
const chartRef = ref()
|
||||
@ -376,6 +366,7 @@ const clearTimer = () => {
|
||||
timer = null
|
||||
realDataSeries = []
|
||||
realDataXAxis = []
|
||||
pauseState.value = false
|
||||
}
|
||||
|
||||
const pauseState = ref(false)
|
||||
|
Loading…
Reference in New Issue
Block a user