|
@@ -1,19 +1,96 @@
|
|
|
-6<template>
|
|
|
+<template>
|
|
|
<div id="mainData">
|
|
|
- <el-row> </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24" class="info">
|
|
|
+ <el-form ref="form" :model="form">
|
|
|
+ <el-col :span="24" class="top">
|
|
|
+ <van-image round width="10rem" height="10rem" :src="srcurl" />
|
|
|
+ <el-col :span="24">{{ teacherinfo.name }}</el-col>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="24"></el-col>
|
|
|
+ <el-col :span="24" class="pingfen">
|
|
|
+ <el-form-item>
|
|
|
+ <el-rate v-model="form.score"></el-rate>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-col :span="16" class="title">工作量</el-col>
|
|
|
+ <el-col :span="8" class="fenshu">评分:10分</el-col>
|
|
|
+ <el-col :span="24" class="work">本周工作饱满</el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="beizhu">
|
|
|
+ <span>备注</span>
|
|
|
+ <el-input type="textarea" v-model="form.remark"></el-input>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="anniu">
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" @click="onSubmit">提交</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-form>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
export default {
|
|
|
name: 'mainData',
|
|
|
- props: {},
|
|
|
+ props: { teacherinfo: null, form: null },
|
|
|
components: {},
|
|
|
- data: () => ({}),
|
|
|
+ data: () => ({
|
|
|
+ srcurl: require('@/assets/circle.png'),
|
|
|
+ }),
|
|
|
created() {},
|
|
|
computed: {},
|
|
|
- methods: {},
|
|
|
+ methods: {
|
|
|
+ onSubmit() {
|
|
|
+ this.$emit('onsave', { data: this.form });
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="less" scoped></style>
|
|
|
+<style lang="less" scoped>
|
|
|
+.info {
|
|
|
+ background-color: #ffffff;
|
|
|
+}
|
|
|
+.top {
|
|
|
+ text-align: center;
|
|
|
+ padding: 30px 0 0 0;
|
|
|
+}
|
|
|
+.pingfen {
|
|
|
+ text-align: center;
|
|
|
+ padding: 10px 0 0 0;
|
|
|
+ border-bottom: 1px dashed #bbbbbb;
|
|
|
+}
|
|
|
+.context {
|
|
|
+ padding: 30px 0 0 0;
|
|
|
+ height: 120px;
|
|
|
+}
|
|
|
+.title {
|
|
|
+ padding: 10px 0 0 20px;
|
|
|
+}
|
|
|
+.fenshu {
|
|
|
+ padding: 10px 0 0 0;
|
|
|
+}
|
|
|
+.work {
|
|
|
+ color: #319ff7;
|
|
|
+ padding: 10px 0 0 20px;
|
|
|
+}
|
|
|
+.beizhu {
|
|
|
+ margin: 20px;
|
|
|
+}
|
|
|
+/deep/.beizhu .el-textarea__inner {
|
|
|
+ background-color: #f5f5f5;
|
|
|
+ width: 90%;
|
|
|
+ margin: 20px 0 0 0;
|
|
|
+ height: 100px;
|
|
|
+}
|
|
|
+
|
|
|
+.anniu {
|
|
|
+ padding: 20px 0 0 0;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+</style>
|