| | |
| | | <span |
| | | class="iconfont option" |
| | | @click="joinCluster(scope.row)" |
| | | v-if="scope.row.clusterId" |
| | | v-if="!scope.row.clusterId" |
| | | :class="{ disable: scope.row.isOnline != 1 }" |
| | | ></span |
| | | > |
| | | <!-- 退出 --> |
| | | <span class="iconfont option" @click="quitCluster(scope.row)" v-else |
| | | <span |
| | | class="iconfont option" |
| | | @click="quitCluster(scope.row)" |
| | | v-else |
| | | :class="{ disable: scope.row.isOnline != 1 }" |
| | | ></span |
| | | > |
| | | <!-- 算法详情 --> |
| | | <span class="iconfont option" @click="algorithmDetail(scope.row)" |
| | | <span |
| | | class="iconfont option" |
| | | :class="{ disable: scope.row.isOnline != 1 }" |
| | | @click="algorithmDetail(scope.row)" |
| | | ></span |
| | | > |
| | | <!-- 设备详情 --> |
| | | <span class="iconfont option" @click="checkDetail(scope.row)" |
| | | <span |
| | | class="iconfont option" |
| | | :class="{ disable: scope.row.isOnline != 1 }" |
| | | @click="checkDetail(scope.row)" |
| | | ></span |
| | | > |
| | | <!-- 解绑 --> |
| | | <span class="iconfont option" @click="Untying(scope.row)" |
| | | <span |
| | | class="iconfont option" |
| | | @click="Untying(scope.row)" |
| | | :class="{ disable: scope.row.isOnline != 1 }" |
| | | ></span |
| | | > |
| | | </template> |
| | |
| | | |
| | | // 跳到设备详情 |
| | | checkDetail(row) { |
| | | if (row.isOnline != 1) { |
| | | return; |
| | | } |
| | | this.$router.push({ |
| | | path: "/equipmentDetail", |
| | | query: { |
| | |
| | | |
| | | // 跳到算法详情 |
| | | algorithmDetail(row) { |
| | | if (row.isOnline != 1) { |
| | | return; |
| | | } |
| | | this.$router.push({ |
| | | path: "/algorithmDetail", |
| | | query: { |
| | |
| | | |
| | | // 查询列表 |
| | | searchingBtn() { |
| | | let param = { |
| | | page: this.page, |
| | | size: this.size, |
| | | startTime: this.searchTime[0], |
| | | endTime: this.searchTime[1], |
| | | clusterId: this.cluster, |
| | | inputText: this.inputText, |
| | | }; |
| | | let param = {}; |
| | | |
| | | if (!this.searchTime) { |
| | | param = { |
| | | page: this.page, |
| | | size: this.size, |
| | | startTime: "", |
| | | endTime: "", |
| | | clusterId: this.cluster, |
| | | inputText: this.inputText, |
| | | }; |
| | | } else { |
| | | param = { |
| | | page: this.page, |
| | | size: this.size, |
| | | startTime: this.searchTime[0], |
| | | endTime: this.searchTime[1], |
| | | clusterId: this.cluster, |
| | | inputText: this.inputText, |
| | | }; |
| | | } |
| | | |
| | | findDevList(param) |
| | | .then((res) => { |
| | | this.dataList = res.data.list; |
| | |
| | | |
| | | //解绑按钮 |
| | | Untying(row) { |
| | | if (row.isOnline != 1) { |
| | | return; |
| | | } |
| | | this.unbindId = row.devId; |
| | | this.isShowUnbind = true; |
| | | }, |
| | |
| | | |
| | | //解绑成功回调 |
| | | reflash() { |
| | | console.log("1111"); |
| | | this.isShowUnbind = false; |
| | | this.searchingBtn(); |
| | | }, |
| | |
| | | |
| | | //退出集群 |
| | | quitCluster(equipment) { |
| | | if (equipment.isOnline != 1) { |
| | | return; |
| | | } |
| | | this.activeEquipment = equipment; |
| | | this.showQuit = true; |
| | | }, |
| | | |
| | | //加入集群 |
| | | joinCluster(equipment) { |
| | | if (equipment.isOnline != 1) { |
| | | return; |
| | | } |
| | | this.activeEquipment = equipment; |
| | | this.showJoin = true; |
| | | }, |
| | |
| | | font-size: 24px; |
| | | color: rgb(0, 101, 255); |
| | | cursor: pointer; |
| | | |
| | | &.disable { |
| | | color: #666; |
| | | cursor: default; |
| | | } |
| | | } |
| | | } |
| | | |