|
@@ -101,10 +101,10 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
label="家长反馈"
|
|
|
- prop="feedback"
|
|
|
+ prop="feedbackTypeDesc"
|
|
|
v-if="(visitForm.visitType[0]=='常规回访'&&visitForm.visitType[1]=='考勤申诉')"
|
|
|
>
|
|
|
- <el-radio-group v-model="visitForm.feedbackTypeDesc">
|
|
|
+ <el-radio-group v-model="visitForm.feedbackTypeDesc" @change="changeFeedbackTypeDesc">
|
|
|
<el-radio-button
|
|
|
:label="item.value"
|
|
|
v-for="(item, index) in feedbackTypeDescList"
|
|
@@ -155,7 +155,7 @@
|
|
|
<el-input
|
|
|
type="textarea"
|
|
|
v-model="visitForm.feedback"
|
|
|
- style="width: 80% !important"
|
|
|
+ style="width: 80% !important"
|
|
|
placeholder="原因"
|
|
|
:rows="3"
|
|
|
maxlength="400"
|
|
@@ -214,7 +214,7 @@ export default {
|
|
|
components: { record, studentWork },
|
|
|
data() {
|
|
|
return {
|
|
|
- visitChiose,
|
|
|
+ visitChiose:visitChiose1,
|
|
|
feedbackTypeList,
|
|
|
feedbackTypeDescList:[{label:'生病',value:'SICK'},{label:'有事',value:'SOMETHING'},{label:'不想参加',value:'NO_PARTICIPATE'},{label:'其他',value:'OTHER'}]
|
|
|
,
|
|
@@ -254,7 +254,10 @@ export default {
|
|
|
this.$set(this.visitForm, "visitType", ["常规回访", "考勤申诉"]);
|
|
|
} else if (this.useVisitType) {
|
|
|
this.visitChiose = visitChiose1;
|
|
|
+
|
|
|
this.$set(this.visitForm, "visitType", this.useVisitType);
|
|
|
+ this.$forceUpdate();
|
|
|
+ console.log('useVisitType',this.useVisitType,this.visitForm)
|
|
|
} else {
|
|
|
this.visitChiose = visitChiose1;
|
|
|
}
|
|
@@ -312,11 +315,17 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
changeVisitType(val) {
|
|
|
- console.log(this.visitForm.visitType);
|
|
|
- this.visitForm.feedback = "";
|
|
|
+
|
|
|
this.visitForm.feedbackTypeDesc = "";
|
|
|
this.visitForm.feedbackType = "";
|
|
|
+ this.visitForm.overview = "";
|
|
|
+ this.visitForm.feedback = "";
|
|
|
},
|
|
|
+ changeFeedbackTypeDesc(val){
|
|
|
+ console.log('changeFeedbackTypeDesc')
|
|
|
+ this.visitForm.overview = "";
|
|
|
+ this.visitForm.feedback = "";
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|