|
@@ -6,48 +6,53 @@
|
|
|
:close-on-press-escape="false"
|
|
|
append-to-body
|
|
|
fullscreen
|
|
|
+ @opened="openedHandle"
|
|
|
>
|
|
|
- <div slot="title">{{ rowData.name }}毕业要求达成情况</div>
|
|
|
+ <div slot="title">{{ rowData.studentName }}毕业要求达成情况</div>
|
|
|
|
|
|
<div class="part-box part-box-pad">
|
|
|
- <div class="part-title">
|
|
|
- <h2>个人与本院对比情况</h2>
|
|
|
- <div class="chart-box" style="height: 400px">
|
|
|
- <v-chart v-if="chartOption" :option="chartOption"></v-chart>
|
|
|
- </div>
|
|
|
+ <div class="part-box-head">
|
|
|
+ <h3>个人与本院对比情况</h3>
|
|
|
+ </div>
|
|
|
+ <div class="chart-box" style="height: 400px">
|
|
|
+ <v-chart v-if="chartOption" :option="chartOption" autoresize></v-chart>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="part-box part-box-pad">
|
|
|
- <div class="part-title">
|
|
|
- <h2>个人毕业要求达成度情况</h2>
|
|
|
+ <div class="part-box-head">
|
|
|
+ <h3>个人毕业要求达成度情况</h3>
|
|
|
</div>
|
|
|
|
|
|
- <el-form ref="FilterForm" label-position="left" label-width="85px" inline>
|
|
|
+ <el-form ref="FilterForm" label-position="left" inline>
|
|
|
<el-form-item label-width="0px">
|
|
|
- <semester-select v-model="filter.semesterId"></semester-select>
|
|
|
+ <semester-select
|
|
|
+ v-model="filter.semesterId"
|
|
|
+ :clearable="false"
|
|
|
+ ></semester-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label-width="0px">
|
|
|
<el-button type="primary" @click="search">查询</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
|
|
|
- <el-table ref="TableList" :data="dataList">
|
|
|
+ <el-table ref="TableList" :data="tableData">
|
|
|
<el-table-column label="课程名称(代码)" min-width="200">
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.courseName }}({{ scope.row.courseCode }})
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="semesterName" label="所属学期">
|
|
|
+ <el-table-column prop="semesterName" label="所属学期" width="160">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="score" label="期末成绩" width="80">
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="score" label="期末成绩"> </el-table-column>
|
|
|
<el-table-column
|
|
|
v-for="(column, cindex) in columns"
|
|
|
:key="cindex"
|
|
|
:label="column"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.requirements[cindex] }}
|
|
|
+ {{ scope.row.requirementDetailList[cindex].studentDegree }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -87,9 +92,12 @@ export default {
|
|
|
open() {
|
|
|
this.modalIsShow = true;
|
|
|
},
|
|
|
+ openedHandle() {
|
|
|
+ this.search();
|
|
|
+ },
|
|
|
async search() {
|
|
|
const res = await studentTargetDetail({
|
|
|
- cultureProgramId: this.rowData.id,
|
|
|
+ cultureProgramId: this.rowData.cultureProgramId,
|
|
|
studentCode: this.rowData.studentCode,
|
|
|
...this.filter,
|
|
|
});
|
|
@@ -107,27 +115,28 @@ export default {
|
|
|
const option = {
|
|
|
color: ["#3a5ae5", "#fe5d4e"],
|
|
|
grid: {
|
|
|
- left: 40,
|
|
|
- top: 40,
|
|
|
- right: 80,
|
|
|
+ left: 30,
|
|
|
+ top: 60,
|
|
|
+ right: 20,
|
|
|
bottom: 50,
|
|
|
containLabel: true,
|
|
|
},
|
|
|
legend: {
|
|
|
top: 0,
|
|
|
data: ["个人达成情况", "专业达成情况"],
|
|
|
- itemWidth: 12,
|
|
|
+ itemWidth: 16,
|
|
|
itemHeight: 4,
|
|
|
itemGap: 22,
|
|
|
- left: 40,
|
|
|
+ left: "center",
|
|
|
},
|
|
|
xAxis: {
|
|
|
type: "category",
|
|
|
- name: "课程目标",
|
|
|
nameTextStyle: {
|
|
|
color: "#363D59",
|
|
|
},
|
|
|
- data: this.dataList.map((item) => item.requirementName),
|
|
|
+ data: this.dataList.map(
|
|
|
+ (item, index) => `${index + 1}.${item.requirementName}`
|
|
|
+ ),
|
|
|
axisLabel: {
|
|
|
color: "#6F7482",
|
|
|
interval: 0,
|
|
@@ -152,7 +161,6 @@ export default {
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: "value",
|
|
|
- name: "达成值",
|
|
|
min: 0,
|
|
|
max: 1,
|
|
|
interval: 0.1,
|