1 #109

Merged
xiaomeng merged 1 commits from pc-master into portal 2024-01-27 02:53:12 +00:00
9 changed files with 62 additions and 10 deletions

View File

@ -300,6 +300,12 @@
.table-title .title-text { .table-title .title-text {
font-size: 16px; font-size: 16px;
margin-left: 15px; margin-left: 15px;
display: flex;
align-items: center;
}
.table-title .title-text img {
margin-right: 5px;
} }
.index { .index {
@ -413,8 +419,16 @@
white-space: nowrap; white-space: nowrap;
} }
.index .header .header-warning {
width: 75px;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.index .header .header-right { .index .header .header-right {
width: 335px; width: 260px;
display: flex; display: flex;
align-items: center; align-items: center;
padding-right: 20px; padding-right: 20px;

View File

@ -327,6 +327,11 @@
.title-text { .title-text {
font-size: 16px; font-size: 16px;
margin-left: 15px; margin-left: 15px;
display: flex;
align-items: center;
img{
margin-right: 5px;
}
} }
} }
@ -440,9 +445,15 @@
} }
} }
.header-warning{
width: 75px;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.header-right { .header-right {
width: 335px; width: 260px;
display: flex; display: flex;
align-items: center; align-items: center;
padding-right: 20px; padding-right: 20px;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -4,7 +4,11 @@
<div class="header-left"> <div class="header-left">
<img src="../assets/image/logo.png" alt=""> <img src="../assets/image/logo.png" alt="">
</div> </div>
<div class="header-center"> <div class="header-center">
<div class="header-warning" v-if="statusData[1114]">
<img src="../assets/img/warning.gif" alt="">
</div>
<div @click="toRouter(item)" :class="item.routerList.indexOf(routerNow) != -1 ? 'active' : ''" <div @click="toRouter(item)" :class="item.routerList.indexOf(routerNow) != -1 ? 'active' : ''"
v-for="item, index in headerList" :key="index"> v-for="item, index in headerList" :key="index">
<div class="img"> <img :src="item.img" alt=""></div> <div class="img"> <img :src="item.img" alt=""></div>
@ -93,7 +97,8 @@ export default {
loading: true,// loading: true,//
IDTimer: null, IDTimer: null,
deviceId: '', deviceId: '',
limitUserId: [] limitUserId: [],
statusData:[]
} }
}, },
watch: { watch: {
@ -188,6 +193,7 @@ export default {
// //
getEqbyid(selTrue) { getEqbyid(selTrue) {
var userInfo =localStorage.getItem('userInfo')? JSON.parse(localStorage.getItem('userInfo')):{userid:-1} var userInfo =localStorage.getItem('userInfo')? JSON.parse(localStorage.getItem('userInfo')):{userid:-1}
var store=this.$store.state
this.api.getEqbyid(userInfo.userid).then((res) => { this.api.getEqbyid(userInfo.userid).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.$store.state.equipmentList = res.data.data.map((item, index) => { this.$store.state.equipmentList = res.data.data.map((item, index) => {
@ -242,9 +248,17 @@ export default {
}) })
this.gerRouter() this.gerRouter()
this.getByid() this.getByid()
var data = {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.getControlGetState(data).then(res=>{
if(res.data.code==200){
this.statusData = res.data.data;
} }
}) })
}
})
}, },
gerRouter() { gerRouter() {
var store = this.$store.state var store = this.$store.state

View File

@ -428,8 +428,7 @@ export default {
regAddress: code, regAddress: code,
num: el.target.value, num: el.target.value,
}; // }; //
if (this.timer) { if (store.nowInput != el.target.value) {
this.timer && clearInterval(this.timer);
this.changeData(data); this.changeData(data);
} }

View File

@ -92,8 +92,8 @@
<div class="table-title"> <div class="table-title">
<img src="../../assets/image/status.png" alt="" /> <img src="../../assets/image/status.png" alt="" />
设备运行状态 设备运行状态
<div class="title-text" v-if="sunrise">:{{ sunrise }}</div> <div class="title-text" v-if="sunrise"><img src="../../assets/img/sunrise.png" alt="">日出:{{ sunrise }}</div>
<div class="title-text" v-if="sunset">:{{ sunset }}</div> <div class="title-text" v-if="sunset"><img src="../../assets/img/sunset.png" alt="">日落:{{ sunset }}</div>
</div> </div>
<div class="flex-view border-none"> <div class="flex-view border-none">
<div class="status-view" v-for="item, index in statusList" :key="index"> <div class="status-view" v-for="item, index in statusList" :key="index">

View File

@ -58,6 +58,12 @@
<input @blur="blurChange(startList[indexs-1]+7, $event)" v-model="inputData[startList[indexs-1]+7]" @input="change(startList[indexs-1]+7, $event)" <input @blur="blurChange(startList[indexs-1]+7, $event)" v-model="inputData[startList[indexs-1]+7]" @input="change(startList[indexs-1]+7, $event)"
type="text" placeholder="0"> type="text" placeholder="0">
<span></span> <span></span>
</div>
<div class="input-main input-main-w120">
<div>PID计算结果</div>
<input disabled v-model="statusData[1114+Number(indexs)]"
type="text" placeholder="0">
<span></span>
</div> </div>
</div> </div>
<div class="flex-view border-none padding-none"> <div class="flex-view border-none padding-none">
@ -193,6 +199,7 @@ export default {
data() { data() {
return { return {
inputData: [], inputData: [],
statusData:[],
startList: [21250, 21273, 21296, 21319],// startList: [21250, 21273, 21296, 21319],//
indexs: 1, indexs: 1,
actList1: [], actList1: [],
@ -330,6 +337,7 @@ export default {
var data = { var data = {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId, deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
}; };
var equipmentId = store.equipmentList[store.equipmentIndex - 1].deviceId
this.api.readskylight(data).then(res => { this.api.readskylight(data).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.inputData = res.data.data; this.inputData = res.data.data;
@ -344,6 +352,12 @@ export default {
this.getActive1() this.getActive1()
} }
}) })
this.api.getControlGetState(data).then(res=>{
if(res.data.code==200){
this.statusData = res.data.data;
}
})
}, },
// //
padString(str, length) { padString(str, length) {