Browse Source

peter

360view
newPeter7 2 years ago
parent
commit
2a40e8e423
  1. 39
      src/page-subspecialty/views/main-navbar.vue

39
src/page-subspecialty/views/main-navbar.vue

@ -20,7 +20,7 @@
<el-menu-item index="2" style="padding:0 6px;" @click="refresh()">
<svg class="icon-svg aui-navbar__icon-menu aui-navbar__icon-menu--refresh" aria-hidden="true"><use xlink:href="#icon-sync" /></svg>
</el-menu-item>
<el-menu-item index="2" style="padding:0 6px;">
<el-menu-item index="3" style="padding:0 6px;">
<bread-crumb />
</el-menu-item>
</el-menu>
@ -29,12 +29,8 @@
<el-menu-item index="4" @click="fullscreenHandle()">
<svg-icon icon-class="fullscreen" />
</el-menu-item>
<!-- 数据可视化 -->
<el-menu-item index="5" @click="dataVisionHandle()">
<svg-icon icon-class="pointmap" />
</el-menu-item>
<!-- 头像按钮组 -->
<el-menu-item index="6" class="aui-navbar__avatar">
<el-menu-item index="5" class="aui-navbar__avatar">
<el-dropdown placement="bottom" :show-timeout="0">
<span class="el-dropdown-link">
<img src="~@/assets/img/avatar.png">
@ -43,7 +39,6 @@
</span>
<el-dropdown-menu slot="dropdown">
<!-- 修改密码 -->
<!-- <el-dropdown-item v-if="isShowSwitchingSystem" @click.native="switchingSystemHandle()">切换系统</el-dropdown-item> -->
<el-dropdown-item @click.native="updatePasswordHandle()">修改密码</el-dropdown-item>
<!-- 退出 -->
<el-dropdown-item style="color:#FF4D4F" @click.native="logoutHandle()">退出登录</el-dropdown-item>
@ -54,8 +49,6 @@
</div>
<!-- 弹窗, 修改密码 -->
<update-password v-if="updatePasswordVisible" ref="updatePassword" />
<!-- 数据可视化 -->
<!-- <data-vision v-if="dataVisionVisible" ref="dataVisionRef" @dataVisionVisible="dataVisionVisible = false" />-->
</nav>
</template>
<script>
@ -64,41 +57,28 @@ import screenfull from 'screenfull'
import UpdatePassword from './main-navbar-update-password.vue'
import { clearLoginInfo } from '@/page-subspecialty/utils/request.js'
import breadCrumb from '@/components/bread-crumb'
// import dataVision from '@/components/data-vision'
import { resetRouter } from '@/page-subspecialty/router/index.js'
// import Cookies from 'js-cookie'
// var socket = null
export default {
inject: ['refresh'],
components: {
UpdatePassword,
breadCrumb
// dataVision
},
data() {
return {
i18nMessages: messages,
updatePasswordVisible: false,
messageTip: false,
logo: require('@/assets/img/logo.png'),
// sysUserDTO: {},
// isShowSwitchingSystem: false,
dataVisionVisible: false
logo: require('@/assets/img/logo.png')
}
},
created() {
// this.sysUserDTO = JSON.parse(window.localStorage.getItem('yzk-sysUserDTO'))
// this.isShowSwitchingSystem = this.sysUserDTO.drgsNames.length > 1
},
methods: {
logoClick() {
console.log(window.SITE_CONFIG.menuList)
this.$store.commit('activeIndexFun', window.SITE_CONFIG.menuList[0].children[0].id)
this.$router.push({ name: 'outpatientManagement-call' })
},
myNoticeRouter() {
this.$router.replace('')
},
//
fullscreenHandle() {
if (!screenfull.enabled) {
@ -110,19 +90,6 @@ export default {
}
screenfull.toggle()
},
//
dataVisionHandle() {
// const href = 'https://api.borntech.cn/chatx-index/#/chatAi?userId=hm123'
// window.open(href, '_blank')
this.dataVisionVisible = true
this.$nextTick(() => {
this.$refs.dataVisionRef.init()
})
},
//
// switchingSystemHandle() {
// this.$router.replace({ name: 'identity' })
// },
//
updatePasswordHandle() {
this.updatePasswordVisible = true

Loading…
Cancel
Save