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AGrB,GAAiB,IAAbO,EAAIe,KAQR,OAAOf,CAAG,IAEXgB,IACCC,QAAQC,IAAI,oBAAqBF,GAC7BA,EAAMH,SAASpB,KAAK0B,OAcjBC,QAAQC,OAAOL,MAK1BR,EAAQI,aAAaU,QAAQR,KAAI,SAAUS,GACzC,IAAIC,EAAQC,OAAOC,aAAaC,QAAQ,eACxC,OAAIH,GACFD,EAAOK,QAAQC,YAAcL,EACtBD,GAIFA,CACT,IAEA,Q","sources":["webpack://app/./src/layout/mainContainer.vue?45fb","webpack://app/src/layout/mainContainer.vue","webpack://app/./src/layout/mainContainer.vue?e312","webpack://app/./src/layout/mainContainer.vue","webpack://app/./src/api/department.js","webpack://app/./src/utils/request.js"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('el-header',[_c('el-menu',{staticClass:\"el-menu-demo\",attrs:{\"default-active\":\"\",\"router\":\"\",\"mode\":\"horizontal\"}},[_c('el-menu-item',{attrs:{\"index\":\"/home\"}},[_c('i',{staticClass:\"el-icon-s-home\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"首页\")])]),_c('el-submenu',{attrs:{\"index\":\"1\"}},[_c('template',{slot:\"title\"},[_c('i',{staticClass:\"el-icon-coin\"}),_c('span',[_vm._v(\"地图\")])]),_c('el-menu-item',{attrs:{\"index\":\"/gulou\"}},[_c('i',{staticClass:\"el-icon-receiving\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"鼓楼校区\")])]),_c('el-menu-item',{attrs:{\"index\":\"/xianlin\"}},[_c('i',{staticClass:\"el-icon-cpu\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"仙林校区\")])])],2),_c('el-submenu',{attrs:{\"index\":\"2\"}},[_c('template',{slot:\"title\"},[_c('i',{staticClass:\"el-icon-s-opportunity\"}),_c('span',[_vm._v(\"院系\")])]),_vm._l((_vm.departments),function(item){return _c('div',{key:item.id,attrs:{\"v-model\":_vm.departments}},[_c('el-menu-item',{attrs:{\"index\":'/department/'+item.id}},[_c('i',{staticClass:\"el-icon-cpu\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(_vm._s(item.name))])])],1)})],2)],1)],1),_c('el-main',[(_vm.isReload)?_c('router-view',{staticClass:\"rightMain\"}):_vm._e()],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <el-header>\r\n <el-menu default-active=\"\" router class=\"el-menu-demo\" mode=\"horizontal\">\r\n <el-menu-item index=\"/home\">\r\n <i class=\"el-icon-s-home\"></i>\r\n <span slot=\"title\">首页</span>\r\n </el-menu-item>\r\n <el-submenu index=\"1\">\r\n <template slot=\"title\">\r\n <i class=\"el-icon-coin\"></i>\r\n <span>地图</span>\r\n </template>\r\n <el-menu-item index=\"/gulou\">\r\n <i class=\"el-icon-receiving\"></i>\r\n <span slot=\"title\">鼓楼校区</span>\r\n </el-menu-item>\r\n\r\n <el-menu-item index=\"/xianlin\">\r\n <i class=\"el-icon-cpu\"></i>\r\n <span slot=\"title\">仙林校区</span>\r\n </el-menu-item>\r\n </el-submenu>\r\n <el-submenu index=\"2\">\r\n <template slot=\"title\">\r\n <i class=\"el-icon-s-opportunity\"></i>\r\n <span>院系</span>\r\n </template>\r\n <div v-for=\"item in departments\" :v-model=\"departments\" :key=\"item.id\">\r\n <el-menu-item :index=\"'/department/'+item.id\">\r\n <i class=\"el-icon-cpu\"></i>\r\n <span slot=\"title\">{{item.name}}</span>\r\n </el-menu-item>\r\n </div>\r\n </el-submenu>\r\n </el-menu>\r\n\r\n </el-header>\r\n <el-main>\r\n <router-view v-if=\"isReload\" class=\"rightMain\"></router-view>\r\n\r\n </el-main>\r\n\r\n </div>\r\n \r\n</template>\r\n\r\n<script>\r\nimport { getFacultyList } from '@/api/department.js'\r\nimport { Menu, MenuItem, Submenu ,Header} from 'element-ui';\r\nexport default {\r\n name: 'MainContainer',\r\n components: {\r\n 'el-header':Header,\r\n 'el-menu': Menu,\r\n 'el-menu-item': MenuItem,\r\n 'el-submenu': Submenu,\r\n },\r\n provide() {\r\n return {\r\n reload: this.reload,\r\n };\r\n },\r\n data() {\r\n return {\r\n isReload: true,\r\n departments:[]\r\n }\r\n },\r\n created() {\r\n this.init();\r\n },\r\n methods: {\r\n initDepartment() {\r\n getFacultyList().then(res => {\r\n this.departments = res.data;\r\n })\r\n },\r\n init() {\r\n this.initDepartment();\r\n },\r\n reload() {\r\n this.isReload = false;\r\n this.$nextTick(() => {\r\n this.isReload = true;\r\n });\r\n }\r\n }\r\n\r\n}\r\n\r\n</script>\r\n\r\n<style scoped>\r\n* {\r\n margin: 0;\r\n}\r\n.el-header{\r\n top:0;\r\n z-index: 100;\r\n width: 100%;\r\n position: fixed;\r\n padding: 0;\r\n }\r\n\r\n.el-main{\r\n margin-top: 60px;\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./mainContainer.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./mainContainer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./mainContainer.vue?vue&type=template&id=bdada24c&scoped=true&\"\nimport script from \"./mainContainer.vue?vue&type=script&lang=js&\"\nexport * from \"./mainContainer.vue?vue&type=script&lang=js&\"\nimport style0 from \"./mainContainer.vue?vue&type=style&index=0&id=bdada24c&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"bdada24c\",\n null\n \n)\n\nexport default component.exports","import request from \"../utils/request\";\r\nexport function getFacultyList() {\r\n return request({\r\n url: `/faculty/allFaculty`,\r\n method: \"GET\",\r\n });\r\n}\r\nexport function getFacultyById(id) {\r\n return request({\r\n url: `/faculty/getFacultyById/` + id,\r\n method: \"GET\",\r\n });\r\n}\r\n\r\nexport function getLabAndDigitalByFacultyId(id) {\r\n return request({\r\n url: `/faculty/getLabAndDigitalByFacultyId/` + id,\r\n method: \"GET\",\r\n });\r\n}\r\n","import axios from \"axios\";\r\n// import { Message } from \"element-ui\";\r\naxios.defaults.withCredentials = true;\r\n\r\n// create an axios instance\r\nconst service = axios.create({\r\n //API\r\n baseURL: \"/api\",\r\n withCredentinpmals: true, // send cookies when cross-domain requests\r\n timeout: 100000, // request timeout\r\n});\r\n\r\n// response interceptor\r\nservice.interceptors.response.use(\r\n /**1、头、request、返回值变化的策略、、todo\r\n * If you want to get http information such as headers or status\r\n * Please return response => response\r\n */\r\n\r\n /**\r\n * 可以通过自定义状态码进行全局的拦截控制,没有约定的话就不做处理\r\n */\r\n (response) => {\r\n const res = response.data;\r\n // console.log(res, \"res requestjs response\");\r\n // if (res.code !== undefined && res.code !== 200 &&res.code !==20000) {\r\n if (res.code === 0) {\r\n // Message({\r\n // message: res.message || \"Error\",\r\n // type: \"error\",\r\n // duration: 3 * 1000,\r\n // });\r\n return;\r\n }\r\n return res;\r\n },\r\n (error) => {\r\n console.log(\"err requestjs err\", error); // for debug\r\n if (error.response.data.length > 1000) {\r\n // Message({\r\n // message: \"服务器出错\",\r\n // type: \"error\",\r\n // duration: 3 * 1000\r\n // });\r\n } else {\r\n // Message({\r\n // message: error.response.data.message,\r\n // type: \"error\",\r\n // duration:3 * 1000\r\n // });\r\n }\r\n\r\n return Promise.reject(error);\r\n }\r\n);\r\n// request interceptor\r\n\r\nservice.interceptors.request.use(function (config) {\r\n let token = window.localStorage.getItem(\"accessToken\");\r\n if (token) {\r\n config.headers.accessToken = token;\r\n return config;\r\n //这里经常搭配token使用,将token值配置到tokenkey中,将tokenkey放在请求头中\r\n // config.headers['accessToken'] = Token;\r\n }\r\n return config;\r\n});\r\n\r\nexport default service;\r\n"],"names":["render","_vm","this","_c","_self","staticClass","attrs","slot","_v","_l","item","key","id","departments","_s","name","_e","staticRenderFns","components","Header","Menu","MenuItem","Submenu","provide","reload","data","isReload","created","init","methods","initDepartment","then","res","$nextTick","component","getFacultyList","url","method","getFacultyById","getLabAndDigitalByFacultyId","service","baseURL","withCredentinpmals","timeout","interceptors","response","use","code","error","console","log","length","Promise","reject","request","config","token","window","localStorage","getItem","headers","accessToken"],"sourceRoot":""}