| | |
| | | <el-tooltip class="item" effect="dark" content="全屏" placement="bottom"> |
| | | <screenfull id="screenfull" class="right-menu-item hover-effect" /> |
| | | </el-tooltip> |
| | | <div style=" font-size: 18px;font-family: 'Microsoft YaHei';color:#AAAAAA;padding:0 8px;cursor: pointer"> |
| | | {{ stu_torgname }} |
| | | </div> |
| | | <!-- <el-tooltip content="Global Size" effect="dark" placement="bottom">--> |
| | | <!-- <size-select id="size-select" class="right-menu-item hover-effect" />--> |
| | | <!-- </el-tooltip>--> |
| | |
| | | <el-dropdown-item @click.native="editPassword"> |
| | | <span style="display:block;">修改密码</span> |
| | | </el-dropdown-item> |
| | | <el-dropdown-item divided @click.native="systemSetting"> |
| | | <span style="display:block;">系统配置</span> |
| | | </el-dropdown-item> |
| | | <el-dropdown-item divided @click.native="logout"> |
| | | <span style="display:block;font-weight: bolder">退出</span> |
| | | </el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | </div> |
| | | |
| | | <el-dialog |
| | | v-el-drag-dialog |
| | | title="修改密码" |
| | |
| | | </el-dialog> |
| | | |
| | | </div> |
| | | |
| | | <right-panel ref="rightPanel"> |
| | | <settings /> |
| | | </right-panel> |
| | | |
| | | </div> |
| | | |
| | | </template> |
| | |
| | | import Search from '@/components/HeaderSearch' |
| | | import Screenfull from '@/components/Screenfull' |
| | | import variables from '@/styles/variables.scss' |
| | | import RightPanel from '@/components/RightPanel' |
| | | import Settings from '../components/Settings/index' |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | Breadcrumb, |
| | | Hamburger, |
| | | Search, |
| | | Screenfull |
| | | Screenfull, |
| | | Settings, |
| | | RightPanel |
| | | }, |
| | | directives: { elDragDialog }, |
| | | |
| | | data() { |
| | | const validatePassword1 = (rule, value, callback) => { |
| | | if (!value) { |
| | |
| | | newpassword: [ |
| | | { required: true, validator: validatePassword2, trigger: ['blur', 'change'] } |
| | | ] |
| | | } |
| | | }, |
| | | stu_torgname: '', |
| | | show: false |
| | | } |
| | | }, |
| | | inject: [ |
| | |
| | | created() { |
| | | this.usercode = getCookie('navTabId') |
| | | this.username = getCookie('username') |
| | | this.stu_torgname = getCookie('stu_torgname') === '' ? '系统管理员' : getCookie('stu_torgname') |
| | | }, |
| | | computed: { |
| | | ...mapGetters([ |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | systemSetting() { |
| | | this.$refs.rightPanel.show = !this.$refs.rightPanel.show |
| | | this.$refs.rightPanel.addEventClick() |
| | | }, |
| | | pageRefreshClick() { |
| | | this.reload() |
| | | const tabViews = this.$store.state.tagsView.visitedViews.map(item => { |