Commit cc831b79 by duxingshan

1、成绩管理新增、编辑、删除、导入、模版下载接口对接。

2、部分细节修改
parent bcd083b0
...@@ -8,3 +8,37 @@ export function performanceList(query) { ...@@ -8,3 +8,37 @@ export function performanceList(query) {
params: query, params: query,
}); });
} }
//根据身份证号获取学生信息
export function getInfoByIdCard(query) {
return request({
url: `/curricula/studentScore/selectStudent?idCard=${query}`,
method: "get",
});
}
// 新增成绩
export function addPerformance(data) {
return request({
url: "/curricula/studentScore/add",
method: "post",
data,
});
}
// 编辑成绩
export function editPerformance(data) {
return request({
url: "/curricula/studentScore/edit",
method: "put",
data,
});
}
//删除成绩
export function deletePerformance(data) {
return request({
url: `/curricula/studentScore/delete/${data}`,
method: "delete"
});
}
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="flexBlock person"> <div class="flexBlock person">
<div>总人数:45</div> <div>总人数:{{totalPerson}}</div>
<div>已选课:<span>40</span></div> <div>已选课:<span>{{choosePerson}}</span></div>
</div> </div>
<el-table v-loading="loading" :data="courseSelectionData" stripe> <el-table v-loading="loading" :data="courseSelectionData" stripe>
<el-table-column label="序号" type="index" width="55" align="center"/> <el-table-column label="序号" type="index" width="55" align="center"/>
...@@ -82,9 +82,13 @@ export default { ...@@ -82,9 +82,13 @@ export default {
courseSelectionData:[], courseSelectionData:[],
loading:false, loading:false,
total:0, total:0,
totalPerson:0, // 总人数
choosePerson:0 // 已选人数
} }
}, },
mounted() { mounted() {
this.totalPerson = this.$route.query.total
this.choosePerson = this.$route.query.choose
this.getList() this.getList()
}, },
methods:{ methods:{
......
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
// 导出 // 导出
handleExport() { handleExport() {
this.download('/curricula/student/exportCj', { this.download('/curricula/student/exportCj', {
...this.queryParams ...this.queryForm
}, `学生春季选课信息_${new Date().getTime()}.xlsx`) }, `学生春季选课信息_${new Date().getTime()}.xlsx`)
} }
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<div class="task-buttons"> <div class="task-buttons">
<el-button size="mini" icon="el-icon-edit" round @click="handleUpdate(task)">修改</el-button> <el-button size="mini" icon="el-icon-edit" round @click="handleUpdate(task)">修改</el-button>
<el-button type="primary" size="small" round @click="performance(task.id,task.grade)">成绩管理</el-button> <el-button type="primary" size="small" round @click="performance(task.id,task.grade)">成绩管理</el-button>
<el-button type="success" size="small" round @click="courseSelectionsituation(task.id)">选课情况</el-button> <el-button type="success" size="small" round @click="courseSelectionsituation(task.id,task.yxrs,task.zrs)">选课情况</el-button>
<el-button type="warning" size="small" round @click="springView(task.id,task.grade)">春季选课情况</el-button> <el-button type="warning" size="small" round @click="springView(task.id,task.grade)">春季选课情况</el-button>
<el-button type="danger" size="small" round @click="artisticView()">艺体选课情况</el-button> <el-button type="danger" size="small" round @click="artisticView()">艺体选课情况</el-button>
<el-button class="purpleBtn" size="small" round @click="summerViewing()">夏季选课情况</el-button> <el-button class="purpleBtn" size="small" round @click="summerViewing()">夏季选课情况</el-button>
...@@ -174,12 +174,12 @@ export default { ...@@ -174,12 +174,12 @@ export default {
} }
}); });
}, },
// 选课情况按钮 // 选课情况按钮 total总人数 choose已选人数
courseSelectionsituation(id) { courseSelectionsituation(id,total,choose) {
this.$router.push({ this.$router.push({
path: "/gradeWork/courseSelection/courseSelectionsituation", path: "/gradeWork/courseSelection/courseSelectionsituation",
query: { query: {
id id,total,choose
} }
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment