274b8b437badcca1c78c884db8bca3d1.json 13 KB

1
  1. {"remainingRequest":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\src\\main.js","dependencies":[{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\src\\main.js","mtime":1663922930848},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\babel.config.js","mtime":1663828782900},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport _defineProperty from \"C:/Users/100zone/Desktop/baizong/community/SmartCommunity/videoSurveillance/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"C:\\\\Users\\\\100zone\\\\Desktop\\\\baizong\\\\community\\\\SmartCommunity\\\\videoSurveillance\\\\node_modules\\\\core-js\\\\modules\\\\es6.array.iterator.js\";\nimport \"C:\\\\Users\\\\100zone\\\\Desktop\\\\baizong\\\\community\\\\SmartCommunity\\\\videoSurveillance\\\\node_modules\\\\core-js\\\\modules\\\\es6.promise.js\";\nimport \"C:\\\\Users\\\\100zone\\\\Desktop\\\\baizong\\\\community\\\\SmartCommunity\\\\videoSurveillance\\\\node_modules\\\\core-js\\\\modules\\\\es6.object.assign.js\";\nimport \"C:\\\\Users\\\\100zone\\\\Desktop\\\\baizong\\\\community\\\\SmartCommunity\\\\videoSurveillance\\\\node_modules\\\\core-js\\\\modules\\\\es7.promise.finally.js\";\n\nvar _this = this;\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); 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 = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport Vue from 'vue';\nimport App from \"./App.vue\";\nimport router from \"./router\";\nimport { funcRouter } from \"./router/dynamicMuen\";\nimport Vuex from 'vuex';\nimport ElementUI from 'element-ui';\nimport commonComponents from \"./components/common\";\nimport 'element-ui/lib/theme-chalk/index.css'; // 默认主题\n\nimport moment from 'moment';\nmoment.locale('zh-cn');\nimport \"./assets/css/icon.css\";\nimport \"./assets/css/main.scss\";\nimport \"./assets/css/element-variables.scss\";\nimport '@utils/rem.js';\nimport '@utils/AmapSearch.js';\nimport directiveInit from '@utils/directives';\nimport directived from '@utils/directived';\nimport http from '@utils/http.js';\nimport apiService from \"./api/index\";\nimport store from \"./store/store.js\";\nimport '@utils/utils.js';\nimport 'babel-polyfill';\n\nwindow.onresize = function (e) {\n store.commit('setScale', e.timeStamp);\n};\n\nvar _ = require('lodash');\n\nimport filter from \"./utils/filters\";\nObject.keys(filter).forEach(function (key) {\n return Vue.filter(key, filter[key]);\n}); // 滚动条\n\nimport GeminiScrollbar from 'vue-gemini-scrollbar';\nVue.use(GeminiScrollbar);\nVue.prototype.$moment = moment;\nVue.config.productionTip = false;\nVue.use(Vuex);\nVue.use(commonComponents);\nVue.use(directiveInit);\nVue.use(directived);\nVue.use(ElementUI, {\n size: 'small'\n}); //使用钩子函数对路由进行权限跳转\n\nrouter.beforeEach(function (to, from, next) {\n document.title = store.getters['getThisDetai'].name || !!window.sessionStorage.getItem('setThisDetai') ? JSON.parse(window.sessionStorage.getItem('setThisDetai')).name : '';\n\n if (localStorage.getItem(\"SC_token\")) {\n var menuList = window.sessionStorage.getItem(\"SC_listMuen\");\n var newAr = [];\n\n if (menuList == null || menuList == undefined) {\n http.get('/sc-user-center/user/findUserMenu', {\n appId: '1013'\n }).then(function (_ref) {\n var status = _ref.status,\n data = _ref.data,\n msg = _ref.msg;\n\n if (0 == status) {\n var datas = data[0].children;\n window.sessionStorage.setItem('SC_listMuen', JSON.stringify(datas));\n window.sessionStorage.setItem('setThisDetai', JSON.stringify(data[0]));\n store.commit('setThisDetai', data[0]);\n funcRouter(newAr, datas, router);\n next(_objectSpread(_objectSpread({}, to), {}, {\n replace: true\n }));\n } else {\n _this.$message.error(msg);\n }\n });\n } else {\n if (router.options.routes[0].children.length == 0) {\n funcRouter(newAr, JSON.parse(menuList), router);\n next(_objectSpread(_objectSpread({}, to), {}, {\n replace: true\n }));\n } else {\n var thisAll = JSON.parse(menuList)[0];\n\n if (to.path == '/') {\n if (!!thisAll.children) {\n next({\n path: \"/\".concat(thisAll.children[0].linkPath)\n });\n } else {\n next({\n path: \"/\".concat(thisAll.linkPath)\n });\n }\n } else {\n next();\n }\n }\n }\n } else {\n next();\n }\n});\nnew Vue({\n router: router,\n store: store,\n render: function render(h) {\n return h(App);\n }\n}).$mount('#app');\nVue.prototype.$http = http;\nVue.prototype.$api = apiService(http);",{"version":3,"sources":["C:/Users/100zone/Desktop/baizong/community/SmartCommunity/videoSurveillance/src/main.js"],"names":["Vue","App","router","funcRouter","Vuex","ElementUI","commonComponents","moment","locale","directiveInit","directived","http","apiService","store","window","onresize","e","commit","timeStamp","_","require","filter","Object","keys","forEach","key","GeminiScrollbar","use","prototype","$moment","config","productionTip","size","beforeEach","to","from","next","document","title","getters","name","sessionStorage","getItem","JSON","parse","localStorage","menuList","newAr","undefined","get","appId","then","status","data","msg","datas","children","setItem","stringify","replace","$message","error","options","routes","length","thisAll","path","linkPath","render","h","$mount","$http","$api"],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAOA,GAAP,MAAgB,KAAhB;AACA,OAAOC,GAAP;AACA,OAAOC,MAAP;AACA,SAASC,UAAT;AACA,OAAOC,IAAP,MAAiB,MAAjB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,gBAAP;AACA,OAAO,sCAAP,C,CAA+C;;AAC/C,OAAOC,MAAP,MAAmB,QAAnB;AACAA,MAAM,CAACC,MAAP,CAAc,OAAd;AACA;AACA;AACA;AACA,OAAO,eAAP;AACA,OAAO,sBAAP;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,UAAP,MAAuB,mBAAvB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,UAAP;AACA,OAAOC,KAAP;AACA,OAAO,iBAAP;AACA,OAAO,gBAAP;;AAEAC,MAAM,CAACC,QAAP,GAAkB,UAACC,CAAD,EAAO;AACvBH,EAAAA,KAAK,CAACI,MAAN,CAAa,UAAb,EAAyBD,CAAC,CAACE,SAA3B;AACD,CAFD;;AAIA,IAAIC,CAAC,GAAGC,OAAO,CAAC,QAAD,CAAf;;AAEA,OAAOC,MAAP;AACAC,MAAM,CAACC,IAAP,CAAYF,MAAZ,EAAoBG,OAApB,CAA4B,UAACC,GAAD;AAAA,SAASzB,GAAG,CAACqB,MAAJ,CAAWI,GAAX,EAAgBJ,MAAM,CAACI,GAAD,CAAtB,CAAT;AAAA,CAA5B,E,CACA;;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AAEA1B,GAAG,CAAC2B,GAAJ,CAAQD,eAAR;AAEA1B,GAAG,CAAC4B,SAAJ,CAAcC,OAAd,GAAwBtB,MAAxB;AACAP,GAAG,CAAC8B,MAAJ,CAAWC,aAAX,GAA2B,KAA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C;AAAE8B,cAAAA,IAAI,aAAMD,OAAO,CAACE,QAAd;AAAN,aAAD,CAAJ;AACD;AACF,SAND,MAMO;AACL/B,UAAAA,IAAI;AACL;AACF;AACF;AACF,GAjCD,MAiCO;AACLA,IAAAA,IAAI;AACL;AACF,CAtCD;AAuCA,IAAIpC,GAAJ,CAAQ;AACNE,EAAAA,MAAM,EAANA,MADM;AAENW,EAAAA,KAAK,EAALA,KAFM;AAGNuD,EAAAA,MAAM,EAAE,gBAAAC,CAAC;AAAA,WAAIA,CAAC,CAACpE,GAAD,CAAL;AAAA;AAHH,CAAR,EAIGqE,MAJH,CAIU,MAJV;AAKAtE,GAAG,CAAC4B,SAAJ,CAAc2C,KAAd,GAAsB5D,IAAtB;AACAX,GAAG,CAAC4B,SAAJ,CAAc4C,IAAd,GAAqB5D,UAAU,CAACD,IAAD,CAA/B","sourcesContent":["import Vue from 'vue'\r\nimport App from './App.vue'\r\nimport router from './router';\r\nimport { funcRouter } from './router/dynamicMuen';\r\nimport Vuex from 'vuex';\r\nimport ElementUI from 'element-ui';\r\nimport commonComponents from './components/common';\r\nimport 'element-ui/lib/theme-chalk/index.css'; // 默认主题\r\nimport moment from 'moment';\r\nmoment.locale('zh-cn');\r\nimport './assets/css/icon.css';\r\nimport './assets/css/main.scss';\r\nimport './assets/css/element-variables.scss';\r\nimport '@utils/rem.js';\r\nimport '@utils/AmapSearch.js';\r\nimport directiveInit from '@utils/directives';\r\nimport directived from '@utils/directived';\r\nimport http from '@utils/http.js';\r\nimport apiService from './api/index';\r\nimport store from './store/store.js';\r\nimport '@utils/utils.js';\r\nimport 'babel-polyfill';\r\n\r\nwindow.onresize = (e) => {\r\n store.commit('setScale', e.timeStamp);\r\n};\r\n\r\nvar _ = require('lodash')\r\n\r\nimport filter from './utils/filters';\r\nObject.keys(filter).forEach((key) => Vue.filter(key, filter[key]));\r\n// 滚动条\r\nimport GeminiScrollbar from 'vue-gemini-scrollbar';\r\n\r\nVue.use(GeminiScrollbar);\r\n\r\nVue.prototype.$moment = moment;\r\nVue.config.productionTip = false;\r\nVue.use(Vuex);\r\nVue.use(commonComponents);\r\nVue.use(directiveInit);\r\nVue.use(directived);\r\nVue.use(ElementUI, {\r\n size: 'small'\r\n});\r\n\r\n\r\n//使用钩子函数对路由进行权限跳转\r\nrouter.beforeEach((to, from, next) => {\r\n document.title = store.getters['getThisDetai'].name || !!window.sessionStorage.getItem('setThisDetai') ? JSON.parse(window.sessionStorage.getItem('setThisDetai')).name : ''\r\n if (localStorage.getItem(\"SC_token\")) {\r\n let menuList = window.sessionStorage.getItem(\"SC_listMuen\")\r\n let newAr = [];\r\n if (menuList == null || menuList == undefined) {\r\n http.get('/sc-user-center/user/findUserMenu', { appId: '1013' }).then(({ status, data, msg }) => {\r\n if (0 == status) {\r\n let datas = data[0].children\r\n window.sessionStorage.setItem('SC_listMuen', JSON.stringify(datas))\r\n window.sessionStorage.setItem('setThisDetai', JSON.stringify(data[0]))\r\n store.commit('setThisDetai', data[0]);\r\n funcRouter(newAr, datas, router)\r\n next({ ...to, replace: true })\r\n } else {\r\n this.$message.error(msg);\r\n }\r\n })\r\n } else {\r\n if (router.options.routes[0].children.length == 0) {\r\n funcRouter(newAr, JSON.parse(menuList), router)\r\n next({ ...to, replace: true })\r\n } else {\r\n let thisAll = JSON.parse(menuList)[0];\r\n if (to.path == '/') {\r\n if (!!thisAll.children) {\r\n next({ path: `/${thisAll.children[0].linkPath}` })\r\n } else {\r\n next({ path: `/${thisAll.linkPath}` })\r\n }\r\n } else {\r\n next()\r\n }\r\n }\r\n }\r\n } else {\r\n next();\r\n }\r\n});\r\nnew Vue({\r\n router,\r\n store,\r\n render: h => h(App),\r\n}).$mount('#app')\r\nVue.prototype.$http = http;\r\nVue.prototype.$api = apiService(http);\r\n"]}]}