Compare commits
No commits in common. "4bef7c1f909eb1a4643e90c50e7d7f5649a3f5fb" and "b2137d28344148626d7d1f0d91f0d31f450d1ea7" have entirely different histories.
4bef7c1f90
...
b2137d2834
@ -300,12 +300,6 @@
|
|||||||
.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 {
|
||||||
@ -419,16 +413,8 @@
|
|||||||
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: 260px;
|
width: 335px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
|
@ -327,11 +327,6 @@
|
|||||||
.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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -445,15 +440,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.header-warning{
|
|
||||||
width: 75px;
|
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
.header-right {
|
.header-right {
|
||||||
width: 260px;
|
width: 335px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.4 KiB |
@ -4,11 +4,7 @@
|
|||||||
<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>
|
||||||
@ -97,8 +93,7 @@ export default {
|
|||||||
loading: true,//页面加载
|
loading: true,//页面加载
|
||||||
IDTimer: null,
|
IDTimer: null,
|
||||||
deviceId: '',
|
deviceId: '',
|
||||||
limitUserId: [],
|
limitUserId: []
|
||||||
statusData:[]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -193,7 +188,6 @@ 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) => {
|
||||||
@ -248,17 +242,9 @@ 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
|
||||||
|
@ -428,7 +428,8 @@ export default {
|
|||||||
regAddress: code,
|
regAddress: code,
|
||||||
num: el.target.value,
|
num: el.target.value,
|
||||||
}; //避免开启多个计时器
|
}; //避免开启多个计时器
|
||||||
if (store.nowInput != el.target.value) {
|
if (this.timer) {
|
||||||
|
this.timer && clearInterval(this.timer);
|
||||||
this.changeData(data);
|
this.changeData(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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"><img src="../../assets/img/sunrise.png" alt="">日出:{{ sunrise }}</div>
|
<div class="title-text" v-if="sunrise">日出:{{ sunrise }}</div>
|
||||||
<div class="title-text" v-if="sunset"><img src="../../assets/img/sunset.png" alt="">日落:{{ sunset }}</div>
|
<div class="title-text" v-if="sunset">日落:{{ 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">
|
||||||
|
@ -58,12 +58,6 @@
|
|||||||
<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">
|
||||||
@ -199,7 +193,6 @@ 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: [],
|
||||||
@ -337,7 +330,6 @@ 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;
|
||||||
@ -352,12 +344,6 @@ 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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user