Browse Source

* 火灾蔓延页面详情资源左右箭头问题

JX.LI 1 năm trước cách đây
mục cha
commit
399c8c0fa1
2 tập tin đã thay đổi với 5 bổ sung4 xóa
  1. 1 1
      src/components/leftRightSwiperScroll.vue
  2. 4 3
      src/views/firespread.vue

+ 1 - 1
src/components/leftRightSwiperScroll.vue

@@ -29,7 +29,7 @@
       },
       data() {
         return {
-          showRightIcon: false, // 是否显示右箭头
+          showRightIcon: true, // 是否显示右箭头
           swiperScrollWidth: 0, // 盒子的宽度
           swiperScrollContentWidth: 0, // 内容的宽度
           maxClickNum: 0, // 最大点击次数

+ 4 - 3
src/views/firespread.vue

@@ -2077,12 +2077,12 @@ export default {
           obj.type = data.type;
           obj.count = data.num;
           obj.icon = icon;
-          _this.resourcesList.push(obj);
+          _this.resourcesList1.push(obj);
           console.log("icon_" + (index + 1) + "=", icon);
           //每个图标对应固定颜色
-          _this.$set(_this.resourcesList[index], "bg", getIconBg(icon));
+          _this.$set(_this.resourcesList1[index], "bg", getIconBg(icon));
         });
-        _this.resourcesList.push({
+        _this.resourcesList1.push({
           resourceName: "摄像头",
           type: "sxt",
           count: "1",
@@ -2344,6 +2344,7 @@ export default {
     /************************************责任制-结束****************************************/
     showEventdetailsdialog() {
       this.eventDialog = false;
+      this.cancelEventShow()
       this.$emit('showEventDialog', this.eventCode);
     },
     showheatPlotting() {