This commit is contained in:
yanran200730
2023-02-07 15:46:45 +08:00
parent 6ddadfe53c
commit 35ad7b031d
5 changed files with 378 additions and 414 deletions

View File

@@ -7,9 +7,10 @@
</template>
<script>
import Detail from './components/Detail'
import List from './components/List'
import Add from './components/Add'
import List from './components/List'
import Detail from './components/Detail'
import Comment from './components/Comment'
export default {
name: 'AppCurriculumManage',
@@ -22,7 +23,7 @@
data () {
return {
component: 'List',
component: 'Comment',
params: {},
include: []
}
@@ -31,7 +32,8 @@
components: {
Add,
List,
Detail
Detail,
Comment
},
methods: {
@@ -41,6 +43,11 @@
this.params = data.params
}
if (data.type === 'Comment') {
this.component = 'Comment'
this.params = data.params
}
if (data.type === 'Detail') {
this.component = 'Detail'
this.params = data.params