EMS2.0-Documents/7.部署文档/Window安装/项目前端文件/IEMS/js/chunk-8492257a.a9c84623.js.map

1 line
68 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"version":3,"sources":["webpack:///./src/views/layout/components/SidebarItem.vue?47ab","webpack:///src/views/layout/components/SidebarItem.vue","webpack:///./src/views/layout/components/SidebarItem.vue?ac24","webpack:///./src/views/layout/components/SidebarItem.vue","webpack:///./src/views/layout/index.vue?8125","webpack:///src/views/layout/index.vue","webpack:///./src/views/layout/index.vue?542a","webpack:///./src/views/layout/index.vue","webpack:///./src/views/layout/components/AppMain.vue?a0bc","webpack:///src/views/layout/components/AppMain.vue","webpack:///./src/views/layout/components/AppMain.vue?8186","webpack:///./src/views/layout/components/AppMain.vue","webpack:///./src/views/layout/components/TagsView.vue?d055","webpack:///src/views/layout/components/TagsView.vue","webpack:///./src/views/layout/components/TagsView.vue?6ba9","webpack:///./src/views/layout/components/TagsView.vue","webpack:///./src/views/layout/components/signOut.vue?a70c","webpack:///./src/views/layout/index.vue?cfba","webpack:///./src/views/layout/components/leftBar.vue?1f0f","webpack:///src/views/layout/components/leftBar.vue","webpack:///./src/views/layout/components/leftBar.vue?6db8","webpack:///./src/views/layout/components/leftBar.vue","webpack:///./src/views/layout/components/TagsView.vue?35f1","webpack:///./src/views/layout/components/alarmList.vue?5331","webpack:///src/views/layout/components/alarmList.vue","webpack:///./src/views/layout/components/alarmList.vue?893c","webpack:///./src/views/layout/components/alarmList.vue","webpack:///./src/api/alarm.js","webpack:///./src/views/layout/components/alarmList.vue?8428","webpack:///./src/views/layout/components/signOut.vue?becc","webpack:///src/views/layout/components/signOut.vue","webpack:///./src/views/layout/components/signOut.vue?1330","webpack:///./src/views/layout/components/signOut.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","item","attrs","meta","name","slot","staticClass","class","_e","isCollapse","_v","_s","$t","_l","i","key","permissionId","staticRenderFns","props","type","required","computed","get","$store","state","app","component","on","goHome","logoForm","logoPath","$i18n","locale","enUnitName","unitName","isAdmin","isHome","collapsed","components","LeftBar","SignOut","AppMain","TagsView","AlarmList","data","mounted","console","$route","matched","watch","user","methods","path","window","cachedViews","tagsView","fullPath","ref","tag","isActive","$event","goLink","preventDefault","stopPropagation","openMenu","affix","noshow","closeSelectedTag","directives","rawName","value","expression","style","left","top","refreshSelectedTag","selectedTag","closeOthersTags","closeAllTags","visible","affixTags","isOverflow","visitedViews","routes","permission","addTags","document","initTags","$nextTick","firstElementChild","beforeRouteLeave","checkEllipsis","elem","offsetWidth","route","resolve","filterAffixTags","tags","tempTags","length","dispatch","view","then","$router","push","toLastView","latestView","e","maxLeft","clientY","closeMenu","btn","changeCollapse","SidebarItem","paths","routeName","routeChange","Permission_routes","mapGetters","getRoutes","permission_routes","reload","isRouterAlive","admin_routes","filter","children","hidden","map","index","handleOpen","keyPath","handleClose","alarmList","refInFor","getLevel","alarmLevel","deviceName","alarmInfo","filters","nowTime","disArr","getTipAlarmList","beforeDestroy","clearInterval","val","setAlarmList","msgBox","box","arr","moveLeft","getMargin","obj","marg","Number","setInterval","startDis","Math","abs","that","outbox","getDeptAlarmDetails","request","url","method","params","clearAlarmStatus","alarmId","getAlarmList","updateAlarmReadStatus","getDeviceLogList","getAlarmLevel","getAlarmStatus","getAlarmTypeLevel","getAlarmTypeStatus","goScreen","goAdmin","isLang","lang","changeLang","getUserType","userType","userName","goPerson","logout","isShow","timeout","openedWindow","round","validateVal","localStorage","$message","message","location"],"mappings":"+NAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAAEJ,EAAIM,KAAoB,gBAAEF,EAAG,aAAa,CAACG,MAAM,CAAC,MAAQP,EAAIM,KAAKE,KAAKC,KAAK,MAAQT,EAAIM,OA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,KAAKmC,MAAMC,OAASgH,EACpBpJ,KAAKqL,KAAOjC,EACZ6C,aAAaA,QAAQA,OAAQA,GAE/BjM,KAAKkM,SAAS,CACZC,QAASA,KAAKA,GAAGA,iBAAiBA,WAClC5K,KAAMA,cAGVoK,OAnCJ,WAoCMlI,OAAOA,aAAaA,WAAWA,YAC/BzD,KAAK2B,OAAO6E,SAAS,UAAUE,MAAK,WAClC0F,SAASA,gBC/H8V,I,wBCQ3WtK,EAAY,eACd,EACAhC,EACAuB,GACA,EACA,KACA,WACA,MAIa,aAAAS,E","file":"js/chunk-8492257a.a9c84623.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.item.showingChildren)?_c('el-submenu',{attrs:{\"index\":_vm.item.meta.name,\"route\":_vm.item}},[_c('template',{slot:\"title\"},[(_vm.item.meta.icon)?_c('i',{staticClass:\"iconfont icon\",class:(\"icon-\" + (_vm.item.meta.icon))}):_vm._e(),(!_vm.isCollapse)?_c('span',[_vm._v(_vm._s(_vm.$t((\"home.\" + (_vm.item.meta.name)))))]):_vm._e()]),_c('el-menu-item-group',_vm._l((_vm.item.children),function(i){return _c('SidebarItem',{key:i.permissionId,attrs:{\"index\":i.meta.name,\"item\":i}})}),1)],2):[_c('el-menu-item',{attrs:{\"index\":_vm.item.meta.name,\"route\":_vm.item}},[(_vm.item.meta.icon)?_c('i',{staticClass:\"iconfont icon\",class:(\"icon-\" + (_vm.item.meta.icon))}):_vm._e(),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(_vm._s(_vm.$t((\"home.\" + (_vm.item.meta.name)))))])])]],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <el-submenu\r\n :index=\"item.meta.name\"\r\n v-if=\"item.showingChildren\"\r\n :route=\"item\"\r\n >\r\n <template slot=\"title\">\r\n <i\r\n class=\"iconfont icon\"\r\n :class=\"`icon-${item.meta.icon}`\"\r\n v-if=\"item.meta.icon\"\r\n />\r\n <span v-if=\"!isCollapse\">{{ $t(`home.${item.meta.name}`) }}</span>\r\n </template>\r\n <el-menu-item-group>\r\n <SidebarItem\r\n v-for=\"i in item.children\"\r\n :key=\"i.permissionId\"\r\n :index=\"i.meta.name\"\r\n :item=\"i\"\r\n />\r\n </el-menu-item-group>\r\n </el-submenu>\r\n <template v-else>\r\n <el-menu-item :index=\"item.meta.name\" :route=\"item\">\r\n <i\r\n class=\"iconfont icon\"\r\n :class=\"`icon-${item.meta.icon}`\"\r\n v-if=\"item.meta.icon\"\r\n />\r\n <span slot=\"title\">{{ $t(`home.${item.meta.name}`) }}</span>\r\n </el-menu-item>\r\n </template>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'SidebarItem',\r\n props: {\r\n // route object\r\n item: {\r\n type: Object,\r\n required: true\r\n }\r\n },\r\n computed: {\r\n isCollapse: {\r\n get() {\r\n return this.$store.state.app.isCollapse\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SidebarItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SidebarItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SidebarItem.vue?vue&type=template&id=9e190ac4&\"\nimport script from \"./SidebarItem.vue?vue&type=script&lang=js&\"\nexport * from \"./SidebarItem.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-wrapper\"},[_c('div',{staticClass:\"app-header\"},[_c('div',{staticClass:\"header-logo\",on:{\"click\":_vm.goHome}},[(_vm.logoForm.logoPath)?_c('img',{staticClass:\"icon\",attrs:{\"src\":_vm.logoForm.logoPath,\"alt\":\"\"}}):_c('i',{staticClass:\"iconfont icon-logo icon\"}),(_vm.logoForm.unitName)?_c('div',{staticClass:\"name\"},[_vm._v(\" \"+_vm._s(this.$i18n.locale == \"en\" ? _vm.logoForm.enUnitName : _vm.logoForm.unitName)+\" \")]):_c('div',{staticClass:\"name\"},[_vm._v(\" \"+_vm._s(_vm.isAdmin || _vm.isHome ? _vm.$t(\"deskName\") : _vm.$t(\"name\"))+\" \")])]),_c('div',{staticClass:\"header-content\"},[_c('SignOut',{attrs:{\"isAdmin\":_vm.isAdmin,\"isHome\":_vm.isHome}}),_c('AlarmList')],1)]),_c('div',{class:{ collapsed: _vm.isCollapse },attrs:{\"id\":\"app-main\"}},[(!_vm.isHome)?_c('LeftBar'):_vm._e(),_c('div',{staticClass:\"app-main\",class:{ isAdmin: _vm.isHome }},[(!_vm.isHome)?_c('TagsView'):_vm._e(),_c('AppMain')],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"app-wrapper\">\r\n <div class=\"app-header\">\r\n <div class=\"header-logo\" @click=\"goHome\">\r\n <img\r\n :src=\"logoForm.logoPath\"\r\n v-if=\"logoForm.logoPath\"\r\n class=\"icon\"\r\n alt=\"\"\r\n />\r\n <i class=\"iconfont icon-logo icon\" v-else />\r\n <div class=\"name\" v-if=\"logoForm.unitName\">\r\n {{\r\n this.$i18n.locale == \"en\" ? logoForm.enUnitName : logoForm.unitName\r\n }}\r\n </div>\r\n <div class=\"name\" v-else>\r\n {{ isAdmin || isHome ? $t(\"deskName\") : $t(\"name\") }}\r\n </div>\r\n </div>\r\n <div class=\"header-content\">\r\n <SignOut :isAdmin=\"isAdmin\" :isHome=\"isHome\" />\r\n <AlarmList />\r\n </div>\r\n </div>\r\n\r\n <div id=\"app-main\" :class=\"{ collapsed: isCollapse }\">\r\n <LeftBar v-if=\"!isHome\" />\r\n <div class=\"app-main\" :class=\"{ isAdmin: isHome }\">\r\n <TagsView v-if=\"!isHome\" />\r\n <AppMain />\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport SignOut from \"./components/signOut\"\r\nimport AppMain from \"./components/AppMain\"\r\nimport AlarmList from \"./components/alarmList\"\r\nimport LeftBar from \"./components/leftBar\"\r\nimport TagsView from \"./components/TagsView\"\r\n\r\nexport default {\r\n name: \"Layout\",\r\n components: {\r\n LeftBar,\r\n SignOut,\r\n AppMain,\r\n TagsView,\r\n AlarmList\r\n },\r\n data() {\r\n return {\r\n isAdmin: false,\r\n isHome: true\r\n }\r\n },\r\n mounted() {\r\n console.log(this.logoForm, \" this.-----------\")\r\n this.isAdmin = this.$route.matched[0].meta.name == \"admin\"\r\n this.isHome = this.$route.name == \"manager\"\r\n },\r\n watch: {\r\n $route() {\r\n console.log(this.$route)\r\n this.isAdmin = this.$route.matched[0].meta.name == \"admin\"\r\n this.isHome = this.$route.name == \"manager\"\r\n }\r\n },\r\n computed: {\r\n logoForm: {\r\n get() {\r\n return this.$store.state.user.logoForm\r\n }\r\n },\r\n isCollapse: {\r\n get() {\r\n return this.$store.state.app.isCollapse\r\n }\r\n }\r\n },\r\n\r\n methods: {\r\n goHome() {\r\n const routes = this.$router.resolve({ path: \"/map/GIS\" })\r\n window.open(routes.href, \"GIS\")\r\n }\r\n }\r\n}\r\n</script>\r\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\r\n#app-main {\r\n position: relative;\r\n height: calc(100% - 94px);\r\n}\r\n.app-main {\r\n position: relative;\r\n margin-left: 240px;\r\n background: url(../../assets/images/background.png);\r\n min-height: 100%;\r\n border-left: 1px solid #018075;\r\n}\r\n.isAdmin {\r\n border: none;\r\n margin-left: 0px;\r\n}\r\n.collapsed {\r\n .app-main {\r\n margin-left: 64px;\r\n transition: 0.2s;\r\n }\r\n}\r\n.header-logo {\r\n width: 810px;\r\n height: 94px;\r\n line-height: 84px;\r\n font-size: 37px;\r\n font-family: Source Han Sans CN;\r\n font-weight: 400;\r\n position: relative;\r\n display: flex;\r\n color: #00ffff;\r\n align-items: center;\r\n padding-bottom: 10px;\r\n .icon {\r\n font-size: 28px;\r\n top: 2px;\r\n left: 26px;\r\n color: rgba(198, 255, 255, 1);\r\n margin: 0 20px;\r\n }\r\n img.icon {\r\n max-height: 65px;\r\n max-width: 200px;\r\n margin: 0 20px;\r\n }\r\n .name {\r\n line-height: 32px;\r\n padding-right: 40px;\r\n flex: 1;\r\n height: 84px;\r\n display: flex;\r\n align-items: center;\r\n text-align: center;\r\n font-family: YouSheBiaoTiHei;\r\n cursor: pointer;\r\n color: #ffffff;\r\n background: linear-gradient(0deg, #54b1a7, #a1f4d6, #f8fcff);\r\n -webkit-background-clip: text;\r\n background-clip: text;\r\n color: transparent;\r\n }\r\n}\r\n.app-header {\r\n position: relative;\r\n overflow: hidden;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=a5015ec8&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=a5015ec8&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a5015ec8\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app-container\"}},[_c('keep-alive',{attrs:{\"include\":_vm.cachedViews}},[_c('router-view',{key:_vm.key})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div id=\"app-container\">\r\n <keep-alive :include=\"cachedViews\">\r\n <router-view :key=\"key\" />\r\n </keep-alive>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'AppMain',\r\n computed: {\r\n cachedViews() {\r\n return this.$store.state.tagsView.cachedViews\r\n },\r\n key() {\r\n return this.$route.fullPath\r\n }\r\n }\r\n}\r\n</script>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppMain.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppMain.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AppMain.vue?vue&type=template&id=28a6deec&\"\nimport script from \"./AppMain.vue?vue&type=script&lang=js&\"\nexport * from \"./AppMain.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tags-view-container\"},[_c('i',{staticClass:\"iconfont icon-xiangqian icon\"}),_c('i',{staticClass:\"iconfont icon-xianghou icon after\"}),_c('div',{ref:\"isOverflow\",staticClass:\"container\"},_vm._l((_vm.visitedViews),function(tag){return _c('div',{key:tag.path,staticClass:\"tags-view-item\",class:_vm.isActive(tag) ? 'active' : '',on:{\"click\":function($event){return _vm.goLink(tag)},\"contextmenu\":function($event){$event.preventDefault();$event.stopPropagation();return _vm.openMenu(tag, $event)}}},[_c('span',{staticClass:\"tag isOverflow\",class:{ affix: tag.meta.affix }},[_c('el-tooltip',{staticClass:\"item\",attrs:{\"effect\":\"dark\",\"content\":_vm.$t((\"home.\" + (tag.meta.name))),\"placement\":\"top\"}},[_c('span',[_vm._v(_vm._s(_vm.$t((\"home.\" + (tag.meta.name)))))])])],1),_c('i',{staticClass:\"iconfont icon-guanbi close\",class:{ noshow: tag.meta.affix },on:{\"click\":function($event){$event.preventDefault();$event.stopPropagation();return _vm.closeSelectedTag(tag)}}})])}),0),_c('ul',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.visible),expression:\"visible\"}],staticClass:\"contextmenu\",style:({ left: _vm.left + 'px', top: _vm.top + 'px' })},[_c('li',{on:{\"click\":function($event){return _vm.refreshSelectedTag(_vm.selectedTag)}}},[_vm._v(_vm._s(_vm.$t('home.refresh')))]),(!(_vm.selectedTag.meta && _vm.selectedTag.meta.affix))?_c('li',{on:{\"click\":function($event){return _vm.closeSelectedTag(_vm.selectedTag)}}},[_vm._v(\" \"+_vm._s(_vm.$t('home.close'))+\" \")]):_vm._e(),_c('li',{on:{\"click\":_vm.closeOthersTags}},[_vm._v(\" \"+_vm._s(_vm.$t('home.closeOthers'))+\" \")]),_c('li',{on:{\"click\":function($event){return _vm.closeAllTags(_vm.selectedTag)}}},[_vm._v(_vm._s(_vm.$t('home.closeAll')))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"tags-view-container\">\r\n <i class=\"iconfont icon-xiangqian icon\" />\r\n <i class=\"iconfont icon-xianghou icon after\" />\r\n <div class=\"container\" ref=\"isOverflow\">\r\n <div\r\n v-for=\"tag in visitedViews\"\r\n :key=\"tag.path\"\r\n :class=\"isActive(tag) ? 'active' : ''\"\r\n class=\"tags-view-item\"\r\n @click=\"goLink(tag)\"\r\n @contextmenu.prevent.stop=\"openMenu(tag, $event)\"\r\n >\r\n <span class=\"tag isOverflow\" :class=\"{ affix: tag.meta.affix }\">\r\n <el-tooltip\r\n class=\"item\"\r\n effect=\"dark\"\r\n :content=\"$t(`home.${tag.meta.name}`)\"\r\n placement=\"top\"\r\n >\r\n <span>{{ $t(`home.${tag.meta.name}`) }}</span>\r\n </el-tooltip>\r\n </span>\r\n <i\r\n class=\"iconfont icon-guanbi close\"\r\n :class=\"{ noshow: tag.meta.affix }\"\r\n @click.prevent.stop=\"closeSelectedTag(tag)\"\r\n />\r\n </div>\r\n </div>\r\n <ul\r\n v-show=\"visible\"\r\n :style=\"{ left: left + 'px', top: top + 'px' }\"\r\n class=\"contextmenu\"\r\n >\r\n <li @click=\"refreshSelectedTag(selectedTag)\">{{ $t('home.refresh') }}</li>\r\n <li\r\n v-if=\"!(selectedTag.meta && selectedTag.meta.affix)\"\r\n @click=\"closeSelectedTag(selectedTag)\"\r\n >\r\n {{ $t('home.close') }}\r\n </li>\r\n <li @click=\"closeOthersTags\">\r\n {{ $t('home.closeOthers') }}\r\n </li>\r\n <li @click=\"closeAllTags(selectedTag)\">{{ $t('home.closeAll') }}</li>\r\n </ul>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport path from 'path'\r\n\r\nexport default {\r\n name: 'TagsView',\r\n data() {\r\n return {\r\n visible: false,\r\n top: 0,\r\n left: 0,\r\n selectedTag: {},\r\n affixTags: [],\r\n isOverflow: false\r\n }\r\n },\r\n computed: {\r\n visitedViews() {\r\n console.log(this.$store.state.tagsView.visitedViews)\r\n return this.$store.state.tagsView.visitedViews\r\n },\r\n routes() {\r\n return this.$store.state.permission.routes\r\n }\r\n },\r\n watch: {\r\n $route() {\r\n this.addTags()\r\n },\r\n visible(value) {\r\n if (value) {\r\n document.body.addEventListener('click', this.closeMenu)\r\n } else {\r\n document.body.removeEventListener('click', this.closeMenu)\r\n }\r\n }\r\n },\r\n mounted() {\r\n this.initTags()\r\n this.addTags()\r\n this.$nextTick(() => {\r\n this.isOverflow = this.checkEllipsis(\r\n this.$refs.isOverflow.firstElementChild.firstElementChild\r\n .firstElementChild\r\n )\r\n })\r\n },\r\n beforeRouteLeave() {},\r\n methods: {\r\n // 判断文本是否溢出\r\n checkEllipsis(elem) {\r\n console.log(elem)\r\n if (elem.offsetWidth >= 85) {\r\n // 溢出了\r\n return true\r\n }\r\n return false\r\n },\r\n isActive(route) {\r\n return path.resolve(route.path) === path.resolve(this.$route.path)\r\n },\r\n filterAffixTags(routes, basePath = '/') {\r\n let tags = []\r\n routes.forEach((route) => {\r\n if (route.meta && route.meta.affix) {\r\n const tagPath = path.resolve(basePath, route.path)\r\n const isAdmin = this.$route.matched[0].meta.name == 'admin'\r\n const isHome = this.$route.matched[0].meta.name == 'manager'\r\n if (route.meta.isAdmin && isAdmin) {\r\n tags.push({\r\n fullPath: tagPath,\r\n path: tagPath,\r\n name: route.name,\r\n meta: { ...route.meta }\r\n })\r\n } else if (!route.meta.isAdmin && !isAdmin && !isHome) {\r\n tags.push({\r\n fullPath: tagPath,\r\n path: tagPath,\r\n name: route.name,\r\n meta: { ...route.meta }\r\n })\r\n }\r\n } else if (route.children) {\r\n const tempTags = this.filterAffixTags(route.children, route.path)\r\n if (tempTags.length >= 1) {\r\n tags = [...tags, ...tempTags]\r\n }\r\n }\r\n })\r\n\r\n return tags\r\n },\r\n\r\n initTags() {\r\n console.log(`------------1-------------`)\r\n const affixTags = (this.affixTags = this.filterAffixTags(this.routes))\r\n for (const tag of affixTags) {\r\n // Must have tag name\r\n if (tag.name) {\r\n this.$store.dispatch('addVisitedView', tag)\r\n }\r\n }\r\n },\r\n addTags() {\r\n const { name } = this.$route\r\n if (name) {\r\n this.$store.dispatch('addView', this.$route)\r\n }\r\n return false\r\n },\r\n refreshSelectedTag(view) {\r\n this.$store.dispatch('delCachedView', view).then(() => {\r\n const { fullPath } = view\r\n console.log(fullPath)\r\n this.$nextTick(() => {\r\n this.$router.replace({\r\n path: fullPath\r\n })\r\n })\r\n })\r\n },\r\n closeSelectedTag(view) {\r\n this.$store.dispatch('delView', view).then(({ visitedViews }) => {\r\n if (this.isActive(view)) {\r\n this.toLastView(visitedViews)\r\n }\r\n })\r\n },\r\n closeOthersTags() {\r\n this.$router.push(this.selectedTag)\r\n this.$store.dispatch('delOthersViews', this.selectedTag)\r\n },\r\n closeAllTags(view) {\r\n this.$store.dispatch('delAllViews').then(({ visitedViews }) => {\r\n if (this.affixTags.some((tag) => tag.path === view.path)) {\r\n return\r\n }\r\n this.toLastView(visitedViews)\r\n })\r\n },\r\n toLastView(visitedViews) {\r\n const latestView = visitedViews.slice(-1)[0]\r\n if (latestView) {\r\n this.$router.push(latestView)\r\n } else {\r\n // You can set another route\r\n this.$router.push('/')\r\n }\r\n },\r\n openMenu(tag, e) {\r\n const maxLeft = window.innerWidth - 100 // left boundary\r\n const left = e.clientX - 35 // 15: margin right\r\n\r\n if (left > maxLeft) {\r\n this.left = maxLeft\r\n } else {\r\n this.left = left\r\n }\r\n\r\n this.top = e.clientY + 15\r\n this.visible = true\r\n this.selectedTag = tag\r\n },\r\n closeMenu() {\r\n this.visible = false\r\n },\r\n goLink(tag) {\r\n this.$router.push({ path: tag.path })\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\r\n.tags-view-container {\r\n height: 40px;\r\n width: 100%;\r\n padding: 0 18px 0 20px;\r\n background: rgba(0, 60, 61, 1);\r\n position: relative;\r\n z-index: 3;\r\n .container {\r\n height: 40px;\r\n line-height: 40px;\r\n padding: 0 20px;\r\n padding-top: 2px;\r\n width: 100%;\r\n border-bottom: 1px solid #066659;\r\n display: flex;\r\n overflow: hidden;\r\n }\r\n .tags-view-item {\r\n display: flex;\r\n max-width: 120px;\r\n position: relative;\r\n cursor: pointer;\r\n height: 38px;\r\n line-height: 38px;\r\n overflow: hidden;\r\n .tag {\r\n display: inline-block;\r\n font-size: 14px;\r\n text-align: center;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: #00a696;\r\n padding-right: 16px;\r\n padding-left: 3px;\r\n margin-left: 12px;\r\n margin-right: 24px;\r\n display: inline-block;\r\n overflow: hidden;\r\n .item {\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n display: block;\r\n }\r\n }\r\n .close {\r\n position: absolute;\r\n color: rgba(120, 218, 204, 0.5);\r\n font-size: 12px;\r\n right: 20px;\r\n &:hover {\r\n color: rgba(120, 218, 204, 1);\r\n }\r\n }\r\n .noshow {\r\n display: none;\r\n }\r\n &.active {\r\n .tag {\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: #deffff;\r\n overflow: hidden;\r\n .item {\r\n overflow: hidden;\r\n }\r\n }\r\n &::before {\r\n content: '';\r\n display: inline-block;\r\n background: url(../../../assets/images/layout/tagbg.png);\r\n background-repeat: no-repeat;\r\n background-size: cover;\r\n height: 36px;\r\n width: 110px;\r\n position: absolute;\r\n right: 0;\r\n z-index: -1;\r\n }\r\n\r\n .close {\r\n color: rgba(120, 218, 204, 1);\r\n &:hover {\r\n color: rgba(120, 218, 204, 0.5);\r\n }\r\n }\r\n }\r\n .affix {\r\n padding-right: 5px;\r\n margin-right: 20px;\r\n }\r\n }\r\n .contextmenu {\r\n margin: 0;\r\n background: #091c22;\r\n color: #a8cdcb;\r\n z-index: 100;\r\n position: fixed;\r\n list-style-type: none;\r\n padding: 5px 0;\r\n border-radius: 4px;\r\n font-size: 12px;\r\n font-weight: 400;\r\n box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);\r\n li {\r\n margin: 0;\r\n padding: 7px 16px;\r\n cursor: pointer;\r\n &:hover {\r\n background: linear-gradient(\r\n 90deg,\r\n rgba(14, 42, 49, 0.5) 0%,\r\n rgba(12, 93, 93, 0.5) 100%\r\n );\r\n }\r\n }\r\n }\r\n .icon {\r\n position: absolute;\r\n color: #018075;\r\n line-height: 40px;\r\n &.after {\r\n right: 18px;\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TagsView.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TagsView.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TagsView.vue?vue&type=template&id=172fb22a&scoped=true&\"\nimport script from \"./TagsView.vue?vue&type=script&lang=js&\"\nexport * from \"./TagsView.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TagsView.vue?vue&type=style&index=0&id=172fb22a&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"172fb22a\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./signOut.vue?vue&type=style&index=0&id=58efc830&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=a5015ec8&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"leftbar\"},[_c('div',{staticClass:\"bar\"},[_c('el-menu',{staticClass:\"leftbar-menu\",attrs:{\"default-active\":_vm.$route.meta.name,\"collapse\":_vm.isCollapse,\"collapse-transition\":false,\"unique-opened\":\"\"},on:{\"select\":_vm.btn}},_vm._l((this.Permission_routes),function(route){return _c('SidebarItem',{key:route.permissionId,attrs:{\"item\":route,\"isCollapse\":_vm.isCollapse}})}),1)],1),_c('div',{staticClass:\"collapse\",on:{\"click\":_vm.changeCollapse}},[_c('i',{staticClass:\"iconfont icon-daohangsuofang navbg\"}),_c('i',{staticClass:\"iconfont icon-xia arrow\"})])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"leftbar\">\r\n <div class=\"bar\">\r\n <el-menu\r\n class=\"leftbar-menu\"\r\n :default-active=\"$route.meta.name\"\r\n @select=\"btn\"\r\n :collapse=\"isCollapse\"\r\n :collapse-transition=\"false\"\r\n unique-opened\r\n >\r\n <SidebarItem\r\n v-for=\"route in this.Permission_routes\"\r\n :key=\"route.permissionId\"\r\n :item=\"route\"\r\n :isCollapse=\"isCollapse\"\r\n />\r\n </el-menu>\r\n </div>\r\n <div @click=\"changeCollapse\" class=\"collapse\">\r\n <i class=\"iconfont icon-daohangsuofang navbg\" />\r\n <i class=\"iconfont icon-xia arrow\" />\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n// import path from \"path\"\r\nimport { mapGetters } from \"vuex\"\r\nimport SidebarItem from \"./SidebarItem\"\r\nexport default {\r\n name: \"NavbarList\",\r\n components: { SidebarItem },\r\n data() {\r\n return {\r\n paths: \"\",\r\n routes: [],\r\n isAdmin: false,\r\n routeName: \"\",\r\n routeChange: true,\r\n Permission_routes: []\r\n }\r\n },\r\n computed: {\r\n ...mapGetters([\"permission_routes\", \"admin_routes\"]),\r\n isCollapse: {\r\n get() {\r\n return this.$store.state.app.isCollapse\r\n }\r\n }\r\n },\r\n mounted() {\r\n this.routeName = this.$route.matched[0].meta.name\r\n this.isAdmin = this.$route.matched[0].meta.name == \"admin\"\r\n this.getRoutes()\r\n },\r\n watch: {\r\n $route() {\r\n if (this.routeName != this.$route.matched[0].meta.name) {\r\n this.routeName = this.$route.matched[0].meta.name\r\n this.isAdmin = this.$route.matched[0].meta.name == \"admin\"\r\n this.getRoutes()\r\n }\r\n },\r\n isCollapse() {},\r\n permission_routes() {\r\n this.getRoutes()\r\n }\r\n },\r\n methods: {\r\n reload() {\r\n this.isRouterAlive = false\r\n this.$nextTick(() => (this.isRouterAlive = true))\r\n },\r\n changeCollapse() {\r\n this.$store.dispatch(\"toggleSideBar\")\r\n },\r\n // hasOneShowingChild(children = [], parent) {\r\n // const showingChildren = children.filter((item) => {\r\n // if (item.hidden) {\r\n // return false\r\n // } else {\r\n // this.onlyOneChild = item\r\n // return true\r\n // }\r\n // })\r\n\r\n // if (showingChildren.length === 0) {\r\n // this.onlyOneChild = { ...parent, path: \"\", noShowingChildren: true }\r\n // return true\r\n // }\r\n\r\n // return false\r\n // },\r\n getRoutes() {\r\n console.log(this.isAdmin, \" this.$store.state.app.isCollapse\")\r\n if (!this.isAdmin) {\r\n this.Permission_routes = this.permission_routes.filter((e) => {\r\n if (e.hidden || e.meta.name == \"admin\") {\r\n return false\r\n } else {\r\n return true\r\n }\r\n })\r\n this.Permission_routes = this.Permission_routes.map((e) => {\r\n if (e.children && e.children.length > 1) {\r\n e.showingChildren = true\r\n } else {\r\n e = (e.children && e.children[0]) || e\r\n e.showingChildren = false\r\n }\r\n return e\r\n })\r\n } else {\r\n this.Permission_routes = this.admin_routes.filter((e) => {\r\n if (e.children && e.children.length > 1) {\r\n e.showingChildren = true\r\n } else {\r\n e.showingChildren = false\r\n }\r\n return e\r\n })\r\n }\r\n },\r\n btn(index, e, i) {\r\n this.paths = index\r\n console.log(index, e, i, i.route)\r\n this.$router.push({ name: index })\r\n },\r\n handleOpen(key, keyPath) {\r\n console.log(key, keyPath, \"----------------1-----------\")\r\n },\r\n handleClose(key, keyPath) {\r\n console.log(key, keyPath, \"----------------3-----------\")\r\n }\r\n }\r\n}\r\n</script>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./leftBar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./leftBar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./leftBar.vue?vue&type=template&id=5a0670c0&\"\nimport script from \"./leftBar.vue?vue&type=script&lang=js&\"\nexport * from \"./leftBar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TagsView.vue?vue&type=style&index=0&id=172fb22a&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.alarmList.length > 0)?_c('div',{staticClass:\"alarm-container\"},[_c('div',{staticClass:\"name\"},[_c('i',{staticClass:\"iconfont icon-tongzhi\"}),_c('span',[_vm._v(_vm._s(_vm.$t(\"alarm.notification\"))+\"\")])]),_c('div',{ref:\"msgBox\",staticClass:\"msg-box\"},[_c('div',{ref:\"box\",staticClass:\"list\"},_vm._l((_vm.alarmList),function(item,index){return _c('div',{key:index,ref:\"list\",refInFor:true,staticClass:\"msg\"},[_c('span',[_vm._v(\" [\"+_vm._s(_vm.getLevel(item.alarmLevel))+\"] \"+_vm._s(item.deviceName + \": \" + item.alarmInfo)+\" \")])])}),0)])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"alarm-container\" v-if=\"alarmList.length > 0\">\r\n <div class=\"name\">\r\n <i class=\"iconfont icon-tongzhi\" />\r\n <span>{{ $t(\"alarm.notification\") }}</span>\r\n </div>\r\n <div class=\"msg-box\" ref=\"msgBox\">\r\n <div class=\"list\" ref=\"box\">\r\n <div\r\n v-for=\"(item, index) in alarmList\"\r\n :key=\"index\"\r\n class=\"msg\"\r\n ref=\"list\"\r\n >\r\n <span>\r\n [{{ getLevel(item.alarmLevel) }}]\r\n {{ item.deviceName + \": \" + item.alarmInfo }}\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport { getTipAlarmList } from \"@/api/alarm\"\r\n\r\nexport default {\r\n name: \"AppMain\",\r\n computed: {\r\n cachedViews() {\r\n return this.$store.state.tagsView.cachedViews\r\n },\r\n key() {\r\n return this.$route.fullPath\r\n }\r\n },\r\n filters: {},\r\n data() {\r\n return {\r\n // 定时器标识\r\n nowTime: null,\r\n // 每一个内容的宽度\r\n disArr: [],\r\n alarmList: []\r\n }\r\n },\r\n\r\n mounted() {\r\n getTipAlarmList().then((e) => {\r\n this.alarmList = e.data.alarmList\r\n this.$nextTick(() => {\r\n this.setAlarmList()\r\n })\r\n })\r\n },\r\n beforeDestroy() {\r\n // 页面关闭清除定时器\r\n clearInterval(this.nowTime)\r\n // 清除定时器标识\r\n this.nowTime = null\r\n },\r\n methods: {\r\n getLevel(val) {\r\n // 验证是否为空\r\n if (val == 1) {\r\n return this.$t(\"alarm.leve1\")\r\n } else if (val == 2) {\r\n return this.$t(\"alarm.leve2\")\r\n } else if (val == 3) {\r\n return this.$t(\"alarm.leve3\")\r\n }\r\n },\r\n setAlarmList() {\r\n let item = this.$refs.list\r\n let msgBox = this.$refs.msgBox\r\n let box = this.$refs.box\r\n if (this.alarmList.length == 0) {\r\n return\r\n }\r\n if (msgBox.offsetWidth > box.offsetWidth) {\r\n return\r\n }\r\n let len = this.alarmList.length\r\n let arr = []\r\n // 因为设置的margin值一样所以取第一个就行。\r\n let margin = this.getMargin(item[0])\r\n for (let i = 0; i < len; i++) {\r\n arr.push(item[i].clientWidth + margin) // 把宽度和 margin 加起来就是每一个元素需要移动的距离\r\n }\r\n this.disArr = arr\r\n this.moveLeft()\r\n },\r\n // 获取margin属性\r\n getMargin(obj) {\r\n let marg = window.getComputedStyle(obj, null)[\"margin-right\"]\r\n marg = marg.replace(\"px\", \"\")\r\n return Number(marg) // 强制转化成数字\r\n },\r\n // 移动的方法\r\n moveLeft() {\r\n let that = this\r\n let outbox = this.$refs.box\r\n // 初始位置\r\n let startDis = 0\r\n this.nowTime = setInterval(function () {\r\n startDis -= 0.5\r\n // console.log('初始化移动:', startDis)\r\n if (Math.abs(startDis) > Math.abs(that.disArr[0])) {\r\n // 每次移动完一个元素的距离,就把这个元素的宽度\r\n that.disArr.push(that.disArr.shift())\r\n // 每次移动完一个元素的距离,就把列表数据的第一项放到最后一项\r\n // console.log('that.alarmList: ', that.alarmList)\r\n // console.log('that.alarmList: ', that.alarmList.shift())\r\n that.alarmList.push(that.alarmList.shift())\r\n startDis = 0\r\n // console.log('移动')\r\n } else {\r\n // console.log('不来不来就不来...')\r\n }\r\n // 每次都让盒子移动指定的距离,在我自己做的项目中,这种字符串拼接的方法并没有生效\r\n // outbox.style = 'transform: translateX3d(' + startDis + 'px)'\r\n // 后面换了es6的模板字符串就可以了\r\n outbox.style = `transform: translateX(${startDis}px)`\r\n // outbox.style = 'transform: translateX(\\' + startDis + \\' px)'\r\n // outbox.style.marginLeft = 'startDis'\r\n // console.log('这里:', startDis)\r\n }, 1000 / 60)\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\r\n.alarm-container {\r\n font-size: 13px;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: #ff3936;\r\n height: 24px;\r\n line-height: 24px;\r\n position: absolute;\r\n display: flex;\r\n top: 57px;\r\n left: 810px;\r\n right: 20px;\r\n .name {\r\n font-size: 13px;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: #fffc7d;\r\n max-width: 150px;\r\n .iconfont {\r\n margin-right: 8px;\r\n }\r\n }\r\n}\r\n\r\n.msg-box {\r\n flex: 1;\r\n overflow: hidden;\r\n height: 28px;\r\n .list {\r\n white-space: nowrap;\r\n display: inline-block;\r\n .msg {\r\n margin-right: 10px;\r\n display: inline-block;\r\n font-size: 13px;\r\n text-indent: 20px;\r\n line-height: 28px;\r\n height: 28px;\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./alarmList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./alarmList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./alarmList.vue?vue&type=template&id=5cace76c&scoped=true&\"\nimport script from \"./alarmList.vue?vue&type=script&lang=js&\"\nexport * from \"./alarmList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./alarmList.vue?vue&type=style&index=0&id=5cace76c&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5cace76c\",\n null\n \n)\n\nexport default component.exports","import request from \"@/utils/request\";\r\n\r\n\r\n// 根据告警ID获取告警历史记录/告警工单信息\r\nexport function getDeptAlarmDetails(data) {\r\n return request({\r\n url: \"trajectory-service/deptAlarm/getTaskByAlarmId\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n// 清除告警状态\r\nexport function clearAlarmStatus(alarmId) {\r\n return request({\r\n url: \"alarm-service/alarm/clearAlarmStatus?alarmId=\" + alarmId,\r\n method: \"post\",\r\n });\r\n}\r\n\r\n\r\n// 获取告警设备类型列表\r\nexport function getAlarmDeviceTypeList() {\r\n return request({\r\n url: \"alarm-service/alarm/getAlarmDeviceTypeList\",\r\n method: \"get\",\r\n });\r\n}\r\n\r\n\r\n// 获取告警列表\r\nexport function getAlarmList(data) {\r\n return request({\r\n url: \"alarm-service/alarm/getAlarmList\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n\r\n// 获取提示告警列表\r\nexport function getTipAlarmList(data) {\r\n return request({\r\n url: \"alarm-service/alarm/getTipAlarmList\",\r\n method: \"get\",\r\n params: data,\r\n });\r\n}\r\n\r\n\r\n// 更新告警阅读状态\r\nexport function updateAlarmReadStatus(data) {\r\n return request({\r\n url: \"alarm-service/alarm/updateAlarmReadStatus\",\r\n method: \"post\",\r\n params: data,\r\n });\r\n}\r\n\r\n// 根据筛选条件查询设备操作信息\r\nexport function getDeviceLogList(data) {\r\n return request({\r\n url: 'device-service/deviceLog/getDeviceLogList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n\r\n\r\n \r\n// 查询故障等级状态-告警等级占比\r\nexport function getAlarmLevel(data) {\r\n return request({\r\n url: 'alarm-service/statistics/getAlarmLevel',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n \r\n// 查询故障等级设备类型状态-告警等级分布\r\nexport function getAlarmLevelType(data) {\r\n return request({\r\n url: 'alarm-service/statistics/getAlarmLevelType',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n \r\n\r\n// 查询故障状态-告警状态占比\r\nexport function getAlarmStatus(data) {\r\n return request({\r\n url: 'alarm-service/statistics/getAlarmStatus',\r\n method: 'get',\r\n params: data\r\n })\r\n} \r\n\r\n\r\n// 查询故障设备类型等级状态-设备告警等级分布\r\nexport function getAlarmTypeLevel(data) {\r\n return request({\r\n url: 'alarm-service/statistics/getAlarmTypeLevel',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n\r\n// 查询故障设备类型状态-告警状态分布\r\nexport function getAlarmTypeStatus(data) {\r\n return request({\r\n url: 'alarm-service/statistics/getAlarmTypeStatus',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./alarmList.vue?vue&type=style&index=0&id=5cace76c&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"header-goback\"},[_c('div',{staticClass:\"desk\",on:{\"click\":_vm.goScreen}},[_c('i',{staticClass:\"iconfont icon-shouye\"}),_c('span',[_vm._v(_vm._s(_vm.$t(\"home.screen\")))])]),(!_vm.isAdmin && !_vm.isHome)?_c('div',{staticClass:\"desk\",on:{\"click\":_vm.goAdmin}},[_c('i',{staticClass:\"iconfont icon-guanlitai\"}),_c('span',[_vm._v(_vm._s(_vm.$t(\"login.desk\")))])]):_vm._e(),_c('div',{staticClass:\"lanange\"},[_c('i',{staticClass:\"iconfont icon-yuyan\"}),_c('span',{class:{ isLang: _vm.lang == 'zh' },on:{\"click\":function($event){return _vm.changeLang('zh')}}},[_vm._v(\"中\")]),_c('el-divider',{attrs:{\"direction\":\"vertical\"}}),_c('span',{class:{ isLang: _vm.lang == 'en' },on:{\"click\":function($event){return _vm.changeLang('en')}}},[_vm._v(\"EN\")])],1),_c('div',{staticClass:\"name\"},[_c('i',{staticClass:\"iconfont icon-yonghu\"}),_c('span',[_vm._v(_vm._s(_vm.$t(\"login.welcome\")))]),_c('span',[_vm._v(_vm._s(_vm.getUserType(_vm.userType)))]),_c('span',[_vm._v(\"[\"+_vm._s(_vm.userName)+\"]\")]),(!_vm.isAdmin)?_c('el-tooltip',{attrs:{\"content\":_vm.$t('home.personal')}},[_c('i',{staticClass:\"iconfont icon-bianji\",on:{\"click\":function($event){return _vm.goPerson(_vm.isAdmin)}}})]):_vm._e(),_c('el-tooltip',{attrs:{\"content\":_vm.$t('login.signOut')}},[_c('i',{staticClass:\"iconfont icon-tuichu\",on:{\"click\":_vm.logout}})])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"header-goback\">\r\n <div class=\"desk\" @click=\"goScreen\">\r\n <i class=\"iconfont icon-shouye\" /><span>{{ $t(\"home.screen\") }}</span>\r\n </div>\r\n <div class=\"desk\" v-if=\"!isAdmin && !isHome\" @click=\"goAdmin\">\r\n <i class=\"iconfont icon-guanlitai\" /><span>{{ $t(\"login.desk\") }}</span>\r\n </div>\r\n <div class=\"lanange\">\r\n <i class=\"iconfont icon-yuyan\" />\r\n <span :class=\"{ isLang: lang == 'zh' }\" @click=\"changeLang('zh')\"\r\n >中</span\r\n >\r\n <el-divider direction=\"vertical\"></el-divider>\r\n <span :class=\"{ isLang: lang == 'en' }\" @click=\"changeLang('en')\"\r\n >EN</span\r\n >\r\n </div>\r\n <div class=\"name\">\r\n <i class=\"iconfont icon-yonghu\" />\r\n <span>{{ $t(\"login.welcome\") }}</span>\r\n <span>{{ getUserType(userType) }}</span>\r\n <span>[{{ userName }}]</span>\r\n <el-tooltip :content=\"$t('home.personal')\" v-if=\"!isAdmin\">\r\n <i class=\"iconfont icon-bianji\" @click=\"goPerson(isAdmin)\" />\r\n </el-tooltip>\r\n <el-tooltip :content=\"$t('login.signOut')\">\r\n <i class=\"iconfont icon-tuichu\" @click=\"logout\" />\r\n </el-tooltip>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"SignOut\",\r\n props: {\r\n isAdmin: {\r\n type: Boolean,\r\n required: true\r\n },\r\n isHome: {\r\n type: Boolean,\r\n required: true\r\n }\r\n },\r\n data() {\r\n return {\r\n isShow: false,\r\n timeout: 50000,\r\n lang: this.$i18n.locale,\r\n openedWindow: null\r\n }\r\n },\r\n filters: {\r\n round(val) {\r\n if (val) {\r\n // 保留一位小数\r\n val = val - 0\r\n const validateVal = parseFloat(val.toFixed(1))\r\n return validateVal\r\n } else {\r\n return 0\r\n }\r\n }\r\n },\r\n mounted() {\r\n if (this.logoForm.unitName) {\r\n document.title =\r\n this.$i18n.locale == \"en\"\r\n ? this.logoForm.enUnitName\r\n : this.logoForm.unitName\r\n } else {\r\n document.title = \"\"\r\n }\r\n },\r\n computed: {\r\n userName() {\r\n return this.$store.state.user.userName\r\n },\r\n userType() {\r\n return this.$store.state.user.userType\r\n },\r\n logoForm: {\r\n get() {\r\n return this.$store.state.user.logoForm\r\n }\r\n }\r\n },\r\n methods: {\r\n getUserType(val) {\r\n if (val == 1) {\r\n return this.$t(\"user.superAdmin\")\r\n } else {\r\n return this.$t(\"user.admin\")\r\n }\r\n },\r\n goScreen() {\r\n const routes = this.$router.resolve({ name: \"screen\" })\r\n window.open(routes.href, \"screen\")\r\n },\r\n goAdmin() {\r\n const routes = this.$router.resolve({ name: \"manager\" })\r\n window.open(routes.href, \"manager\")\r\n },\r\n goPerson() {\r\n if (this.isAdmin) {\r\n return\r\n }\r\n this.$router.push({ name: \"personal\" })\r\n },\r\n changeLang(val) {\r\n if (this.lang == val) {\r\n return\r\n } else {\r\n this.$i18n.locale = val\r\n this.lang = val\r\n localStorage.setItem(\"lang\", val)\r\n }\r\n this.$message({\r\n message: this.$t(\"changelangtip\").toString(), //方法中使用this.$t(\"xxxx.xx\")取到语言包中对应文字\r\n type: \"success\"\r\n })\r\n },\r\n logout() {\r\n window.localStorage.removeItem(\"sitename\")\r\n this.$store.dispatch(\"LogOut\").then(() => {\r\n location.reload() // In order to re-instantiate the vue-router object to avoid bugs\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\r\n.header-goback {\r\n display: flex;\r\n float: right;\r\n position: relative;\r\n font-family: Source Han Sans CN;\r\n font-weight: 400;\r\n color: #01ffe9;\r\n font-size: 13px;\r\n justify-content: flex-end;\r\n margin-left: -30px;\r\n}\r\n.desk,\r\n.lanange,\r\n.name {\r\n height: 36px;\r\n line-height: 36px;\r\n margin: 10px 0;\r\n font-size: 14px;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: #01ffe9;\r\n cursor: pointer;\r\n margin-right: 20px;\r\n .iconfont {\r\n margin: 0 8px;\r\n &:hover {\r\n color: #98fff7;\r\n }\r\n }\r\n}\r\n.isLang {\r\n color: #98fff7;\r\n}\r\n.desk:hover,\r\n.lanange span:hover {\r\n color: #98fff7;\r\n}\r\n</style>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./signOut.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./signOut.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./signOut.vue?vue&type=template&id=58efc830&scoped=true&\"\nimport script from \"./signOut.vue?vue&type=script&lang=js&\"\nexport * from \"./signOut.vue?vue&type=script&lang=js&\"\nimport style0 from \"./signOut.vue?vue&type=style&index=0&id=58efc830&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"58efc830\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}