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,
|
||||
getFanEchartsInfo
|
||||
} from "@/api/largeScreen";
|
||||
import {ElMessageBox} from "element-plus";
|
||||
import {removeToken} from "../../../utils/auth";
|
||||
|
||||
const timeList = ref(["年", "月", "日"]);
|
||||
const selectTimeButton = ref(2);
|
||||
@@ -229,22 +231,27 @@ const packageData = (item, type, flag) => {
|
||||
}
|
||||
//启动/停止
|
||||
const editOperate = (item) => {
|
||||
const data = packageData(item, item.running)
|
||||
// editFrequencyOperationSwitch(data).then(res => {
|
||||
// console.log('修改风机启动', res)
|
||||
// })
|
||||
ElMessageBox.confirm('是否启动/停止该风机?','系统提示',{
|
||||
type: 'warning',
|
||||
closeOnClickModal: false
|
||||
}).then(()=>{
|
||||
const data = packageData(item, item.running)
|
||||
editFrequencyOperationSwitch(data).then(res => {
|
||||
console.log('修改风机启动', res)
|
||||
})
|
||||
})
|
||||
}
|
||||
const changeFrequency = (item) => {
|
||||
const data = packageData(item, item.frequencySetting, true)
|
||||
// editFrequency(data).then(res => {
|
||||
// console.log('修改风机频率', res)
|
||||
// })
|
||||
editFrequency(data).then(res => {
|
||||
console.log('修改风机频率', res)
|
||||
})
|
||||
}
|
||||
const changeModel = (item) => {
|
||||
const data = packageData(item, item.autoMode)
|
||||
// editFrequencyModelSwitch(data).then(res => {
|
||||
// console.log('修改自动模式', res)
|
||||
// })
|
||||
editFrequencyModelSwitch(data).then(res => {
|
||||
console.log('修改自动模式', res)
|
||||
})
|
||||
}
|
||||
const getFanInfo = (equipmentId, type = 'day') => {
|
||||
isVisited.value = true
|
||||
|
||||
Reference in New Issue
Block a user