教师绩效考核优化
This commit is contained in:
parent
32d21b0f3f
commit
9740a679af
@ -77,14 +77,12 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
label="班级名称"
|
label="班级名称"
|
||||||
align="center"
|
align="center"
|
||||||
prop="classid"
|
prop="byClass.bjmc"
|
||||||
:formatter="classFormat"
|
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="评估对象"
|
label="评估对象"
|
||||||
align="center"
|
align="center"
|
||||||
prop="pgdx"
|
prop="pgdxxm"
|
||||||
:formatter="pgdxFormat"
|
|
||||||
/>
|
/>
|
||||||
<el-table-column label="最终扣分" align="center" prop="zzdf" />
|
<el-table-column label="最终扣分" align="center" prop="zzdf" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -226,18 +224,6 @@ export default {
|
|||||||
this.classOptions = response.rows;
|
this.classOptions = response.rows;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 班级字典翻译
|
|
||||||
classFormat(row, column) {
|
|
||||||
var actions = [];
|
|
||||||
var datas = this.classOptions;
|
|
||||||
Object.keys(datas).map((key) => {
|
|
||||||
if (datas[key].bjbh == "" + row.classid) {
|
|
||||||
actions.push(datas[key].bjmc);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return actions.join("");
|
|
||||||
},
|
|
||||||
// 学年学期类型--字典状态字典翻译
|
// 学年学期类型--字典状态字典翻译
|
||||||
xnxqFormat(row, column) {
|
xnxqFormat(row, column) {
|
||||||
return this.selectDictLabel(this.xnxqOptions, row.xnxq);
|
return this.selectDictLabel(this.xnxqOptions, row.xnxq);
|
||||||
@ -249,18 +235,6 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 教师字典翻译
|
// 教师字典翻译
|
||||||
pgdxFormat(row, column) {
|
|
||||||
var actions = [];
|
|
||||||
var datas = this.userOptions;
|
|
||||||
Object.keys(datas).map((key) => {
|
|
||||||
if (datas[key].userId == "" + row.pgdx) {
|
|
||||||
actions.push(datas[key].nickName);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return actions.join("");
|
|
||||||
},
|
|
||||||
// 教师字典翻译
|
|
||||||
createUserFormat(row, column) {
|
createUserFormat(row, column) {
|
||||||
var actions = [];
|
var actions = [];
|
||||||
var datas = this.userOptions;
|
var datas = this.userOptions;
|
||||||
|
@ -109,13 +109,7 @@
|
|||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<!-- <el-table-column label="编号" align="center" prop="id" /> -->
|
<!-- <el-table-column label="编号" align="center" prop="id" /> -->
|
||||||
<el-table-column
|
<el-table-column label="班级" align="center" prop="byClass.bjmc" fixed />
|
||||||
label="班级"
|
|
||||||
align="center"
|
|
||||||
prop="classid"
|
|
||||||
:formatter="classFormat"
|
|
||||||
fixed
|
|
||||||
/>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="教师"
|
label="教师"
|
||||||
align="center"
|
align="center"
|
||||||
@ -348,7 +342,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"form.classid": function (val) {
|
"form.classid": function (val) {
|
||||||
//console.log(val);
|
console.log(val);
|
||||||
if (val == "undefined" || val == "" || val == null) {
|
if (val == "undefined" || val == "" || val == null) {
|
||||||
} else {
|
} else {
|
||||||
getUserList(val)
|
getUserList(val)
|
||||||
@ -360,19 +354,40 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"form.month": function (val) {
|
"form.month": function (val) {
|
||||||
//console.log(val);
|
console.log(val);
|
||||||
this.month = val;
|
this.month = val;
|
||||||
},
|
},
|
||||||
"form.jsid": function (val) {
|
"form.jsid": function (val) {
|
||||||
//console.log(val);
|
console.log(val);
|
||||||
this.queryParams_pg.pgdx = val;
|
this.queryParams_pg.pgdx = val;
|
||||||
this.dateRange[0] = this.month + "-01";
|
this.dateRange[0] = this.month + "-01";
|
||||||
|
var y = this.month.split("-")[0];
|
||||||
|
var m = this.month.split("-")[1];
|
||||||
|
if (
|
||||||
|
m == "01" ||
|
||||||
|
m == "03" ||
|
||||||
|
m == "05" ||
|
||||||
|
m == "07" ||
|
||||||
|
m == "08" ||
|
||||||
|
m == "10" ||
|
||||||
|
m == "12"
|
||||||
|
) {
|
||||||
this.dateRange[1] = this.month + "-31";
|
this.dateRange[1] = this.month + "-31";
|
||||||
|
} else if (m == "04" || m == "06" || m == "09" || m == "11") {
|
||||||
|
this.dateRange[1] = this.month + "-30";
|
||||||
|
}else{
|
||||||
|
if(y % 4 == 0 && y % 100 !== 0 || y % 400 == 0){
|
||||||
|
this.dateRange[1] = this.month + "-29";
|
||||||
|
}else{
|
||||||
|
this.dateRange[1] = this.month + "-28";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//console.log(this.dateRange);
|
//console.log(this.dateRange);
|
||||||
listDayflowassessmentbyJsid(
|
listDayflowassessmentbyJsid(
|
||||||
this.addDateRange(this.queryParams_pg, this.dateRange)
|
this.addDateRange(this.queryParams_pg, this.dateRange)
|
||||||
).then((response) => {
|
).then((response) => {
|
||||||
//console.log(response);
|
console.log(response);
|
||||||
var total = 100;
|
var total = 100;
|
||||||
response.rows.forEach((item) => {
|
response.rows.forEach((item) => {
|
||||||
total = total + item.zzdf;
|
total = total + item.zzdf;
|
||||||
@ -387,6 +402,7 @@ export default {
|
|||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listTeacherassessment(this.queryParams).then((response) => {
|
listTeacherassessment(this.queryParams).then((response) => {
|
||||||
|
//console.log(response.rows);
|
||||||
this.teacherassessmentList = response.rows;
|
this.teacherassessmentList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
@ -408,19 +424,6 @@ export default {
|
|||||||
this.userOptions = response.rows;
|
this.userOptions = response.rows;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 字典翻译
|
|
||||||
classFormat(row, column) {
|
|
||||||
// return this.selectDictLabel(this.classOptions, row.classid);
|
|
||||||
var actions = [];
|
|
||||||
var datas = this.classOptions;
|
|
||||||
Object.keys(datas).map((key) => {
|
|
||||||
if (datas[key].bjbh == "" + row.classid) {
|
|
||||||
actions.push(datas[key].bjmc);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return actions.join("");
|
|
||||||
},
|
|
||||||
userFormat(row, column) {
|
userFormat(row, column) {
|
||||||
var actions = [];
|
var actions = [];
|
||||||
var datas = this.userOptions;
|
var datas = this.userOptions;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.ruoyi.project.benyi.domain;
|
package com.ruoyi.project.benyi.domain;
|
||||||
|
|
||||||
|
import com.ruoyi.project.system.domain.ByClass;
|
||||||
import com.ruoyi.project.system.domain.SysDept;
|
import com.ruoyi.project.system.domain.SysDept;
|
||||||
import com.ruoyi.project.system.domain.SysUser;
|
import com.ruoyi.project.system.domain.SysUser;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
@ -91,6 +92,16 @@ public class ByTeacherassessment extends BaseEntity {
|
|||||||
|
|
||||||
private SysUser sysUser;
|
private SysUser sysUser;
|
||||||
|
|
||||||
|
public ByClass getByClass() {
|
||||||
|
return byClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setByClass(ByClass byClass) {
|
||||||
|
this.byClass = byClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
private ByClass byClass;
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
@ -195,6 +206,7 @@ public class ByTeacherassessment extends BaseEntity {
|
|||||||
.append("zfbl", getZfbl())
|
.append("zfbl", getZfbl())
|
||||||
.append("createTime", getCreateTime())
|
.append("createTime", getCreateTime())
|
||||||
.append("sysUser", getSysUser())
|
.append("sysUser", getSysUser())
|
||||||
|
.append("byClass", getByClass())
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,9 @@
|
|||||||
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='规则与纪律约束')) as gzyjlyspjf,
|
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='规则与纪律约束')) as gzyjlyspjf,
|
||||||
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='微型课程')) as wxkcpjf,
|
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='微型课程')) as wxkcpjf,
|
||||||
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='潜课程')) as qkcpjf
|
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='潜课程')) as qkcpjf
|
||||||
from by_dayflowassessment d left join by_class e on d.classid=e.bjbh left join sys_user f on d.pgdx=f.user_id
|
from by_dayflowassessment d
|
||||||
|
left join by_class e on d.classid=e.bjbh
|
||||||
|
left join sys_user f on d.pgdx=f.user_id
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectByDayflowassessmentList" parameterType="ByDayflowassessment"
|
<select id="selectByDayflowassessmentList" parameterType="ByDayflowassessment"
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
<result property="zfbl" column="zfbl"/>
|
<result property="zfbl" column="zfbl"/>
|
||||||
<result property="createTime" column="create_time"/>
|
<result property="createTime" column="create_time"/>
|
||||||
<association property="sysUser" column="jsid" javaType="SysUser" resultMap="SysUserResult"/>
|
<association property="sysUser" column="jsid" javaType="SysUser" resultMap="SysUserResult"/>
|
||||||
|
<association property="byClass" column="classid" javaType="ByClass" resultMap="ByClassResult"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<resultMap type="SysUser" id="SysUserResult">
|
<resultMap type="SysUser" id="SysUserResult">
|
||||||
@ -26,9 +27,29 @@
|
|||||||
<result property="nickName" column="nick_name"/>
|
<result property="nickName" column="nick_name"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
<resultMap type="ByClass" id="ByClassResult">
|
||||||
|
<result property="bjbh" column="bjbh"/>
|
||||||
|
<result property="deptId" column="dept_id"/>
|
||||||
|
<result property="bjtype" column="bjtype"/>
|
||||||
|
<result property="bhxh" column="bhxh"/>
|
||||||
|
<result property="xn" column="xn"/>
|
||||||
|
<result property="bjmc" column="bjmc"/>
|
||||||
|
<result property="bjrych" column="bjrych"/>
|
||||||
|
<result property="jbny" column="jbny"/>
|
||||||
|
<result property="zbjs" column="zbjs"/>
|
||||||
|
<result property="zbjsxm" column="zbjsxm"/>
|
||||||
|
<result property="pbjs" column="pbjs"/>
|
||||||
|
<result property="pbjsxm" column="pbjsxm"/>
|
||||||
|
<result property="zljs" column="zljs"/>
|
||||||
|
<result property="zljsxm" column="zljsxm"/>
|
||||||
|
<result property="isdel" column="isdel"/>
|
||||||
|
<result property="createtime" column="createtime"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectByTeacherassessmentVo">
|
<sql id="selectByTeacherassessmentVo">
|
||||||
select a.id, a.jsid, a.classid, a.dept_id, a.month, a.yrlcbl, a.jskqbl, a.yekqbl, a.sgbl, a.wsbl, a.zfbl, a.create_time,b.nick_name from by_teacherassessment a
|
select a.id, a.jsid, a.classid, c.bjmc, a.dept_id, a.month, a.yrlcbl, a.jskqbl, a.yekqbl, a.sgbl, a.wsbl, a.zfbl, a.create_time,b.nick_name from by_teacherassessment a
|
||||||
left join sys_user b on a.jsid=b.user_id
|
left join sys_user b on a.jsid=b.user_id
|
||||||
|
left join by_class c on a.classid=c.bjbh
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectByTeacherassessmentList" parameterType="ByTeacherassessment"
|
<select id="selectByTeacherassessmentList" parameterType="ByTeacherassessment"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user