This commit is contained in:
liuye
2023-12-28 17:15:19 +08:00
parent 258bf54607
commit 293737d8ac
7 changed files with 2817 additions and 1 deletions

View File

@@ -16,6 +16,9 @@
<script>
import List from "./components/List";
import GroupList from "./components/GroupList";
import AnnounceList from './components/AnnounceList'
import Add from './components/Add'
import Detail from './components/Detail'
export default {
name: "AppSeatManagement",
@@ -35,6 +38,17 @@ export default {
components: {
GroupList,
List,
AnnounceList,
Add,
Detail
},
mounted() {
if (this.$route.params.id) {
this.component = 'Detail'
this.params = {
id: this.$route.params.id
}
}
},
methods: {
onChange(data) {
@@ -52,6 +66,26 @@ export default {
}
});
}
if (data.type === 'Add') {
this.component = 'Add'
this.params = data.params
}
if (data.type === 'Detail') {
this.component = 'Detail'
this.params = data.params
}
if (data.type === 'AnnounceList') {
this.component = 'AnnounceList'
this.params = data.params
this.$nextTick(() => {
if (data.isRefresh) {
this.$refs.component.getList()
}
})
}
},
},
};