forked from zhurui/management
1 line
7.7 KiB
JSON
1 line
7.7 KiB
JSON
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\xwyl\\track.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\xwyl\\track.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n data: function data() {\n return {\n iframeSrc: \"\",\n startTime: '',\n endTime: '',\n activeIndex: 'index'\n };\n },\n created: function created() {\n this.iframeSrc = window.GLOBAL_CONFIG['BASE_URL_NGINX'] + \"/#/positionService/\" + this.activeIndex;\n },\n activated: function activated() {\n this.initDate(); //获取最新 15分钟时间\n\n var params = this.$route.query;\n\n if (params.tid) {\n var url = window.GLOBAL_CONFIG['BASE_URL_NGINX'] + \"/#/positionService/track\";\n url += '?tid=' + params.tid;\n var start = this.startTime;\n var end = this.endTime;\n\n if (params.start) {\n start = params.start;\n }\n\n if (params.end) {\n end = params.end;\n }\n\n url += '&start=' + start;\n url += '&end=' + end;\n\n if (params.vrid) {\n url += '&vrid=' + params.vrid;\n }\n\n this.iframeSrc = url;\n }\n\n if (params.url) {\n this.activeIndex = params.url;\n this.iframeSrc = window.GLOBAL_CONFIG['BASE_URL_NGINX'] + \"/#/positionService/\" + params.url;\n }\n },\n methods: {\n initDate: function initDate() {\n var end = new Date().getTime();\n var start = end - 1000 * 60 * 15;\n this.startTime = start;\n this.endTime = end;\n },\n menuSelect: function menuSelect(val) {\n var url = window.GLOBAL_CONFIG['BASE_URL_NGINX'] + \"/#/\";\n\n if (val == 'deviceManage') {\n url += val;\n } else {\n url = url + \"positionService/\" + val;\n }\n\n this.activeIndex = val;\n this.iframeSrc = url;\n }\n }\n};",{"version":3,"sources":["track.vue"],"names":[],"mappings":";;;;;;;;;;;;;;AAeA,eAAA;AACA,EAAA,IADA,kBACA;AACA,WAAA;AACA,MAAA,SAAA,EAAA,EADA;AAEA,MAAA,SAAA,EAAA,EAFA;AAGA,MAAA,OAAA,EAAA,EAHA;AAIA,MAAA,WAAA,EAAA;AAJA,KAAA;AAMA,GARA;AASA,EAAA,OATA,qBASA;AACA,SAAA,SAAA,GAAA,MAAA,CAAA,aAAA,CAAA,gBAAA,IAAA,qBAAA,GAAA,KAAA,WAAA;AACA,GAXA;AAYA,EAAA,SAZA,uBAYA;AACA,SAAA,QAAA,GADA,CACA;;AACA,QAAA,MAAA,GAAA,KAAA,MAAA,CAAA,KAAA;;AACA,QAAA,MAAA,CAAA,GAAA,EAAA;AACA,UAAA,GAAA,GAAA,MAAA,CAAA,aAAA,CAAA,gBAAA,IAAA,0BAAA;AACA,MAAA,GAAA,IAAA,UAAA,MAAA,CAAA,GAAA;AACA,UAAA,KAAA,GAAA,KAAA,SAAA;AACA,UAAA,GAAA,GAAA,KAAA,OAAA;;AACA,UAAA,MAAA,CAAA,KAAA,EAAA;AACA,QAAA,KAAA,GAAA,MAAA,CAAA,KAAA;AACA;;AACA,UAAA,MAAA,CAAA,GAAA,EAAA;AACA,QAAA,GAAA,GAAA,MAAA,CAAA,GAAA;AACA;;AACA,MAAA,GAAA,IAAA,YAAA,KAAA;AACA,MAAA,GAAA,IAAA,UAAA,GAAA;;AACA,UAAA,MAAA,CAAA,IAAA,EAAA;AACA,QAAA,GAAA,IAAA,WAAA,MAAA,CAAA,IAAA;AACA;;AACA,WAAA,SAAA,GAAA,GAAA;AACA;;AACA,QAAA,MAAA,CAAA,GAAA,EAAA;AACA,WAAA,WAAA,GAAA,MAAA,CAAA,GAAA;AACA,WAAA,SAAA,GAAA,MAAA,CAAA,aAAA,CAAA,gBAAA,IAAA,qBAAA,GAAA,MAAA,CAAA,GAAA;AACA;AACA,GArCA;AAsCA,EAAA,OAAA,EAAA;AACA,IAAA,QADA,sBACA;AACA,UAAA,GAAA,GAAA,IAAA,IAAA,GAAA,OAAA,EAAA;AACA,UAAA,KAAA,GAAA,GAAA,GAAA,OAAA,EAAA,GAAA,EAAA;AACA,WAAA,SAAA,GAAA,KAAA;AACA,WAAA,OAAA,GAAA,GAAA;AACA,KANA;AAOA,IAAA,UAPA,sBAOA,GAPA,EAOA;AACA,UAAA,GAAA,GAAA,MAAA,CAAA,aAAA,CAAA,gBAAA,IAAA,KAAA;;AACA,UAAA,GAAA,IAAA,cAAA,EAAA;AACA,QAAA,GAAA,IAAA,GAAA;AACA,OAFA,MAGA;AACA,QAAA,GAAA,GAAA,GAAA,GAAA,kBAAA,GAAA,GAAA;AACA;;AACA,WAAA,WAAA,GAAA,GAAA;AACA,WAAA,SAAA,GAAA,GAAA;AACA;AAjBA;AAtCA,CAAA","sourcesContent":["<template>\n <div>\n <el-menu :default-active=\"activeIndex\" mode=\"horizontal\" @select=\"menuSelect\">\n <el-menu-item index=\"index\">实时定位</el-menu-item>\n <el-menu-item v-if=\"$hasPermission('sys:position:track')\" index=\"track\">轨迹追踪</el-menu-item>\n <el-menu-item v-if=\"$hasPermission('sys:position:fence')\" index=\"fence\">电子围栏</el-menu-item>\n <el-menu-item v-if=\"$hasPermission('sys:position:rollcall')\" index=\"rollcall\">电子点名</el-menu-item>\n <el-menu-item v-if=\"$hasPermission('sys:position:camera')\" index=\"camera\">视频联动</el-menu-item>\n <el-menu-item v-if=\"$hasPermission('sys:position:alarm')\" index=\"alarm\">报警</el-menu-item>\n <el-menu-item v-if=\"$hasPermission('sys:position:deviceManage')\" index=\"deviceManage\">设备管理</el-menu-item>\n </el-menu>\n <iframe :src=\"iframeSrc\" frameborder=\"0\" width=\"100%\" height=\"100%\"></iframe>\n </div>\n</template>\n<script>\nexport default {\n data(){\n return{\n iframeSrc:\"\",\n startTime:'',\n endTime:'',\n activeIndex:'index'\n }\n },\n created() {\n this.iframeSrc=window.GLOBAL_CONFIG['BASE_URL_NGINX']+\"/#/positionService/\"+this.activeIndex\n },\n activated(){\n this.initDate();//获取最新 15分钟时间\n let params=this.$route.query;\n if(params.tid){\n let url=window.GLOBAL_CONFIG['BASE_URL_NGINX']+\"/#/positionService/track\";\n url+='?tid='+params.tid;\n let start=this.startTime;\n let end=this.endTime;\n if(params.start){\n start=params.start;\n }\n if(params.end){\n end=params.end;\n }\n url+='&start='+start;\n url+='&end='+end;\n if(params.vrid){\n url+='&vrid='+params.vrid;\n }\n this.iframeSrc=url\n }\n if(params.url){\n this.activeIndex=params.url;\n this.iframeSrc=window.GLOBAL_CONFIG['BASE_URL_NGINX']+\"/#/positionService/\"+params.url\n }\n },\n methods:{\n initDate(){\n let end=new Date().getTime();\n let start=end-1000*60*15;\n this.startTime=start;\n this.endTime=end;\n },\n menuSelect(val){\n let url=window.GLOBAL_CONFIG['BASE_URL_NGINX']+\"/#/\";\n if(val=='deviceManage'){\n url+=val;\n }\n else{\n url=url+\"positionService/\"+val;\n }\n this.activeIndex=val;\n this.iframeSrc=url;\n }\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n div{\n width: 100%;\n height: calc(100vh - 146px);\n padding: 34px 0 0 0;\n box-sizing: border-box;\n position: relative;\n }\n .el-menu{\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n background: rgb(195, 223, 253);\n border-bottom-color: transparent;\n .el-menu-item{\n height: 34px;\n line-height: 34px;\n color:#1881ff;\n &.is-active{\n border-bottom-color: #1881ff;\n }\n }\n }\n</style>"],"sourceRoot":"src/views/modules/xwyl"}]} |