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