|
|
@ -17,10 +17,7 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- <DeviceControlDialog v-model="deviceControlVisible" :deviceId="dialogData.iotDeviceId || '8697-1'" /> --> |
|
|
|
<DeviceControlDialog |
|
|
|
v-model="deviceControlVisible" |
|
|
|
:deviceId="dialogData.iotDeviceId" |
|
|
|
/> |
|
|
|
<DeviceControlDialog v-model="deviceControlVisible" :deviceId="dialogData.iotDeviceId" /> |
|
|
|
</Dialog> |
|
|
|
</template> |
|
|
|
|
|
|
@ -35,7 +32,10 @@ import { |
|
|
|
} from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js"; |
|
|
|
import Video from "@screen/components/Video"; |
|
|
|
import request from "@/utils/request"; |
|
|
|
|
|
|
|
import { delay } from "@screen/utils/common.js" |
|
|
|
import { handle3CResult } from "@screen/utils/deviceControl.js" |
|
|
|
import { controlModelMap, gzztMap } from "@screen/utils/enum.js"; |
|
|
|
import { find } from "lodash"; |
|
|
|
import { dialogDelayVisible } from "./../mixin"; |
|
|
|
|
|
|
|
// 行车诱导 |
|
|
@ -116,19 +116,30 @@ export default { |
|
|
|
.then((data) => { |
|
|
|
this.dialogData.brand = data.brand; |
|
|
|
}) |
|
|
|
.catch((err) => {}); |
|
|
|
|
|
|
|
this.requestURL(52) |
|
|
|
.then((result) => { |
|
|
|
this.data.workMode = { |
|
|
|
"00": "手动控制", |
|
|
|
"01": "自动控制", |
|
|
|
"02": "万年历", |
|
|
|
}[result.mode]; |
|
|
|
this.data.onWorkStatus = result.onWorkStatus; |
|
|
|
this.data.inWorkStatus = result.inWorkStatus; |
|
|
|
}) |
|
|
|
.catch((err) => {}); |
|
|
|
.catch((err) => { }); |
|
|
|
|
|
|
|
// this.requestURL(52) |
|
|
|
// .then((result) => { |
|
|
|
// this.data.workMode = { |
|
|
|
// "00": "手动控制", |
|
|
|
// "01": "自动控制", |
|
|
|
// "02": "万年历", |
|
|
|
// }[result.mode]; |
|
|
|
// this.data.onWorkStatus = result.onWorkStatus; |
|
|
|
// this.data.inWorkStatus = result.inWorkStatus; |
|
|
|
// }) |
|
|
|
// .catch((err) => { }); |
|
|
|
this.requestURL() |
|
|
|
.then(async (data) => { |
|
|
|
await delay(0); |
|
|
|
const formData = {}; |
|
|
|
formData.controlType = data.mode; |
|
|
|
await handle3CResult(data, formData, this.requestURL); |
|
|
|
|
|
|
|
formData.controlType && (this.$set(this.data, "workMode", controlModelMap[formData.controlType]))//(this.data.workMode = controlModelMap[formData.controlType]); |
|
|
|
formData.inWorkStatus && (this.$set(this.data, "inWorkStatus", gzztMap[formData.inWorkStatus]))//(this.data.inWorkStatus = gzztMap[formData.inWorkStatus]); |
|
|
|
formData.onWorkStatus && (this.$set(this.data, "onWorkStatus", gzztMap[formData.onWorkStatus]))//(this.data.onWorkStatus = gzztMap[formData.onWorkStatus]); |
|
|
|
}); |
|
|
|
|
|
|
|
const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMark); |
|
|
|
console.log( |
|
|
@ -194,7 +205,7 @@ export default { |
|
|
|
align-items: center; |
|
|
|
justify-content: end; |
|
|
|
|
|
|
|
> div { |
|
|
|
>div { |
|
|
|
font-size: 16px; |
|
|
|
padding: 6px 12px; |
|
|
|
} |
|
|
|