{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\duty\\CMGTDutyPatrolledMap.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\duty\\CMGTDutyPatrolledMap.vue","mtime":1695626572392},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.array.find\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.number.constructor\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/bzzgj-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport CommonApi from '@/views/Manage/CommonApi.js';\nimport CmgtDutyWorkarrangeApi from '@/views/Manage/duty/api/CmgtDutyWorkarrangeApi';\nimport CmgtDutyJobApi from '@/views/Manage/duty/api/CmgtDutyJobApi';\nimport TeamMemberManage from '@/api/manager/duty/teamMemberManage.js';\nimport CmgtBasePositionApi from '@/views/Manage/base/api/CmgtBasePositionApi';\nexport default {\n name: 'DutyGQGWSSFB',\n components: {},\n data: function data() {\n return {\n // src: '/gisapi/station-n-map/#/DeviceManagerGisView?mapMode=2D',\n src: window.context.map + '/station-n-map/#/DeviceManagerGisView?mapMode=2D',\n jobOptions: [],\n memberSelectOptions: [],\n jobValue: [],\n querys: [{\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'receive_time_',\n relation: 'AND',\n value: [new Date().format('yyyy-MM-dd') + ' 00:00:00', new Date().format('yyyy-MM-dd HH:mm:ss')]\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'member_id_',\n relation: 'AND',\n value: ''\n }],\n point: {},\n showDialog: false,\n top: 0,\n left: 0,\n btnBoolen: true,\n //控制筛选弹层的显示与隐藏\n searchForm: {\n endTime: '',\n startTime: '',\n jobId: '',\n teamMemberId: ''\n },\n carList: [],\n rules: {\n teamMemberId: [{\n required: true,\n message: '请选择人员',\n trigger: 'blur'\n }],\n endTime: [{\n required: true,\n message: '请选择开始时间',\n trigger: 'blur'\n }],\n startTime: [{\n required: true,\n message: '请选择结束时间',\n trigger: 'blur'\n }]\n },\n timer: null\n };\n },\n created: function created() {\n this.initData();\n var t = this;\n this.timer = setInterval(function () {\n if (t.$refs.windowiframe.contentWindow.deviceGisFunction) {\n t.$refs.windowiframe.contentWindow.deviceGisFunction.layerVisible([]); // t.$refs.windowiframe.contentWindow.deviceGisFunction.addPickListener(\n // p => {\n // // t.$refs.windowiframe.contentWindow.deviceGisFunction.removePopupLocator()\n // t.showDialogData(p)\n // }\n // )\n\n clearInterval(t.timer);\n }\n }, 500);\n },\n methods: {\n initData: function initData() {\n var _this = this;\n\n CmgtDutyJobApi.loadCmgtDutyJob({\n pageBean: {\n pageSize: 100,\n page: 1\n },\n params: {},\n querys: []\n }, function (res) {\n _this.jobOptions = res.rows;\n });\n this.loadMemberOptions();\n },\n loadMemberOptions: function loadMemberOptions(jobId) {\n var _this2 = this;\n\n TeamMemberManage.loadMember({\n pageBean: {\n page: 1,\n pageSize: -1\n },\n params: {},\n querys: jobId ? [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'job_',\n relation: 'AND',\n value: jobId\n }] : []\n }, function (res) {\n console.log('========res===res===', res);\n _this2.memberSelectOptions = res.rows;\n });\n },\n loadAccident: function loadAccident() {\n var _this3 = this;\n\n var queryParam = {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {},\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'dtype_',\n relation: 'AND',\n value: 'ACCIDENT'\n }]\n };\n CmgtBasePositionApi.loadCmgtBasePosition(queryParam, function (res) {\n // console.log('========res===loadCmgtBasePosition===', res)\n var vs = res.rows.map(function (m) {\n return _objectSpread(_objectSpread({}, m), {}, {\n id: m.id,\n name: m.name,\n icon: 'DUTY_W4_WARNING.png',\n flashInterval: 300,\n dataType: 'ACCIDENT',\n point: [m.latitude, m.longitude].map(Number),\n areaCode: 'CQBZ_BGC_F1'\n });\n });\n\n _this3.$refs.windowiframe.contentWindow.deviceGisFunction.addCarData(vs); // this.$refs.windowiframe.contentWindow.deviceGisFunction.addPolyline([[106.545791, 29.6087, 216.76], [106.54605, 29.609011, 215.72], [106.546922, 29.608907, 216.95], [106.547482, 29.608453, 216.97], [106.548035, 29.608679, 216.76], [106.548598, 29.608584, 216.76]])\n\n });\n },\n loadStaff: function loadStaff() {\n var _this4 = this;\n\n var query = {};\n\n if (this.jobValue && this.jobValue.length > 0) {\n query.jobIds = this.jobValue;\n }\n\n if (this.$refs.windowiframe) {\n this.$refs.windowiframe.contentWindow.deviceGisFunction.clearElectronicFence();\n this.$refs.windowiframe.contentWindow.deviceGisFunction.removeAllPeople();\n this.$refs.windowiframe.contentWindow.deviceGisFunction.clearPolyline();\n }\n\n if (this.querys[0].value) {\n query.rq = this.querys[0].value;\n }\n\n if (this.querys[1].value) {\n query.member = this.querys[1].value;\n }\n\n console.log('========query==========', query);\n CmgtDutyWorkarrangeApi.findCurrentStaffOnDuty(query, function (res) {\n var vs = res.value.map(function (m) {\n return _objectSpread(_objectSpread({}, m), {}, {\n id: m.id,\n job: m.job,\n name: m.name,\n dataType: 'TEAMMEMBER',\n icon: m.status === 'ONLINE' ? 'DUTY_P3_ONLINE.png' : m.status === 'CROSSING' ? 'DUTY_P3_ERROR.png' : 'DUTY_P3_OFFLINE.png',\n point: m.location.split(',', 2).map(Number),\n areaCode: 'CQBZ_BGC_F1'\n });\n }); // 加区域\n\n if (query.jobIds) {\n query.jobIds.forEach(function (j) {\n var jobOpt = _this4.jobOptions.find(function (o) {\n if (o.id === j) {\n return true;\n }\n\n return false;\n });\n\n if (jobOpt.area) {\n var peops = vs.filter(function (v) {\n return v.job === j;\n });\n\n _this4.$refs.windowiframe.contentWindow.deviceGisFunction.addElectronicFence({\n id: j,\n points: JSON.parse(jobOpt.area)\n }, peops);\n }\n });\n } else {\n _this4.$refs.windowiframe.contentWindow.deviceGisFunction.addPeopleData(vs);\n\n res.value.forEach(function (m) {\n _this4.$refs.windowiframe.contentWindow.deviceGisFunction.addPolyline(m.track);\n });\n }\n });\n },\n showDialogData: function showDialogData(point) {\n var _this5 = this;\n\n if (point.data) {\n if (point.data.dataType === 'ACCIDENT') {\n return;\n }\n\n this.point = point;\n this.showDialog = true;\n this.$refs.windowiframe.contentWindow.deviceGisFunction.addPopupLocator({\n position: point.gisPosition,\n locator: function locator(windowPosition) {\n _this5.left = parseInt(windowPosition.x) - 5;\n _this5.top = parseInt(windowPosition.y) + 12;\n }\n });\n }\n },\n closeDialog: function closeDialog() {\n this.$refs.windowiframe.contentWindow.deviceGisFunction.removePopupLocator();\n this.point = {\n data: null\n };\n this.showDialog = false;\n },\n // 获取图层数据\n getUserLat: function getUserLat() {\n var _this6 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this6.$refs.windowiframe.contentWindow.deviceGisFunction.clearPolyline();\n\n CmgtDutyJobApi.getCmgtDutyUserLatByID(_this6.qs.stringify(_this6.searchForm), function (res) {\n console.log(res);\n\n if (res.value.length) {\n var arr = res.value[0].gpsInfo.map(function (item) {\n return [Number(item.latitude), Number(item.longitude)];\n });\n console.log(arr);\n\n _this6.$refs.windowiframe.contentWindow.deviceGisFunction.addPolyline(arr, '#13d36a');\n }\n });\n }\n });\n },\n // 切换展开隐藏\n changeBtn: function changeBtn() {\n this.btnBoolen = !this.btnBoolen;\n },\n // 清空图层及搜索\n clearUserLat: function clearUserLat() {\n this.searchForm.jobId = '';\n this.searchForm.startTime = '';\n this.searchForm.endTime = '';\n this.$refs.windowiframe.contentWindow.deviceGisFunction.clearPolyline();\n },\n // 切换岗位\n changeJob: function changeJob(value) {\n this.searchForm.teamMemberId = '';\n this.loadMemberOptions(value);\n },\n // 切换人员\n changePerson: function changePerson(value) {\n var _this7 = this;\n\n this.$refs.windowiframe.contentWindow.deviceGisFunction.hiddenRegion();\n CmgtDutyJobApi.getAreaCodeByPersonId(value, function (res) {\n if (res.value.length) {\n var arr = res.value.map(function (item) {\n return item.CODE_;\n });\n\n _this7.$refs.windowiframe.contentWindow.deviceGisFunction.showRegions(arr, '#0a0');\n }\n });\n }\n },\n beforeDestroy: function beforeDestroy() {\n clearInterval(this.timer);\n }\n};",null]}