|
|
@ -22,9 +22,10 @@ import Form from '@screen/components/FormConfig'; |
|
|
|
|
|
|
|
import { cloneDeep } from "lodash" |
|
|
|
import { delay } from "@screen/utils/common.js" |
|
|
|
import request from "@/utils/request"; |
|
|
|
|
|
|
|
import { Message } from "element-ui"; |
|
|
|
import { axiosIns } from "@screen/utils/axios/auth.js"; |
|
|
|
// import { axiosIns } from "@screen/utils/axios/auth.js"; |
|
|
|
|
|
|
|
const workStatus = [ |
|
|
|
{ |
|
|
@ -142,7 +143,10 @@ export default { |
|
|
|
handler(bool) { |
|
|
|
if (!bool) return; |
|
|
|
|
|
|
|
axiosIns.post(`business/device/functions/${this.deviceId}/${51}`) |
|
|
|
request({ |
|
|
|
url: `business/device/functions/${this.deviceId}/${51}`, |
|
|
|
method: "post", |
|
|
|
}) |
|
|
|
.then(async (result) => { |
|
|
|
if (result.code != 200) return; |
|
|
|
|
|
|
@ -197,10 +201,14 @@ export default { |
|
|
|
|
|
|
|
/** |
|
|
|
* 接口 地址 |
|
|
|
* |
|
|
|
* https://www.showdoc.com.cn/2450725213006196/10877717880262686 |
|
|
|
*/ |
|
|
|
|
|
|
|
axiosIns.post(`business/device/functions/${this.deviceId}/${functionId}`, result) |
|
|
|
request({ |
|
|
|
url: `business/device/functions/${this.deviceId}/${functionId}`, |
|
|
|
method: "post", |
|
|
|
params: result, |
|
|
|
}) |
|
|
|
.then((result) => { |
|
|
|
if (result.code != 200) return Message.error(`设备操作失败!`); |
|
|
|
|
|
|
|