Commit 253b230d authored by 黄奎's avatar 黄奎

页面修改

parent 6c8df7bc
......@@ -542,3 +542,29 @@ export function queryTeacherAssessmentPage(data) {
data
})
}
/**
* 获取教师考核信息
* @param {*} data
*/
export function queryTeacherAssessmentInfo(data) {
return request({
url: '/TeacherAssessment/GetTeacherAssessmentInfo',
method: 'post',
data
})
}
/**
* 保存老师考核信息
* @param {*} data
*/
export function setTeacherAssessmentInfo(data) {
return request({
url: '/TeacherAssessment/SaveTeacherAssessmentInfo',
method: 'post',
data
})
}
\ No newline at end of file
......@@ -134,10 +134,8 @@
},
getTeacherAssessmentPage() {
this.loading = true;
queryTeacherAssessmentPage(this.msg).then(res => {
this.loading = false;
if (res.Code == 1) {
this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount;
......@@ -154,9 +152,7 @@
},
//跳转考核表
goAssessTable() {
this.OpenNewUrl('/teacher/jobEvaluation', {
});
this.OpenNewUrl('/teacher/jobEvaluation', {});
}
}
}
......
......@@ -14,7 +14,6 @@
height: 40px;
background-color: rgb(238, 238, 239);
}
</style>
<template>
<div class="page-body">
......@@ -22,35 +21,39 @@
<div class="col row wrap q-col-gutter-md">
<div class="col-3">
<q-select filled stack-label option-value="TId" option-label="TeacherName" v-model="chooseTeacher"
ref="Teacher_Id" :options="TeacherList" label="教师团队" dense class="col-6 q-pr-lg q-pb-lg" emit-value
ref="Teacher_Id" :options="TeacherList" label="老师" dense class="col-6 q-pr-lg q-pb-lg" emit-value
map-options />
</div>
<div class="col-3">
<q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:7px;"
@click="saveTeacherAssessment" label="保存" />
</div>
</div>
</div>
<div class="page-content">
<table class="jobTable" style="border-collapse:collapse;">
<tbody v-for="(item,index) in dataList" :key="index">
<tbody v-for="(item,index) in saveObj.DetailsList" :key="index">
<tr>
<th width="150">类别</th>
<th width="150">内容</th>
<th v-for="(T,tindex) in item.SubtypeList[0].OptionList">
<div>{{T.LevelTitle}}</div>
<div>{{T.LevelScore}}</div>
<th v-for="(sItem,tindex) in item.SubtypeList[0].OptionList" :key="tindex">
<div>{{sItem.LevelTitle}}</div>
<div>{{sItem.LevelScore}}</div>
</th>
<th width="200">考核</th>
</tr>
<tr>
<td :rowspan="item.SubtypeList.length+1">{{item.TypeName}}</td>
</tr>
<tr v-for="(sItem,sIndex) in item.SubtypeList">
<tr v-for="(sItem,sIndex) in item.SubtypeList" :key="sIndex">
<td>{{sItem.SubTypeName}}</td>
<td v-for="(cItem,cIndex) in sItem.OptionList" style="position:relative;">
<td v-for="(cItem,cIndex) in sItem.OptionList" style="position:relative;" :key="cIndex">
<el-tooltip class="item" effect="dark" :content="cItem.LevelDesc" placement="top-start">
<i style="position:absolute;left:3px;top:3px;" class="iconfont icon-bangzhu"></i>
</el-tooltip>
<q-checkbox v-model="selection" val="teal" color="green" />
<q-checkbox v-model="cItem.IsCheck" @input="changeStatus(sItem,cItem)" val="teal" color="green" />
</td>
<td></td>
<td>{{sItem.CheckScore}}</td>
</tr>
</tbody>
</table>
......@@ -62,7 +65,8 @@
getTeacherDropDownList
} from "../../api/school/index";
import {
GetAssessmentTypeList
queryTeacherAssessmentInfo,
setTeacherAssessmentInfo,
} from "../../api/teacher/index";
export default {
meta: {
......@@ -71,23 +75,40 @@
components: {},
data() {
return {
dataList: [],
msg: {
pageIndex: 1,
pageSize: 12,
rowsPerPage: 12,
},
chooseTeacher: '',
TeacherList: [], //关联教师下拉数据
selection:''
saveObj: {
Id: 0, //主键编号
YearStr: 0, //年份
MonthStr: 0, //月份
TeacherAccountId: 0, //教师账号表编号
TeacherScore: 0, //教学主管打分
JiaoWuScore: 0, //教务主管打分
TotalScore: 0, //总分
DetailsList: [],
}
}
},
created() {},
mounted() {
created() {
this.GetTeacherList();
this.getList();
},
mounted() {
this.getInfo();
},
methods: {
changeStatus(subItem, optionItem) {
if (optionItem.IsCheck) {
subItem.OptionList.forEach(sItem => {
sItem.IsCheck = false;
});
optionItem.IsCheck = true;
subItem.CheckId = optionItem.LevelId;
subItem.CheckScore = optionItem.LevelScore;
} else {
subItem.CheckId = 0;
subItem.CheckScore = 0;
}
},
//获取教师下拉
GetTeacherList() {
getTeacherDropDownList({}).then(res => {
......@@ -96,18 +117,30 @@
}
});
},
getList() {
GetAssessmentTypeList({}).then(res => {
getInfo() {
var qMsg = {
TeacherAccountId: this.saveObj.TeacherAccountId
};
queryTeacherAssessmentInfo(qMsg).then(res => {
console.log("info", res)
if (res.Code == 1) {
this.dataList = res.Data;
var tempData = res.Data;
this.saveObj.DetailsList = tempData.DetailsList
}
})
},
//保存老师考核信息
saveTeacherAssessment() {
setTeacherAssessmentInfo(this.saveObj).then(res => {
console.log("res", res);
if (res.Code == 1) {
}
})
}
}
}
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
</style>
</style>
\ No newline at end of file
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