学生画像之本学期课表修改为思想品得加分申请

This commit is contained in:
2025-10-24 21:21:12 +08:00
parent e29366525d
commit 000e581404
2 changed files with 100 additions and 80 deletions

View File

@@ -146,3 +146,11 @@ export function cancelAudit(id) {
method: 'post' method: 'post'
}) })
} }
//查询个人加分项申请
export function getcphiamByOne(stuNo) {
return request({
url: '/comprehensive/auditDetails/getcphiamByOne/'+stuNo,
method: 'post'
})
}

View File

@@ -46,19 +46,19 @@
<div id="ranking" /> <div id="ranking" />
</div> </div>
<div class="echart"> <div class="echart">
<div class="echart-title">本学期课表</div> <div class="echart-title">思想品德加分申请</div>
<div class="schedule"> <div class="schedule">
<table> <table>
<tbody> <tbody>
<tr> <tr>
<td>任课教师</td> <td>学年</td>
<td>课程名称</td> <td>项目名称</td>
<td>课程起始周</td> <td>分数</td>
</tr> </tr>
<tr v-for="(item, index) in myCourse" :key="index"> <tr v-for="(item, index) in cphiams" :key="index">
<td>{{ item.teacherName }}</td> <td>{{ item.stuYearName }}</td>
<td>{{ item.courseName }}</td> <td :title="item.ruleName">{{ item.ruleName }}</td>
<td>{{ item.zc }}</td> <td style="margin-left: 50px;">{{ item.operateScore }}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@@ -74,6 +74,7 @@ import { listOwnFive, listStuFive } from '@/api/stuCQS/info-fill/cqScore'
import { getOwnInfo, getStuInfo } from '@/api/stuCQS/basedata/stuInfoView' import { getOwnInfo, getStuInfo } from '@/api/stuCQS/basedata/stuInfoView'
import { getOwnInfo as getExtraInfo, } from '@/api/stuCQS/basedata/extraInfo' import { getOwnInfo as getExtraInfo, } from '@/api/stuCQS/basedata/extraInfo'
import { listCourseScore } from '@/api/stuCQS/basedata/course' import { listCourseScore } from '@/api/stuCQS/basedata/course'
import { getcphiamByOne } from '@/api/stuCQS/process-center/auditDetails'
export default { export default {
props: { props: {
stuNo: { stuNo: {
@@ -86,6 +87,7 @@ export default {
dateDay: null, dateDay: null,
dateYear: null, dateYear: null,
dateWeek: null, dateWeek: null,
cphiams: [],
weekday: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'], weekday: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
userInfo: { userInfo: {
deptName: null, deptName: null,
@@ -95,24 +97,25 @@ export default {
sex: null, sex: null,
}, },
courseList: [], courseList: [],
myCourse: [ // myCourse: [
{ teacherName: '张旭蕾', courseName: 'Javascript语言实习', zc: '8周~15周' }, // { teacherName: '张旭蕾', courseName: 'Javascript语言实习', zc: '8周~15周' },
{ teacherName: '刘莹', courseName: 'Java面向对象程序设计', zc: '1周~8周' }, // { teacherName: '刘莹', courseName: 'Java面向对象程序设计', zc: '1周~8周' },
{ teacherName: '罗世俊', courseName: 'Linux应用服务器管理', zc: '5周~10周' }, // { teacherName: '罗世俊', courseName: 'Linux应用服务器管理', zc: '5周~10周' },
{ teacherName: '黄海滨', courseName: 'photoshop', zc: '9周~18周' }, // { teacherName: '黄海滨', courseName: 'photoshop', zc: '9周~18周' },
{ teacherName: '石春丽', courseName: 'Web应用开发', zc: '6周~12周' }, // { teacherName: '石春丽', courseName: 'Web应用开发', zc: '6周~12周' },
{ teacherName: '黄绿汀', courseName: '安全教育Ⅲ', zc: '8周~18周' }, // { teacherName: '黄绿汀', courseName: '安全教育Ⅲ', zc: '8周~18周' },
{ teacherName: '韦丹茜', courseName: '数据库程序设计', zc: '10周~18周' }, // { teacherName: '韦丹茜', courseName: '数据库程序设计', zc: '10周~18周' },
{ teacherName: '陈前军', courseName: '中外音乐鉴赏', zc: '1周~6周' }, // { teacherName: '陈前军', courseName: '中外音乐鉴赏', zc: '1周~6周' },
{ teacherName: '邓永光', courseName: '微机原理及应用 ', zc: '1周~18周' }, // { teacherName: '邓永光', courseName: '微机原理及应用 ', zc: '1周~18周' },
], // ],
extraForm:[] extraForm: []
} }
}, },
created() { created() {
this.timeFn() this.timeFn()
this.getUserInfo() this.getUserInfo()
this.getExtraInfo() this.getExtraInfo()
this.getcphiamByOne()
}, },
mounted() { mounted() {
if (this.stuNo == null) { if (this.stuNo == null) {
@@ -129,6 +132,12 @@ export default {
}, },
methods: { methods: {
getcphiamByOne() {
getcphiamByOne(this.stuNo).then(res => {
this.cphiams = res.rows
})
},
doFull() { doFull() {
this.$store.dispatch('app/toggleSideBarHide', true) this.$store.dispatch('app/toggleSideBarHide', true)
document.querySelector('.navbar').style.display = 'none' document.querySelector('.navbar').style.display = 'none'
@@ -188,7 +197,7 @@ export default {
...res.data ...res.data
} }
} }
this.extraForm.dailyPhoto=process.env.VUE_APP_BASE_API+this.extraForm.dailyPhoto this.extraForm.dailyPhoto = process.env.VUE_APP_BASE_API + this.extraForm.dailyPhoto
//console.log(this.extraForm); //console.log(this.extraForm);
}, },
@@ -643,6 +652,9 @@ html {
} }
} }
tr:gt(0) td:gt(1){
padding-left: 100px;
}
} }
} }