| | |
| | | <div> |
| | | <div class="category">活动类型:</div> |
| | | <div class="category-value"> |
| | | <el-select size="small" v-model="activityType" placeholder="请选择" @change="activityTypeChange"> |
| | | <el-option v-for="item in activityOptions" :key="item.dictKey" :label="item.dictValue" |
| | | :value="item.dictKey" class="activity-option"></el-option> |
| | | <el-select |
| | | size="small" |
| | | v-model="activityType" |
| | | placeholder="请选择" |
| | | @change="activityTypeChange" |
| | | > |
| | | <el-option |
| | | v-for="item in activityOptions" |
| | | :key="item.dictKey" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey" |
| | | class="activity-option" |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | |
| | | placeholder="选择日期" |
| | | style="width:268px" |
| | | ></el-date-picker>--> |
| | | <el-date-picker v-model="selectTime" type="daterange" align="right" unlink-panels |
| | | format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" range-separator="至" |
| | | start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions" |
| | | @change="activityTimeChange"></el-date-picker> |
| | | <el-date-picker |
| | | v-model="selectTime" |
| | | type="daterange" |
| | | align="right" |
| | | unlink-panels |
| | | format="yyyy-MM-dd HH:mm:ss" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | :picker-options="pickerOptions" |
| | | @change="activityTimeChange" |
| | | ></el-date-picker> |
| | | </div> |
| | | </div> |
| | | |
| | | <div> |
| | | <div class="category">活动名称:</div> |
| | | <div class="category-value"> |
| | | <input type="text" placeholder="请输入活动名称" v-model="searchActivity" class="category-input" |
| | | @input="inputChange" /> |
| | | <input |
| | | type="text" |
| | | placeholder="请输入活动名称" |
| | | v-model="searchActivity" |
| | | class="category-input" |
| | | @input="inputChange" |
| | | /> |
| | | <button class="category-button el-icon-search" @click="searchClick"></button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="result-content"> |
| | | <div class="table-box"> |
| | | <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 |
| | | 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 class="category">活动时间:</div> |
| | | <div class="category-value">{{ item.startTime }} 至 {{ item.endTime }}</div> |
| | | <div |
| | | class="category-value" |
| | | >{{ item.startTime }} 至 {{ item.endTime }}</div> |
| | | </div> |
| | | <div> |
| | | <div class="category">活动详情:</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" |
| | | :current-page="currentPage" @current-change="handleCurrentChange"></el-pagination> |
| | | <el-pagination |
| | | background |
| | | layout="prev, pager, next" |
| | | :page-size="pagesize" |
| | | :page-count="pagesCount" |
| | | :current-page="currentPage" |
| | | @current-change="handleCurrentChange" |
| | | ></el-pagination> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <ul> |
| | | <li> |
| | | <button @click="draw('billboard', 'policeman')"> |
| | | <img src="../../../public/img/icon/police-people-btn.png" style="height:100%" /> |
| | | <img |
| | | src="../../../public/img/icon/police-people-btn.png" |
| | | style="height:100%" |
| | | /> |
| | | </button> |
| | | </li> |
| | | <li> |
| | |
| | | </div> |
| | | <div class="row-box"> |
| | | <div class="category">活动时间:</div> |
| | | <div class="category-value">{{ activityDetails.startTime }} 至 {{ activityDetails.endTime }}</div> |
| | | <div |
| | | class="category-value" |
| | | >{{ activityDetails.startTime }} 至 {{ activityDetails.endTime }}</div> |
| | | </div> |
| | | <div class="row-box"> |
| | | <div class="category">活动内容:</div> |
| | |
| | | <div class="row-box"> |
| | | <div class="category">应急预案:</div> |
| | | <div class="category-value"> |
| | | <el-switch v-model="polylineSwitch" @change="switchChange" active-color="#13ce66" |
| | | inactive-color="#ccc"></el-switch> |
| | | <el-switch |
| | | v-model="polylineSwitch" |
| | | @change="switchChange" |
| | | active-color="#13ce66" |
| | | inactive-color="#ccc" |
| | | ></el-switch> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="row-box"> |
| | | <div class="category">巡逻路线:</div> |
| | | <div class="category-value"> |
| | | <el-switch v-model="polylineBtnSwitch" @change="switchBtnChange" active-color="#13ce66" |
| | | inactive-color="#ccc"></el-switch> |
| | | <el-switch |
| | | v-model="polylineBtnSwitch" |
| | | @change="switchBtnChange" |
| | | active-color="#13ce66" |
| | | inactive-color="#ccc" |
| | | ></el-switch> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </ul> |
| | | </div> |
| | | |
| | | <el-dialog :title="policeChooseTitle" :modal="false" :visible.sync="policeChooseVisible" |
| | | :before-close="policeChooseBeforeClose" :close-on-click-modal="true" class="choose-police-box"> |
| | | <el-dialog |
| | | :title="policeChooseTitle" |
| | | :modal="false" |
| | | :visible.sync="policeChooseVisible" |
| | | :before-close="policeChooseBeforeClose" |
| | | :close-on-click-modal="true" |
| | | class="choose-police-box" |
| | | > |
| | | <div> |
| | | <el-select size="small" v-model="policeType" placeholder="请选择"> |
| | | <el-option v-for="item in policeOption" :key="item.value" :label="item.label" |
| | | :value="item.value"></el-option> |
| | | <el-option |
| | | v-for="item in policeOption" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | <el-button @click="determine">确定</el-button> |
| | | <el-button @click="cancel">取消</el-button> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getSecurityList, getPoliceList, getCarList, addCarAndRange, addActivityPolice, getSecurityPoliceList, getSecurityCarList, updateActivityPolice, updateActivityCar, getServiceDictionary, getActivityType } from '@/api/activity/index.js' |
| | | import { getSecurityList, getPoliceList, getCarList, addCarAndRange, addActivityPolice, getSecurityPoliceList, getSecurityCarList, updateActivityPolice, updateActivityCar, getServiceDictionary, getActivityType, addSecurityPlot, getSecurityPlotList } from '@/api/activity/index.js' |
| | | |
| | | let analyseLayer = null |
| | | let analysePolygon = null |
| | |
| | | getActivityType(activityType[0].id).then(res => { |
| | | this.activityOptions.push(...res.data.data) |
| | | }) |
| | | console.log(this.activityOptions, 2233) |
| | | }) |
| | | }, |
| | | |
| | |
| | | id: item.id, |
| | | policemanId: item.policemanId |
| | | }, |
| | | incident: this.overlayTypeClick |
| | | // incident: this.overlayTypeClick |
| | | }) |
| | | } else if (item.type == 2) { |
| | | let positionNewArr = this.convertPolylineOrPolygonPositionDate(item.position, item.type) |
| | |
| | | type: 'VectorLayer' |
| | | }) |
| | | getSecurityCarList(securityId).then(res => { |
| | | console.log(res.data.data, 3333) |
| | | res.data.data.forEach(item => { |
| | | if (item.type == 1) { |
| | | console.log(item, 124) |
| | | let positionNewArr = this.convertPolylineOrPolygonPositionDate(item.position, item.type) |
| | | this.$EventBus.$emit('layerPolylineAdd', { |
| | | layerName: 'newCarDrawLayers', |
| | |
| | | }) |
| | | this.getSecurityPoliceList(item.id) |
| | | this.getSecurityCarList(item.id) |
| | | this.getSecurityPlotList(item.id) |
| | | if (this.currentClickIndex !== '' && this.currentClickIndex == index) { |
| | | return |
| | | } |
| | |
| | | position += item._lng + ' ' + item._lat + ',' |
| | | }) |
| | | position = position.slice(0, position.length - 1) |
| | | that.addActivityPolice(this.policeType, position, this.showingSecurityId, 1) |
| | | that.addCarAndRange('', position, that.showingSecurityId, 1) |
| | | } |
| | | } |
| | | }) |
| | |
| | | arrowPlot && arrowPlot.draw(type, overlay => { |
| | | if (overlay) { |
| | | console.log(overlay._positions, 123) |
| | | let plotType = '' |
| | | if (type == 'attack_arrow') { |
| | | plotType = 1 |
| | | } else if (type == 'double_arrow') { |
| | | plotType = 2 |
| | | } else if (type == 'fine_arrow') { |
| | | plotType = 3 |
| | | } else if (type == 'tailed_attack_arrow') { |
| | | plotType = 4 |
| | | } |
| | | let position = '' |
| | | overlay._positions.forEach(item => { |
| | | position += item._lng + ' ' + item._lat + ',' |
| | | }) |
| | | position = position.slice(0, position.length - 1) |
| | | console.log(position, 123445) |
| | | |
| | | |
| | | |
| | | |
| | | drawArrowLayers.addOverlay(overlay) |
| | | plot.edit(overlay) |
| | | plot.edit(overlay, (e) => { |
| | | this.addSecurityPlot(this.showingSecurityId, '102.371 35.0049,102.249 33.8775,102.227 33.9519,102.34 35.0212', '1') |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | |
| | | arrangeDraw () { |
| | | console.log(123) |
| | | this.arrangeVisible = true |
| | | }, |
| | | |
| | |
| | | this.policeType = e.overlay.attrParams.carId |
| | | } |
| | | this.policeChooseVisible = true |
| | | }, |
| | | |
| | | // 保存活动标绘箭头 |
| | | addSecurityPlot (securityId, position, type) { |
| | | addSecurityPlot(securityId, position, type).then(res => { |
| | | console.log(res, '保存标绘返回值') |
| | | }) |
| | | }, |
| | | |
| | | // 获取活动标绘箭头列表 |
| | | getSecurityPlotList (securityId) { |
| | | getSecurityPlotList(securityId).then(res => { |
| | | console.log(res, '标绘列表') |
| | | }) |
| | | } |
| | | }, |
| | | |
| | |
| | | .search-box { |
| | | padding: 0 10px; |
| | | |
| | | &>div:first-child { |
| | | & > div:first-child { |
| | | margin-top: 0; |
| | | } |
| | | |
| | | &>div { |
| | | & > div { |
| | | margin-top: 10px; |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | font-size: 14px; |
| | | |
| | | .row-content { |
| | | &>div { |
| | | & > div { |
| | | display: flex; |
| | | line-height: 28px; |
| | | |
| | |
| | | white-space: nowrap; |
| | | transform: translate(-50%, 0); |
| | | |
| | | &>div { |
| | | & > div { |
| | | display: flex; |
| | | } |
| | | |
| | |
| | | line-height: 28px; |
| | | display: flex; |
| | | |
| | | &>div { |
| | | & > div { |
| | | text-align: left; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | .row-btn-box { |
| | | |
| | | // height: 30px; |
| | | :deep(.el-button) { |
| | | // padding: 7px 20px; |
| | |
| | | } |
| | | |
| | | :deep(.el-button:hover) { |
| | | background-color: #409EFF; |
| | | background-color: #409eff; |
| | | } |
| | | } |
| | | } |
| | |
| | | line-height: 28px; |
| | | display: flex; |
| | | |
| | | &>div { |
| | | & > div { |
| | | text-align: left; |
| | | } |
| | | |