| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2022-12-29 14:27:04 |
| | | * @LastEditTime: 2022-12-29 15:46:00 |
| | | * @FilePath: \srs-police-affairs\src\views\activity\index.vue |
| | | * @Description: 安保活动 |
| | | * |
| | |
| | | <template> |
| | | <div class="activity-page container"> |
| | | <div v-show="boxShow" class="container-content"> |
| | | <div class="title">活动信息</div> |
| | | <div class="title">安保活动</div> |
| | | <div class="search-box"> |
| | | <div> |
| | | <div class="category">活动类型:</div> |
| | |
| | | </div> |
| | | <div class="result-content"> |
| | | <div class="table-box"> |
| | | <div class="row-box" :class="{ on: currentClickIndex === index }" |
| | | <div v-show="activityList.length > 0" class="row-box" :class="{ on: currentClickIndex === index }" |
| | | v-for="(item, index) in activityList" :key="index" @click="activityListClick(item, index)"> |
| | | <div class="row-title">常规安保</div> |
| | | <div class="row-content"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div v-show="activityList == 0" class="no-data">暂无数据</div> |
| | | </div> |
| | | <div class="pages"> |
| | | <el-pagination background layout="prev, pager, next" :page-size="pagesize" :page-count="pagesCount" |
| | |
| | | </div> |
| | | |
| | | <div class="draw-btn-box" v-show="dialogVisible"> |
| | | <ul> |
| | | <li> |
| | | <button @click="draw('billboard', 'policeman')">警员</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('polyline', 'policeman')">警员路线</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('polygon', 'policeman')">警员范围</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('billboard', 'policecar')">警车</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('polyline', 'policecar')">警车路线</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('polygon', 'policecar')">警车范围</button> |
| | | </li> |
| | | </ul> |
| | | <div> |
| | | <span>警力资源:</span> |
| | | |
| | | <ul> |
| | | <li> |
| | | <button @click="draw('billboard', 'policeman')">警员</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('polyline', 'policeman')">警员路线</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('polygon', 'policeman')">警员范围</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('billboard', 'policecar')">警车</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('polyline', 'policecar')">警车路线</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('polygon', 'policecar')">警车范围</button> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | <div> |
| | | <span>作战标绘:</span> |
| | | |
| | | <ul> |
| | | <li> |
| | | <button @click="draw('billboard', 'policeman')">警员</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('polyline', 'policeman')">警员路线</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('polygon', 'policeman')">警员范围</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('billboard', 'policecar')">警车</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('polyline', 'policecar')">警车路线</button> |
| | | </li> |
| | | <li> |
| | | <button @click="draw('polygon', 'policecar')">警车范围</button> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | <div> |
| | | <span>撤离路线:</span> |
| | | <ul> |
| | | <li> |
| | | <el-button title="路线绘制" @click="draw('billboard', 'policeman')" icon="el-icon-my-route"> |
| | | </el-button> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="second-container" :class="{ 'spread': boxShow, 'take-back': !boxShow }"> |
| | |
| | | </div> |
| | | |
| | | <div class="row-box"> |
| | | <div class="category">开启轨迹:</div> |
| | | <div class="category">巡逻路线:</div> |
| | | <div class="category-value"> |
| | | <el-switch v-model="polylineBtnSwitch" @change="switchBtnChange" active-color="#13ce66" |
| | | inactive-color="#ccc"></el-switch> |
| | |
| | | ></el-input> |
| | | </div> |
| | | </div>--> |
| | | |
| | | <div class="row-box"> |
| | | <el-button> |
| | | 预案布置 |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="btn-box" v-show="isTrackBtnShow"> |
| | |
| | | let plot = undefined |
| | | let tc = undefined |
| | | let track = undefined |
| | | let loading = null |
| | | |
| | | export default { |
| | | data () { |
| | |
| | | this.getActivityType() |
| | | |
| | | this.getPoliceList() |
| | | |
| | | this.getCarList() |
| | | |
| | | this.getSecurityList(this.currentPage, this.pagesize) |
| | | }, |
| | | mounted () { |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | loading () { |
| | | loading = this.$loading({ |
| | | lock: true, |
| | | text: '拼命加载中', |
| | | spinner: 'el-icon-loading', |
| | | background: 'rgba(0, 0, 0, 0.7)' |
| | | }) |
| | | }, |
| | | |
| | | getActivityType () { |
| | | getServiceDictionary().then(response => { |
| | | const activityType = response.data.data.records.filter(item => item.code == "securityType") |
| | |
| | | |
| | | // 获取活动列表 |
| | | getSecurityList (current, size, type, name, startTime, endTime) { |
| | | this.loading() |
| | | |
| | | getSecurityList(current, size, type, name, startTime, endTime).then(res => { |
| | | this.activityList = res.data.data.records.map(item => { |
| | | item.startTime = item.startTime.substring(0, 16) |
| | |
| | | |
| | | return item |
| | | }) |
| | | |
| | | this.pagesCount = res.data.data.pages |
| | | |
| | | this.addActivityPoint() |
| | | |
| | | loading.close() |
| | | }) |
| | | }, |
| | | |
| | |
| | | |
| | | .draw-btn-box { |
| | | position: fixed; |
| | | bottom: 40px; |
| | | left: 50%; |
| | | bottom: 40px; |
| | | color: #fff; |
| | | background: $bg-one-color; |
| | | white-space: nowrap; |
| | | transform: translate(-50%, 0); |
| | | |
| | | &>div { |
| | | display: flex; |
| | | } |
| | | |
| | | ul { |
| | | display: flex; |
| | | |