|
@@ -47,6 +47,7 @@
|
|
|
<img src="~@/assets/img/avatar.png" :alt="userName">{{ userName }}
|
|
|
</span>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item @click.native="notifyTypeHandle()">消息通知设置</el-dropdown-item>
|
|
|
<el-dropdown-item @click.native="updatePasswordHandle()">修改密码</el-dropdown-item>
|
|
|
<el-dropdown-item @click.native="updateSignHandle()">修改个人签名</el-dropdown-item>
|
|
|
<el-dropdown-item @click.native="logoutHandle()">退出</el-dropdown-item>
|
|
@@ -55,6 +56,7 @@
|
|
|
</el-menu-item>
|
|
|
</el-menu>
|
|
|
</div>
|
|
|
+ <notify-type v-if="notifyTypeVisible" ref="notifyType"></notify-type>
|
|
|
<!-- 弹窗, 修改密码 -->
|
|
|
<update-password v-if="updatePasswordVisible" ref="updatePassowrd"></update-password>
|
|
|
<update-user-sign v-if="updateUserSignVisible" ref="updateUserSign"></update-user-sign>
|
|
@@ -64,6 +66,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import NotifyType from './main-navbar-notify-type'
|
|
|
import UpdatePassword from './main-navbar-update-password'
|
|
|
import UpdateUserSign from './main-navbar-update-sign'
|
|
|
import Msg from './common/msg'
|
|
@@ -74,6 +77,7 @@
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
|
+ notifyTypeVisible: false,
|
|
|
updatePasswordVisible: false,
|
|
|
updateUserSignVisible: false,
|
|
|
cnt: 0,
|
|
@@ -85,7 +89,8 @@ export default {
|
|
|
PreviewComponent,
|
|
|
UpdatePassword,
|
|
|
UpdateUserSign,
|
|
|
- Msg
|
|
|
+ Msg,
|
|
|
+ NotifyType
|
|
|
},
|
|
|
computed: {
|
|
|
navbarLayoutType: {
|
|
@@ -107,6 +112,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ //消息设置
|
|
|
+ notifyTypeHandle(){
|
|
|
+ this.notifyTypeVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.notifyType.init()
|
|
|
+ })
|
|
|
+ },
|
|
|
// 修改密码
|
|
|
updatePasswordHandle () {
|
|
|
this.updatePasswordVisible = true
|