feat(视图): 添加电伴热设备状态显示并简化代理配置

在电伴热设备视图中添加加热状态和温度显示
移除冗余的代理配置并更新目标地址
This commit is contained in:
liangbin 2026-01-23 11:03:30 +08:00
parent 0768c8b8cc
commit f1452cd3c0
2 changed files with 20 additions and 26 deletions

View File

@ -1021,10 +1021,21 @@
<el-row style="margin-bottom: 10px;">
<el-col :span="4">电伴热设备:</el-col>
<el-col :span="8">
<el-switch v-model="iotDBRInfo.online" active-color="#20488F" active-text="开" inactive-text="关">
<el-switch v-model="iotDBRInfo.online" active-color="#20488F" active-text="开" inactive-text="关">
</el-switch>
</el-col>
</el-row>
<el-row style="margin-bottom: 10px;">
<el-col :span="4">加热状态:</el-col>
<el-col :span="8">{{iotDBRInfo['加热状态']?'开':'关'}}</el-col>
</el-row>
<el-row style="margin-bottom: 10px;">
<el-col :span="4">温度1:</el-col>
<el-col :span="8">{{iotDBRInfo['温度1']}} °C</el-col>
</el-row>
<el-row style="margin-bottom: 10px;">
<el-col :span="4">温度2:</el-col>
<el-col :span="8">{{iotDBRInfo['温度2']}} °C</el-col>
</el-row>
</div>
</div>

View File

@ -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) => {