| | |
| | | :class="activePage == i ? 'menu-item-active' : ''"
|
| | | v-for="(item, i) in tabList"
|
| | | :key="i"
|
| | | @click="openRight(item, i)"
|
| | | @click="openRight(i)"
|
| | | ref="leftbar"
|
| | | >
|
| | | <span class="icon iconfont">{{ item.icon }}</span>
|
| | | <div>
|
| | | <span class="icon iconfont">{{ item.icon }}</span>
|
| | | <span class="text">{{ item.name }}</span>
|
| | | </div>
|
| | | <span v-if="showStatus && i==2" class="status">已连接</span>
|
| | | </div>
|
| | | </div>
|
| | | <div class="net-right">
|
| | |
| | | <div class="name">{{ "网络" + item.index }}</div>
|
| | |
|
| | | <div class="right">
|
| | | <span class="icon iconfont good" v-if="item.lower_up"
|
| | | <span class="icon iconfont good" v-if="item.lower_up&&item.active"
|
| | | ></span
|
| | | >
|
| | | <span class="icon iconfont bad" v-else></span>
|
| | | <span class="icon iconfont bad" v-if="!item.lower_up&&item.active"></span>
|
| | | <el-switch
|
| | | v-model="item.active"
|
| | | active-color="rgba(61, 104, 225, 1)"
|
| | |
| | | ></el-switch>
|
| | | </div>
|
| | | </div>
|
| | |
|
| | | </div>
|
| | | <div class="wire-detail" v-if="activePage == 2 && inWireDetail">
|
| | | <div class="title">网络设置</div>
|
| | |
| | | }
|
| | | });
|
| | | },
|
| | | openRight(item, i) {
|
| | | openRight(i) {
|
| | | this.activePage = i;
|
| | | if (i == 1) {
|
| | | this.inWifiDetail = false;
|
| | |
| | | this.openWireDetail(item);
|
| | | });
|
| | | },
|
| | | },
|
| | | computed: {
|
| | | showStatus(){
|
| | | return this.wireArr.some((item) => item.lower_up==true)
|
| | | }
|
| | | },
|
| | | };
|
| | | </script>
|
| | |
| | | border-radius: 8px;
|
| | | line-height: 50px;
|
| | | box-sizing: border-box;
|
| | | font-size: 14px;
|
| | | font-size: 14px; cursor: pointer;
|
| | | padding: 0 20px;
|
| | | display: flex;
|
| | | justify-content: space-between;
|
| | | .icon {
|
| | | margin-right: 12px;
|
| | | font-size: 19px;
|
| | | margin-right: 8px;
|
| | | font-size: 18px;
|
| | | }
|
| | | .text {
|
| | | font-size: 16px;
|
| | | font-size: 15px;
|
| | | }
|
| | | }
|
| | | .menu-item-active {
|