|
@@ -56,7 +56,7 @@
|
|
|
placeholder="请输入(1-255字)"
|
|
|
/>
|
|
|
</van-cell-group>
|
|
|
- <van-cell-group>
|
|
|
+ <van-cell-group v-if="!isReset || (isReset && homeWork)">
|
|
|
<van-field
|
|
|
required
|
|
|
rows="4"
|
|
@@ -80,6 +80,17 @@
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
</van-cell-group>
|
|
|
+
|
|
|
+ <van-cell-group v-if="isReset && !homeWork">
|
|
|
+ <van-cell title="是否完成作业" value-class="twoConnect">
|
|
|
+ <template slot="default">
|
|
|
+ <van-radio-group required v-model="handHomework" direction="horizontal">
|
|
|
+ <van-radio name="1">是</van-radio>
|
|
|
+ <van-radio name="0">否</van-radio>
|
|
|
+ </van-radio-group>
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ </van-cell-group>
|
|
|
<div class="button-group">
|
|
|
<van-button type="primary" v-if="!reviewId" round size="large" @click="submitReview">提交评价</van-button>
|
|
|
<van-button type="primary" v-if="reviewId" round size="large" @click="submitReview">修改评价</van-button>
|
|
@@ -112,6 +123,7 @@ export default {
|
|
|
musicTheory: null, // 乐理
|
|
|
memo: null, // 备注
|
|
|
homeWork: null, // 作业
|
|
|
+ handHomework: null, // 是否完成作业
|
|
|
hasLiaison: null,
|
|
|
subjectNames: null,
|
|
|
isReset: false,
|
|
@@ -152,6 +164,7 @@ export default {
|
|
|
this.memo = res.data.data.courseScheduleReview.memo;
|
|
|
this.homeWork = res.data.data.courseScheduleReview.homeWork;
|
|
|
this.hasLiaison = res.data.data.courseScheduleReview.hasLiaison.toString();
|
|
|
+ this.handHomework = res.data.data.courseScheduleReview.handHomework.toString();
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
@@ -194,10 +207,14 @@ export default {
|
|
|
this.$toast("请输入备注");
|
|
|
return;
|
|
|
}
|
|
|
- if (!this.homeWork) {
|
|
|
- this.$toast("请布置作业");
|
|
|
- return;
|
|
|
+ // 判断是否是编辑
|
|
|
+ if(!this.isReset) {
|
|
|
+ if (!this.homeWork) {
|
|
|
+ this.$toast("请布置作业");
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
if (!this.hasLiaison) {
|
|
|
this.$toast("请勾选双向沟通");
|
|
|
return;
|
|
@@ -211,6 +228,7 @@ export default {
|
|
|
memo: this.memo, // 备注
|
|
|
homeWork: this.homeWork,
|
|
|
hasLiaison: this.hasLiaison,
|
|
|
+ handHomework: this.handHomework,
|
|
|
courseScheduleId: this.courseId
|
|
|
};
|
|
|
if (this.reviewId) {
|