|
@@ -13,7 +13,7 @@
|
|
|
<el-table-column align="center" v-for="subject in subjects" :key="subject" :label="subject">
|
|
<el-table-column align="center" v-for="subject in subjects" :key="subject" :label="subject">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<template v-if="!isEdit">
|
|
<template v-if="!isEdit">
|
|
|
- {{ scope.row[subject] }}
|
|
|
|
|
|
|
+ {{ scope.row[subject] || '-' }}
|
|
|
</template>
|
|
</template>
|
|
|
<el-input v-else v-model="scope.row[subject]" style="width: 100%;" @input="ValidateNumber(scope.row,subject)" />
|
|
<el-input v-else v-model="scope.row[subject]" style="width: 100%;" @input="ValidateNumber(scope.row,subject)" />
|
|
|
</template>
|
|
</template>
|
|
@@ -34,7 +34,10 @@
|
|
|
<div class="common_content_text">
|
|
<div class="common_content_text">
|
|
|
<el-input v-if="isEdit" type="textarea" placeholder="请输入你对该学科的计划和困惑。" v-model="firstWeakSubject.textValue" :rows="9" maxlength="1000" show-word-limit></el-input>
|
|
<el-input v-if="isEdit" type="textarea" placeholder="请输入你对该学科的计划和困惑。" v-model="firstWeakSubject.textValue" :rows="9" maxlength="1000" show-word-limit></el-input>
|
|
|
<template v-else>
|
|
<template v-else>
|
|
|
- <p v-for="text in firstWeakSubject.textValueWrap">{{ text }}</p>
|
|
|
|
|
|
|
+ <template v-if="firstWeakSubject?.textValueWrap?.length">
|
|
|
|
|
+ <p v-for="text in firstWeakSubject.textValueWrap">{{ text }}</p>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else>暂无</template>
|
|
|
</template>
|
|
</template>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -52,7 +55,10 @@
|
|
|
<div class="common_content_text">
|
|
<div class="common_content_text">
|
|
|
<el-input v-if="isEdit" type="textarea" placeholder="请输入你对该学科的计划和困惑。" v-model="secondWeakSubject.textValue" :rows="9" maxlength="1000" show-word-limit></el-input>
|
|
<el-input v-if="isEdit" type="textarea" placeholder="请输入你对该学科的计划和困惑。" v-model="secondWeakSubject.textValue" :rows="9" maxlength="1000" show-word-limit></el-input>
|
|
|
<template v-else>
|
|
<template v-else>
|
|
|
- <p v-for="text in secondWeakSubject.textValueWrap">{{ text }}</p>
|
|
|
|
|
|
|
+ <template v-if="secondWeakSubject?.textValueWrap?.length">
|
|
|
|
|
+ <p v-for="text in secondWeakSubject.textValueWrap">{{ text }}</p>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else>暂无</template>
|
|
|
</template>
|
|
</template>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -63,7 +69,10 @@
|
|
|
<div class="common_content_text">
|
|
<div class="common_content_text">
|
|
|
<el-input v-if="isEdit" type="textarea" placeholder="请输入你对该学科的计划和困惑。" v-model="needTeacherValue" :rows="9" maxlength="1000" show-word-limit></el-input>
|
|
<el-input v-if="isEdit" type="textarea" placeholder="请输入你对该学科的计划和困惑。" v-model="needTeacherValue" :rows="9" maxlength="1000" show-word-limit></el-input>
|
|
|
<template v-else>
|
|
<template v-else>
|
|
|
- <p v-for="text in needTeacherValueWrap">{{ text }}</p>
|
|
|
|
|
|
|
+ <template v-if="needTeacherValueWrap?.length">
|
|
|
|
|
+ <p v-for="text in needTeacherValueWrap">{{ text }}</p>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else>暂无</template>
|
|
|
</template>
|
|
</template>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -126,7 +135,7 @@ export default {
|
|
|
GetOneStudentOneCase() {
|
|
GetOneStudentOneCase() {
|
|
|
this.$api.reportStudent.jointSchoolReport.getOneStudentOneCase(this.reportParam).then(res => {
|
|
this.$api.reportStudent.jointSchoolReport.getOneStudentOneCase(this.reportParam).then(res => {
|
|
|
if (res.code == 200 && res.data) {
|
|
if (res.code == 200 && res.data) {
|
|
|
- const {id,examId,schoolId,studentName,studentNo,studentCode,subjectVoList,studentGoalVoList,firstWeakSubject,secondWeakSubject,needTeacherValue} = res.data;
|
|
|
|
|
|
|
+ const {id,schoolId,studentName,studentNo,studentCode,subjectVoList,studentGoalVoList,firstWeakSubject,secondWeakSubject,needTeacherValue} = res.data;
|
|
|
if(studentGoalVoList){
|
|
if(studentGoalVoList){
|
|
|
const studentGoalList = studentGoalVoList || [];
|
|
const studentGoalList = studentGoalVoList || [];
|
|
|
this.subjects = [];
|
|
this.subjects = [];
|
|
@@ -136,8 +145,8 @@ export default {
|
|
|
studentGoalList.forEach(item => {
|
|
studentGoalList.forEach(item => {
|
|
|
this.subjects.push(item.subjectName);
|
|
this.subjects.push(item.subjectName);
|
|
|
this.subjectsCode.push(item.subjectCode);
|
|
this.subjectsCode.push(item.subjectCode);
|
|
|
- obj1[item.subjectName] = item?.goalScore || '-';
|
|
|
|
|
- obj2[item.subjectName] = item?.goalRank || '-';
|
|
|
|
|
|
|
+ obj1[item.subjectName] = item?.goalScore || '';
|
|
|
|
|
+ obj2[item.subjectName] = item?.goalRank || '';
|
|
|
});
|
|
});
|
|
|
this.tableData.push(obj1,obj2)
|
|
this.tableData.push(obj1,obj2)
|
|
|
}else{
|
|
}else{
|
|
@@ -149,34 +158,37 @@ export default {
|
|
|
subjectList.forEach(item => {
|
|
subjectList.forEach(item => {
|
|
|
this.subjects.push(item.subjectName);
|
|
this.subjects.push(item.subjectName);
|
|
|
this.subjectsCode.push(item.subjectCode);
|
|
this.subjectsCode.push(item.subjectCode);
|
|
|
- obj1[item.subjectName] = '-';
|
|
|
|
|
- obj2[item.subjectName] = '-';
|
|
|
|
|
|
|
+ obj1[item.subjectName] = '';
|
|
|
|
|
+ obj2[item.subjectName] = '';
|
|
|
});
|
|
});
|
|
|
this.tableData.push(obj1,obj2)
|
|
this.tableData.push(obj1,obj2)
|
|
|
}
|
|
}
|
|
|
this.id = id;
|
|
this.id = id;
|
|
|
- this.examId = examId;
|
|
|
|
|
|
|
+ this.examId = this.reportParam.examId;
|
|
|
this.schoolId = schoolId;
|
|
this.schoolId = schoolId;
|
|
|
this.studentName = studentName;
|
|
this.studentName = studentName;
|
|
|
this.studentNo = studentNo;
|
|
this.studentNo = studentNo;
|
|
|
this.studentCode = studentCode;
|
|
this.studentCode = studentCode;
|
|
|
- const firstTextValue = firstWeakSubject?.textValue || '暂无';
|
|
|
|
|
- const secondTextValue = secondWeakSubject?.textValue || '暂无';
|
|
|
|
|
- const needTextValue = needTeacherValue || '暂无';
|
|
|
|
|
|
|
+ const firstTextValue = firstWeakSubject?.textValue || '';
|
|
|
|
|
+ const secondTextValue = secondWeakSubject?.textValue || '';
|
|
|
|
|
+ const needTextValue = needTeacherValue || '';
|
|
|
|
|
+ const firstTextValueWrap = firstTextValue.split(/\r?\n/).filter(item => item !== '');
|
|
|
|
|
+ const secondTextValueWrap = secondTextValue.split(/\r?\n/).filter(item => item !== '');
|
|
|
this.firstWeakSubject = {
|
|
this.firstWeakSubject = {
|
|
|
subjectCode: firstWeakSubject?.subjectCode || '',
|
|
subjectCode: firstWeakSubject?.subjectCode || '',
|
|
|
subjectName: firstWeakSubject?.subjectName || '',
|
|
subjectName: firstWeakSubject?.subjectName || '',
|
|
|
textValue: firstTextValue,
|
|
textValue: firstTextValue,
|
|
|
- textValueWrap: firstTextValue.split(/\r?\n/)
|
|
|
|
|
|
|
+ textValueWrap: firstTextValueWrap
|
|
|
};//第一个薄弱学科
|
|
};//第一个薄弱学科
|
|
|
this.secondWeakSubject = {
|
|
this.secondWeakSubject = {
|
|
|
subjectCode: secondWeakSubject?.subjectCode || '',
|
|
subjectCode: secondWeakSubject?.subjectCode || '',
|
|
|
subjectName: secondWeakSubject?.subjectName || '',
|
|
subjectName: secondWeakSubject?.subjectName || '',
|
|
|
textValue: secondTextValue,
|
|
textValue: secondTextValue,
|
|
|
- textValueWrap: secondTextValue.split(/\r?\n/)
|
|
|
|
|
|
|
+ textValueWrap: secondTextValueWrap
|
|
|
};//第二个薄弱学科
|
|
};//第二个薄弱学科
|
|
|
this.needTeacherValue = needTextValue;
|
|
this.needTeacherValue = needTextValue;
|
|
|
- this.needTeacherValueWrap = needTextValue.split(/\r?\n/);
|
|
|
|
|
|
|
+ const needTeacherValueWrap = needTextValue.split(/\r?\n/).filter(item => item !== '');
|
|
|
|
|
+ this.needTeacherValueWrap = needTeacherValueWrap;
|
|
|
} else {
|
|
} else {
|
|
|
this.subjects = [];//科目
|
|
this.subjects = [];//科目
|
|
|
this.subjectsCode = [];//科目code
|
|
this.subjectsCode = [];//科目code
|
|
@@ -190,17 +202,17 @@ export default {
|
|
|
this.firstWeakSubject = {
|
|
this.firstWeakSubject = {
|
|
|
subjectCode: '',
|
|
subjectCode: '',
|
|
|
subjectName: '',
|
|
subjectName: '',
|
|
|
- textValue:'暂无',
|
|
|
|
|
- textValueWrap: ['暂无']
|
|
|
|
|
|
|
+ textValue:'',
|
|
|
|
|
+ textValueWrap: []
|
|
|
};//第一个薄弱学科
|
|
};//第一个薄弱学科
|
|
|
this.secondWeakSubject = {
|
|
this.secondWeakSubject = {
|
|
|
subjectCode: '',
|
|
subjectCode: '',
|
|
|
subjectName: '',
|
|
subjectName: '',
|
|
|
- textValue:'暂无',
|
|
|
|
|
- textValueWrap: ['暂无']
|
|
|
|
|
|
|
+ textValue:'',
|
|
|
|
|
+ textValueWrap: []
|
|
|
};//第二个薄弱学科
|
|
};//第二个薄弱学科
|
|
|
- this.needTeacherValue = '暂无';
|
|
|
|
|
- this.needTeacherValueWrap = ['暂无'];
|
|
|
|
|
|
|
+ this.needTeacherValue = '';
|
|
|
|
|
+ this.needTeacherValueWrap = [''];
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|