名字写错了

This commit is contained in:
shijingjing
2022-08-08 15:34:44 +08:00
parent 55cbd9c60c
commit 8d4d986332
3 changed files with 14 additions and 18 deletions

View File

@@ -5,7 +5,7 @@
</template> </template>
<script> <script>
import girdScoreManage from "./components/girdScoreManage.vue" import gridScoreManage from "./components/gridScoreManage.vue"
import gridScoreRules from "./components/gridScoreRules.vue" import gridScoreRules from "./components/gridScoreRules.vue"
import gridScoreStatistics from './components/gridScoreStatistics.vue' import gridScoreStatistics from './components/gridScoreStatistics.vue'
import gridScoreDetail from './components/gridScoreDetail.vue' import gridScoreDetail from './components/gridScoreDetail.vue'
@@ -14,7 +14,7 @@ import gmScore from './components/gmScore.vue'
export default { export default {
name: 'AppGridMemberScore', name: 'AppGridMemberScore',
label: "网格员积分", label: "网格员积分",
components: { gmScore, girdScoreManage, gridScoreRules, gridScoreStatistics, gridScoreDetail},
props: { props: {
instance: Function, instance: Function,
dict: Object, dict: Object,
@@ -24,15 +24,15 @@ export default {
computed: { computed: {
currentPage() { currentPage() {
let {hash} = this.$route let {hash} = this.$route
return hash == "#girdScoreManage" ? girdScoreManage : return hash == "#gridScoreDetail" ? gridScoreDetail :
hash == "#gridScoreRules" ? gridScoreRules : hash == "#gridScoreRules" ? gridScoreRules :
hash == "#gridScoreStatistics" ? gridScoreStatistics : hash == "#gridScoreStatistics" ? gridScoreStatistics :
hash == "#gridScoreDetail" ? gridScoreDetail: gmScore hash == "#gridScoreManage" ? gridScoreManage : gmScore
} }
}, },
components: { components: {
gmScore, gmScore,
girdScoreManage, gridScoreManage,
gridScoreRules, gridScoreRules,
gridScoreStatistics, gridScoreStatistics,
gridScoreDetail, gridScoreDetail,
@@ -41,11 +41,10 @@ export default {
methods: { methods: {
onChange(data) { onChange(data) {
let {type, params: query} = data, let {type, params: query} = data,
hash = ["girdScoreManage", "gridScoreRules","gridScoreStatistics"].includes(type) ? "" : "#" + type hash = ["gridScoreManage", "gridScoreRules","gridScoreStatistics"].includes(type) ? "" : "#" + type
this.$router.push({hash, query}) this.$router.push({hash, query})
} }
} }
} }
</script> </script>

View File

@@ -19,9 +19,9 @@
</template> </template>
<script> <script>
import girdScoreManage from "./girdScoreManage" import girdScoreManage from "./gridScoreManage.vue"
import gridScoreRules from "./gridScoreRules" import gridScoreRules from "./gridScoreRules.vue"
import gridScoreStatistics from './gridScoreStatistics' import gridScoreStatistics from './gridScoreStatistics.vue'
import {mapState} from 'vuex' import {mapState} from 'vuex'
export default { export default {

View File

@@ -1,5 +1,5 @@
<template> <template>
<section class="girdScoreManage"> <section class="gridScoreManage">
<ai-list> <ai-list>
<template #content> <template #content>
<ai-search-bar> <ai-search-bar>
@@ -82,7 +82,7 @@
<script> <script>
import { mapState } from "vuex"; import { mapState } from "vuex";
export default { export default {
name: "girdScoreManage", name: "gridScoreManage",
label: "积分管理", label: "积分管理",
props: { props: {
instance: Function, instance: Function,
@@ -155,6 +155,7 @@ export default {
// id // id
} }
}) })
console.log('跳转');
} }
}, },
@@ -162,11 +163,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.girdScoreManage { .gridScoreManage {
height: 100%; height: 100%;
// ::v-deep .searchLeftZone,
// ::v-deep .searchRightZone {
// display: flex;
// }
} }
</style> </style>