shuishen
2023-03-24 9914124dc7d24616a0f96773409c70756b3ca010
重复点击避免
1 files modified
29 ■■■■■ changed files
src/views/activity/index.vue 29 ●●●●● patch | view | raw | blame | history
src/views/activity/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:17
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-03-22 16:11:13
 * @LastEditTime: 2023-03-24 16:44:07
 * @FilePath: \srs-police-affairs\src\views\activity\index.vue
 * @Description: 电子沙盘
 *
@@ -57,17 +57,17 @@
                            <div>
                                <div class="category">详情:</div>
                                <div class="category-value">{{ item.content }}</div>
                                                                                                                                                                                                                           </div>
                                                                                                                                                                                                                       </div>
                                                                                                                                                                                                                   </div>
                                                                                                                                                                                                               </div>
                                                                                                                                                                                                           </div>
                                                                                                                                                                                                           <div v-show="activityList == 0" class="no-data">暂无数据</div>
                                                                                                                                                                                                       </div>
                                                                                                                                                                                                       <div class="pages all-pagination-sty">
                                                                                                                                                                                                           <el-pagination background layout="prev, pager, next" :page-size="pagesize" :page-count="pagesCount"
                                                                                                                                                                                                               :current-page="currentPage" @current-change="handleCurrentChange"></el-pagination>
                                                                                                                                                                                                       </div>
                                                                                                                                                                                           </div> -->
                                                                                                                                                                                                                   <div v-show="activityList == 0" class="no-data">暂无数据</div>
                                                                                                                                                                                                               </div>
                                                                                                                                                                                                               <div class="pages all-pagination-sty">
                                                                                                                                                                                                                   <el-pagination background layout="prev, pager, next" :page-size="pagesize" :page-count="pagesCount"
                                                                                                                                                                                                                       :current-page="currentPage" @current-change="handleCurrentChange"></el-pagination>
                                                                                                                                                                                                               </div>
                                                                                                                                                                                                   </div> -->
            <el-collapse v-model="activeActivityIndex" accordion @change="handleActivityChange" class="activity-list">
                <el-collapse-item v-for="item in activityList" :name="item.id" :key="item.id">
@@ -659,6 +659,8 @@
            plotPointPositionStr: '',
            pointAreaWidth: 100,
            dataTreeCheckedNodes: [],
            currentTreeItem: ''
        }
    },
@@ -727,12 +729,15 @@
    methods: {
        // 展开活动列表面板
        handleActivityChange (val) {
            if (this.currentTreeItem == val) return
            if (!val) return
            let unfoldingItem = this.activityList.find((item) => {
                if (item.id === val) {
                    return item
                }
            })
            this.currentTreeItem = val
            this.activityListClick(unfoldingItem, val)
        },
@@ -760,7 +765,7 @@
                let positionStr = position.slice(11, position.length - 1)
                lng = Number(positionStr.split(",")[0].split(' ')[0])
                lat = Number(positionStr.split(",")[0].split(' ')[1])
                console.log(position,positionStr, lng, lat)
                console.log(position, positionStr, lng, lat)
            }
            this.$EventBus.$emit('toPosition', {
                siteJd: lng,
@@ -872,7 +877,7 @@
            })
            this.$EventBus.$emit('mapClearLayer', {
                layerName: 'polygonLayer',
                layerName: 'polygonWallLayer',
                type: 'VectorLayer'
            })