| | |
| | | </el-badge> |
| | | </el-tooltip> |
| | | |
| | | <div style=" font-size: 18px;font-family: 'Microsoft YaHei';color:#AAAAAA;padding:0 8px;cursor: pointer"> |
| | | {{ stu_torgname }} |
| | | <div style=" font-size: 18px;font-family: 'Microsoft YaHei';color:#AAAAAA;cursor: pointer"> |
| | | <!-- {{ stu_torgname }}--> |
| | | |
| | | <el-dropdown class="avatar-container" trigger="hover"> |
| | | <div class="avatar-wrapper"> |
| | | <div style="display: flex;align-items: center;margin-top: -5px"> |
| | | |
| | | <!-- <i class="el-icon-user" style="font-weight: bolder;font-size: 18px;margin-right: 5px;color:#A7A7A7" />--> |
| | | <div style=" font-size: 18px;font-family: 'Microsoft YaHei';color:#AAAAAA">{{ stu_torgname }}</div> |
| | | </div> |
| | | |
| | | </div> |
| | | <el-dropdown-menu |
| | | v-if="stu_torgname.toString().length>0" |
| | | slot="dropdown" |
| | | class="user-dropdown" |
| | | style="text-align: center" |
| | | > |
| | | <el-dropdown-item |
| | | v-for="(item,index) in $stu_torg" |
| | | :key="item.torg_code" |
| | | :divided="index!==0" |
| | | @click.native="changeTrog(item)" |
| | | > |
| | | <span style="display:block;">{{ item.torg_name }}</span> |
| | | </el-dropdown-item> |
| | | |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | |
| | | </div> |
| | | <!-- <el-tooltip content="Global Size" effect="dark" placement="bottom">--> |
| | | <!-- <size-select id="size-select" class="right-menu-item hover-effect" />--> |
| | |
| | | import MenuItemEx from './Sidebar/MenuItemEx' |
| | | import Breadcrumb from '@/components/Breadcrumb' |
| | | import Hamburger from '@/components/Hamburger' |
| | | import { getCookie } from '@/utils/auth' |
| | | import { getCookie, setCookie } from '@/utils/auth' |
| | | import { UpdateUserPassword } from '@/api/user' |
| | | import Search from '@/components/HeaderSearch' |
| | | import Screenfull from '@/components/Screenfull' |
| | |
| | | ], |
| | | created() { |
| | | // this.$signalr.start() |
| | | this.usercode = getCookie('navTabId') |
| | | this.username = getCookie('username') |
| | | this.stu_torgname = getCookie('stu_torgname') |
| | | |
| | | this.usercode = localStorage.getItem('usercode') |
| | | this.username = localStorage.getItem('username') |
| | | Vue.prototype.$stu_torg = JSON.parse(localStorage.getItem('torg')) |
| | | |
| | | if (Vue.prototype.$stu_torg.length > 0) { |
| | | this.stu_torgname = Vue.prototype.$stu_torg[0].torg_name |
| | | setCookie('torg_code', Vue.prototype.$stu_torg.find(i => i.torg_name === this.stu_torgname).torg_code) |
| | | } |
| | | }, |
| | | mounted() { |
| | | // this.getHubConnectionBuilder() |
| | | |
| | | Vue.prototype.$ButtonData = JSON.parse(sessionStorage.getItem('ButtonData')) |
| | | Vue.prototype.$ButtonData = JSON.parse(localStorage.getItem('ButtonData')) |
| | | }, |
| | | computed: { |
| | | ...mapGetters([ |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | changeTrog(val) { |
| | | if (val.torg_name !== this.stu_torgname) { |
| | | this.stu_torgname = val.torg_name |
| | | setCookie('torg_code', val.torg_code) |
| | | } |
| | | }, |
| | | // 建立hub连接 |
| | | async getHubConnectionBuilder() { |
| | | const url = 'http://121.196.36.24:8019/chatHub' |