新问题修改
This commit is contained in:
parent
8455eddf40
commit
0db36f64b3
@ -14,11 +14,17 @@ function sendGetRequest(url, data) {
|
||||
params: data
|
||||
})
|
||||
.then(function (res) { //请求成功,response接收返回参数
|
||||
|
||||
if (res.data.code == 401) {
|
||||
localStorage.removeItem('token')
|
||||
router.push({
|
||||
name: 'login'
|
||||
})
|
||||
if(router.currentRoute.name!='login'){
|
||||
router.push({
|
||||
name: 'login'
|
||||
})
|
||||
}
|
||||
// router.push({
|
||||
// name: 'login'
|
||||
// })
|
||||
}
|
||||
resolve(res);
|
||||
|
||||
@ -43,9 +49,11 @@ function sendUploadRequest(url, data) {
|
||||
(res) => {
|
||||
if (res.data.code == 401) {
|
||||
localStorage.removeItem('token')
|
||||
router.push({
|
||||
name: 'login'
|
||||
})
|
||||
if(router.currentRoute.name!='login'){
|
||||
router.push({
|
||||
name: 'login'
|
||||
})
|
||||
}
|
||||
}
|
||||
resolve(res);
|
||||
},
|
||||
@ -70,9 +78,11 @@ function sendPostRequest(url, data) {
|
||||
(res) => {
|
||||
if (res.data.code == 401) {
|
||||
localStorage.removeItem('token')
|
||||
router.push({
|
||||
name: 'login'
|
||||
})
|
||||
if(router.currentRoute.name!='login'){
|
||||
router.push({
|
||||
name: 'login'
|
||||
})
|
||||
}
|
||||
}
|
||||
resolve(res);
|
||||
},
|
||||
@ -100,9 +110,11 @@ function sendDelRequest(url, data) {
|
||||
(res) => {
|
||||
if (res.data.code == 401) {
|
||||
localStorage.removeItem('token')
|
||||
router.push({
|
||||
name: 'login'
|
||||
})
|
||||
if(router.currentRoute.name!='login'){
|
||||
router.push({
|
||||
name: 'login'
|
||||
})
|
||||
}
|
||||
}
|
||||
resolve(res);
|
||||
},
|
||||
@ -126,9 +138,11 @@ function sendPutRequest(url, data) {
|
||||
(res) => {
|
||||
if (res.data.code == 401) {
|
||||
localStorage.removeItem('token')
|
||||
router.push({
|
||||
name: 'login'
|
||||
})
|
||||
if(router.currentRoute.name!='login'){
|
||||
router.push({
|
||||
name: 'login'
|
||||
})
|
||||
}
|
||||
}
|
||||
resolve(res);
|
||||
},
|
||||
|
@ -782,6 +782,11 @@ textarea {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.input-main-80 span.tips {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.input-main-80 input {
|
||||
width: 80px;
|
||||
height: 44px;
|
||||
@ -2228,6 +2233,7 @@ textarea {
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.realTime .page-content .realTime-bottom .left-view > div .video-control .video-btn-big > div {
|
||||
|
@ -817,6 +817,10 @@ textarea{
|
||||
|
||||
span {
|
||||
padding: 0 10px;
|
||||
&.tips{
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
@ -2344,6 +2348,7 @@ textarea{
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
|
||||
>div {
|
||||
width: 230px;
|
||||
|
@ -112,7 +112,7 @@ export default {
|
||||
activeNames: [3],
|
||||
leftList: [
|
||||
{ name: '首页', img: require('../assets/image/index-icon.png'), list: [], router: 'realTime', isRouter: true, },
|
||||
{ name: '温室', routerList: ['realTime', 'dataAnalysis', 'historyData', 'exitSettings', 'videoMonitoring','imageData', 'skylight', 'control', 'systemSet-con', 'fan', 'upload-con', 'sensorSet-con', 'synthesis-con', 'alarmSettings', 'waterPump', 'geothermalFan', 'uptake', 'downtake', 'rollByRoll', 'snowRemoval', "targetTemperature", "targetHumidity", "targetCo2", "sunroofControl", "outsizeSunshade", "insizeSunshade", "wetFan", "LED", 'electromagneticControl', "coercionMist", "circulationCan", "internalInsulation", "forceOutput", "intrinsicParameter", "parameterSet"], img: require('../assets/image/left-img0.png'), list: [] },
|
||||
{ name: '温室', routerList: ['realTime', 'dataAnalysis', 'historyData','air-conditioning', 'exitSettings', 'videoMonitoring','imageData', 'skylight', 'control', 'systemSet-con', 'fan', 'upload-con', 'sensorSet-con', 'synthesis-con', 'alarmSettings', 'waterPump', 'geothermalFan', 'uptake', 'downtake', 'rollByRoll', 'snowRemoval', "targetTemperature", "targetHumidity", "targetCo2", "sunroofControl", "outsizeSunshade", "insizeSunshade", "wetFan", "LED", 'electromagneticControl', "coercionMist", "circulationCan", "internalInsulation", "forceOutput", "intrinsicParameter", "parameterSet"], img: require('../assets/image/left-img0.png'), list: [] },
|
||||
// { name: '二号温室', img: require('../assets/image/left-img1.png'), list: [] },
|
||||
{ name: '施肥机', routerList: ['status-soil','formula', 'dataAnalysis', 'historyData', 'irrigateSet', 'videoMonitoring','imageData', 'PIDSet', 'systemSet', 'upload', 'sensorSet', 'realTime', 'history', 'dataAnalysis'], img: require('../assets/image/left-img2.png'), list: [] },
|
||||
{ name: '智能灌溉', routerList: ['realTime', 'dataAnalysis', 'historyData','irrigateSet-soil', 'videoMonitoring','imageData','PIDSet-soil', 'systemSet-soil', 'upload-soil', 'sensorSet-soil', 'realTime', 'history', 'dataAnalysis'], img: require('../assets/image/irrigateSet-icon1-act.png'), list: [] },
|
||||
@ -288,8 +288,19 @@ export default {
|
||||
return value1 - value2;
|
||||
};
|
||||
},
|
||||
// 根据deviceName获取router
|
||||
deviceNameRouter(deviceName){
|
||||
if(deviceName==1){
|
||||
return 'formula'
|
||||
}else if(deviceName==10){
|
||||
return 'control'
|
||||
}else if(deviceName==20){
|
||||
return 'soil'
|
||||
}
|
||||
},
|
||||
//获取设备
|
||||
getEqbyid(selTrue) {
|
||||
const that = this
|
||||
var userInfo = localStorage.getItem('userInfo') ? JSON.parse(localStorage.getItem('userInfo')) : { userid: -1 }
|
||||
var store = this.$store.state
|
||||
this.api.getEqbyid(userInfo.userid).then((res) => {
|
||||
@ -297,7 +308,7 @@ export default {
|
||||
this.$store.state.equipmentList = res.data.data.map((item, index) => {
|
||||
return {
|
||||
...item,
|
||||
router: 'formula',
|
||||
router: that.deviceNameRouter(item.deviceName),
|
||||
index: index + 1,
|
||||
};
|
||||
});
|
||||
@ -350,7 +361,7 @@ export default {
|
||||
userId: item.userId,
|
||||
deviceTypeName: item.deviceName,
|
||||
index: list[list.length - 1].index + index + 1,
|
||||
router: 'formula',
|
||||
router: that.deviceNameRouter(item.deviceName),
|
||||
deviceName: '30'
|
||||
};
|
||||
}))
|
||||
@ -496,23 +507,17 @@ export default {
|
||||
if (item.router) {
|
||||
if (item.http) {
|
||||
window.location.href = item.http;
|
||||
} else if (item.router == 'formula' && this.$route.query.index != item.index) {
|
||||
if (this.routerNow == 'realTime') {
|
||||
}else if(item.isRouter){
|
||||
this.$router.push({ path: item.router })
|
||||
} else if ( this.$route.query.index != item.index) {
|
||||
if (this.routerNow == 'realTime'||item.router=='realTime') {
|
||||
this.$store.state.equipmentIndex = item.index
|
||||
this.$router.push({ path: `/realTime?index=${item.index ? item.index : 1}&name=${item.deviceName}` })
|
||||
} else if (this.routerNow == 'history') {
|
||||
this.$router.push({ path: `/realTime?index=${item.index ? item.index : 1}&name=${item.deviceName? item.deviceName : 1}` })
|
||||
} else if (this.routerNow == 'history'||this.routerNow == 'dataAnalysis'||this.routerNow == 'historyData'||this.routerNow == 'imageData') {
|
||||
this.$store.state.equipmentIndex = item.index
|
||||
this.$router.push({ path: `/history?index=${item.index ? item.index : 1}` })
|
||||
} else if (this.routerNow == 'dataAnalysis') {
|
||||
this.$store.state.equipmentIndex = item.index
|
||||
this.$router.push({ path: `/dataAnalysis?index=${item.index ? item.index : 1}` })
|
||||
} else if (this.routerNow == 'historyData') {
|
||||
this.$store.state.equipmentIndex = item.index
|
||||
this.$router.push({ path: `/historyData?index=${item.index ? item.index : 1}` })
|
||||
} else if (this.routerNow == 'imageData') {
|
||||
this.$store.state.equipmentIndex = item.index
|
||||
this.$router.push({ path: `/imageData?index=${item.index ? item.index : 1}` })
|
||||
} else if (this.routerNow == 'videoMonitoring') {
|
||||
this.$router.push({ path: `/${this.routerNow}?index=${item.index ? item.index : 1}` })
|
||||
}
|
||||
else if (this.routerNow == 'videoMonitoring') {
|
||||
this.$store.state.equipmentIndex = item.index
|
||||
this.routerIndex = item.index
|
||||
// this.$router.push({ path: `/videoMonitoring?index=${item.index ? item.index : 1}` })
|
||||
@ -538,8 +543,7 @@ export default {
|
||||
this.$router.push({ path: `/irrigateSet?change=${item.index}` })
|
||||
}
|
||||
} else if (item.deviceName == 20 ) {
|
||||
// 智能灌溉
|
||||
|
||||
// 智能灌溉s
|
||||
if(this.routerNow == 'irrigateSet-soil'){
|
||||
this.$store.state.equipmentIndex = item.index
|
||||
this.routerIndex = item.index
|
||||
@ -553,7 +557,7 @@ export default {
|
||||
this.$message('气象站无该页面');
|
||||
}
|
||||
}
|
||||
} else if (item.router == 'formula' && this.$route.query.index == item.index) {
|
||||
} else if ( this.$route.query.index == item.index) {
|
||||
return
|
||||
} else if (item.router != this.routerNow && !item.http) {
|
||||
this.$router.push({ name: item.router })
|
||||
|
@ -40,15 +40,37 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="title-tips-bold">手动开启设置</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="title-tips-bold">手动设置</div>
|
||||
<div class="flex-view padding-none shrink-none" :class="inputData[22042]==3?'border-none':''">
|
||||
<div class="input-main-80">
|
||||
<span>1.手动开启时空调设置的温度追踪目标温度。</span>
|
||||
<span>手动开启空调的温度</span>
|
||||
<input
|
||||
@blur="blurChangeCount(22043, $event)"
|
||||
v-model="inputData[22043]"
|
||||
@input="changeCountData(22043, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span>℃</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none shrink-none" v-if="inputData[22042]==3">
|
||||
<div class="input-main-80">
|
||||
<span>手动开启空调的湿度</span>
|
||||
<input
|
||||
@blur="blurChange10(22044, $event)"
|
||||
v-model="inputData[22044]"
|
||||
@input="changeCount10(22044, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span>%RH</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="title-tips-bold">手自动设置</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-sel input-sel-w180">
|
||||
<span>2.空调设置风速</span>
|
||||
<span>空调的风速</span>
|
||||
<el-dropdown @command="handleCommand1($event, 22041)">
|
||||
<div class="el-dropdown-link">
|
||||
<input
|
||||
@ -70,12 +92,12 @@
|
||||
>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
// <span>(0是空调自动调整风速)。 </span>
|
||||
// <span>(0是空调自动调整风速)。 </span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none shrink-none">
|
||||
<div class="input-sel input-sel-w180">
|
||||
<span>3.空调设置冷暖模式</span>
|
||||
<span>空调的模式</span>
|
||||
<el-dropdown @command="handleCommand2($event, 22042)">
|
||||
<div class="el-dropdown-link">
|
||||
<input
|
||||
@ -101,16 +123,23 @@
|
||||
</div>
|
||||
<div class="title-tips-bold">自动设置</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-btn">
|
||||
<div
|
||||
class="btn btn-w80"
|
||||
@click="changeIndexOpen(0)"
|
||||
:class="actList1[0] == '1' ? 'blue' : 'off'"
|
||||
>
|
||||
{{ actList1[0] == "1" ? "有效" : "无效" }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-main-80">
|
||||
<span>目标值控制精度</span>
|
||||
<input
|
||||
@blur="blurChange10(22043, $event)"
|
||||
v-model="inputData[22043]"
|
||||
@input="changeCount10(22043, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span>PID采样时间 </span>
|
||||
<span>制热时段启用</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span></span><span></span><span></span><span></span><span></span>
|
||||
<span>工作时段</span>
|
||||
<input
|
||||
@blur="blurChange(22049, $event)"
|
||||
v-model="inputData[22049]"
|
||||
@ -118,21 +147,7 @@
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span>分钟</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span>空调制冷 加暖模式切换时间</span>
|
||||
<input
|
||||
@blur="blurChange(22044, $event)"
|
||||
v-model="inputData[22044]"
|
||||
@input="change(22044, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span>分钟 ,</span>
|
||||
<span>比例系数(P)</span>
|
||||
<span>:</span>
|
||||
<input
|
||||
@blur="blurChange(22050, $event)"
|
||||
v-model="inputData[22050]"
|
||||
@ -140,36 +155,7 @@
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-sel input-sel-w180">
|
||||
<span>空调设置风速</span>
|
||||
<el-dropdown @command="handleCommand1($event, 22045)">
|
||||
<div class="el-dropdown-link">
|
||||
<input
|
||||
v-model="inputDataNew[22045]"
|
||||
type="text"
|
||||
class="input-input"
|
||||
placeholder="无"
|
||||
/>
|
||||
<div class="arrow">
|
||||
<img src="../../assets/image/arrow.png" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
<el-dropdown-menu class="input-menu-180" slot="dropdown">
|
||||
<el-dropdown-item
|
||||
v-for="(item, index) in typeList1"
|
||||
:key="index"
|
||||
:command="item.value"
|
||||
>{{ item.label }}</el-dropdown-item
|
||||
>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
// <span>(0是空调自动调整风速)。 </span>
|
||||
</div>
|
||||
<div class="input-main-80">
|
||||
<span>积分系数(I)</span>
|
||||
<span>-</span>
|
||||
<input
|
||||
@blur="blurChange(22051, $event)"
|
||||
v-model="inputData[22051]"
|
||||
@ -177,19 +163,7 @@
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span>空调调整间隔时间</span>
|
||||
<input
|
||||
@blur="blurChange(22046, $event)"
|
||||
v-model="inputData[22046]"
|
||||
@input="change(22046, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span>微分系数(D) </span>
|
||||
<span>:</span>
|
||||
<input
|
||||
@blur="blurChange(22052, $event)"
|
||||
v-model="inputData[22052]"
|
||||
@ -200,17 +174,23 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-btn">
|
||||
<div
|
||||
class="btn btn-w80"
|
||||
@click="changeIndexOpen(1)"
|
||||
:class="actList1[1] == '1' ? 'blue' : 'off'"
|
||||
>
|
||||
{{ actList1[1] == "1" ? "有效" : "无效" }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-main-80">
|
||||
<span>空调设置最高温度值</span>
|
||||
<input
|
||||
@blur="blurChange10(22047, $event)"
|
||||
v-model="inputData[22047]"
|
||||
@input="changeCount10(22047, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span>℃ </span>
|
||||
<span>积分限制</span>
|
||||
<span>制冷时段启用</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span></span><span></span><span></span><span></span><span></span>
|
||||
<span>工作时段</span>
|
||||
<input
|
||||
@blur="blurChange(22053, $event)"
|
||||
v-model="inputData[22053]"
|
||||
@ -218,19 +198,173 @@
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span>:</span>
|
||||
<input
|
||||
@blur="blurChange(22054, $event)"
|
||||
v-model="inputData[22054]"
|
||||
@input="change(22054, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span>-</span>
|
||||
<input
|
||||
@blur="blurChange(22055, $event)"
|
||||
v-model="inputData[22055]"
|
||||
@input="change(22055, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span>:</span>
|
||||
<input
|
||||
@blur="blurChange(22056, $event)"
|
||||
v-model="inputData[22056]"
|
||||
@input="change(22056, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span>空调设置最低温度值</span>
|
||||
<span></span><span></span><span></span><span></span><span></span>
|
||||
<span>空调PID采样时间</span>
|
||||
<input
|
||||
@blur="blurChange10(22048, $event)"
|
||||
v-model="inputData[22048]"
|
||||
@input="changeCount10(22048, $event)"
|
||||
@blur="blurChange(22045, $event)"
|
||||
v-model="inputData[22045]"
|
||||
@input="change(22045, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span>℃ </span>
|
||||
<span>分钟</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span></span><span></span><span></span><span></span><span></span>
|
||||
<span>比例调节系数</span>
|
||||
<input
|
||||
@blur="blurChange(22046, $event)"
|
||||
v-model="inputData[22046]"
|
||||
@input="change(22046, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span class="tips"
|
||||
>(比例需求=【实时温度-目标温度】*10*比例调节系数)</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span></span><span></span><span></span><span></span><span></span>
|
||||
<span>积分调节系数</span>
|
||||
<input
|
||||
@blur="blurChange(22047, $event)"
|
||||
v-model="inputData[22047]"
|
||||
@input="change(22047, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span class="tips">(积分需求=累计积分*10*积分调节系数)</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span></span><span></span><span></span><span></span><span></span>
|
||||
<span>微分调节系数</span>
|
||||
<input
|
||||
@blur="blurChange(22048, $event)"
|
||||
v-model="inputData[22048]"
|
||||
@input="change(22048, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span class="tips">(微分需求=(这次差值-上次差值)*10*微分调节系数)</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span></span><span></span><span></span><span></span><span></span><span></span><span></span>
|
||||
<span class="tips">总PID输出=比例需求+积分需求+微分需求。(>=10000开始调节)</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span></span><span></span><span></span><span></span><span></span>
|
||||
<span>空调停机温度差值</span>
|
||||
<input
|
||||
@blur="blurChange10(22059, $event)"
|
||||
v-model="inputData[22059]"
|
||||
@input="changeCount10(22059, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span>℃</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span></span><span></span><span></span><span></span><span></span><span></span><span></span>
|
||||
<span class="tips">加热时,实时温度>目标温度+空调停机温度差值,空调停机</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span></span><span></span><span></span><span></span><span></span><span></span><span></span>
|
||||
<span class="tips">制冷时,实时温度<目标温度-空调停止温度差值,空调停机</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none" v-if="inputData[22042]==3">
|
||||
<div class="input-main-80">
|
||||
<span></span><span></span><span></span><span></span><span></span>
|
||||
<span>空调停机湿度差值</span>
|
||||
<input
|
||||
@blur="blurChange10(22060, $event)"
|
||||
v-model="inputData[22060]"
|
||||
@input="changeCount10(22060, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span>%RH</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none" v-if="inputData[22042]==3">
|
||||
<div class="input-main-80">
|
||||
<span></span><span></span><span></span><span></span><span></span><span></span><span></span>
|
||||
<span class="tips">实时温度<目标温度-空调停机温度差值,空调停机</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-btn">
|
||||
<div
|
||||
class="btn btn-w80"
|
||||
@click="changeIndexOpen(2)"
|
||||
:class="actList1[2] == '1' ? 'blue' : 'off'"
|
||||
>
|
||||
{{ actList1[2] == "1" ? "有效" : "无效" }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-main-80">
|
||||
<span>优先冷暖风机启动</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span></span><span></span><span></span><span></span><span></span>
|
||||
<span>冷暖风机达到最大输出能力后,仍然达不到目标值</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span></span><span></span><span></span><span></span><span></span>
|
||||
<input
|
||||
@blur="blurChange(22058, $event)"
|
||||
v-model="inputData[22058]"
|
||||
@input="change(22058, $event)"
|
||||
type="text"
|
||||
placeholder="0"
|
||||
/>
|
||||
<span>分钟后启动空调</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -240,8 +374,9 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
inputData: [],
|
||||
inputDataNew:[],
|
||||
inputDataNew: [],
|
||||
indexs: 1,
|
||||
actList1: [],
|
||||
loading: null,
|
||||
pageName: "空调",
|
||||
typeList1: [
|
||||
@ -257,6 +392,8 @@ export default {
|
||||
{ label: "空调自动调整", value: 0 },
|
||||
{ label: "制冷模式", value: 1 },
|
||||
{ label: "制热模式", value: 2 },
|
||||
{ label: "除湿模式", value: 3 },
|
||||
{ label: "送风模式", value: 4 },
|
||||
],
|
||||
};
|
||||
},
|
||||
@ -366,7 +503,7 @@ export default {
|
||||
this.inputDataNew[code] = el.label;
|
||||
}
|
||||
});
|
||||
this.inputData[code] = command;
|
||||
this.inputData[code] = command;
|
||||
var dataNum = {
|
||||
target: {
|
||||
value: command,
|
||||
@ -374,7 +511,7 @@ export default {
|
||||
};
|
||||
this.changeBtn(code, dataNum);
|
||||
},
|
||||
//制冷制热类型选择
|
||||
//制冷制热类型选择
|
||||
handleCommand2(command, code) {
|
||||
this.typeList2.forEach((el, index) => {
|
||||
if (el.value == command) {
|
||||
@ -417,6 +554,33 @@ export default {
|
||||
});
|
||||
return name;
|
||||
},
|
||||
// 空调时段限制
|
||||
changeIndexOpen(active) {
|
||||
if (this.actList1[active] == "1") {
|
||||
this.actList1[active] = "0";
|
||||
} else {
|
||||
this.actList1[active] = "1";
|
||||
}
|
||||
this.$forceUpdate();
|
||||
var revList = this.actList1.slice().reverse();
|
||||
var num = revList.join("");
|
||||
var dataNum = {
|
||||
target: {
|
||||
value: parseInt(num, 2),
|
||||
},
|
||||
};
|
||||
this.inputData[22057] = parseInt(num, 2);
|
||||
this.changeBtn(22057, dataNum);
|
||||
},
|
||||
getActive1() {
|
||||
this.actList1 = [];
|
||||
var num = this.inputData[22057];
|
||||
|
||||
var num1 = this.padString(num.toString(2), 3);
|
||||
var openListNew = [];
|
||||
openListNew = num1.split("");
|
||||
this.actList1 = openListNew.reverse();
|
||||
},
|
||||
dataInit() {
|
||||
this.loading = this.$loading({
|
||||
lock: true,
|
||||
@ -433,12 +597,15 @@ export default {
|
||||
if (res.data.code == 200) {
|
||||
this.inputData = JSON.parse(JSON.stringify(res.data.data));
|
||||
this.inputDataNew = JSON.parse(JSON.stringify(res.data.data));
|
||||
this.inputData[22047] = this.countData10(this.inputData[22047]);
|
||||
this.inputData[22043] = this.countData10(this.inputData[22043]);
|
||||
this.inputData[22048] = this.countData10(this.inputData[22048]);
|
||||
// this.inputData[22047] = this.countData10(this.inputData[22047]);
|
||||
this.inputData[22043] = this.countData(this.inputData[22043]);
|
||||
this.inputData[22044] = this.countData10(this.inputData[22044]);
|
||||
this.inputData[22059] = this.countData10(this.inputData[22059]);
|
||||
this.inputData[22060] = this.countData10(this.inputData[22060]);
|
||||
this.inputDataNew[22041] = this.getData1(this.inputData[22041]);
|
||||
this.inputDataNew[22042] = this.getData2(this.inputData[22042]);
|
||||
this.inputDataNew[22045] = this.getData1(this.inputData[22045]);
|
||||
this.getActive1();
|
||||
// this.inputDataNew[22045] = this.getData1(this.inputData[22045]);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -43,13 +43,13 @@
|
||||
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main-80">
|
||||
<span>工作时段限制</span>
|
||||
<span>工作时段</span>
|
||||
<input @blur="blurChange(22252, $event)" v-model="inputData[22252]" @input="change(22252, $event)"
|
||||
type="text" placeholder="0" />
|
||||
<span>:</span>
|
||||
<input @blur="blurChange(22253, $event)" v-model="inputData[22253]" @input="change(22253, $event)"
|
||||
type="text" placeholder="0" />
|
||||
<span></span>
|
||||
<span>-</span>
|
||||
<input @blur="blurChange(22254, $event)" v-model="inputData[22254]" @input="change(22254, $event)"
|
||||
type="text" placeholder="0" />
|
||||
<span>:</span>
|
||||
|
@ -203,7 +203,7 @@
|
||||
<input @blur="blurChange(20730, $event)" v-model="inputData[20730]" @input="change(20730, $event)"
|
||||
type="text" placeholder="0">
|
||||
</div>
|
||||
<div class="input-sel input-sel-w180">
|
||||
<!-- <div class="input-sel input-sel-w180">
|
||||
<span>模式选择</span>
|
||||
<el-dropdown @command="handleCommand1($event,20726)">
|
||||
<div class="el-dropdown-link">
|
||||
@ -215,9 +215,9 @@
|
||||
item.label }}</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="flex-view border-none shrink-none padding-none">
|
||||
<!-- <div class="flex-view border-none shrink-none padding-none">
|
||||
<div class="input-sel input-sel-w180">
|
||||
<span>空调模式选择 </span>
|
||||
<el-dropdown @command="handleCommand3($event,20753)">
|
||||
@ -231,7 +231,7 @@
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- <div class="flex-view border-none shrink-none padding-none">
|
||||
<div class="input-main-80">
|
||||
<span>CO2补气1-2组输出通道:</span>
|
||||
|
@ -33,7 +33,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-main-80">
|
||||
<span>工作时段限制:</span>
|
||||
<span>工作时段:</span>
|
||||
<input @blur="blurChange(startList[indexs-1]+2, $event)" v-model="inputData[startList[indexs-1]+2]" @input="change(startList[indexs-1]+2, $event)"
|
||||
type="text" placeholder="0">
|
||||
<span>:</span>
|
||||
|
@ -324,9 +324,9 @@
|
||||
<div class="sel-auto" v-if="item.count==4">
|
||||
送风模式
|
||||
</div>
|
||||
<div class="sel-auto" v-if="item.count==5">
|
||||
<!-- <div class="sel-auto" v-if="item.count==5">
|
||||
冷暖模式
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="status-fan status-btn">
|
||||
<div class="btn" :class="item.index == 1 ? 'blue' : 'off'">
|
||||
|
@ -45,7 +45,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-tips">工作时段限制</div>
|
||||
<div class="text-tips">工作时段</div>
|
||||
<div class="flex-view border-none">
|
||||
<div class="input-main-80">
|
||||
<input @blur="blurChange(21952, $event)" v-model="inputData[21952]" @input="change(21952, $event)"
|
||||
@ -169,10 +169,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-main-80">
|
||||
<span>温度大于</span>
|
||||
<span>温度大于(</span>
|
||||
<input @blur="blurChangeCount(21965, $event)" v-model="inputData[21965]" @input="changeCountData(21965, $event)"
|
||||
type="text" placeholder="0">
|
||||
<span>时,启动1#风机。</span>
|
||||
<span>+控温精度滞回带)时,启动1#风机。</span>
|
||||
</div>
|
||||
<div class="input-btn">
|
||||
<div class="btn btn-w80" @click="changeIndexOpen2(1)" :class="actList3[1] == '1' ? 'blue' : 'off'">
|
||||
@ -180,10 +180,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-main-80">
|
||||
<span>温度大于</span>
|
||||
<span>温度大于(</span>
|
||||
<input @blur="blurChangeCount(21966, $event)" v-model="inputData[21966]" @input="changeCountData(21966, $event)"
|
||||
type="text" placeholder="0">
|
||||
<span>时,启动2#风机。</span>
|
||||
<span>+控温精度滞回带)时,启动2#风机。</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
@ -193,10 +193,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-main-80">
|
||||
<span>温度大于</span>
|
||||
<span>温度大于(</span>
|
||||
<input @blur="blurChangeCount(21967, $event)" v-model="inputData[21967]" @input="changeCountData(21967, $event)"
|
||||
type="text" placeholder="0">
|
||||
<span>时,启动3#风机。</span>
|
||||
<span>+控温精度滞回带)时,启动3#风机。</span>
|
||||
</div>
|
||||
<div class="input-btn">
|
||||
<div class="btn btn-w80" @click="changeIndexOpen2(3)" :class="actList3[3] == '1' ? 'blue' : 'off'">
|
||||
@ -204,10 +204,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-main-80">
|
||||
<span>温度大于</span>
|
||||
<span>温度大于(</span>
|
||||
<input @blur="blurChangeCount(21968, $event)" v-model="inputData[21968]" @input="changeCountData(21968, $event)"
|
||||
type="text" placeholder="0">
|
||||
<span>时,启动4#风机。</span>
|
||||
<span>+控温精度滞回带)时,启动4#风机。</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
@ -217,10 +217,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-main-80">
|
||||
<span>温度大于</span>
|
||||
<span>温度大于(</span>
|
||||
<input @blur="blurChangeCount(21969, $event)" v-model="inputData[21969]" @input="changeCountData(21969, $event)"
|
||||
type="text" placeholder="0">
|
||||
<span>时,启动5#风机。</span>
|
||||
<span>+控温精度滞回带)时,启动5#风机。</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
Loading…
x
Reference in New Issue
Block a user