故障录波:修改请求参数
风机列表:清除控制台打印信息
This commit is contained in:
parent
2f665e5d3e
commit
34bd163b53
@ -17,7 +17,7 @@ export const getMalFunctionListReq = (data: {
|
||||
|
||||
export const setConfigReq = (data: {
|
||||
id: string
|
||||
fdrFormat: string
|
||||
options:string
|
||||
}) => {
|
||||
return createAxios<never, Promise<ReqReturnType<never>>>({
|
||||
url: '/api/fdr/updateFdrConfig',
|
||||
|
@ -303,17 +303,14 @@ const airBlowerOperate = async (type: 'setTurbineFastStart' | 'setTurbineStop' |
|
||||
mutiTaskList.value = data
|
||||
mutiTaskTitle.value = sendTypeEnum[type]
|
||||
multiTaskVisible.value = true
|
||||
console.log(mutiTaskList.value)
|
||||
|
||||
for (let i = 0; i < mutiTaskList.value.length; i++) {
|
||||
mutiTaskList.value[i].loading = 1
|
||||
console.log(mutiTaskList.value[i].deviceName)
|
||||
runTask(mutiTaskList.value[i].sendData, i)
|
||||
}
|
||||
}
|
||||
|
||||
const runTask = async (data: any, index: number) => {
|
||||
console.log(data)
|
||||
try {
|
||||
let resp = await sendCommandReq(data)
|
||||
if (resp.success) {
|
||||
@ -464,7 +461,6 @@ const getTableData = () => {
|
||||
iturbineoperationmode: state,
|
||||
}
|
||||
})
|
||||
console.log(data)
|
||||
|
||||
originTableData.value = data
|
||||
if (airBlowerSelect.belongLine === '全部' && airBlowerSelect.iturbineoperationmode === 987654321) {
|
||||
@ -489,7 +485,6 @@ const getTableData = () => {
|
||||
}
|
||||
})
|
||||
.catch((err: any) => {
|
||||
console.log(err)
|
||||
})
|
||||
}
|
||||
|
||||
@ -521,7 +516,6 @@ watch(autoUpdate, (newVal: boolean) => {
|
||||
if (autoUpdateInterval.value) return
|
||||
ElMessage.success('开启自动刷新')
|
||||
autoUpdateInterval.value = setInterval(() => {
|
||||
console.log('刷新')
|
||||
getTableData()
|
||||
}, 2000)
|
||||
} else {
|
||||
|
@ -332,9 +332,11 @@ const cancelConfig = () => {
|
||||
}
|
||||
|
||||
const setAirBlowerConfig = () => {
|
||||
const stringify = JSON.stringify({ fdrFormat: configFormData })
|
||||
|
||||
setConfigReq({
|
||||
id: curTreeData.value.id,
|
||||
fdrFormat: JSON.stringify(configFormData),
|
||||
options: stringify,
|
||||
})
|
||||
.then(() => {
|
||||
ElMessage.success('配置成功')
|
||||
|
Loading…
Reference in New Issue
Block a user