|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<el-form :model="form">
|
|
|
- <classListItem v-for="(item,index) in classList"
|
|
|
+ <classListItem v-for="(item,index) in form.classList"
|
|
|
:key="index"
|
|
|
:index='index'
|
|
|
- :item.sync='item' />
|
|
|
+ :item='item' />
|
|
|
</el-form>
|
|
|
<el-button icon="el-icon-circle-plus-outline"
|
|
|
plain
|
|
@@ -20,12 +20,11 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
form: {
|
|
|
-
|
|
|
+ classList: [{ classId: '', studentList: [], courseList: [], index: '', classList: [] }]
|
|
|
},
|
|
|
- classList: [{ classId: '', studentList: [], courseList: [], index: '', classList: [] }]
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
-</style>
|
|
|
+</style>
|