From b200eed05d5bff2e12a45331bdc062f4b00bebf7 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期四, 28 七月 2022 10:20:51 +0800 Subject: [PATCH] 列表样式 --- src/views/hashrate/CameraManage/CameraRules/index.vue | 25 ++++++++++++++++++------- 1 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/views/hashrate/CameraManage/CameraRules/index.vue b/src/views/hashrate/CameraManage/CameraRules/index.vue index 3100947..789c9f6 100644 --- a/src/views/hashrate/CameraManage/CameraRules/index.vue +++ b/src/views/hashrate/CameraManage/CameraRules/index.vue @@ -25,6 +25,7 @@ :InValidCount="`${PollData.RealTimeInvalid}`" :RunningCount="`${PollData.RealTimeRun}`" :NoDeal="`${PollData.RealTimeNoDeal}`" + image="realTime (2).png" ></HashrateCard> <!-- 杞绠楀姏淇℃伅 --> @@ -36,6 +37,7 @@ :InValidCount="`${PollData.PollInvalid}`" :RunningCount="`${PollData.PollRun}`" :NoDeal="`${PollData.PollNoDeal}`" + image="polling.png" ></HashrateCard> </div> </div> @@ -159,7 +161,7 @@ </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> @@ -178,7 +180,9 @@ <!-- 鎽勫儚鏈� --> <LinkageCameraBox :cameras="item.cameraIds" - @addLinkageRule="addLinkageRule(item.cameraIds)" + @addLinkageRule=" + addLinkageRule(item.cameraIds, item.camera_polygons) + " ></LinkageCameraBox> <div class="Anchor" :id="'linkage_camera' + index"></div> @@ -202,7 +206,7 @@ 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> @@ -216,7 +220,7 @@ ></LinkageCameraBox> <div class="empty"> - <img src="/images/hashrate/鑱斿姩鍦烘櫙绌洪〉闈�.png" alt="" /> + <img src="/images/hashrate/l_empty.png" alt="" /> <div class="des">鏆傛棤鑱斿姩鍦烘櫙</div> </div> </div> @@ -355,6 +359,7 @@ }, showNewLinkage: false, newLinkageIds: [], + newLinkPlg: null, // swiperOption: { // slidesPerView: 5, @@ -807,7 +812,9 @@ this.showAddBox = true; }, - addLinkageRule(ids) { + addLinkageRule(ids, camera_polygons) { + console.log(7979); + console.log(camera_polygons); if (ids.length < 2) { this.$message({ message: "璇疯嚦灏戦�夋嫨涓ゅ彴鎽勫儚鏈�", @@ -818,6 +825,7 @@ this.newLinkageIds = ids; this.ruleType = "linkage"; this.showAddBox = true; + this.newLinkPlg = camera_polygons; }, //鍥炲~鏂扮殑鐙珛鍦烘櫙 @@ -835,6 +843,9 @@ }); } else { //鑱斿姩鍦烘櫙 + if (this.newLinkPlg) { + newRule.data.camera_polygons = this.newLinkPlg; + } newRule.data.cameraIds = this.newLinkageIds; this.linkageRule.push(newRule.data); this.$nextTick(() => { @@ -1169,7 +1180,7 @@ .control { position: absolute; display: flex; - justify-content: end; + justify-content: flex-end; top: 20px; right: 20px; @@ -1230,7 +1241,7 @@ .control { position: absolute; display: flex; - justify-content: end; + justify-content: flex-end; top: 20px; right: 20px; -- Gitblit v1.8.0