群发
This commit is contained in:
@@ -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()
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user