{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\components\\layout\\Navigator.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\components\\layout\\Navigator.vue","mtime":1685516745611},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _toConsumableArray from \"D:/jenkins/workspace/bbsl-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\nimport _defineProperty from \"D:/jenkins/workspace/bbsl-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.regexp.constructor\";\n\nvar _name$components$prop;\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (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 = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport HtAvatar from '@/components/common/HtAvatar.vue';\nimport WarningDialog from \"./warning/WarningDialog.vue\";\nimport { mapState } from 'vuex';\nimport { Base64 } from 'js-base64';\nimport req from '@/request.js';\nimport menu from '@/api/menu.js';\nimport projectMessageDrawer from '@/components/message/projectMessageDrawer';\nimport uc from '@/api/uc.js';\nimport indexApi from '@/api/frontScreen/index.js';\nvar weatherImage = {\n 晴: 'yintian',\n 多云: 'duoyun',\n 阴: 'yintian',\n 霾: 'wumai',\n 雷阵雨: 'leizhenyu',\n 雨: 'xiaoyu',\n 小雨: 'xiaoyu',\n 中雨: 'zhongyu',\n 大雨: 'dayu',\n 暴雨: 'baoyu',\n 大暴雨: 'dabaoyu',\n '中雨-大雨': 'zhongyuzhuandayu',\n '小雨-中雨': 'zhongyuzhuandayu',\n '大雨-暴雨': 'zhongyuzhuandayu',\n '暴雨-大暴雨': 'zhongyuzhuandayu',\n 风: 'dafeng',\n 其他: 'dawu'\n};\nexport default (_name$components$prop = {\n name: 'navigator',\n components: {\n HtAvatar: HtAvatar,\n WarningDialog: WarningDialog\n },\n props: ['menuShow', 'showTopMenu', 'menuStyle'],\n data: function data() {\n var _this2 = this;\n\n var validateNew = function validateNew(rule, value, callback) {\n if (value === '') {\n callback(new Error('请输入新密码'));\n }\n\n var config = _this2.pwdStrategy;\n\n if (config.enable == 1) {\n var pwdRule = config.pwdRule;\n var pwdLength = config.pwdLength;\n\n if (pwdRule) {\n if (value.length < pwdLength) {\n callback(new Error('新密码长度至少为' + pwdLength));\n } else if (pwdRule == 2) {\n var re = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])');\n\n if (!re.test(value)) {\n callback(new Error('新密码必须包含数字、字母'));\n } else {\n callback();\n }\n } else if (pwdRule == 3) {\n var re = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9])');\n\n if (!re.test(value)) {\n callback(new Error('新密码必须包含数字、字母、特殊字符'));\n } else {\n callback();\n }\n } else if (pwdRule == 4) {\n var re = new RegExp('(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[^a-zA-Z0-9])');\n\n if (!re.test(value)) {\n callback(new Error('新密码必须包含数字、大小字母、特殊字符'));\n } else {\n callback();\n }\n } else {\n callback();\n }\n }\n } else {\n if (value.length < 6) {\n callback(new Error('新密码长度至少为6'));\n } else {\n callback();\n }\n }\n };\n\n var validateold = function validateold(rule, value, callback) {\n if (value === '') {\n callback(new Error('请输入旧密码'));\n } else {\n callback();\n }\n };\n\n var validateNewReapeat = function validateNewReapeat(rule, value, callback) {\n if (value === '') {\n callback(new Error('请再次输入新密码'));\n } else {\n callback();\n }\n };\n\n return {\n // 报警个数统计\n WarningNum: '',\n WarningData: [],\n weatherImage: weatherImage,\n weatherToday: {},\n messageList: [],\n messnum: '',\n logo: '',\n bizUrl: '',\n showLogo: true,\n styleSettingDialogVisible: false,\n styleSetting: {\n tabsStyle: {\n tabPosition: 'top',\n tabType: 'border-card'\n },\n elementUI: {\n theme: 'day-theme'\n }\n },\n searchWork: '',\n searchMenus: [],\n infoDialogVisible: false,\n modifyPwdDialogVisible: false,\n pwdForm: {\n old: '',\n new: '',\n newRepeat: ''\n },\n pwdRules: {\n old: [{\n validator: validateold,\n trigger: 'blur'\n }],\n new: [{\n validator: validateNew,\n trigger: 'blur'\n }],\n newRepeat: [{\n validator: validateNewReapeat,\n trigger: 'blur'\n }]\n },\n isIeExplorer: false,\n sysPath: '',\n platName: '管理平台',\n activeIndex: '',\n // frontMenus: [],\n currentMenu: '',\n //-----------------静态菜单\n staticMenu: [{\n key: 'gis',\n name: '水利一张图',\n icon: 'guojihua'\n }, {\n key: 'waterSurvey',\n name: '单位概况',\n icon: 'performance'\n }, {\n key: 'index',\n name: '监测预警',\n icon: 'performance'\n }, {\n key: 'videoMonitor',\n name: '视频监控',\n icon: 'view'\n }, {\n key: 'digitalReservoir',\n name: '智慧水库',\n icon: 'icon_leftnav_wodechengguo'\n }, {\n key: 'bizPlat',\n name: '业务管理',\n icon: 'business'\n }] //-----------------静态菜单\n\n };\n },\n created: function created() {\n this.getWeather();\n this.getUnread();\n this.getBizUrl();\n this.getAllWarning();\n var USER_AGENT = navigator.userAgent.toLowerCase();\n var isChrome = /.*(chrome)\\/([\\w.]+).*/;\n\n if (!isChrome.test(USER_AGENT)) {\n this.isIeExplorer = true;\n }\n\n this.activePage();\n },\n mounted: function mounted() {\n var _this3 = this;\n\n //自动刷新获取数据(1000*60*10=>毫秒*秒*分钟,此时表示为10分钟)\n this.refreshData = setInterval(function () {\n _this3.getAllWarning();\n }, 1000 * 60 * 10);\n },\n beforeMount: function beforeMount() {// let arr = window.location.pathname.split('/')\n // let num = arr.length\n // this.currentMenu = arr[num - 1]\n },\n //生命周期若已设置定时器,需清空定时器beforeDestroy()\n beforeDestroy: function beforeDestroy() {\n clearInterval(this.refreshData);\n this.refreshData = null;\n },\n computed: _objectSpread({}, mapState({\n sysMenus: function sysMenus(state) {\n return state.menu.sysMenus;\n },\n currentUser: function currentUser(state) {\n return state.user.currentUserDetail;\n },\n token: function token(state) {\n return state.login.currentUser.token;\n },\n frontUrl: function frontUrl() {\n if (this.currentUser && this.currentUser.user && this.currentUser.user.account && (!window.ssoConfig.mode || window.ssoConfig.mode == 'jwt')) {\n return \"\".concat(this.bizUrl, \"?token= \") + this.token;\n } else {\n return this.bizUrl; // return this.bizUrl ? this.bizUrl : `${window.context.front}`\n }\n },\n mobileUrl: function mobileUrl() {\n if (this.currentUser && this.currentUser.user && this.currentUser.user.account && (!window.ssoConfig.mode || window.ssoConfig.mode == 'jwt')) {\n return \"\".concat(window.context.mobile, \"?token= \") + this.token;\n } else {\n return \"\".concat(window.context.mobile);\n }\n },\n pwdStrategy: function pwdStrategy(state) {\n return state.user.pwdStrategy;\n },\n userType: function userType() {\n if (this.currentUser && this.currentUser.user) {\n return this.currentUser.user.userType;\n }\n },\n frontMenus: function frontMenus(state) {\n return state.menu.frontMenus;\n },\n currentMenu_: function currentMenu_() {\n return;\n }\n })),\n watch: {\n styleSetting: {\n handler: function handler(val, oldval) {\n var str = JSON.stringify(val);\n localStorage.setItem('styleSetting', str);\n this.$store.dispatch('styleSetting/actionStyleSetting', JSON.parse(str));\n },\n deep: true //对象内部的属性监听,也叫深度监听\n\n },\n $route: 'activePage'\n },\n methods: {\n // 查询所有报警数据\n getAllWarning: function getAllWarning() {\n var _this4 = this;\n\n indexApi.allWarningList({}, function (res) {\n _this4.WarningNum = res.value.count;\n _this4.WarningData = res.value.list;\n });\n },\n ShowWarning: function ShowWarning() {\n this.$refs.WarningDialog.open(this.WarningData);\n },\n showPopper: function showPopper() {\n var _this5 = this;\n\n this.$nextTick(function () {\n var size = _this5.$refs.headerPopper.getBoundingClientRect();\n\n _this5.$bus.$emit('showPopper', size);\n });\n },\n hidePopper: function hidePopper() {\n this.$bus.$emit('hidePopper');\n },\n getWeather: function getWeather() {\n var _this6 = this;\n\n indexApi.getWeather(function (data) {\n console.log(data, '天气', weatherImage); // this.weatherThreeDays = data.forecasts[0].casts.slice(0, 3)\n\n _this6.weatherToday = data.forecasts[0].casts[0]; // console.log(this.weather, '天气')\n // this.formatIcon()\n });\n },\n toHaikang: function toHaikang() {\n indexApi.haiKang(function (res) {\n if (res.state) {\n window.open(res.message);\n }\n });\n },\n tojumping: function tojumping() {\n window.open('http://183.230.17.146:8011/jumping');\n },\n handleClickMenu: function handleClickMenu(item) {\n var path = '';\n var firstMenu = this.frontMenus[0];\n\n if (firstMenu.children.length !== 0) {\n var _firstPath = firstMenu.alias;\n var childrens = firstMenu.children;\n var subPath = childrens[0].alias;\n\n if (childrens[0].children && childrens[0].children.length !== 0) {\n var threeChildrens = childrens[0].children;\n var threePath = threeChildrens[0].alias;\n path = '/bizPlat/' + _firstPath + '/' + subPath + '/' + threePath;\n } else {\n path = '/bizPlat/' + _firstPath + '/' + subPath + '/';\n }\n } else {\n path = '/bizPlat/' + firstPath;\n }\n\n if (item.key == 'bizPlat') {\n var _this$$router$resolve = this.$router.resolve({\n path: path\n }),\n href = _this$$router$resolve.href;\n\n window.open(href, '_blank', console.log(href));\n } else {\n this.$router.push('/frontPlat/' + item.key);\n }\n },\n activePage: function activePage() {\n var fullPath = this.$route.path;\n var path = fullPath.split('/');\n var urlAnchor = path[path.indexOf('frontPlat') + 1];\n this.currentMenu = urlAnchor;\n },\n changeMenu: function changeMenu(item) {\n if (item.name === '信息管理') {\n var a = item.children[0].children[0].href;\n this.$router.push('/frontPlat/' + a);\n }\n\n var hasSideMenu = item.children.length ? true : false;\n this.$emit('update:menuShow', hasSideMenu);\n this.currentMenu = item.alias;\n\n if (item.children.length !== 0 && item.alias !== 'cockpit') {\n var childrens = item.children;\n var path = childrens[0].alias;\n this.$router.push('/frontPlat/' + path);\n } else {\n this.$router.push('/frontPlat/' + item.alias);\n this.currentMenu = item.alias;\n }\n },\n // ----------------------\n goIndex: function goIndex() {\n this.$router.push({\n path: \"/frontPlat/cockpit\"\n });\n },\n handleSysPlat: function handleSysPlat() {\n var _this7 = this;\n\n if (!this.sysMenus.length) {\n this.$store.dispatch('menu/actionSysMenus').then(function (res) {\n if (res) {\n window.open(window.context.manage + // \"http://localhost:8081/mvue\"+\n '/sysplat/' + \"\".concat(_this7.sysMenus[0].children[0].alias) + '?token=' + _this7.token, '_blank');\n }\n });\n } else {\n window.open(window.context.manage + // \"http://localhost:8081/mvue\"+\n '/sysplat/' + \"\".concat(this.sysMenus[0].children[0].alias) + '?token=' + this.token, '_blank');\n }\n },\n readload: function readload(val) {\n this.getUnread();\n },\n getUnread: function getUnread() {\n var _this8 = this;\n\n uc.messagelist().then(function (res) {\n _this8.messageList = res.data.rows;\n\n if (res.data.rows.length > 0) {\n _this8.messnum = res.data.rows.length;\n } else {\n _this8.messnum = '';\n }\n });\n },\n getBizUrl: function getBizUrl() {\n var _this9 = this;\n\n this.$http.get('${portal}/sys/sysProperties/v1/getByAlias?alias=biz.url', {\n responseType: 'text'\n }).then(function (res) {\n _this9.bizUrl = res.data;\n });\n },\n showDrawer: function showDrawer() {\n this.$refs.messageDrawer.drawer = true;\n },\n submitForm: function submitForm() {\n var _this10 = this;\n\n var this_ = this;\n this.$refs['pwdForm'].validate(function (valid) {\n if (valid) {\n _this10.$http.post('${uc}/api/user/v1/user/changUserPsd', {\n oldPwd: _this10.pwdForm.old,\n newPwd: _this10.pwdForm.new\n }).then(function (resp) {\n var data = resp.data;\n\n if (data && data.state) {\n _this10.modifyPwdDialogVisible = false;\n\n _this10.$alert('修改密码成功, 请使用新密码重新登录。', '提示', {\n confirmButtonText: '确定',\n callback: function callback(action) {\n //退出登录\n this_.logout();\n }\n });\n }\n });\n }\n });\n },\n openInfoDialog: function openInfoDialog() {\n this.$router.push({\n path: '/frontPlat/personMenus/personInfo'\n });\n this.$refs.frontMenu.activeIndex = ''; // this.infoDialogVisible = true\n },\n openResetPwdDialog: function openResetPwdDialog() {\n this.$store.dispatch('user/getDefPwdStrategy');\n this.modifyPwdDialogVisible = true;\n\n if (this.$refs['pwdForm']) {\n this.$refs['pwdForm'].resetFields();\n }\n },\n openPersonalCenter: function openPersonalCenter() {\n this.$router.push({\n path: '/frontPlat/PersonalInfo'\n });\n },\n handleMenuCollapse: function handleMenuCollapse() {\n this.$bus.$emit('frontMenuShow', !this.menuShow);\n },\n logout: function logout() {\n var _this11 = this;\n\n this.$store.dispatch('menu/clearMenus');\n this.$store.dispatch('user/clearUser');\n this.$store.dispatch('menu/setCopyMenus', []); //菜单\n\n var loginRouthPath = localStorage.getItem(this.$store.state.login.currentUser.account + 'loginRoutePath') || '/login';\n this.$store.dispatch('login/logoutAndCleanUp').then(function () {\n switch (window.ssoConfig.mode) {\n case 'cas':\n case 'oauth':\n window.sessionStorage.removeItem('currentUser');\n window.location.href = window.ssoConfig.logout + '?service=' + window.location.href.split('?')[0];\n break;\n\n default:\n _this11.$router.push({\n path: loginRouthPath\n });\n\n break;\n }\n });\n },\n handleStyleSettingDialog: function handleStyleSettingDialog() {\n var styleSetting = localStorage.getItem('styleSetting');\n\n if (styleSetting && styleSetting != 'null') {\n this.styleSetting = JSON.parse(styleSetting);\n }\n\n this.styleSettingDialogVisible = true;\n },\n handleStyleSettingDialogClose: function handleStyleSettingDialogClose() {\n this.styleSettingDialogVisible = false;\n this.infoDialogVisible = false;\n this.modifyPwdDialogVisible = false;\n },\n querySearch: function querySearch(queryString, cb) {\n // 查询出二级三级的菜单\n var menus = [];\n menus = _toConsumableArray(this.menus);\n\n if (queryString) {\n this.searchMenus = [];\n this.preFilterMenus(this.menus, queryString);\n } else {\n this.searchMenus = menus;\n } // 调用 callback 返回建议列表的数据\n\n\n this.searchMenus = this.searchMenus.unique('alias');\n cb(this.searchMenus);\n },\n preFilterMenus: function preFilterMenus(menus, queryString) {\n var _this12 = this;\n\n if (menus instanceof Array) {\n menus.forEach(function (x) {\n _this12.filterMenus(x, queryString);\n });\n } else {\n this.filterMenus(menus, queryString, true);\n }\n },\n filterMenus: function filterMenus(x, queryString, isComponent) {\n var _this13 = this;\n\n if (x.children) {\n var r = x.children.filter(function (menu) {\n _this13.preFilterMenus(menu, queryString);\n\n return menu.name.toLowerCase().indexOf(queryString.toLowerCase()) != -1 || menu.alias.toLowerCase().indexOf(queryString.toLowerCase()) != -1;\n });\n\n if (r && r.length >= 1) {\n r.forEach(function (y) {\n if (isComponent) {\n y.parentComponent = x;\n }\n\n _this13.searchMenus.push(y);\n });\n }\n }\n },\n handleSelect: function handleSelect(item) {\n if (!item.parentComponent) {\n this.$router.push({\n path: \"/\".concat(item.alias)\n });\n } else {\n this.$router.push({\n path: \"/\".concat(item.parentComponent.alias, \"#\").concat(item.alias)\n });\n }\n },\n // 选择菜单调用函数\n handleMenuSelect: function handleMenuSelect(path, isJump) {\n var _this14 = this;\n\n var alias;\n\n var _this = this;\n\n if (path && path.indexOf('/frontPlat/href') == -1) {\n // url 菜单\n var i = path.lastIndexOf('/');\n alias = path.slice(i + 1);\n } else {\n alias = path.replace('/frontPlat/', '');\n }\n\n menu.getMenuByAlias(alias, function (m) {\n m && _this.$emit('menuChange', m);\n\n if (m && m.openType == '2' && isJump) {\n if (m.alias.indexOf('href/') == -1) {\n var openPath = '/newOpen/' + m.alias;\n\n var routeUrl = _this14.$router.resolve({\n path: openPath\n });\n\n window.open(routeUrl.href, '_blank');\n } else {\n var tempwindow = window.open();\n tempwindow.location = m.href;\n }\n } else if (m && m.parent) {\n _this14.$router.push(path);\n\n _this14.activeIndex = path;\n }\n });\n }\n }\n}, _defineProperty(_name$components$prop, \"mounted\", function mounted() {\n var _this15 = this;\n\n !this.currentUser && this.$store.dispatch('user/loadCurrentUserDetail');\n var currentUser = this.$store.state.login.currentUser; //菜单显示\n\n this.activeIndex = this.$route.path; //const currentUser = this.$store.state.login.currentUser\n\n if ((!this.frontMenus || this.frontMenus.length == 0) && currentUser) {\n this.$store.dispatch('menu/actionFrontMenus').then(function (data) {});\n } // this.$bus.$on('frontMenuShow', () => {\n // this.handleMenuCollapse()\n // })\n\n\n this.$bus.$on('roterPush', function (path) {\n _this15.activeIndex = path;\n });\n}), _defineProperty(_name$components$prop, \"filters\", {\n weekText: function weekText(value) {\n var text = '星期';\n\n if (value == 1) {\n return text + '一';\n } else if (value == 2) {\n return text + '二';\n } else if (value == 3) {\n return text + '三';\n } else if (value == 4) {\n return text + '四';\n } else if (value == 5) {\n return text + '五';\n } else if (value == 6) {\n return text + '六';\n } else if (value == 7) {\n return text + '七';\n }\n }\n}), _name$components$prop);",null]}