{"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\\CMGTDutyMonitorMap.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\duty\\CMGTDutyMonitorMap.vue","mtime":1686644562570},{"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.number.constructor\";\nimport \"core-js/modules/es6.regexp.split\";\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//\nimport CommonApi from '@/views/Manage/CommonApi.js';\nimport CmgtDutyWorkarrangeApi from '@/views/Manage/duty/api/CmgtDutyWorkarrangeApi';\nimport CmgtDutyJobApi from '@/views/Manage/duty/api/CmgtDutyJobApi';\nexport default {\n name: 'DutyGQGWSSFB',\n components: {},\n data: function data() {\n return {\n loading: false,\n chartDrawer: false,\n chartUrl: window.context.fineBISerfer + '/webroot/decision/v5/design/report/share/38854dd62e994b8ab94f2b208f4a9ce2?link=eyJhbGciOiJIUzI1NiJ9.eyJyZXBvcnRJZCI6IjM4ODU0ZGQ2MmU5OTRiOGFiOTRmMmIyMDhmNGE5Y2UyIiwidXNlcklkIjoiYjVmMGMyZWUtNjQwZi00MDM5LWE0ZDQtOTE4YjU1MzU0ODk4IiwianRpIjoiand0In0.kGxQIyo-IrOPEY4NpqXJ94jW0QfH8QvW_o-tbSbvqVk',\n // src: '/gisapi/station-n-map/#/DeviceManagerGisView?mapMode=2D',\n src: 'http://183.230.176.125:18081/station-n-map/#/DeviceManagerGisView?mapMode=2D',\n jobOptions: [],\n jobValue: [],\n timer: null,\n point: {},\n showDialog: false,\n top: 0,\n left: 0\n };\n },\n created: function created() {\n this.initData();\n var t = this;\n this.timer = setInterval(function () {// t.loadStaff()\n }, 30000);\n setTimeout(function () {\n t.$refs.windowiframe.contentWindow.deviceGisFunction.addPickListener(function (p) {\n t.showDialogData(p);\n });\n t.loadStaff();\n }, 10000);\n },\n destroyed: function destroyed() {\n if (this.timer) {\n window.clearInterval(this.timer);\n }\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 },\n loadStaff: function loadStaff() {\n var _this2 = 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 }\n\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 icon: m.status === 'ONLINE' ? 'DUTY_P3_ONLINE.png' : m.status === 'CROSSING' ? 'DUTY_P3_ERROR.png' : 'DUTY_P3_OFFLINE.png',\n point: m.location ? m.location.split(',', 2).map(Number) : [],\n areaCode: 'CQBZ_BGC_F1'\n });\n }).filter(function (item) {\n return item.point.length > 0;\n }); // 加区域\n\n if (query.jobIds) {\n query.jobIds.forEach(function (j) {\n var jobOpt = _this2.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 _this2.$refs.windowiframe.contentWindow.deviceGisFunction.addElectronicFence({\n id: j,\n points: JSON.parse(jobOpt.area)\n }, peops);\n }\n });\n } else {\n _this2.$refs.windowiframe.contentWindow.deviceGisFunction.addPeopleData(vs);\n }\n\n _this2.loading = false;\n console.log('-------------res-------------', vs);\n });\n },\n showDialogData: function showDialogData(point) {\n var _this3 = this;\n\n console.log('============', point);\n\n if (point.data) {\n this.point = point; // this.left = this.point.position.x\n // this.top = this.point.position.y + 25\n\n this.showDialog = true;\n this.$refs.windowiframe.contentWindow.deviceGisFunction.addPopupLocator({\n position: point.gisPosition,\n locator: function locator(windowPosition) {\n _this3.left = parseInt(windowPosition.x) + 12;\n _this3.top = parseInt(windowPosition.y) + 100;\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 addFence: function addFence() {\n var fence = {\n id: '1',\n points: [[106.55018, 29.612773, 215.98], [106.550984, 29.613628, 217.67], [106.55242, 29.613319, 216.49], [106.552309, 29.612367, 215.76], [106.550996, 29.61181, 216]]\n };\n var personnel = [{\n id: '1',\n point: [106.548495, 29.614332],\n areaCode: 'CQBZ_BGC_F1'\n }, {\n id: '2',\n point: [106.551151, 29.612448],\n areaCode: 'CQBZ_BGC_F1'\n }];\n this.$refs.windowiframe.contentWindow.deviceGisFunction.addElectronicFence(fence, personnel);\n },\n addUser: function addUser() {\n console.log('======contentwindow==========', this.$refs.windowiframe.contentWindow.deviceGisFunction);\n alert('add1122');\n this.$refs.windowiframe.contentWindow.deviceGisFunction.addPeopleData([{\n id: '1549653474814332928',\n point: [106.54519972775577, 29.61316013657127],\n areaCode: 'CQBZ_BGC_F1'\n }]); // const datas = []\n // this.$refs.windowiframe.contentWindow.deviceGisFunction.addCarData([{ id: '1', point: [106.548495, 29.614332], areaCode: 'CQBZ_BGC_F1' }, { 'id': '2', 'point': [106.551151, 29.612448], 'areaCode': 'CQBZ_BGC_F1' }])\n // this.$refs.windowiframe.contentWindow.deviceGisFunction.addPickListener((p, d) => {\n // alert('cccc')\n // })\n // this.$refs.windowiframe.contentWindow.deviceGisFunction.addElectronicFence({ id: '1', points: [[106.55018, 29.612773, 215.98], [106.550984, 29.613628, 217.67], [106.55242, 29.613319, 216.49], [106.552309, 29.612367, 215.76], [106.550996, 29.61181, 216]] }, [{ 'id': '1', 'point': [106.548495, 29.614332, 199.56], 'status': 1 }, { 'id': '1', 'point': [106.5481, 29.61362, 199.56], 'status': 2 }])\n },\n selectPoint: function selectPoint() {\n console.log('======contentwindow==========', this.$refs.windowiframe); // console.log('======contentwindow=====visualGisFunction=====', this.$refs.windowiframe.visualGisFunction)\n // this.$refs.windowiframe.contentWindow.deviceGisFunction.pickPoint().then(point => {\n // alert(point)\n // console.log(point)\n // })\n\n this.$refs.windowiframe.contentWindow.deviceGisFunction.drawPolygon().then(function (point) {\n alert(point);\n console.log(point);\n });\n }\n }\n};",null]}