1 |
- {"version":3,"sources":["webpack:///./src/api/Service.js","webpack:///src/App.vue","webpack:///./src/App.vue?1e46","webpack:///./src/App.vue","webpack:///./src/router/index.js","webpack:///./src/store/getters.js","webpack:///./src/store/login/index.js","webpack:///./src/store/store.js","webpack:///./src/mixin/mixin.js","webpack:///./src/components/toptitle/toptitle.vue?cf41","webpack:///./src/components/toptitle/toptitle.vue","webpack:///src/components/toptitle/toptitle.vue","webpack:///./src/components/toptitle/index.js","webpack:///./src/mixin/messge.js","webpack:///./src/main.js","webpack:///./src/api/request.js"],"names":["http","defaults","timeout","G","window","g","ConfigBaseURL","get","then","res","sessionStorage","setItem","eval","data","baseUrl","mapUrl","getItem","loadingInstance","Token","Service","axios","create","baseURL","url","process","BASE_API","method","headers","Content-Type","interceptors","request","use","config","response","error","console","log","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise___default","a","reject","App","name","_gap_time","_beforeUnload_time","start","audio","Audio","created","mounted","_this","this","setInterval","alarmList","destroyed","_this2","asyncToGenerator_default","regenerator_default","mark","_callee","wrap","_context","prev","next","stop","watch","linhear","methods","_this3","Object","item","src","resultData","play","pause","_this4","value","PageIndex","PageSize","agreepersonlist","result","length","selectortype_template_index_0_src_App","render","_h","$createElement","_c","_self","attrs","id","_v","staticRenderFns","src_App","__webpack_require__","normalizeComponent","ssrContext","Vue","Router","originalPush","prototype","push","location","call","catch","err","home","path","component","e","bind","CarMap","CarAdministration","OrderAdministration","Alarm","redirect","children","Promise","all","ArmManage","DeliveryManage","ReportStatistics","SystemSet","Baggage","routes","router","getters","login","state","userData","mutations","MsetUserData","list","actions","AsetUserData","_ref","commit","Vuex","store","Store","modules","mixin","toptitle_toptitle","_vm","staticClass","staticStyle","padding-left","_s","title","isSet","margin-top","color","_e","components_toptitle_toptitle","toptitle_normalizeComponent","props","carNum","num","toSetCarNum","setCarNum","unSet","toptitle_","install","toptitle","messageInstance","resetMessage","options","close","Message","forEach","msg","showClose","duration","type","message","scroll","$message","$echarts","echarts","$axios","productionTip","ElementUI","el","components","template","page","perpage","filter_by_state","params","order_id","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default","bagid"],"mappings":"s5BAIAA,8CAAKC,SAASC,QAAU,IACxB,IAAMC,EAAIC,OAAOC,EAEbC,cAAc,GACdN,8CAAKO,IAAI,qBAAqBC,KAAK,SAACC,KAChCC,eAAeC,QAAQ,UAAUC,KAAK,IAAMH,IAAII,KAAO,KAAKC,SAClEJ,eAAeC,QAAQ,SAASC,KAAK,IAAMH,IAAII,KAAO,KAAKE,QACrDT,cAAcM,KAAK,IAAMH,IAAII,KAAO,KAAKC,UAEjDR,cAAcI,eAAeM,QAAQ,WACrC,IAAIC,gBAAkB,KAClBC,MAAQ,2EAECC,QAAUC,8CAAMC,QAC3BnB,QAAS,IACToB,QAASnB,EAAIA,EAAEoB,IAAMC,qEAAYC,SACjCC,OAAO,4BACPC,SACEC,eAAgB,oCAIpBT,QAAQU,aAAaC,QAAQC,IAAI,SAAAC,GAC/B,OAAOA,IAGTb,QAAQU,aAAaI,SAASF,IAAI,SAAAE,GAEhC,OAAOA,EAASpB,MACf,SAAAqB,GAGD,OAFAC,QAAQC,IAAI,aAAcF,GAEnBG,oEAAAC,EAAQC,OAAOL,+JCrBxBM,GACAC,KAAA,MACA5B,KAFA,WAGA,OACA6B,UAAA,EACAC,mBAAA,EACAC,MAAA,EACAC,MAAA,IAAAC,QAGAC,QAVA,aAWAC,QAXA,WAWA,IAAAC,EAAAC,KACAC,YAAA,WAEAF,EAAAG,aACA,MAIAC,UAnBA,WAmBA,IAAAC,EAAAJ,KAAA,OAAAK,IAAAC,EAAAlB,EAAAmB,KAAA,SAAAC,IAAA,OAAAF,EAAAlB,EAAAqB,KAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,wBAAAF,EAAAG,SAAAL,EAAAJ,KAAAC,IAIAS,OACApB,MADA,WAEAM,KAAAe,YAGAC,SAEAD,QAFA,WAEA,IAAA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SAIH,SAA+BA,GACpC,OAAOM,aACLI,IAAK,kCACLG,OAAQ,OACRb,KAAMA,SAIH,SAA+BA,GACpC,OAAOM,aACLI,IAAK,mCACLG,OAAQ,OACRb,KAAMA,SAGH,SAA+BA,GACpC,OAAOM,aACLI,IAAK,kCACLG,OAAQ,OACRb,KAAMA,SAIH,WACL,OAAOM,aACLI,IAAK,8BACLG,OAAQ,aAIL,SAAmBb,GACxB,OAAOM,aACLI,IAAK,wDACLG,OAAQ,MACRb,KAAMA,SAGH,WACL,OAAOM,aACLI,IAAK,0CACLG,OAAQ,aAWL,SAAwBb,GAC7B,OAAyB,GAArBA,EAAKgL,MAAM7G,OACN7D,aACLI,IAAK,4CAA8CV,EAAK0K,KAAO,aAAe1K,EAAKgE,SACnFnD,OAAQ,MACRb,KAAMA,IAGDM,aACLI,IAAK,4CAA8CV,EAAK0K,KAAO,aAAe1K,EAAKgE,SAAW,UAAYhE,EAAKgL,MAC/GnK,OAAQ,MACRb,KAAMA,SAKL,SAAkBA,GACvB,OAAOM,aACLI,IAAK,+BACLG,OAAQ,MACRb,KAAMA","file":"static/js/app.23e10449c235a2ad2d0b.js","sourcesContent":["import axios from 'axios'\r\nimport { Message, Loading } from 'element-ui'\r\nimport http from 'axios'\r\nimport qs from 'qs'\r\nhttp.defaults.timeout = 50000;\r\nconst G = window.g // 在static/js/config.js中可以动态的修改后台请求地址\r\n// alert(G.url)\r\nvar ConfigBaseURL='';\r\n http.get('static/serve.json').then((res)=>{\r\n sessionStorage.setItem('baseURL',eval('(' + res.data + ')').baseUrl)\r\n\t\tsessionStorage.setItem('mapURL',eval('(' + res.data + ')').mapUrl)\r\n ConfigBaseURL=eval('(' + res.data + ')').baseUrl\r\n })\r\nConfigBaseURL=sessionStorage.getItem('baseURL')\r\nlet loadingInstance = null //这里是loadingd\r\nvar Token = \"YWRtaW4sMTYwMDMyMjU1MDU1Niw5MDEzNWM1YmUxOGUxMTM4NjNlNDgxNGEyYTkzNzM3YQ==\";\r\n//使用create方法创建axios实例\r\nexport const Service = axios.create({\r\n timeout: 5000, // 请求超时时间\r\n baseURL: G ? G.url : process.env.BASE_API, // api的base_url,\r\n method:'get、post、put、patch、delete',\r\n headers: {\r\n 'Content-Type': 'application/json;charset=UTF-8',\r\n }\r\n})\r\n// 添加请求拦截器\r\nService.interceptors.request.use(config => {\r\n return config\r\n})\r\n// 添加响应拦截器\r\nService.interceptors.response.use(response => {\r\n\r\n return response.data\r\n}, error => {\r\n console.log('TCL: error', error)\r\n\r\n return Promise.reject(error)\r\n})\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/api/Service.js","<template>\r\n <div id=\"app\">\r\n <audio />\r\n <router-view></router-view>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport {\r\n Changestat,\r\n Changestat2,\r\n Changestat3,\r\n alarmInformationhos,\r\n AlarmSon,\r\n} from \"@/api/request.js\";\r\nexport default {\r\n name: \"App\",\r\n data() {\r\n return {\r\n _gap_time: 0,\r\n _beforeUnload_time: 0,\r\n start: 0,\r\n audio: new Audio(),\r\n };\r\n },\r\n created() {},\r\n mounted() {\r\n setInterval(() => {\r\n //实时更新数据\r\n this.alarmList();\r\n }, 2000);\r\n // window.addEventListener('beforeunload', e => this.beforeunloadHandler(e))\r\n // window.addEventListener('unload', e => this.unloadHandler(e))\r\n },\r\n async destroyed() {\r\n // window.removeEventListener('beforeunload', e => this.beforeunloadHandler(e))\r\n // window.removeEventListener('unload', e => this.unloadHandler(e))\r\n },\r\n watch: {\r\n start() {\r\n this.linhear();\r\n },\r\n },\r\n methods: {\r\n //告警声音\r\n linhear() {\r\n AlarmSon().then((item) => {\r\n let audio = new Audio();\r\n audio.src = item.resultData;\r\n if (this.start == 1) {\r\n audio.play();\r\n } else {\r\n audio.pause();\r\n }\r\n });\r\n },\r\n //告警信息\r\n alarmList() {\r\n let params = {\r\n value: false,\r\n PageIndex: 1,\r\n PageSize: 8,\r\n };\r\n alarmInformationhos(params).then((res) => {\r\n this.agreepersonlist = res.resultData.result;\r\n if (this.agreepersonlist.length > 0) {\r\n this.start = 1;\r\n } else {\r\n this.start = 0;\r\n }\r\n });\r\n },\r\n // beforeunloadHandler() {\r\n // \tthis._beforeUnload_time = new Date().getTime();\r\n // },\r\n // async unloadHandler(e) {\r\n // \tthis._gap_time = new Date().getTime() - this._beforeUnload_time;\r\n // \t//判断是窗口关闭还是刷新\r\n // \tif (this._gap_time <= 5) {\r\n // \t\tlet data2 = {\r\n // \t\t\tstate:\"0\"\r\n // \t\t}\r\n // \t\tawait Changestat(data2).then(res => {\r\n // \t\t\tsessionStorage.setItem(\"isopen1\",false);\r\n // \t\t\tsessionStorage.setItem(\"isopen2\",false);\r\n // \t\t}).catch(() =>{\r\n // \t\t})\r\n // \t\tawait Changestat2(data2).then(res => {\r\n // \t\t\tsessionStorage.setItem(\"isopen1\",false);\r\n // \t\t\tsessionStorage.setItem(\"isopen2\",false);\r\n // \t\t}).catch(() =>{\r\n // \t\t})\r\n // \t\tawait Changestat3(data2).then(res => {\r\n // \t\t\tsessionStorage.setItem(\"isopen1\",false);\r\n // \t\t\tsessionStorage.setItem(\"isopen2\",false);\r\n // \t\t}).catch(() =>{\r\n // \t\t})\r\n // \t}\r\n // \tdebugger\r\n // },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang='less'>\r\n@import \"./assets/css/common.less\";\r\n\r\n/depp/.el-button {\r\n border: none !important;\r\n}\r\n\r\n#app {\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n::-webkit-scrollbar {\r\n width: 4px;\r\n height: 10px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n background-color: #0478c0;\r\n border-radius: 3px;\r\n}\r\n\r\n.el-table {\r\n background-color: none !important;\r\n}\r\n</style>\n\n\n// WEBPACK FOOTER //\n// src/App.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('audio'),_vm._v(\" \"),_c('router-view')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-41695917\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-41695917\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue\")\n}\nvar normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-41695917\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","import Vue from 'vue'\r\nimport Router from 'vue-router'\r\n\r\nVue.use(Router)\r\n\r\nconst originalPush = Router.prototype.push;\r\nRouter.prototype.push = function push(location) {\r\n return originalPush.call(this, location).catch(err => err);\r\n}\r\n// const originalPush = Router.prototype.push\r\n// Router.prototype.push = function push(location, onResolve, onReject) {\r\n// if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject)\r\n// return originalPush.call(this, location).catch(err => err)\r\n// }\r\n\r\n\r\nconst home={//主页\r\n path: '/',\r\n name: 'home',\r\n component: () => import('@/pages/Common/home')\r\n}\r\nconst CarMap={//车辆管理\r\n path: '/CarMap',\r\n name: 'CarMap',\r\n component: () => import('@/pages/Common/HomeCompents/map')\r\n}\r\nconst CarAdministration={//车辆管理\r\n path: '/CarAdministration',\r\n name: 'CarAdministration',\r\n component: () => import('@/pages/Common/HomeCompents/CarAdministration')\r\n}\r\nconst OrderAdministration={//订单管理\r\n path: '/OrderAdministration',//订单管理\r\n name: 'OrderAdministration',\r\n component: () => import('@/pages/Common/HomeCompents/OrderAdministration')\r\n}\r\nconst Alarm={\r\n path: '/Alarm',\r\n name: 'Alarm',\r\n component: () => import('@/pages/Alarm/index'),\r\n redirect: '/Alarm/RealTime',\r\n children: [{\r\n \t\tpath: '/Alarm/RealTime',\r\n \t\tname: 'RealTime',\r\n \t\tcomponent: () => import(\"@/pages/Alarm/RealTime/index\"),\r\n \t},\r\n \t{\r\n \t\tpath: '/Alarm/History',\r\n \t\tname: 'History',\r\n \t\tcomponent: () => import(\"@/pages/Alarm/History/index\"),\r\n \t},\r\n ]\r\n}\r\nconst ArmManage={\r\n path: '/ArmManage',\r\n name: 'ArmManage',\r\n component: () => import('@/pages/ArmManage/index'),\r\n}\r\nconst DeliveryManage={\r\n path: '/DeliveryManage',\r\n name: 'DeliveryManage',\r\n redirect: '/DeliveryManage/index',\r\n component: () => import('@/pages/DeliveryManage/index'),\r\n children: [{\r\n \tpath: '/DeliveryManage/index',\r\n \tname: 'DeliveryManageIndex',\r\n \tcomponent: () => import(\"@/pages/DeliveryManage/index/index\"),\r\n }]\r\n}\r\nconst ReportStatistics={\r\n path: '/ReportStatistics',\r\n name: 'ReportStatistics',\r\n component: () => import('@/pages/ReportStatistics/index'),\r\n}\r\nconst SystemSet={\r\n path: '/SystemSet',\r\n name: 'SystemSet',\r\n redirect: '/SystemSet/index',\r\n component: () => import('@/pages/SystemSet/index'),\r\n children: [{\r\n \t\tpath: '/SystemSet/index',\r\n \t\tname: 'SystemSetIndex',\r\n \t\tcomponent: () => import(\"@/pages/SystemSet/index/index\"),\r\n \t},\r\n \t{\r\n \t\tpath: '/SystemSet/Parameter',\r\n \t\tname: 'Parameter',\r\n \t\tcomponent: () => import(\"@/pages/SystemSet/Parameter/index\"),\r\n \t},\r\n \t{\r\n \t\tpath: '/SystemSet/User',\r\n \t\tname: 'User',\r\n \t\tcomponent: () => import(\"@/pages/SystemSet/User/index\"),\r\n \t},\r\n {\r\n \t\tpath: '/SystemSet/Users',\r\n \t\tname: 'Users',\r\n \t\tcomponent: () => import(\"@/pages/SystemSet/Users/index\"),\r\n \t},\r\n // {\r\n // \tpath: '/SystemSet/taskSetting',\r\n // \tname: 'taskSetting',\r\n // \tcomponent: () => import(\"@/pages/SystemSet/taskSetting/index\"),\r\n // },\r\n {\r\n \tpath: '/SystemSet/Restart',\r\n \tname: 'Restart',\r\n \tcomponent: () => import(\"@/pages/SystemSet/Restart/index\"),\r\n }\r\n ]\r\n}\r\n\r\nconst Baggage={\r\n path: '/Baggage',\r\n name: 'Baggage',\r\n redirect: '/Baggage/index',\r\n component: () => import('@/pages/Baggage/index'),\r\n children: [{\r\n path: '/Baggage/index',\r\n name: 'BaggageIndex',\r\n component: () => import(\"@/pages/Baggage/index/index\"),\r\n },\r\n {\r\n path: '/Baggage/Baggageser',\r\n name: 'Baggageser',\r\n component: () => import(\"@/pages/Baggage/Baggageser/index\"),\r\n },\r\n ]\r\n}\r\nconst routes = [\r\n {\r\n path: '/',\r\n name: 'login',\r\n component: () => import(\"../pages/login.vue\")\r\n },\r\n {\r\n path: '/admin',\r\n name: 'admin',\r\n component: () => import(\"../pages/admin.vue\"),\r\n children: [\r\n ]\r\n }\r\n];\r\n\r\nroutes[1].children.push(home);\r\nroutes[1].children.push(CarMap);\r\nroutes[1].children.push(CarAdministration);\r\nroutes[1].children.push(OrderAdministration);\r\nroutes[1].children.push(Alarm);\r\nroutes[1].children.push(ArmManage);\r\nroutes[1].children.push(DeliveryManage);\r\nroutes[1].children.push(ReportStatistics);\r\nroutes[1].children.push(SystemSet);\r\nroutes[1].children.push(Baggage);\r\n\r\nexport default new Router({\r\n routes\r\n})\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/router/index.js","let getters={\r\n login:state => state.login.userData//调取登录的用户信息\r\n}\r\nexport default getters\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/getters.js","\r\nlet login = {\r\n state: {\r\n userData:{}//用户登录状态\r\n },\r\n mutations: {\r\n MsetUserData (state, list) {\r\n state.userData = list\r\n }\r\n },\r\n actions: {\r\n AsetUserData ({ commit }, list) {\r\n commit('MsetUserData', list)\r\n }\r\n }\r\n}\r\nexport default login\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/login/index.js","import Vue from \"vue\"\r\nimport Vuex from \"vuex\"\r\nimport getters from \"./getters\"\r\nimport login from \"./login/index\"\r\nVue.use(Vuex)\r\nexport default new Vuex.Store({\r\n modules: {//引用子模块\r\n login\r\n },\r\n getters//直接使用和查看state数据\r\n})\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/store.js","let mixin = {\r\n data() {\r\n return {\r\n\r\n }\r\n },\r\n methods: {}\r\n}\r\nexport default mixin\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/mixin/mixin.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"body\"},[_c('div',{staticClass:\"title_body\"},[_c('span',{staticStyle:{\"padding-left\":\"10px\"}},[_vm._v(_vm._s(_vm.title)+\" \")])]),_vm._v(\" \"),_c('div',{staticClass:\"title_line\"},[(_vm.title=='车辆信息'&&_vm.isSet==false)?_c('div',{staticStyle:{\"margin-top\":\"5px\",\"color\":\"#fff\"}}):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"title_right\"})])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-2c6f28a0\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/toptitle/toptitle.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-2c6f28a0\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./toptitle.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./toptitle.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./toptitle.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2c6f28a0\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./toptitle.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-2c6f28a0\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/toptitle/toptitle.vue\n// module id = null\n// module chunks = ","<template>\r\n <div class=\"body\">\r\n <div class=\"title_body\">\r\n <span style=\"padding-left: 10px;\">{{ title }} </span>\r\n </div>\r\n <div class=\"title_line\">\r\n\t\t<div v-if=\"title=='车辆信息'&&isSet==false\" style=\"margin-top: 5px;color: #fff;\">\r\n\t\t\t<!-- <span>保持在线车辆:</span><span style=\"color: #FF0000;\">{{carNum}}</span><span> 辆</span> -->\r\n\t\t\t<!-- <el-button style=\"padding: 5px 10px;margin-left: 5px;\" class=\"custom_btn Colorbutton_blue\" @click=\"toSetCarNum\">设置</el-button> -->\r\n\t\t</div>\r\n\t\t<!-- <div v-if=\"title=='车辆信息'&&isSet==true\" style=\"margin-top: 5px;color: #fff;\">\r\n\t\t\t<el-input-number size=\"mini\" v-model=\"num\" :max=\"5\" style=\"width: 100px;\"></el-input-number>\r\n\t\t\t<span> 辆</span>\r\n\t\t\t<el-button style=\"padding: 5px 10px;margin-left: 5px;\" class=\"custom_btn Colorbutton_blue\" @click=\"setCarNum\">确认</el-button>\r\n\t\t\t<el-button style=\"padding: 5px 10px;margin-left: 5px;\" class=\"custom_btn Colorbutton_blue\" @click=\"unSet\">取消</el-button>\r\n\t\t</div> -->\r\n\t</div>\r\n <div class=\"title_right\"></div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n props: {\r\n title: \"\",\r\n },\r\n data() {\r\n return {\r\n\t\tcarNum:1,\r\n\t\tisSet:false,\r\n\t\tnum:1,\r\n }\r\n },\r\n methods:{\r\n\t toSetCarNum:function(){\r\n\t\t this.isSet=true;\r\n\t\t this.num = this.carNum;\r\n\t },\r\n\t setCarNum:function(){\r\n\t\t this.isSet=false;\r\n\t\t this.carNum = this.num;\r\n\t },\r\n\t unSet:function(){\r\n\t\t this.isSet=false;\r\n\t }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"less\" scoped>\r\n.body {\r\n height: 42px;\r\n width: 100%;\r\n display: flex;\r\n flex-direction: row;\r\n .title_body {\r\n width: 185px;\r\n height: 100%;\r\n display: flex;\r\n line-height: 32px;\r\n font-size: 18px;\r\n color: #ffffff;\r\n font-weight: bold;\r\n background-image: url(\"../../assets/img/title_style1_left.png\");\r\n border: 0px;\r\n }\r\n .title_line {\r\n flex: 1;\r\n background-image: url(\"../../assets/img/title_style1_center.png\");\r\n border: 0px;\r\n background-position: 10% 40%;\r\n height: 100%;\r\n }\r\n .title_right {\r\n border: 0px;\r\n width: 64px;\r\n background-image: url(\"../../assets/img/title_style1_right.png\");\r\n height: 100%;\r\n }\r\n}\r\n</style>\n\n\n// WEBPACK FOOTER //\n// src/components/toptitle/toptitle.vue","import toptitle from './toptitle.vue';\r\n\r\nconst toptitle_ = {\r\n install:function(Vue) {\r\n Vue.component('top-title', toptitle)\r\n }\r\n}\r\n\r\nexport default toptitle_;\n\n\n// WEBPACK FOOTER //\n// ./src/components/toptitle/index.js","/**防止重复点击重复弹出message弹框 */\r\nimport {\r\n Message\r\n} from 'element-ui';\r\nlet messageInstance = null;\r\nconst resetMessage = (options) => {\r\n if (messageInstance) {\r\n messageInstance.close()\r\n }\r\n messageInstance = Message(options)\r\n};\r\n/**设置message弹框的格式 */\r\n['error', 'success', 'info', 'warning'].forEach((item) => {\r\n resetMessage[item] = (msg) => {\r\n return Message({\r\n showClose: true,\r\n duration:100,\r\n type: item,\r\n message: msg\r\n })\r\n }\r\n})\r\nexport const message = resetMessage\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/mixin/messge.js","// The Vue build version to load with the `import` command\r\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\r\nimport Vue from 'vue'\r\nimport App from './App'\r\nimport ElementUI from 'element-ui'\r\nimport 'element-ui/lib/theme-chalk/index.css'\r\nimport router from './router'\r\nimport store from '@/store/store'\r\nimport mixin from '@/mixin/mixin'\r\nimport toptitle_ from '@/components/toptitle/index'\r\nimport {Service} from './api/Service.js'\r\nimport Vuex from 'vuex'\r\nimport scroll from 'vue-seamless-scroll'\r\nVue.use(scroll)\r\nimport {message} from './mixin/messge.js';\r\nVue.prototype.$message = message;\r\n\r\nVue.use(Vuex)\r\nimport echarts from 'echarts'\r\nVue.prototype.$echarts = echarts\r\n\r\nimport $ from 'jquery'\r\nVue.prototype.$axios=Service\r\n\r\n\r\n\r\n\r\n\r\n\r\n// router.beforeEach((to, from, next) => {\r\n// console.log(to)\r\n// let username = JSON.parse(sessionStorage.getItem('userData'))\r\n// console.log(username)\r\n// if(username){\r\n// if(Date.now()-username.time>1000*60*60*2){\r\n// sessionStorage.removeItem(\"userData\");\r\n// alert('登录已过期,请重新登录!')\r\n// next('/')\r\n// }else{\r\n// next()\r\n// }\r\n// }else{\r\n// if (to.path === '/') {\r\n// next()\r\n// } else {\r\n// alert('您还未登录,请先登录!')\r\n// next('/')\r\n// }\r\n// }\r\n// });\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nVue.config.productionTip = false\r\n\r\nVue.use(ElementUI)\r\nVue.use(store)\r\nVue.use(toptitle_)\r\nVue.use(mixin)\r\n/* eslint-disable no-new */\r\nnew Vue({\r\n el: '#app',\r\n router,\r\n store,\r\n components: { App },\r\n template: '<App/>'\r\n})\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","import { Service } from './Service.js'\r\nexport function getVehicles(data) {//获取车辆信息\r\n return Service({\r\n url: '/Framework/IDSInfo/VehiclesInfo?page=' + data.page + \"&perpage=\" + data.perpage,\r\n method: 'get',\r\n })\r\n}\r\nexport function getVehicleser() {//获取车辆信息\r\n return Service({\r\n url: '/Framework/AmrPlc/GetAmrUpperPlcList',\r\n method: 'get',\r\n })\r\n}\r\nexport function getVehicleByIds(id) {//\r\n return Service({\r\n url: '/vehicles/' + id,\r\n method: 'get',\r\n })\r\n}\r\nexport function setVehicleFace(data) {//设置车辆皮带\r\n return Service({\r\n url: '/Framework/AmrPlc/ControlAmrPlc',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\n\r\nexport function getVehicleStatus() {//获取车辆皮带\r\n return Service({\r\n url: '/Framework/AmrPlc/GetAmrUpperPlcList',\r\n method: 'get'\r\n })\r\n}\r\n\r\nexport function getbuttonstat() {//获取按钮状态\r\n return Service({\r\n url: '/Framework/Boutton/GetBouttonState',\r\n method: 'get'\r\n })\r\n}\r\nexport function alarmInformation() {//告警信息\r\n return Service({\r\n url: '/Framework/AlarmPlc/GetAlarmList?value=false&number=10',\r\n method: 'get'\r\n })\r\n}\r\nexport function alarmInformationhos(data) {//告警信息历史\r\n return Service({\r\n url: '/Framework/AlarmPlc/GetAlarmList?value=' + data.value + '&PageIndex=' + data.PageIndex + '&PageSize=' + data.PageSize,\r\n method: 'get'\r\n })\r\n}\r\nexport function getVehicleFace() {//小车光电\r\n return Service({\r\n url: '/dbvehiclebpc',\r\n method: 'get'\r\n })\r\n}\r\n\r\nexport function getLocalisation() {//获取站点\r\n return Service({\r\n url: '/localisation',\r\n method: 'get'\r\n })\r\n}\r\nexport function ordersTemplate(data) {//通过模板下单\r\n return Service({\r\n url: '/Framework/IDSInfo/TemplatesSendMission',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\nexport function setVehicleStatus(data) {//设置车辆\r\n return Service({\r\n url: '/Framework/VehiclesIDS/CommandVehicels',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\nexport function Getorders(data) {//\r\n if (data.filter_by_state) {\r\n return Service({\r\n url: '/Framework/IDSInfo/OrdersInfo?page=' + data.page + \"&perpage=\" + data.filter_by_state + '&perpage=10',\r\n method: 'get',\r\n data: data\r\n })\r\n } else {\r\n return Service({\r\n url: '/Framework/IDSInfo/OrdersInfo?page=' + data.page + '&perpage=10',\r\n method: 'get',\r\n data: data\r\n })\r\n }\r\n}\r\nexport function GetTemplateslist() {//订单模板\r\n return Service({\r\n url: '/Framework/IDSInfo/TemplatesInfo',\r\n method: 'get',\r\n params: { page: -1 }\r\n })\r\n}\r\nexport function getOrdersByIds(order_id) {//获取指定模板信息\r\n return Service({\r\n url: '/orders?order_id=' + order_id,\r\n method: 'get'\r\n })\r\n}\r\nexport function SetOrders(data) {//命令控制指定订单\r\n return Service({\r\n url: '/orders',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\n\r\nexport function GetUsers() {//获取用户列表\r\n return Service({\r\n url: '/Framework/UserInfo/GetAllList',\r\n method: 'get',\r\n params: { page: -1 }\r\n })\r\n}\r\n\r\nexport function GetTemplates() {\r\n return Service({\r\n url: '/templates/order',\r\n method: 'get',\r\n params: { page: -1 }\r\n })\r\n}\r\n\r\n\r\nexport function Homeadduser(data) {//注册用户\r\n console.log(JSON.stringify(data));\r\n return Service({\r\n url: '/homeadduser',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\nexport function Home(data) {//登录\r\n return Service({\r\n url: '/home',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\n\r\nexport function homedeleteuser(data) {//删除用户\r\n return Service({\r\n url: '/homedeleteuser',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\n\r\nexport function Reboot() {//系统重启\r\n return Service({\r\n url: '/reboot',\r\n method: 'post'\r\n })\r\n}\r\nexport function Dborder(data) {//报表统计\r\n return Service({\r\n url: '/Framework/IDSInfo/StatisticsInfo',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\nexport function Dbalarm(data) {//报警Alarm\r\n return Service({\r\n url: '/dbalarm',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\nexport function DbalarmTime(data) {//报警Alarm平均时间\r\n return Service({\r\n url: '/averagetime',\r\n method: 'get'\r\n })\r\n}\r\nexport function getAvragetime() {//\r\n return Service({\r\n url: '/averagetime',\r\n method: 'get',\r\n })\r\n}\r\nexport function Dbcarry() {//获取输送机列表\r\n return Service({\r\n url: '/dbcarry',\r\n method: 'get'\r\n })\r\n}\r\n\r\nexport function Deblock() {//解锁路径\r\n return Service({\r\n url: '/deblock',\r\n method: 'get'\r\n })\r\n}\r\n\r\nexport function Dbbpc() {//解锁路径\r\n return Service({\r\n url: '/dbbpc',\r\n method: 'get'\r\n })\r\n}\r\n\r\nexport function Changestat(data) {//开包任务\r\n return Service({\r\n url: '/Framework/Mission/MissionSwitch',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\n\r\nexport function Changestat2(data) {//备用任务\r\n return Service({\r\n url: '/Framework/LimitCar/OnlineLimt',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\n\r\nexport function keepCarOnline(data) {//保持小车在线\r\n return Service({\r\n url: '/limcar',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\n\r\nexport function Changestat3(data) {//同时任务\r\n return Service({\r\n url: '/changestat',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\n\r\nexport function setDbcarry(data) {//设置输送机状态\r\n return Service({\r\n url: '/dbcarry',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\n\r\nexport function networkConfiguration(data) {//网络配置\r\n return Service({\r\n url: '/Framework/AmrPlc/GetAllList?PageIndex=' + data.page + \"&PageSize=\" + data.PageSize,\r\n method: 'get',\r\n data: data\r\n })\r\n}\r\nexport function networkConfigurationadd(data) {//新增网络配置\r\n return Service({\r\n url: '/Framework/AmrPlc/AddAmrPlc',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\nexport function networkConfigurationmod(data) {//修改网络配置\r\n return Service({\r\n url: '/Framework/AmrPlc/UpdateAmrPlc',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\nexport function networkConfigurationele(data) {//网络配置删除\r\n return Service({\r\n url: '/Framework/AmrPlc/DeletAmrPlc',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\nexport function orderConfiguration(data) {//订单配置\r\n return Service({\r\n url: '/Framework/OrderConfig/GetAllList?PageIndex=' + data.page + \"&PageSize=\" + data.PageSize,\r\n method: 'get',\r\n data: data\r\n })\r\n}\r\nexport function orderConfigurationadd(data) {//新增订单配置\r\n return Service({\r\n url: '/Framework/OrderConfig/AddOrderConfig',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\nexport function orderConfigurationmod(data) {//修改订单配置\r\n return Service({\r\n url: '/Framework/OrderConfig/UpdateOrderConfig',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\nexport function orderConfigurationele(data) {//订单配置删除\r\n return Service({\r\n url: '/Framework/OrderConfig/DeletOrderConfig',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\nexport function labelConfiguration(data) {//标签配置\r\n return Service({\r\n url: '/Framework/TagPlc/GetAllList?PageIndex=' + data.page + \"&PageSize=\" + data.PageSize,\r\n method: 'get',\r\n data: data\r\n })\r\n}\r\n\r\nexport function labelConfigurationadd(data) {//新增标签配置\r\n return Service({\r\n url: '/Framework/TagPlc/AddTagPlc',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\n\r\nexport function labelConfigurationmod(data) {//修改标签配置\r\n return Service({\r\n url: '/Framework/TagPlc/UpdateTagPlc',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\nexport function labelConfigele(data) {//标签配置删除\r\n return Service({\r\n url: '/Framework/TagPlc/DeleteTagPlc',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\nexport function alarmConfiguration(data) {//告警配置\r\n return Service({\r\n url: '/Framework/AlarmPlc/GetAllList?PageIndex=' + data.page + \"&PageSize=\" + data.PageSize,\r\n method: 'get',\r\n data: data\r\n })\r\n}\r\n\r\nexport function alarmConfigurationadd(data) {//新增告警配置\r\n return Service({\r\n url: '/Framework/AlarmPlc/AddAlarmPlc',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\n\r\nexport function alarmConfigurationmod(data) {//修改告警配置\r\n return Service({\r\n url: '/Framework/AlarmPlc/UpdateAmrPlc',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\nexport function alarmConfigurationele(data) {//告警配置删除\r\n return Service({\r\n url: '/Framework/AlarmPlc/DeletAmrPlc',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\n\r\nexport function mapIp() {//地图url\r\n return Service({\r\n url: '/Framework/MapAddr/SonPatch',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function carUPlist(data) {//车辆接口\r\n return Service({\r\n url: '/Framework/AmrPlc/GetAllList?PageIndex=1&PageSize=999',\r\n method: 'get',\r\n data: data\r\n })\r\n}\r\nexport function TemplateOrder() {//地图模板下单\r\n return Service({\r\n url: '/Framework/IDSInfo/TemplatesInfo?page=1',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function GetAmrUpperPlcList(data) {//获取车载状态\r\n return Service({\r\n url: '/Framework/AmrPlc/GetAmrUpperPlcList',\r\n method: 'post',\r\n data: data\r\n })\r\n}\r\nexport function BaggageInquiry(data) {//行李查询\r\n if (data.bagid.length == 0) {\r\n return Service({\r\n url: '/Framework/BagTrack/GetAllList?PageIndex=' + data.page + \"&PageSize=\" + data.PageSize,\r\n method: 'get',\r\n data: data\r\n })\r\n } else {\r\n return Service({\r\n url: '/Framework/BagTrack/GetAllList?PageIndex=' + data.page + \"&PageSize=\" + data.PageSize + '&bagid=' + data.bagid,\r\n method: 'get',\r\n data: data\r\n })\r\n }\r\n}\r\n\r\nexport function AlarmSon(data) {//告警声音\r\n return Service({\r\n url: '/Framework/AlarmSon/SonPatch',\r\n method: 'get',\r\n data: data\r\n })\r\n}\r\n// export function getAllAndroidPlugins() {\r\n// return Service({\r\n// url: '/manager/getAndroidPlugin ',\r\n// method: 'get'\r\n// })\r\n// }\r\n// export function addNewAndroidPlugin(data) {\r\n// return Service({\r\n// url: '/manager/addAndroidPlguin',\r\n// data: JSON.stringify(data)\r\n// })\r\n// }\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/api/request.js"],"sourceRoot":""}
|