|
@@ -45,6 +45,7 @@
|
|
</span>
|
|
</span>
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-item @click.native="updatePasswordHandle()">修改密码</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>
|
|
<el-dropdown-item @click.native="logoutHandle()">退出</el-dropdown-item>
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
@@ -53,6 +54,7 @@
|
|
</div>
|
|
</div>
|
|
<!-- 弹窗, 修改密码 -->
|
|
<!-- 弹窗, 修改密码 -->
|
|
<update-password v-if="updatePasswordVisible" ref="updatePassowrd"></update-password>
|
|
<update-password v-if="updatePasswordVisible" ref="updatePassowrd"></update-password>
|
|
|
|
+ <update-user-sign v-if="updateUserSignVisible" ref="updateUserSign"></update-user-sign>
|
|
<Msg ref="msgDialog" @noticeAdded="noticeAdded"/>
|
|
<Msg ref="msgDialog" @noticeAdded="noticeAdded"/>
|
|
<youli-component v-if="previewVisible" ref="preview"/>
|
|
<youli-component v-if="previewVisible" ref="preview"/>
|
|
</nav>
|
|
</nav>
|
|
@@ -60,6 +62,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import UpdatePassword from './main-navbar-update-password'
|
|
import UpdatePassword from './main-navbar-update-password'
|
|
|
|
+ import UpdateUserSign from './main-navbar-update-sign'
|
|
import Msg from './common/msg'
|
|
import Msg from './common/msg'
|
|
import { clearLoginInfo } from '@/utils'
|
|
import { clearLoginInfo } from '@/utils'
|
|
import PreviewComponent from '@/views/modules/common/preview-component'
|
|
import PreviewComponent from '@/views/modules/common/preview-component'
|
|
@@ -69,6 +72,7 @@ export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
updatePasswordVisible: false,
|
|
updatePasswordVisible: false,
|
|
|
|
+ updateUserSignVisible: false,
|
|
cnt: 0,
|
|
cnt: 0,
|
|
previewVisible: false
|
|
previewVisible: false
|
|
}
|
|
}
|
|
@@ -77,6 +81,7 @@ export default {
|
|
YouliComponent,
|
|
YouliComponent,
|
|
PreviewComponent,
|
|
PreviewComponent,
|
|
UpdatePassword,
|
|
UpdatePassword,
|
|
|
|
+ UpdateUserSign,
|
|
Msg
|
|
Msg
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -106,6 +111,13 @@ export default {
|
|
this.$refs.updatePassowrd.init()
|
|
this.$refs.updatePassowrd.init()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 修改个人签名
|
|
|
|
+ updateSignHandle () {
|
|
|
|
+ this.updateUserSignVisible = true
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.updateUserSign.init()
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 退出
|
|
// 退出
|
|
logoutHandle () {
|
|
logoutHandle () {
|
|
this.$confirm(`确定进行[退出]操作?`, '提示', {
|
|
this.$confirm(`确定进行[退出]操作?`, '提示', {
|