1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-13 07:04:21 +08:00

fix: Dashboard route path. (#483)

This commit is contained in:
Edwin Betancourt 2020-05-06 11:07:26 -04:00 committed by GitHub
parent 85468ffa0c
commit 74364f6c45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 9 deletions

View File

@ -3,7 +3,7 @@
<!-- Use 2.5 slot syntax. If you use Vue 2.6, please use new slot syntax--> <!-- Use 2.5 slot syntax. If you use Vue 2.6, please use new slot syntax-->
<template <template
slot="dateCell" slot="dateCell"
slot-scope="{date, data}" slot-scope="{ date, data }"
> >
<p :class="data.isSelected ? 'is-selected' : ''"> <p :class="data.isSelected ? 'is-selected' : ''">
{{ data.day.split('-').slice(2).join('-') }} {{ data.isSelected ? '✔️' : '' }} {{ data.day.split('-').slice(2).join('-') }} {{ data.isSelected ? '✔️' : '' }}

View File

@ -59,7 +59,11 @@ export default {
}, },
mounted() { mounted() {
this.getPendingDocuments() this.getPendingDocuments()
this.subscribeChanges()
this.unsubscribe = this.subscribeChanges()
},
beforeDestroy() {
this.unsubscribe()
}, },
methods: { methods: {
showMessage, showMessage,
@ -130,7 +134,7 @@ export default {
<style scoped> <style scoped>
.search_recent { .search_recent {
width: 50%!important; width: 50% !important;
float: right; float: right;
} }
.header { .header {

View File

@ -73,7 +73,11 @@ export default {
}, },
mounted() { mounted() {
this.getRecentItems({ pageToken: undefined, pageSize: undefined }) this.getRecentItems({ pageToken: undefined, pageSize: undefined })
this.subscribeChanges()
this.unsubscribe = this.subscribeChanges()
},
beforeDestroy() {
this.unsubscribe()
}, },
methods: { methods: {
showMessage, showMessage,
@ -120,11 +124,16 @@ export default {
if (!this.isEmptyValue(row.uuidRecord)) { if (!this.isEmptyValue(row.uuidRecord)) {
recordUuid = row.uuidRecord recordUuid = row.uuidRecord
} }
let tabParent
if (row.action === 'window') {
tabParent = 0
}
this.$router.push({ this.$router.push({
name: viewSearch.name, name: viewSearch.name,
query: { query: {
action: recordUuid, action: recordUuid,
tabParent: 0 tabParent
} }
}) })
} else { } else {
@ -157,7 +166,7 @@ export default {
<style scoped> <style scoped>
.search_recent { .search_recent {
width: 50%!important; width: 50% !important;
float: right; float: right;
} }
.header { .header {

View File

@ -75,7 +75,11 @@ export default {
}, },
mounted() { mounted() {
this.getFavoritesList() this.getFavoritesList()
this.subscribeChanges()
this.unsubscribe = this.subscribeChanges()
},
beforeDestroy() {
this.unsubscribe()
}, },
methods: { methods: {
showMessage, showMessage,
@ -124,11 +128,16 @@ export default {
if (!this.isEmptyValue(row.uuidRecord)) { if (!this.isEmptyValue(row.uuidRecord)) {
recordUuid = row.uuidRecord recordUuid = row.uuidRecord
} }
let tabParent
if (row.action === 'window') {
tabParent = 0
}
this.$router.push({ this.$router.push({
name: viewSearch.name, name: viewSearch.name,
query: { query: {
action: recordUuid, action: recordUuid,
tabParent: 0 tabParent
} }
}) })
} else { } else {
@ -178,7 +187,7 @@ export default {
<style scoped> <style scoped>
.search_recent { .search_recent {
width: 50%!important; width: 50% !important;
float: right; float: right;
} }
.header { .header {