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:
parent
85468ffa0c
commit
74364f6c45
@ -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 ? '✔️' : '' }}
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user