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