|
@@ -11,33 +11,34 @@
|
|
|
</van-cell-group>
|
|
|
<van-cell-group>
|
|
|
<van-field
|
|
|
+ required
|
|
|
rows="4"
|
|
|
class="textarea"
|
|
|
v-model="teachingMaterial"
|
|
|
maxlength="255"
|
|
|
autosize
|
|
|
- label="教材内容"
|
|
|
+ label=" 教材内容"
|
|
|
type="textarea"
|
|
|
placeholder="请输入(1-255字)"
|
|
|
/>
|
|
|
</van-cell-group>
|
|
|
<van-cell-group>
|
|
|
- <van-field label="曲目" input-align="right" placeholder="请输入曲目名" v-model="song" />
|
|
|
+ <van-field required label="曲目" input-align="right" placeholder="请输入曲目名" v-model="song" />
|
|
|
</van-cell-group>
|
|
|
<van-cell-group>
|
|
|
<van-cell>
|
|
|
<template slot="title">
|
|
|
<div class="title-item">
|
|
|
<span class="text">发音</span>
|
|
|
- <van-rate v-model="pronunciation" :size="25" void-color="#eee" void-icon="star" />
|
|
|
+ <van-rate v-model="pronunciation" :size="25" void-color="#eee" void-icon="star" />
|
|
|
</div>
|
|
|
<div class="title-item">
|
|
|
<span class="text">节奏</span>
|
|
|
- <van-rate :size="25" void-color="#eee" v-model="tempo" void-icon="star" />
|
|
|
+ <van-rate :size="25" void-color="#eee" v-model="tempo" void-icon="star" />
|
|
|
</div>
|
|
|
<div class="title-item">
|
|
|
<span class="text">乐理</span>
|
|
|
- <van-rate :size="25" v-model="musicTheory" void-color="#eee" void-icon="star" />
|
|
|
+ <van-rate :size="25" v-model="musicTheory" void-color="#eee" void-icon="star" />
|
|
|
</div>
|
|
|
</template>
|
|
|
</van-cell>
|
|
@@ -45,6 +46,7 @@
|
|
|
<van-cell-group>
|
|
|
<van-field
|
|
|
rows="4"
|
|
|
+ required
|
|
|
class="textarea"
|
|
|
maxlength="255"
|
|
|
v-model="memo"
|
|
@@ -56,8 +58,10 @@
|
|
|
</van-cell-group>
|
|
|
<van-cell-group>
|
|
|
<van-field
|
|
|
+ required
|
|
|
rows="4"
|
|
|
class="textarea"
|
|
|
+ :disabled="isReset"
|
|
|
maxlength="255"
|
|
|
v-model="homeWork"
|
|
|
autosize
|
|
@@ -69,7 +73,7 @@
|
|
|
<van-cell-group>
|
|
|
<van-cell title="是否完成双向沟通" value-class="twoConnect">
|
|
|
<template slot="default">
|
|
|
- <van-radio-group v-model="hasLiaison" direction="horizontal">
|
|
|
+ <van-radio-group required v-model="hasLiaison" direction="horizontal">
|
|
|
<van-radio name="1">是</van-radio>
|
|
|
<van-radio name="0">否</van-radio>
|
|
|
</van-radio-group>
|
|
@@ -110,6 +114,7 @@ export default {
|
|
|
homeWork: null, // 作业
|
|
|
hasLiaison: null,
|
|
|
subjectNames:null,
|
|
|
+ isReset:false
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -123,6 +128,7 @@ export default {
|
|
|
// 获取头部信息
|
|
|
if (this.reviewId) {
|
|
|
// 获取老评价
|
|
|
+ this.isReset = true;
|
|
|
getReviewInfo({ id: this.reviewId }).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.classTimer =
|
|
@@ -161,6 +167,38 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
submitReview() {
|
|
|
+ if(!this.teachingMaterial){
|
|
|
+ this.$toast('请填写教材')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.song){
|
|
|
+ this.$toast('请填写曲目')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.pronunciation){
|
|
|
+ this.$toast('请给发音打分')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.tempo){
|
|
|
+ this.$toast('请给节奏打分')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.musicTheory){
|
|
|
+ this.$toast('请给乐理打分')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.memo){
|
|
|
+ this.$toast('请输入备注')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.homeWork){
|
|
|
+ this.$toast('请布置作业')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.hasLiaison){
|
|
|
+ this.$toast('请勾选双向沟通')
|
|
|
+ return
|
|
|
+ }
|
|
|
let obj = {
|
|
|
teachingMaterial: this.teachingMaterial, //教材
|
|
|
song: this.song, // 曲目
|