| | |
| | | }, |
| | | methods: { |
| | | async kwReplacement() { |
| | | let res = await this.$http.get(`/sys/keyword/replacement`) |
| | | let res = await this.$http.get(`sys/dict/type/getDictMap`, {params: {dictType: "key_word"}}) |
| | | if (res.data != null) { |
| | | this.$store.state.word = res.data |
| | | } |
| | | console.log(this.$store.state.word, 'this.$store.state.word') |
| | | }, |
| | | goSingleSign() { |
| | | let username = this.$route.query.username |
| | | let system = this.$route.query.system |
| | | console.log('main token:',Cookies.get('token')) |
| | | console.log('main username:',username) |
| | | if (Cookies.get('token') && !username) { |
| | | console.log('main token:', Cookies.get('token')) |
| | | console.log('main username:', username) |
| | | if (Cookies.get('token') && !username) { |
| | | this.otherProcess() |
| | | return |
| | | }else{ |
| | | } else { |
| | | return |
| | | } |
| | | }, |
| | |
| | | this.getOssConfig() |
| | | this.$store.dispatch('getDictList') |
| | | }, |
| | | getMenu(){ |
| | | this.$http.get('/sys/menu/nav').then(res => { |
| | | if (res.code !== 0) { |
| | | return |
| | | } |
| | | let menuList = res.data |
| | | if (menuList && menuList.length > 0) { |
| | | //window.SITE_CONFIG['menuList'] = menuList |
| | | fnAddDynamicMenuRoutes(menuList, []) |
| | | } |
| | | window.SITE_CONFIG['menuList'] = menuList |
| | | console.log(window.SITE_CONFIG['menuList'], 'window.SITE_CONFIG[\'menuList\']') |
| | | // let that = this |
| | | setTimeout(()=>{ |
| | | this.flag = getUUID() |
| | | console.log('set flag') |
| | | },50) |
| | | }) |
| | | }, |
| | | getMenu() { |
| | | this.$http.get('/sys/menu/nav').then(res => { |
| | | if (res.code !== 0) { |
| | | return |
| | | } |
| | | let menuList = res.data |
| | | if (menuList && menuList.length > 0) { |
| | | //window.SITE_CONFIG['menuList'] = menuList |
| | | fnAddDynamicMenuRoutes(menuList, []) |
| | | } |
| | | window.SITE_CONFIG['menuList'] = menuList |
| | | console.log(window.SITE_CONFIG['menuList'], 'window.SITE_CONFIG[\'menuList\']') |
| | | // let that = this |
| | | setTimeout(() => { |
| | | this.flag = Date.now() //getUUID() |
| | | console.log(this.flag,'set flag this.flag') |
| | | }, 50) |
| | | }) |
| | | }, |
| | | horizontalSystem() { |
| | | if (this.$store.state.menuPos === 'top') { |
| | | this.$store.state.horizontalSystem = true |
| | |
| | | } |
| | | this.$store.state.contentTabs = this.$store.state.contentTabs.concat(tab) |
| | | } |
| | | console.log(this.$store.state.contentTabs,'this.$store.state.contentTabs2') |
| | | console.log(this.$store.state.contentTabs, 'this.$store.state.contentTabs2') |
| | | this.$store.state.sidebarMenuActiveName = tab.menuId |
| | | |
| | | if (tab.name === 'single'){ |
| | | if (tab.name === 'single') { |
| | | this.$store.state.contentTabsActiveName = 'home' |
| | | }else{ |
| | | } else { |
| | | this.$store.state.contentTabsActiveName = tab.name |
| | | } |
| | | |
| | |
| | | // console.log(res,'getAdminRoleInfo'); |
| | | this.$store.state.user.isAdmin = res.data.isAdmin |
| | | this.$store.state.user.isAssistant = res.data.isAssistant |
| | | this.$store.state.user.isTyRole = res.data.isTyRole |
| | | this.$store.state.user.isCjRole = res.data.isCjRole |
| | | this.$store.state.user.isZcRole = res.data.isZcRole |
| | | this.$store.state.user.isCzRole = res.data.isCzRole |
| | | this.$store.state.user.isBzRole = res.data.isBzRole |
| | | this.$store.state.user.isTzRole = res.data.isTzRole |
| | | this.$store.state.user.isYwzRole = res.data.isYwzRole |
| | | this.$store.state.user.roles = res.data.roles |
| | | this.$store.state.debug = res.data.debug |
| | | this.$store.state.test = res.data.test |