pull/120/head
孙萌 2024-03-04 09:16:20 +08:00
parent fa1f3d27f1
commit 497bb6932a
5 changed files with 19 additions and 4 deletions

View File

@ -438,6 +438,7 @@
.index .header .header-right > img { .index .header .header-right > img {
width: 40px; width: 40px;
height: 40px; height: 40px;
flex-shrink: 0;
} }
.index .header .header-right .user-data { .index .header .header-right .user-data {
@ -445,7 +446,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
padding: 0 20px 0 10px; padding: 0 5px 0 10px;
margin-right: 20px; margin-right: 20px;
border-right: 1px solid rgba(255, 255, 255, 0.2); border-right: 1px solid rgba(255, 255, 255, 0.2);
} }
@ -470,6 +471,7 @@
background: url(../image/login-out.png) no-repeat center; background: url(../image/login-out.png) no-repeat center;
background-size: 100% 100%; background-size: 100% 100%;
cursor: pointer; cursor: pointer;
flex-shrink: 0;
} }
.index .header .header-right .login-out:hover { .index .header .header-right .login-out:hover {

File diff suppressed because one or more lines are too long

View File

@ -466,6 +466,7 @@
>img { >img {
width: 40px; width: 40px;
height: 40px; height: 40px;
flex-shrink: 0;
} }
.user-data { .user-data {
@ -473,7 +474,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
padding: 0 20px 0 10px; padding: 0 5px 0 10px;
margin-right: 20px; margin-right: 20px;
border-right: 1px solid rgba(255, 255, 255, 0.2); border-right: 1px solid rgba(255, 255, 255, 0.2);
@ -498,7 +499,7 @@
background: url(../image/login-out.png) no-repeat center; background: url(../image/login-out.png) no-repeat center;
background-size: 100% 100%; background-size: 100% 100%;
cursor: pointer; cursor: pointer;
flex-shrink: 0;
&:hover { &:hover {
background: url(../image/login-out-hover.png) no-repeat center; background: url(../image/login-out-hover.png) no-repeat center;
background-size: 100% 100%; background-size: 100% 100%;

View File

@ -773,6 +773,12 @@ export default {
}; };
}, },
watch: { watch: {
'$store.state.equipmentIndex': function(newValue, oldValue) {
const that = this;
setTimeout(() => {
that.dataInit();
}, 0);
},
$route(newVal, oldVal) { $route(newVal, oldVal) {
const that = this; const that = this;
this.indexs = this.$route.query.id ? this.$route.query.id : 1; this.indexs = this.$route.query.id ? this.$route.query.id : 1;

View File

@ -271,6 +271,9 @@
<span>湿帘外翻窗1模式:</span> <span>湿帘外翻窗1模式:</span>
</div> </div>
<div class="input-btn "> <div class="input-btn ">
<div class="btn" @click="changeOpen(0,21974)" :class="inputData[21974] == 0 ? 'blue' : 'green'">
无效
</div>
<div class="btn" @click="changeOpen(1,21974)" :class="inputData[21974] == 1 ? 'blue' : 'green'"> <div class="btn" @click="changeOpen(1,21974)" :class="inputData[21974] == 1 ? 'blue' : 'green'">
<img src="../../assets/image/irrigateSet2.png" alt="" />自动运行 <img src="../../assets/image/irrigateSet2.png" alt="" />自动运行
</div> </div>
@ -318,6 +321,9 @@
<span>湿帘外翻窗2模式:</span> <span>湿帘外翻窗2模式:</span>
</div> </div>
<div class="input-btn "> <div class="input-btn ">
<div class="btn" @click="changeOpen(0,21979)" :class="inputData[21979] == 0 ? 'blue' : 'green'">
无效
</div>
<div class="btn" @click="changeOpen(1,21979)" :class="inputData[21979] == 1 ? 'blue' : 'green'"> <div class="btn" @click="changeOpen(1,21979)" :class="inputData[21979] == 1 ? 'blue' : 'green'">
<img src="../../assets/image/irrigateSet2.png" alt="" />自动运行 <img src="../../assets/image/irrigateSet2.png" alt="" />自动运行
</div> </div>