detail.vue
684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<template>
<div class="page">
<BaseInfo ref="baseInfo" :groupCodeId="groupCodeId"></BaseInfo>
<div class="fr">
<el-button @click="$router.back()"> 取消 </el-button>
<el-button type="primary" @click="save"> 保存 </el-button>
</div>
</div>
</template>
<script>
import BaseInfo from './baseInfo'
export default {
components: {
BaseInfo
},
data () {
return {
groupCode: null,
groupCodeId: ''
}
},
methods: {
save () {
this.$refs.baseInfo.submit()
this.$router.back()
}
},
created () {
this.groupCodeId = this.$route.query.groupCodeId
}
}
</script>
<style scoped lang="scss">
</style>