|
@@ -16,6 +16,18 @@
|
|
|
</van-collapse>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <van-dialog v-model="show" title="学生成绩上传" :showConfirmButton="false">
|
|
|
+ <van-form @submit="onSubmit">
|
|
|
+ <van-field v-model="form.name" name="学生名称" disabled />
|
|
|
+ <van-field v-model="form.lessonid" name="课程名称" label="课程名称" placeholder="请输入课程名称" />
|
|
|
+ <van-field v-model="form.score" name="作业分数" label="作业分数" placeholder="请输入作业分数" />
|
|
|
+ <div style="margin: 16px;">
|
|
|
+ <van-button round block type="info" native-type="submit">
|
|
|
+ 提交
|
|
|
+ </van-button>
|
|
|
+ </div>
|
|
|
+ </van-form>
|
|
|
+ </van-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -24,6 +36,9 @@ export default {
|
|
|
name: 'homeworkAchiece',
|
|
|
props: {
|
|
|
achieveList: null,
|
|
|
+ show: null,
|
|
|
+ form: null,
|
|
|
+ lessonList: null,
|
|
|
},
|
|
|
components: {},
|
|
|
data: () => ({
|
|
@@ -31,7 +46,14 @@ export default {
|
|
|
}),
|
|
|
created() {},
|
|
|
computed: {},
|
|
|
- methods: {},
|
|
|
+ methods: {
|
|
|
+ clickBtn() {
|
|
|
+ this.$emit('clickDialog');
|
|
|
+ },
|
|
|
+ onSubmit() {
|
|
|
+ this.$emit('submit', { data: this.form });
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|
|
@@ -56,7 +78,12 @@ p {
|
|
|
font-size: 20px;
|
|
|
}
|
|
|
/deep/.van-cell {
|
|
|
- border-radius: 10px;
|
|
|
+ border-top-left-radius: 10px;
|
|
|
+ border-top-right-radius: 10px;
|
|
|
+}
|
|
|
+/deep/.van-collapse-item__content {
|
|
|
+ border-bottom-left-radius: 10px;
|
|
|
+ border-bottom-right-radius: 10px;
|
|
|
}
|
|
|
/deep/.van-collapse-item {
|
|
|
margin: 0 0 10px 0;
|