{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BigScreen\\bigScreen.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BigScreen\\bigScreen.vue","mtime":1704857990668},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-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 _defineProperty from \"D:/jenkins/workspace/damDance-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\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//\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//\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//\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//\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//\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//\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//\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//\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//\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//\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//\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//\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 Cookie from 'js-cookie';\nimport * as echarts from 'echarts';\nimport 'leaflet/dist/leaflet.css';\nimport 'leaflet.markercluster/dist/MarkerCluster.css';\nimport 'leaflet.markercluster/dist/MarkerCluster.Default.css';\nimport L from 'leaflet';\nimport 'leaflet.markercluster';\nimport wanzhou from '@/assets/js/wanzhougeojson.js';\nimport moment from 'moment';\nimport RegistrationManage from '@/api/RegistrationManage/RegistrationManage.js';\nimport bigScreenAPI from '@/api/BigScreen/index.js';\nimport monitorDialog from \"./components/monitorDialog.vue\";\nimport volumnDialog from \"./components/volumnDialog.vue\";\nimport squareDialog from \"./components/squareDialog.vue\";\nimport utils from '@/utils.js';\nimport eventConfirmation from \"./components/eventConfirmation.vue\";\nimport uc from '@/api/uc.js';\nimport todayEvent from \"./components/todayEvent.vue\"; // 左侧-上-事件总览\n\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport followLocation from \"./components/followLocation.vue\";\nimport concernGroup from \"./components/concernGroup.vue\";\nimport durationAnalysis from \"./components/durationAnalysis.vue\";\nexport default {\n name: 'bigScreen',\n components: {\n monitorDialog: monitorDialog,\n volumnDialog: volumnDialog,\n eventConfirmation: eventConfirmation,\n todayEvent: todayEvent,\n squareDialog: squareDialog,\n followLocation: followLocation,\n concernGroup: concernGroup,\n durationAnalysis: durationAnalysis\n },\n data: function data() {\n return {\n companyName: '',\n workPlatMenu: [],\n showWorkPlat: false,\n map: null,\n zoom: 9,\n timenow: '',\n timer: null,\n areaTree: [],\n formData: {\n areaCode: '500101000000',\n date: moment().format('YYYY-MM'),\n year: '',\n month: ''\n },\n pieChart1: null,\n pieChart1Options: null,\n pieChart1Data: [{\n name: '噪音扰民',\n value: 16\n }, {\n name: '扰乱公共秩序',\n value: 12\n }, {\n name: '商民纠纷',\n value: 5\n }, {\n name: '其他事件',\n value: 20\n }],\n pieChart2: null,\n pieChart2Options: null,\n pieChart2Data: [{\n name: '已更新',\n value: 43\n }, {\n name: '未更新',\n value: 10\n }],\n barChart1: null,\n barChart1Options: null,\n barChart1Data: [// {\n // name: '巡查发现',\n // value: 8,\n // },\n // {\n // name: '群众投诉',\n // value: 30,\n // },\n // {\n // name: '报警',\n // value: 5,\n // },\n // {\n // name: '智能检测',\n // value: 10,\n // },\n ],\n barChart2: null,\n barChart2Options: null,\n barChart2Data: [// {\n // name: '太白街道',\n // value: 8,\n // },\n // {\n // name: '牌楼街道',\n // value: 7,\n // },\n // {\n // name: '双河口街道',\n // value: 5,\n // },\n // {\n // name: '龙都街道',\n // value: 9,\n // },\n // {\n // name: '周家坝街道',\n // value: 7,\n // },\n // {\n // name: '五桥街道',\n // value: 10,\n // },\n // {\n // name: '天城街道',\n // value: 7,\n // },\n ],\n gaugeChart: null,\n gaugeData: [{\n value: 0,\n name: '处置率',\n title: {\n offsetCenter: ['0%', '-12%'],\n color: '#1AECFF',\n fontSize: 12\n }\n }],\n gaugeOption: null,\n showMonitor: true,\n showVolumn: true,\n showSquare: true,\n iconUrlMonitor: require('@/assets/img/point-monitor.png'),\n iconUrlMonitorWarning: require('@/assets/img/point-monitor-warning.png'),\n iconUrlSquare: require('@/assets/img/point-square.png'),\n iconUrlVolumnB: require('@/assets/img/point-volumn-b.png'),\n iconUrlVolumnO: require('@/assets/img/point-volumn-o.png'),\n MonitorClusterer: null,\n VolumnClusterer: null,\n MonitorPointsCount: 0,\n VolumnPointsCount: 0,\n SquarePointsCount: 0,\n MonitorPoints: [{\n name: 'MonitorPoints1',\n address: '重庆市万州区石峰路兴茂·御景江城北',\n lt: 30.719280904588018,\n lg: 108.20846557617188\n }, {\n name: 'MonitorPoints2',\n address: '重庆市万州区石峰路兴茂·御景江城北',\n lt: 30.658845439335867,\n lg: 108.2318115234375\n }, {\n name: 'MonitorPoints3',\n address: '重庆市万州区石峰路兴茂·御景江城北',\n lt: 30.586107333823133,\n lg: 108.32244873046875\n }, {\n name: 'MonitorPoints4',\n address: '重庆市万州区石峰路兴茂·御景江城北',\n lt: 30.62043041907182,\n lg: 108.76327514648438\n }],\n VolumnPoints: [{\n name: 'VolumnPoints1',\n code: 'VolumnPoints001',\n address: '重庆市万州区石峰路兴茂·御景江城北',\n volumn: 45,\n lt: 30.65063473409065,\n lg: 108.55728149414062\n }, {\n name: 'VolumnPoints2',\n code: 'VolumnPoints002',\n address: '重庆市万州区石峰路兴茂·御景江城北',\n volumn: 52,\n lt: 30.532563320835198,\n lg: 108.53668212890625\n }, {\n name: 'VolumnPoints3',\n code: 'VolumnPoints003',\n address: '重庆市万州区石峰路兴茂·御景江城北',\n volumn: 75,\n lt: 30.752231066426745,\n lg: 108.20571899414062\n }, {\n name: 'VolumnPoints4',\n code: 'VolumnPoints004',\n address: '重庆市万州区石峰路兴茂·御景江城北',\n volumn: 85,\n lt: 30.838725241253428,\n lg: 108.54080200195312\n }],\n SquarePoints: [],\n showInfoVolumn: false,\n showInfoMonitor: false,\n showInfoSquare: false,\n currentPoint: {},\n eventCount: {\n total: 0,\n wxsj: '0%',\n dypsj: '0%',\n czzsj: '0%',\n yczsj: '0%' // rate: 0,\n // done: 0,\n // doing: 0,\n // todo: 0,\n\n },\n loading: {\n Device: false,\n EventCount: false,\n EventSource: false,\n EventType: false,\n EventPlace: false,\n EventUpdate: false,\n EventObject: false\n },\n loadingColor: 'rgba(6, 46, 106, 0.3)',\n queryTimer: null,\n pieChart1Total: '',\n pieChart2Total: '',\n importantObject: {\n 团队: 0,\n 个人: 0\n },\n showVideo: false,\n // 视频组件控制\n monitorInfo: {},\n // 视频点位数据\n volumnInfo: {},\n // 智能检测点位数据\n squareInfo: {},\n // 广场舞地点点位数据\n showEventDialog: false,\n // 事件统计弹层\n eventTitle: '',\n // 事件统计title\n eventReq: [],\n // 事件统计查询参数\n eventTableData: [],\n // 事件统计表格数据\n showEventConfirmation: false,\n // 事件操作弹层\n eventRow: {},\n // 事件信息\n pageParams: {\n page: 1,\n pageSize: 10\n },\n // 分页参数\n total: 0,\n // 总数\n typeSource: '',\n sjlyList: [],\n // 事件来源字典数据\n sourceVal: '' // 事件来源\n\n };\n },\n created: function created() {\n this.sjlyList = dictUtils.getDictItemsFromCache('sjly');\n },\n mounted: function mounted() {\n var _this = this;\n\n var account = JSON.parse(window.sessionStorage.getItem('currentUser')).account;\n uc.getUserByAccount(account, function (res) {\n // console.log(res.org[0].orgAddvcdFull.slice(1).split('/'));\n var arr = res.org[0].orgAddvcdFull.slice(1).split('/'); // console.log(arr[arr.length - 1]);\n\n _this.formData.areaCode = arr[arr.length - 1];\n\n _this.getData('init');\n });\n console.log(account);\n this.getSysInfo();\n RegistrationManage.getbaseAreaTree().then(function (res) {\n _this.areaTree = res.value;\n });\n this.$nextTick(function () {\n _this.newMap();\n });\n this.$store.dispatch('menu/actionFrontMenus').then(function (data) {\n _this.workPlatMenu = data.filter(function (item) {\n return item.alias === 'normal';\n });\n _this.showWorkPlat = _this.workPlatMenu.length ? true : false;\n });\n this.timer = setInterval(function () {\n _this.getTimeNow();\n }, 1000);\n },\n methods: {\n getData: function getData(type) {\n this.formatQueryData(type); // 地图中设备信息\n\n this.queryDeviceList(type); // 事件统计\n\n this.queryEventCount(type); // 事件来源\n\n this.queryEventSource(type); // 事件分类\n // this.queryEventType(type)\n // 高频地点\n // this.queryEventPlace(type)\n // 存续事件更新统计\n // this.queryEventUpdate(type)\n // 重点关注对象统计\n // this.queryEventObject(type)\n },\n // 地图设备信息\n queryDeviceList: function queryDeviceList() {\n var _this2 = this;\n\n this.loading.Device = true;\n this.clearPoints('Monitor');\n this.clearPoints('Volumn');\n this.MonitorPoints = [];\n this.VolumnPoints = [];\n this.SquarePoints = [];\n this.showMonitor = false;\n this.showVolumn = false;\n this.showSquare = false;\n bigScreenAPI.queryDeviceList(this.formData).then(function (res) {\n if (res.state && res.value) {\n _this2.MonitorPointsCount = res.value['监控设备'] || 0;\n _this2.VolumnPointsCount = res.value['智能监测'] || 0;\n _this2.SquarePointsCount = res.value['广场舞地点'] || 0;\n _this2.SquarePoints = res.value.squareLocationsList;\n\n if (res.value.deviceList && res.value.deviceList.length) {\n _this2.MonitorPoints = res.value.deviceList.filter(function (item) {\n return item.type == '2';\n });\n _this2.VolumnPoints = res.value.deviceList.filter(function (item) {\n return item.type == '1';\n });\n }\n }\n\n _this2.loading.Device = false;\n\n _this2.handlePoint('Monitor');\n\n _this2.handlePoint('Volumn');\n\n _this2.handlePoint('Square');\n });\n },\n // 事件统计\n queryEventCount: function queryEventCount(type) {\n var _this3 = this;\n\n this.loading.EventCount = true;\n bigScreenAPI.queryEventCount(this.formData).then(function (res) {\n if (res.state && res.value) {\n _this3.eventCount.total = res.value['事件总数'];\n _this3.eventCount.wxsj = res.value['无效事件占比'];\n _this3.eventCount.dypsj = res.value['待研判事件占比'];\n _this3.eventCount.czzsj = res.value['处置中事件占比'];\n _this3.eventCount.yczsj = res.value['已处置事件占比']; // this.eventCount.rate = res.value['处置率']\n // this.eventCount.done = res.value['已处置']\n // this.eventCount.doing = res.value['处置中']\n // this.eventCount.todo = res.value['未处置']\n // this.gaugeData[0].value = this.eventCount.rate\n // type ? this.initGaugeChart() : this.updataGaugeChart()\n // this.initGaugeChart()\n\n _this3.loading.EventCount = false;\n }\n });\n },\n // 事件来源\n queryEventSource: function queryEventSource(type) {\n var _this4 = this;\n\n this.loading.EventSource = true;\n this.barChart1Data = [];\n bigScreenAPI.queryEventSource(this.formData).then(function (res) {\n if (res.state && res.value) {\n for (var key in res.value) {\n _this4.barChart1Data.push({\n name: key,\n value: res.value[key]\n });\n }\n } // type ? this.initBarChart1() : this.updataBarChart1()\n\n\n _this4.initBarChart1();\n\n _this4.loading.EventSource = false;\n });\n },\n // 事件分类\n queryEventType: function queryEventType(type) {\n var _this5 = this;\n\n this.loading.EventType = true;\n this.pieChart1Data = [];\n bigScreenAPI.queryEventType(this.formData).then(function (res) {\n _this5.pieChart1Total = 0;\n\n if (res.state && res.value) {\n for (var key in res.value) {\n _this5.pieChart1Data.push({\n name: key,\n value: res.value[key]\n });\n\n _this5.pieChart1Total += res.value[key];\n }\n } // type ? this.initPieChart1() : this.updataPieChart1()\n\n\n _this5.initPieChart1();\n\n _this5.loading.EventType = false;\n });\n },\n // 高频地点\n queryEventPlace: function queryEventPlace(type) {\n var _this6 = this;\n\n this.loading.EventPlace = true;\n this.barChart2Data = [];\n bigScreenAPI.queryEventPlace(this.formData).then(function (res) {\n if (res.state && res.value) {\n for (var key in res.value) {\n _this6.barChart2Data.push({\n name: key,\n value: res.value[key]\n });\n }\n } // type ? this.initBarChart2() : this.updataBarChart2()\n\n\n _this6.initBarChart2();\n\n _this6.loading.EventPlace = false;\n });\n },\n // 存续事件更新统计\n queryEventUpdate: function queryEventUpdate(type) {\n var _this7 = this;\n\n this.loading.EventUpdate = true;\n this.pieChart2Data = [];\n bigScreenAPI.queryEventUpdate(this.formData).then(function (res) {\n _this7.pieChart2Total = 0;\n\n if (res.state && res.value) {\n for (var key in res.value) {\n _this7.pieChart2Data.push({\n name: key,\n value: res.value[key]\n });\n\n _this7.pieChart2Total += res.value[key];\n }\n } // type ? this.initPieChart2() : this.updataPieChart2()\n\n\n _this7.initPieChart2();\n\n _this7.loading.EventUpdate = false;\n });\n },\n // 重点关注对象统计\n queryEventObject: function queryEventObject() {\n var _this8 = this;\n\n this.loading.EventObject = true;\n var data = {\n areaCode: '500100000000',\n month: this.formData.month,\n year: this.formData.year\n };\n bigScreenAPI.queryEventObject(data).then(function (res) {\n console.log(res);\n\n if (res.state && res.value) {\n _this8.importantObject = res.value;\n }\n\n _this8.loading.EventObject = false;\n });\n },\n formatQueryData: function formatQueryData() {\n this.formData.year = this.formData.date.slice(0, 4);\n this.formData.month = this.formData.date.slice(5);\n },\n handlePoint: function handlePoint(type) {\n this['show' + type] = !this['show' + type];\n this.drawPointsLayer(type, this['show' + type]);\n },\n clearPoints: function clearPoints(type) {\n this[type + 'Clusterer'] && this[type + 'Clusterer'].clearLayers && this[type + 'Clusterer'].clearLayers();\n },\n drawPointsLayer: function drawPointsLayer(type, flag) {\n if (flag) {\n this.markerClusterer(type);\n this.map.setView([30.707807, 108.390246], 11);\n } else {\n this.clearPoints(type);\n }\n },\n markerClusterer: function markerClusterer(type) {\n var _this9 = this;\n\n // 初始化点聚合\n // 临时取消掉摄像头聚合\n this[type + 'Clusterer'] = new L.markerClusterGroup({\n spiderfyOnMaxZoom: true,\n showCoverageOnHover: false,\n zoomToBoundsOnClick: true\n }); // 聚合点点击事件,点击展开点\n\n this[type + 'Clusterer'].on('clusterclick', function (e) {\n e.layer.zoomToBounds();\n });\n this[type + 'Points'].filter(function (it) {\n return it.lttd && it.lgtd;\n }).forEach(function (item) {\n var latlng = new L.LatLng(item.lttd, item.lgtd);\n\n _this9.drwaMarkers(latlng, item, _this9[type + 'Clusterer'], type);\n });\n this.map.addLayer(this[type + 'Clusterer']);\n },\n drwaMarkers: function drwaMarkers(latlng, item, Clusterer, type) {\n var _this10 = this;\n\n // 图片\n var iconUrl; // if (type == 'Volumn' && item.sourceData >= 50) {\n\n if (type == 'Volumn' && item.warnFlag === 1) {\n iconUrl = this.iconUrlVolumnO;\n } else if (type == 'Volumn') {\n iconUrl = this.iconUrlVolumnB;\n } else if (type == 'Monitor' && item.warnFlag === 1) {\n iconUrl = this.iconUrlMonitorWarning;\n } else if (type == 'Square') {\n iconUrl = this.iconUrlSquare;\n } else {\n iconUrl = this.iconUrlMonitor;\n }\n\n var icon = new L.icon({\n iconUrl: iconUrl,\n iconSize: new L.point(50, 90),\n iconAnchor: new L.point(25, 90)\n }); // 标点\n\n var sectionMarker = new L.marker(latlng, {\n icon: icon,\n draggable: false,\n autoPan: true\n });\n var infoWin = this.infoWindow(item, type);\n sectionMarker.bindPopup(infoWin).openPopup();\n sectionMarker.addEventListener('click', function () {\n _this10.currentPoint = item;\n infoWin.update();\n _this10['showInfo' + type] = true;\n console.log(type); // type == 'Monitor' ? this.$refs.player.getUrlAndPlay() : null\n\n if (type === 'Monitor') {\n _this10.showVideo = true;\n _this10.monitorInfo = item;\n }\n\n if (type === 'Volumn') {\n _this10.volumnInfo = item;\n _this10.$refs.volumnDialog.tableData = [];\n _this10.$refs.volumnDialog.pageParams.page = 1;\n setTimeout(function () {\n _this10.$refs.volumnDialog.getWarningList();\n }, 100);\n }\n\n if (type === 'Square') {\n _this10.squareInfo = item;\n }\n\n _this10.map.setView(sectionMarker.getLatLng()); // this.queryEquipmentVolumn(item)\n\n });\n sectionMarker.addEventListener('popupclose', function () {\n _this10.showVideo = false;\n\n _this10.clearQuery();\n }); // sectionMarker.addEventListener('dragend', function (event) {\n // console.log('实时坐标:' + sectionMarker.getLatLng())\n // })\n // sectionMarker.bindTooltip(item.name).openTooltip()\n\n Clusterer.addLayer(sectionMarker);\n },\n infoWindow: function infoWindow(item, type) {\n var sContent = this.$refs['popup' + type];\n var className = \"monitor \".concat(type); // if (type == 'Volumn' && item.sourceData >= 50) {\n // className = 'orange'\n // } else if (type == 'Volumn' && item.sourceData < 50) {\n // className = 'green'\n // }\n\n var infoWin = new L.popup({\n autoPan: true,\n // minWidth: type == 'Volumn' ? 280 : 600,\n // offset: new L.Point(0, type == 'Volumn' ? -70 : 200),\n minWidth: 600,\n offset: new L.Point(0, 200),\n className: className\n }).setContent(sContent);\n return infoWin;\n },\n queryEquipmentVolumn: function queryEquipmentVolumn(item, infoWin) {\n var _this11 = this;\n\n this.queryTimer = setInterval(function () {\n var data = {\n pageBean: {\n page: 1,\n pageSize: 1,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'device_info_id_',\n relation: 'AND',\n value: item.id\n }],\n sorter: [{\n direction: 'DESC',\n property: 'lastTime'\n }]\n };\n bigScreenAPI.queryEquipmentVolumn(data).then(function (res) {\n if (res.rows && res.rows.length) {\n _this11.currentPoint.sourceData = res.rows[0].noiseLevel; // if(this.currentPoint.sourceData>=50){\n // iconUrl =\n // }\n // let icon = new L.Icon(option)\n\n infoWin.update();\n }\n });\n }, 10 * 60 * 1000);\n },\n clearQuery: function clearQuery() {\n clearInterval(this.queryTimer);\n },\n initGaugeChart: function initGaugeChart() {\n var _this12 = this;\n\n this.gaugeOption = {\n series: [{\n type: 'gauge',\n startAngle: 90,\n endAngle: -270,\n pointer: {\n show: false\n },\n radius: '90%',\n progress: {\n show: true,\n overlap: false,\n roundCap: true,\n clip: false,\n itemStyle: {\n color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{\n offset: 0,\n color: '#1bafb5'\n }, {\n offset: 1,\n color: '#00EAFF'\n }])\n }\n },\n axisLine: {\n lineStyle: {\n width: 24,\n color: [[1, '#3E5678']],\n shadowColor: 'rgba(0, 234, 255, 0.8)',\n shadowBlur: 10\n }\n },\n splitLine: {\n show: false,\n distance: 0,\n length: 10\n },\n axisTick: {\n show: false\n },\n axisLabel: {\n show: false,\n distance: 50\n },\n data: this.gaugeData,\n title: {\n fontSize: 14\n },\n detail: {\n fontSize: 16,\n color: '#1AECFF',\n formatter: '{value}%',\n offsetCenter: ['0%', '18%']\n }\n }]\n };\n this.gaugeChart = echarts.init(document.getElementById('gauge'));\n this.gaugeOption && this.gaugeChart.setOption(this.gaugeOption);\n window.addEventListener('resize', function () {\n return _this12.gaugeChart.resize();\n });\n },\n updataGaugeChart: function updataGaugeChart() {\n this.gaugeChart.setOption(this.gaugeOption);\n },\n initBarChart1: function initBarChart1() {\n var _this13 = this;\n\n this.barChart1Options = {\n dataset: {\n source: this.barChart1Data\n },\n tooltip: {\n trigger: 'axis',\n backgroundColor: 'rgba(6, 47, 107, 1)',\n borderColor: 'rgba(2, 115, 233, 1)',\n textStyle: {\n color: '#fff'\n },\n confine: true,\n position: 'bottom',\n formatter: function formatter(params) {\n return '事件来源
' + params[0].data.name + ':' + params[0].data.value + '(件)';\n }\n },\n grid: [{\n top: '18%',\n left: '8%',\n right: '5%',\n bottom: '16%'\n }],\n xAxis: {\n type: 'category',\n axisTick: {\n alignWithLabel: true\n },\n axisLine: {\n show: true,\n lineStyle: {\n color: '#293A57'\n }\n },\n axisLabel: {\n show: true,\n color: 'rgba(255,255,255,0.6)'\n }\n },\n yAxis: {\n name: '单位(件)',\n nameTextStyle: {\n color: 'rgba(255,255,255,0.6)'\n },\n type: 'value',\n axisLine: {\n show: true,\n lineStyle: {\n color: '#293A57'\n }\n },\n axisLabel: {\n show: true,\n color: 'rgba(255,255,255,0.6)',\n formatter: function formatter(val) {\n if (val >= 1 && parseInt(val, 10) === val || val == 0) {\n return val;\n } else {\n return;\n }\n }\n },\n splitLine: {\n show: false\n }\n },\n series: [{\n type: 'bar',\n showBackground: true,\n backgroundStyle: {\n color: 'rgba(180, 180, 180, 0.2)'\n },\n barWidth: 30,\n itemStyle: {\n borderRadius: [5, 5, 0, 0],\n color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{\n offset: 0,\n color: '#CCE6FF'\n }, {\n offset: 1,\n color: '#3399FF'\n }])\n }\n }]\n };\n this.barChart1 = echarts.init(document.getElementById('event-source'));\n this.barChart1Options && this.barChart1.setOption(this.barChart1Options);\n window.addEventListener('resize', function () {\n return _this13.barChart1.resize();\n });\n this.barChart1.on('click', function (params) {\n console.log(params);\n var label = params.name;\n console.log(_this13.sjlyList);\n\n _this13.sjlyList.forEach(function (it) {\n if (it.name === label) {\n _this13.sourceVal = it.value;\n }\n });\n\n _this13.openEventBySource(label);\n });\n },\n updataBarChart1: function updataBarChart1() {\n this.barChart1Options.dataset.source = this.barChart1Data;\n this.barChart1.setOption(this.barChart1Options);\n },\n // 获取字典值翻译\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n initBarChart2: function initBarChart2() {\n var _this14 = this;\n\n this.barChart2Options = {\n dataset: {\n source: this.barChart2Data\n },\n tooltip: {\n trigger: 'axis',\n backgroundColor: 'rgba(6, 47, 107, 1)',\n borderColor: 'rgba(2, 115, 233, 1)',\n textStyle: {\n color: '#fff'\n },\n confine: true,\n position: 'bottom',\n formatter: function formatter(params) {\n return '高频地点
' + params[0].data.name + ':' + params[0].data.value + '(个)';\n }\n },\n grid: [{\n top: '18%',\n left: '8%',\n right: '5%',\n bottom: '16%'\n }],\n xAxis: {\n type: 'category',\n axisTick: {\n alignWithLabel: true\n },\n axisLine: {\n show: true,\n lineStyle: {\n color: '#293A57'\n }\n },\n axisLabel: {\n show: true,\n color: 'rgba(255,255,255,0.6)'\n }\n },\n yAxis: {\n name: '单位(个)',\n nameTextStyle: {\n color: 'rgba(255,255,255,0.6)'\n },\n type: 'value',\n axisLine: {\n show: true,\n lineStyle: {\n color: '#293A57'\n }\n },\n axisLabel: {\n show: true,\n color: 'rgba(255,255,255,0.6)',\n formatter: function formatter(val) {\n if (val >= 1 && parseInt(val, 10) === val || val == 0) {\n return val;\n } else {\n return;\n }\n }\n },\n splitLine: {\n show: false\n }\n },\n series: [{\n type: 'bar',\n showBackground: true,\n backgroundStyle: {\n color: 'rgba(180, 180, 180, 0.2)'\n },\n barWidth: 20,\n itemStyle: {\n borderRadius: [5, 5, 0, 0],\n color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{\n offset: 0,\n color: '#CCE6FF'\n }, {\n offset: 1,\n color: '#3399FF'\n }])\n }\n }]\n };\n this.barChart2 = echarts.init(document.getElementById('event-palce'));\n this.barChart2Options && this.barChart2.setOption(this.barChart2Options);\n window.addEventListener('resize', function () {\n return _this14.barChart2.resize();\n });\n },\n updataBarChart2: function updataBarChart2() {\n this.barChart2Options.dataset.source = this.barChart2Data;\n this.barChart2.setOption(this.barChart2Options);\n },\n initPieChart1: function initPieChart1() {\n var _this15 = this;\n\n this.pieChart1Options = {\n color: ['#ffca80', '#ff8080', '#00eaff', '#3399ff'],\n // 调整图例位置\n legend: {\n top: '-2%',\n left: 'center',\n align: 'left',\n itemWidth: 12,\n // 设置图例图形的宽\n itemHeight: 12,\n // 设置图例图形的高\n icon: 'roundRect',\n itemGap: 10,\n textStyle: {\n //图例字体样式\n fontSize: 12,\n fontFamily: 'SimHei',\n color: '#fff'\n }\n },\n tooltip: {\n trigger: 'item',\n backgroundColor: 'rgba(6, 47, 107, 1)',\n borderColor: 'rgba(2, 115, 233, 1)',\n textStyle: {\n color: '#fff'\n },\n confine: true,\n valueFormatter: function valueFormatter(value) {\n return value + '件';\n }\n },\n graphic: [{\n //环形图中间添加文字\n type: 'text',\n //通过不同top值可以设置上下显示\n left: 'center',\n top: '46%',\n style: {\n text: this.pieChart1Total,\n textAlign: 'center',\n fill: '#fff',\n //文字的颜色\n font: 'bolder 2em \"Microsoft YaHei\"'\n }\n }, {\n //环形图中间添加文字\n type: 'text',\n //通过不同top值可以设置上下显示\n left: 'center',\n top: '62%',\n style: {\n text: '共计(件)',\n textAlign: 'center',\n fill: '#fff',\n //文字的颜色\n fontSize: '12'\n }\n }],\n series: [{\n name: '事件分类统计',\n type: 'pie',\n radius: ['45%', '80%'],\n center: ['50%', '60%'],\n left: 0,\n top: 0,\n labelLine: {\n //指示线样式设置\n length: 15,\n //设置指示线的长度\n length2: 10,\n //横线宽度\n lineStyle: {\n color: '#fff' // 设置标示线的颜色\n\n }\n },\n label: {\n textStyle: {\n color: '#fff',\n // 改变标示文字的颜色\n fontSize: 13 //文字大小\n\n },\n formatter: '{d}%',\n padding: [0, 0],\n alignTo: 'labelLine'\n },\n itemStyle: {\n borderColor: '#0E2039',\n borderWidth: 2\n },\n data: this.pieChart1Data\n }]\n };\n this.pieChart1 = echarts.init(document.getElementById('event-type'));\n this.pieChart1Options && this.pieChart1.setOption(this.pieChart1Options);\n window.addEventListener('resize', function () {\n return _this15.pieChart1.resize();\n });\n },\n updataPieChart1: function updataPieChart1() {\n console.log(111111111111111111);\n this.pieChart1.setOption(this.pieChart1Options);\n },\n initPieChart2: function initPieChart2() {\n var _this16 = this;\n\n this.pieChart2Options = {\n color: ['#3399ff', '#ffca80'],\n // 调整图例位置\n legend: {\n orient: 'vertical',\n top: 'middle',\n x: 'right',\n align: 'left',\n itemWidth: 12,\n // 设置图例图形的宽\n itemHeight: 12,\n // 设置图例图形的高\n icon: 'roundRect',\n itemGap: 10,\n textStyle: {\n //图例字体样式\n fontSize: 12,\n fontFamily: 'SimHei',\n color: '#fff'\n }\n },\n tooltip: {\n trigger: 'item',\n backgroundColor: 'rgba(6, 47, 107, 1)',\n borderColor: 'rgba(2, 115, 233, 1)',\n textStyle: {\n color: '#fff'\n },\n confine: true,\n valueFormatter: function valueFormatter(value) {\n return value + '件';\n }\n },\n graphic: [{\n //环形图中间添加文字\n type: 'text',\n //通过不同top值可以设置上下显示\n left: 'center',\n top: '40%',\n style: {\n text: this.pieChart2Total,\n textAlign: 'center',\n fill: '#fff',\n //文字的颜色\n font: 'bolder 2em \"Microsoft YaHei\"'\n }\n }, {\n //环形图中间添加文字\n type: 'text',\n //通过不同top值可以设置上下显示\n left: 'center',\n top: '55%',\n style: {\n text: '共计(件)',\n textAlign: 'center',\n fill: '#fff',\n //文字的颜色\n fontSize: '12'\n }\n }],\n series: [{\n name: '存续事件统计',\n type: 'pie',\n radius: ['45%', '80%'],\n center: ['50%', '50%'],\n left: 0,\n top: 0,\n labelLine: {\n //指示线样式设置\n length: 15,\n //设置指示线的长度\n length2: 10,\n //横线宽度\n lineStyle: {\n color: '#fff' // 设置标示线的颜色\n\n }\n },\n label: {\n textStyle: {\n color: '#fff',\n // 改变标示文字的颜色\n fontSize: 13 //文字大小\n\n },\n formatter: '{d}%',\n // formatter: '{c}件 {d}%',\n padding: [0, 0],\n alignTo: 'labelLine'\n },\n itemStyle: {\n borderColor: '#0E2039',\n borderWidth: 2\n },\n data: this.pieChart2Data\n }]\n };\n this.pieChart2 = echarts.init(document.getElementById('event-update'));\n this.pieChart2Options && this.pieChart2.setOption(this.pieChart2Options);\n window.addEventListener('resize', function () {\n return _this16.pieChart2.resize();\n });\n },\n updataPieChart2: function updataPieChart2() {\n this.pieChart2.setOption(this.pieChart2Options);\n },\n changeArea: function changeArea() {\n var _this17 = this;\n\n this.$nextTick(function () {\n var nodesObj = _this17.$refs['cascader'].getCheckedNodes();\n\n console.log(nodesObj);\n\n if (nodesObj.length) {\n _this17.formData.areaCode = nodesObj[0].data.code;\n } else {\n _this17.formData.areaCode = '500101000000';\n }\n\n _this17.getData();\n\n _this17.$refs.cascader.dropDownVisible = false;\n });\n },\n changeDate: function changeDate() {\n console.log(this.formData.date);\n },\n getTimeNow: function getTimeNow() {\n this.timenow = moment().format('YYYY-MM-DD hh:mm:ss');\n },\n getSysInfo: function getSysInfo() {\n var _this18 = this;\n\n var url = '${uc}/uc/tenantManage/v1/getTenantByCode?code=platform';\n this.$http.get(url).then(function (resp) {\n if (resp.data) {\n var tenantManage = resp.data;\n _this18.companyName = tenantManage.nameFront;\n }\n });\n },\n newMap: function newMap() {\n this.map = new L.Map('map', {\n attributionControl: false,\n zoomControl: false,\n maxZoom: 16,\n minZoom: 3,\n maxBounds: L.latLngBounds(L.latLng(20.08822, 71.762642), L.latLng(53.769034, 136.09858))\n }); // 蓝色地图\n\n var _baseImgLayer = new L.tileLayer(window.context.cqMap + '/arcgis/rest/services/ChinaOnlineCommunity/MapServer/tile/{z}/{y}/{x}');\n\n _baseImgLayer.addTo(this.map);\n\n this.map.setView([30.707807, 108.390246], 11); // vec 矢量底图 img 影像\n // var _baseImgLayer = new L.tileLayer(\n // window.context.frontMap +\n // '/vec_c/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=c&FORMAT=tiles' +\n // '&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}' +\n // '&tk=bff554ec2d59ec30f9f7debffd440624',\n // {\n // zoomOffset: 1,\n // }\n // )\n // _baseImgLayer.addTo(this.map)\n // // cva 矢量注记 cia影像注记\n // let pointImgLayer = new L.tileLayer(\n // window.context.frontMap +\n // '/cva_c/wmts?layer=cva&style=default&tilematrixset=c&Service=WMTS&Request=GetTile&Version=1.0.0&Format=tiles' +\n // '&TileMatrix={z}&TileCol={x}&TileRow={y}' +\n // '&tk=f6df78cf1738e5623e2291f608e7040e',\n // {\n // zoomOffset: 1,\n // }\n // )\n // console.log(pointImgLayer, _baseImgLayer)\n // pointImgLayer.addTo(this.map)\n\n this.map.on('click', function (point) {\n console.log(point);\n console.log('lt:' + point.latlng.lat);\n console.log('lg:' + point.latlng.lng);\n });\n this.map.setMinZoom(8);\n this.map.setMaxZoom(17);\n this.initWZ();\n },\n initWZ: function initWZ() {\n var countries = [];\n countries = wanzhou.features;\n var myStyle = {\n color: '#49d3ff',\n //'#d2e0e1',\n weight: 3,\n opacity: 1,\n fillColor: '#49d3ff',\n //'transparent',\n fillOpacity: 0.15\n };\n this.baseMapOverlay = new L.geoJSON(countries, {\n style: myStyle\n });\n this.map.addLayer(this.baseMapOverlay);\n this.baseMapOverlay.bringToBack();\n },\n handleMenus: function handleMenus() {\n if (this.workPlatMenu.length !== 0) {\n if (this.workPlatMenu[0].children[0].children.length !== 0) {\n this.$router.push({\n path: \"/platLayout/\".concat(this.workPlatMenu[0].children[0].children[0].alias)\n });\n } else {\n this.$router.push({\n path: \"/platLayout/\".concat(this.workPlatMenu[0].children[0].alias)\n });\n }\n }\n },\n handleLogout: function handleLogout() {\n var _this19 = this;\n\n this.$store.dispatch('menu/clearMenus');\n this.$store.dispatch('user/clearUser');\n this.$store.dispatch('menu/setCopyMenus', []); //菜单\n\n var loginRouthPath = localStorage.getItem(this.$store.state.login.currentUser.account + 'loginRoutePath') || '/login';\n this.$store.dispatch('login/logoutAndCleanUp').then(function () {\n switch (window.ssoConfig.mode) {\n case 'cas':\n case 'oauth':\n window.sessionStorage.removeItem('currentUser');\n window.location.href = window.ssoConfig.logout + '?service=' + window.location.href.split('?')[0];\n break;\n\n default:\n _this19.$router.push({\n path: loginRouthPath\n });\n\n break;\n }\n });\n },\n // 关闭事件统计弹层\n closeEventDialog: function closeEventDialog() {\n this.showEventDialog = false;\n },\n // 点击事件统计\n openEvent: function openEvent(title, value) {\n var _this20 = this;\n\n this.sourceVal = '';\n\n if (title !== this.eventTitle) {\n console.log(title !== this.eventTitle);\n this.pageParams.page = 1;\n }\n\n this.eventTitle = title;\n this.eventReq = value;\n this.showEventDialog = true;\n bigScreenAPI.getListByEventStatus({\n groupRelation: 'AND',\n groupTree: {},\n pageBean: _objectSpread({\n showTotal: true\n }, this.pageParams),\n params: _objectSpread({}, this.formData),\n querys: [{\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'event_status_',\n relation: 'AND',\n value: value\n }]\n }).then(function (res) {\n console.log(res);\n _this20.eventTableData = res.rows;\n _this20.total = res.total;\n });\n },\n // 根据事件来源查询事件列表\n openEventBySource: function openEventBySource(title, value) {\n var _this21 = this;\n\n if (title !== this.eventTitle) {\n console.log(title !== this.eventTitle);\n this.pageParams.page = 1;\n }\n\n this.eventTitle = title;\n this.showEventDialog = true;\n bigScreenAPI.getListByEventStatus({\n groupRelation: 'AND',\n groupTree: {},\n pageBean: _objectSpread({\n showTotal: true\n }, this.pageParams),\n params: _objectSpread({}, this.formData),\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'event_source_',\n relation: 'AND',\n value: this.sourceVal\n }]\n }).then(function (res) {\n _this21.eventTableData = res.rows;\n _this21.total = res.total;\n });\n },\n eventConfirmation: function eventConfirmation(item, type) {\n this.eventRow = item;\n this.showEventConfirmation = true;\n this.typeSource = type;\n },\n // 关闭事件操作弹层\n closeConfirmation: function closeConfirmation() {\n this.showEventConfirmation = false;\n this.$refs.volumnDialog.getWarningList();\n },\n // 翻页\n handleCurrentChange: function handleCurrentChange(val) {\n this.pageParams.page = val;\n this.openEvent(this.eventTitle, this.eventReq);\n }\n },\n beforeDestroy: function beforeDestroy() {\n clearInterval(this.timer);\n clearInterval(this.queryTimer);\n }\n};",null]}