diff --git a/src/views/view/index.vue b/src/views/view/index.vue index 8331d28..a928c1d 100644 --- a/src/views/view/index.vue +++ b/src/views/view/index.vue @@ -1021,10 +1021,21 @@ 电伴热设备: - + - + + + 加热状态: + {{iotDBRInfo['加热状态']?'开':'关'}} + + + 温度1: + {{iotDBRInfo['温度1']}} °C + + + 温度2: + {{iotDBRInfo['温度2']}} °C diff --git a/vue.config.js b/vue.config.js index 80907d0..d16f8e0 100644 --- a/vue.config.js +++ b/vue.config.js @@ -10,26 +10,13 @@ module.exports = { "Access-Control-Allow-Origin": "*", }, proxy: { - "/TestApi": { - //本地服务接口地址 - target: "http://127.0.0.1:8000", - ws: true, - https: true, - pathRewrite: { - "^/TestApi": "", - }, - }, + "/json": { //本地服务接口地址 // target: 'http://link.ser99.vip:8080/zhongkai', target: 'http://65.73.11.246:7774', // target: 'http://172.16.1.111:8000', - // target: "http://172.16.1.146:8084", // 汤 - // target: 'http://172.16.1.162:8233', - // target: 'http://192.168.13.138:8233', - // target: 'http://172.16.1.113:8012', - // target: 'http://172.16.1.131:8009', - // target: 'http://172.16.1.148:8009', + // target: "http://172.16.1.146:8009", // 汤 ws: true, https: true, pathRewrite: { @@ -38,8 +25,6 @@ module.exports = { }, "/xjIotApi": { //集采 - // target: 'http://65.73.11.246:8083', - // target: 'http://172.16.1.155:8080', target: "http://172.16.1.146:8083", ws: true, https: true, @@ -50,26 +35,24 @@ module.exports = { }, "/iotApi": { //平台 - // target: 'http://65.73.11.246:8090', - // target: 'http://172.16.1.155:8080', target: "http://172.16.1.146:8081", ws: true, https: true, pathRewrite: { "^/iotApi": "/iotApi", }, - "/dmr": { + }, + "/dmr": { //平台 // target: 'http://65.73.11.246:8090', - // target: 'http://172.16.1.155:8080', - target: "http://172.16.1.146:8000", + // target: 'http://172.16.1.146:8080', + target: "http://172.16.1.111:8000", // 陈 ws: true, https: true, pathRewrite: { - "^/dmr": "/dmr", + "^/dmr": "", }, } - }, }, }, chainWebpack: (config) => {