5 files modified
1 files added
| | |
| | | "vue-axios": "^3.3.7", |
| | | "vue-router": "^3.2.0", |
| | | "vue-seamless-scroll": "^1.1.23", |
| | | "vue-swatches": "^2.1.1", |
| | | "vuex": "^3.4.0" |
| | | }, |
| | | "devDependencies": { |
| | |
| | | "node": ">=4.0.0" |
| | | } |
| | | }, |
| | | "node_modules/vue-swatches": { |
| | | "version": "2.1.1", |
| | | "resolved": "https://registry.npmmirror.com/vue-swatches/-/vue-swatches-2.1.1.tgz", |
| | | "integrity": "sha512-YugkNbByxMz1dnx1nZyHSL3VSf/TnBH3/NQD+t8JKxPSqUmX87sVGBxjEaqH5IMraOLfVmU0pHCHl2BfXNypQg==" |
| | | }, |
| | | "node_modules/vue-template-compiler": { |
| | | "version": "2.7.14", |
| | | "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.14.tgz", |
| | |
| | | } |
| | | } |
| | | }, |
| | | "vue-swatches": { |
| | | "version": "2.1.1", |
| | | "resolved": "https://registry.npmmirror.com/vue-swatches/-/vue-swatches-2.1.1.tgz", |
| | | "integrity": "sha512-YugkNbByxMz1dnx1nZyHSL3VSf/TnBH3/NQD+t8JKxPSqUmX87sVGBxjEaqH5IMraOLfVmU0pHCHl2BfXNypQg==" |
| | | }, |
| | | "vue-template-compiler": { |
| | | "version": "2.7.14", |
| | | "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.14.tgz", |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | "vue-axios": "^3.3.7", |
| | | "vue-router": "^3.2.0", |
| | | "vue-seamless-scroll": "^1.1.23", |
| | | "vue-swatches": "^2.1.1", |
| | | "vuex": "^3.4.0" |
| | | }, |
| | | "devDependencies": { |
| | |
| | | "sass-loader": "^8.0.2", |
| | | "vue-template-compiler": "^2.6.11" |
| | | } |
| | | } |
| | | } |
| | |
| | | width: 120px; |
| | | } |
| | | |
| | | .vue-swatches__trigger { |
| | | height: 30px !important; |
| | | width: 30px !important; |
| | | border-radius: 6px !important; |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | line-height: countSizeVh(32); |
| | | } |
| | | |
| | | .vue-swatches__trigger { |
| | | height: countSizeVh(30) !important; |
| | | width: countSizeVh(30) !important; |
| | | border-radius: countSizeVh(6) !important; |
| | | } |
| | | |
| | | .units { |
| | | width: countSizeVw(60, 1920); |
| | |
| | | border: countSizeVh(1) solid rgb(0, 92, 169); |
| | | } |
| | | |
| | | .vue-swatches__trigger { |
| | | height: countSizeVh(30) !important; |
| | | width: countSizeVh(30) !important; |
| | | border-radius: countSizeVh(6) !important; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | height: countSizeVh(32); |
| | | line-height: countSizeVh(32); |
| | | width: countSizeVw(120, 1920); |
| | | } |
| | | |
| | | .vue-swatches__trigger { |
| | | height: countSizeVh(30) !important; |
| | | width: countSizeVh(30) !important; |
| | | border-radius: countSizeVh(6) !important; |
| | | } |
| | | |
| | | } |
| | |
| | | <div> |
| | | <div class="value-name-box">选择范围颜色:</div> |
| | | <div class="pick-color-box"> |
| | | <v-swatches v-model="chooseColor"></v-swatches> |
| | | <el-color-picker |
| | | v-model="chooseColor" |
| | | :predefine="predefineColors" size="small"> |
| | | </el-color-picker> |
| | | </div> |
| | | </div> |
| | | <div class="edit-line-btn-box"> |
| | |
| | | <div class="line"> |
| | | <div class="value-name-box">选择颜色:</div> |
| | | <div class="pick-color-box"> |
| | | <v-swatches v-model="choosePlotColor"></v-swatches> |
| | | <el-color-picker |
| | | v-model="choosePlotColor" |
| | | :predefine="predefineColors" size="small"> |
| | | </el-color-picker> |
| | | </div> |
| | | </div> |
| | | <div class="add-polygon-btn-box"> |
| | |
| | | <div> |
| | | <div class="value-name-box">选择标绘颜色:</div> |
| | | <div class="pick-color-box"> |
| | | <v-swatches v-model="choosePlotColor"></v-swatches> |
| | | <el-color-picker |
| | | v-model="choosePlotColor" |
| | | :predefine="predefineColors" size="small"> |
| | | </el-color-picker> |
| | | </div> |
| | | </div> |
| | | <div> |
| | |
| | | import { getRegionList, getDevices } from '@/api/video/index.js' |
| | | import { getEquipmentAll } from '@/api/home/index.js' |
| | | import flvjs from 'flv.js' |
| | | import VSwatches from 'vue-swatches' |
| | | import 'vue-swatches/dist/vue-swatches.css' |
| | | |
| | | let analyseLayer = null |
| | | let analysePolygon = null |
| | |
| | | let drawArrowLayers = null |
| | | let polylineAreaLayer = null |
| | | let arrowsListLayer = null |
| | | let pointCircleLayer = null |
| | | let plot = undefined |
| | | let arrowPlot = undefined |
| | | let lineLayer = undefined |
| | |
| | | |
| | | export default { |
| | | inject: ['userInfo'], |
| | | |
| | | components: { VSwatches }, |
| | | |
| | | data () { |
| | | return { |
| | |
| | | arrowPositionSre: '', |
| | | isLineEdit: true, |
| | | addLinePosition: '', |
| | | color: 'rgba(255, 69, 0)', |
| | | predefineColors: [ |
| | | '#ff4500', |
| | | '#ff8c00', |
| | | '#ffd700', |
| | | '#90ee90', |
| | | '#00ced1', |
| | | '#1e90ff', |
| | | '#c71585', |
| | | 'rgba(255, 69, 0, )', |
| | | 'rgb(255, 120, 0)', |
| | | 'hsv(51, 100, 98)', |
| | | 'hsva(120, 40, 94)', |
| | | 'hsl(181, 100%, 37%)', |
| | | 'hsla(209, 100%, 56%)', |
| | | '#c7158577' |
| | | ] |
| | | } |
| | | }, |
| | | |
| | |
| | | arrowPlot = new global.DC.Plot(global.viewer) |
| | | } |
| | | |
| | | if (pointCircleLayer == null) { |
| | | pointCircleLayer = new global.DC.VectorLayer('pointCircleLayer') |
| | | global.viewer.addLayer(pointCircleLayer) |
| | | } |
| | | |
| | | if (arrowsListLayer == null) { |
| | | arrowsListLayer = new global.DC.VectorLayer('arrowsListLayer') |
| | | global.viewer.addLayer(arrowsListLayer) |
| | |
| | | // scale: 0.5 |
| | | // }) |
| | | // tc.addTrack(track) |
| | | |
| | | }) |
| | | }, |
| | | |
| | |
| | | incident: this.overlayTypeClick, |
| | | mouseOverIcident:this.pointMouseOver |
| | | }) |
| | | // let position = new global.DC.Position(Number(positionObj.lng), Number(positionObj.lat)) |
| | | // let circle = new global.DC.Circle(position, 20) |
| | | // circle.size = [32,32] |
| | | // pointCircleLayer.addOverlay(circle) |
| | | // circle.setStyle({ |
| | | // "material": global.DC.Color.YELLOW, |
| | | // }) |
| | | } |
| | | }) |
| | | }) |
| | |
| | | if (iconName == 'activity') { |
| | | positionObj = { lng: `${positionArr[0]}`, lat: `${positionArr[1]}`, alt: 0, url: '/img/icon/activity.png' } |
| | | } else if (iconName == 'policeman') { |
| | | positionObj = { lng: `${positionArr[0]}`, lat: `${positionArr[1]}`, alt: 0, url: '/img/icon/police-people.png', id: plotId, policemanId: policeId, deptId: deptId } |
| | | positionObj = { lng: `${positionArr[0]}`, lat: `${positionArr[1]}`, alt: 0, url: '/img/icon/man3.png', id: plotId, policemanId: policeId, deptId: deptId } |
| | | } else if (iconName == 'policecar') { |
| | | positionObj = { lng: `${positionArr[0]}`, lat: `${positionArr[1]}`, alt: 0, url: '/img/icon/car3.png', id: plotId, carId: policeId, deptId: deptId } |
| | | } |
| | |
| | | // #BDC3C8 |
| | | }, |
| | | }, |
| | | |
| | | |
| | | destroyed () { |
| | | this.$EventBus.$emit('mapRemoveLayer', { |