|
@@ -49,6 +49,9 @@
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item divided @click.native="syncHis">
|
|
|
|
+ <span style="display:block;">同步HIS信息</span>
|
|
|
|
+ </el-dropdown-item>
|
|
<el-dropdown-item divided @click.native="logout">
|
|
<el-dropdown-item divided @click.native="logout">
|
|
<span style="display:block;">{{ this.$t("action.logout") }}</span>
|
|
<span style="display:block;">{{ this.$t("action.logout") }}</span>
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
@@ -128,12 +131,21 @@ export default {
|
|
toggleSideBar() {
|
|
toggleSideBar() {
|
|
this.$store.dispatch('app/toggleSideBar')
|
|
this.$store.dispatch('app/toggleSideBar')
|
|
},
|
|
},
|
|
|
|
+ syncHis() {
|
|
|
|
+ API_Part.syncHis().then(res => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: '开启HIS信息同步!'
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
async logout() {
|
|
async logout() {
|
|
await this.$store.dispatch('user/logout')
|
|
await this.$store.dispatch('user/logout')
|
|
this.$store.dispatch('permission/removeRoutes')
|
|
this.$store.dispatch('permission/removeRoutes')
|
|
console.log('hello')
|
|
console.log('hello')
|
|
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
|
|
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
|
|
},
|
|
},
|
|
|
|
+
|
|
switchLanguage(value) {
|
|
switchLanguage(value) {
|
|
if (value === 'zh') {
|
|
if (value === 'zh') {
|
|
this.$i18n.locale = 'zh'
|
|
this.$i18n.locale = 'zh'
|