Merge pull request 'feat : 风机启停' (#268) from dengjie into dev
Reviewed-on: http://git.feashow.cn/clay/tunnel-cloud-web/pulls/268
This commit is contained in:
@@ -122,6 +122,8 @@ import {
|
|||||||
editFrequencyOperationSwitch,
|
editFrequencyOperationSwitch,
|
||||||
getFanEchartsInfo
|
getFanEchartsInfo
|
||||||
} from "@/api/largeScreen";
|
} from "@/api/largeScreen";
|
||||||
|
import {ElMessageBox} from "element-plus";
|
||||||
|
import {removeToken} from "../../../utils/auth";
|
||||||
|
|
||||||
const timeList = ref(["年", "月", "日"]);
|
const timeList = ref(["年", "月", "日"]);
|
||||||
const selectTimeButton = ref(2);
|
const selectTimeButton = ref(2);
|
||||||
@@ -229,22 +231,27 @@ const packageData = (item, type, flag) => {
|
|||||||
}
|
}
|
||||||
//启动/停止
|
//启动/停止
|
||||||
const editOperate = (item) => {
|
const editOperate = (item) => {
|
||||||
const data = packageData(item, item.running)
|
ElMessageBox.confirm('是否启动/停止该风机?','系统提示',{
|
||||||
// editFrequencyOperationSwitch(data).then(res => {
|
type: 'warning',
|
||||||
// console.log('修改风机启动', res)
|
closeOnClickModal: false
|
||||||
// })
|
}).then(()=>{
|
||||||
|
const data = packageData(item, item.running)
|
||||||
|
editFrequencyOperationSwitch(data).then(res => {
|
||||||
|
console.log('修改风机启动', res)
|
||||||
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
const changeFrequency = (item) => {
|
const changeFrequency = (item) => {
|
||||||
const data = packageData(item, item.frequencySetting, true)
|
const data = packageData(item, item.frequencySetting, true)
|
||||||
// editFrequency(data).then(res => {
|
editFrequency(data).then(res => {
|
||||||
// console.log('修改风机频率', res)
|
console.log('修改风机频率', res)
|
||||||
// })
|
})
|
||||||
}
|
}
|
||||||
const changeModel = (item) => {
|
const changeModel = (item) => {
|
||||||
const data = packageData(item, item.autoMode)
|
const data = packageData(item, item.autoMode)
|
||||||
// editFrequencyModelSwitch(data).then(res => {
|
editFrequencyModelSwitch(data).then(res => {
|
||||||
// console.log('修改自动模式', res)
|
console.log('修改自动模式', res)
|
||||||
// })
|
})
|
||||||
}
|
}
|
||||||
const getFanInfo = (equipmentId, type = 'day') => {
|
const getFanInfo = (equipmentId, type = 'day') => {
|
||||||
isVisited.value = true
|
isVisited.value = true
|
||||||
|
|||||||
Reference in New Issue
Block a user