| | |
| | | :InValidCount="`${PollData.RealTimeInvalid}`" |
| | | :RunningCount="`${PollData.RealTimeRun}`" |
| | | :NoDeal="`${PollData.RealTimeNoDeal}`" |
| | | image="realTime (2).png" |
| | | ></HashrateCard> |
| | | |
| | | <!-- 轮询算力信息 --> |
| | |
| | | :InValidCount="`${PollData.PollInvalid}`" |
| | | :RunningCount="`${PollData.PollRun}`" |
| | | :NoDeal="`${PollData.PollNoDeal}`" |
| | | image="polling.png" |
| | | ></HashrateCard> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="SeparateRules" @click="selectMultiple(false)"> |
| | | <div class="title">独立场景</div> |
| | | <div class="control"> |
| | | <i class="iconfont" @click="openSdkBox($event)"></i> |
| | | <i class="iconfont"></i> |
| | | <i class="iconfont"></i> |
| | | <el-tooltip |
| | | class="item" |
| | | effect="dark" |
| | | content="算法事件" |
| | | placement="top" |
| | | > |
| | | <i class="iconfont" @click="openSdkBox($event)"></i> |
| | | </el-tooltip> |
| | | <el-tooltip |
| | | class="item" |
| | | effect="dark" |
| | | content="数据流传" |
| | | placement="top" |
| | | > |
| | | <i class="iconfont"></i> |
| | | </el-tooltip> |
| | | <el-tooltip |
| | | class="item" |
| | | effect="dark" |
| | | content="模板助手" |
| | | placement="top" |
| | | > |
| | | <i class="iconfont"></i> |
| | | </el-tooltip> |
| | | </div> |
| | | |
| | | <div class="content"> |
| | |
| | | </template> |
| | | |
| | | <div class="empty" v-else> |
| | | <img src="/images/hashrate/独立场景空页面.png" alt="" /> |
| | | <img src="/images/hashrate/s_empty.png" alt="" /> |
| | | <div class="des">暂无独立场景</div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="linkageRule" @click="selectMultiple(true)"> |
| | | <div class="title">联动场景</div> |
| | | <div class="control"> |
| | | <i class="iconfont" @click="showSdkBox = true"></i> |
| | | <i class="iconfont"></i> |
| | | <i class="iconfont"></i> |
| | | <el-tooltip |
| | | class="item" |
| | | effect="dark" |
| | | content="算法事件" |
| | | placement="top" |
| | | > |
| | | <i class="iconfont" @click="showSdkBox = true"></i> |
| | | </el-tooltip> |
| | | <el-tooltip |
| | | class="item" |
| | | effect="dark" |
| | | content="数据流传" |
| | | placement="top" |
| | | > |
| | | <i class="iconfont"></i> |
| | | </el-tooltip> |
| | | <el-tooltip |
| | | class="item" |
| | | effect="dark" |
| | | content="模板助手" |
| | | placement="top" |
| | | > |
| | | <i class="iconfont"></i> |
| | | </el-tooltip> |
| | | </div> |
| | | <template v-if="linkageRule.length > 0"> |
| | | <div class="content" v-for="(item, index) in linkageRule" :key="index"> |
| | | <!-- 摄像机 --> |
| | | <LinkageCameraBox |
| | | :cameras="item.cameraIds" |
| | | @addLinkageRule="addLinkageRule(item.cameraIds)" |
| | | @addLinkageRule=" |
| | | addLinkageRule(item.cameraIds, item.camera_polygons) |
| | | " |
| | | ></LinkageCameraBox> |
| | | <div class="Anchor" :id="'linkage_camera' + index"></div> |
| | | |
| | |
| | | class="empty" |
| | | v-if="linkageRule.length <= 0 && !TreeDataPool.multiple" |
| | | > |
| | | <img src="/images/hashrate/联动场景空页面.png" alt="" /> |
| | | <img src="/images/hashrate/l_empty.png" alt="" /> |
| | | <div class="des">暂无联动场景</div> |
| | | </div> |
| | | |
| | |
| | | ></LinkageCameraBox> |
| | | |
| | | <div class="empty"> |
| | | <img src="/images/hashrate/联动场景空页面.png" alt="" /> |
| | | <img src="/images/hashrate/l_empty.png" alt="" /> |
| | | <div class="des">暂无联动场景</div> |
| | | </div> |
| | | </div> |
| | |
| | | }, |
| | | showNewLinkage: false, |
| | | newLinkageIds: [], |
| | | newLinkPlg: null, |
| | | |
| | | // swiperOption: { |
| | | // slidesPerView: 5, |
| | |
| | | this.showAddBox = true; |
| | | }, |
| | | |
| | | addLinkageRule(ids) { |
| | | addLinkageRule(ids, camera_polygons) { |
| | | console.log(7979); |
| | | console.log(camera_polygons); |
| | | if (ids.length < 2) { |
| | | this.$message({ |
| | | message: "请至少选择两台摄像机", |
| | |
| | | this.newLinkageIds = ids; |
| | | this.ruleType = "linkage"; |
| | | this.showAddBox = true; |
| | | this.newLinkPlg = camera_polygons; |
| | | }, |
| | | |
| | | //回填新的独立场景 |
| | |
| | | }); |
| | | } else { |
| | | //联动场景 |
| | | if (this.newLinkPlg) { |
| | | newRule.data.camera_polygons = this.newLinkPlg; |
| | | } |
| | | newRule.data.cameraIds = this.newLinkageIds; |
| | | this.linkageRule.push(newRule.data); |
| | | this.$nextTick(() => { |
| | |
| | | .control { |
| | | position: absolute; |
| | | display: flex; |
| | | justify-content: end; |
| | | justify-content: flex-end; |
| | | top: 20px; |
| | | right: 20px; |
| | | |
| | |
| | | .control { |
| | | position: absolute; |
| | | display: flex; |
| | | justify-content: end; |
| | | justify-content: flex-end; |
| | | top: 20px; |
| | | right: 20px; |
| | | |