Browse Source

激光 工作模式

develop
王兴琳 4 weeks ago
parent
commit
3ce8cec322
  1. 25
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceParam.vue

25
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceParam.vue

@ -270,19 +270,16 @@ export default {
}
let ask = await this.requestURL("ASKDF",options);
let workingMode = await this.requestURL("ASKMD");
// if (result.data == 7) {
// this.activeName = "second";
// this.tabClick();
// } else {
console.log("工作模式")
console.log(workingMode.data)
this.formData.controlType = workingMode.data + "" || "0";
//
let resultTime = await this.requestURL("ASKTM");
let resultTime = await this.requestURL2("ASKTM");
console.log("工作时长")
console.log(resultTime.data)
this.formData.onWorkStatus = resultTime.data || 0;
let workingMode = await this.requestURL2("ASKMD");
console.log("工作模式")
console.log(workingMode.data)
this.formData.controlType = workingMode.data + "" || "0";
this.activeName = "first";
// }
},
@ -296,6 +293,16 @@ export default {
//SETMDASKMDSETTMASKTMSETDFASKDF
return result;
},
async requestURL2(functionId, options = {}) {
let result = await request({
url: `/business/device/functions2/${this.deviceId}/${functionId}`,
method: "post",
data: options,
});
if (result.code != 200) return Message.error(result?.msg);
//SETMDASKMDSETTMASKTMSETDFASKDF
return result;
},
async tabClick() {
if (this.activeName == "second") {
if (this.isMultiControl)

Loading…
Cancel
Save