diff --git a/ruoyi-ui/src/views/benyi/dayflowassessment/index.vue b/ruoyi-ui/src/views/benyi/dayflowassessment/index.vue
index 0c4cfb976..102f5cbfe 100644
--- a/ruoyi-ui/src/views/benyi/dayflowassessment/index.vue
+++ b/ruoyi-ui/src/views/benyi/dayflowassessment/index.vue
@@ -77,14 +77,12 @@
{
- if (datas[key].bjbh == "" + row.classid) {
- actions.push(datas[key].bjmc);
- return false;
- }
- });
- return actions.join("");
- },
// 学年学期类型--字典状态字典翻译
xnxqFormat(row, column) {
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) {
var actions = [];
var datas = this.userOptions;
diff --git a/ruoyi-ui/src/views/benyi/teacherassessment/index.vue b/ruoyi-ui/src/views/benyi/teacherassessment/index.vue
index 05bfea41b..9f82d4f6f 100644
--- a/ruoyi-ui/src/views/benyi/teacherassessment/index.vue
+++ b/ruoyi-ui/src/views/benyi/teacherassessment/index.vue
@@ -109,13 +109,7 @@
>
-
+
{
- //console.log(response);
+ console.log(response);
var total = 100;
response.rows.forEach((item) => {
total = total + item.zzdf;
@@ -387,6 +402,7 @@ export default {
getList() {
this.loading = true;
listTeacherassessment(this.queryParams).then((response) => {
+ //console.log(response.rows);
this.teacherassessmentList = response.rows;
this.total = response.total;
this.loading = false;
@@ -408,19 +424,6 @@ export default {
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) {
var actions = [];
var datas = this.userOptions;
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByTeacherassessment.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByTeacherassessment.java
index a2a2899fe..78f4e874f 100644
--- a/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByTeacherassessment.java
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByTeacherassessment.java
@@ -1,5 +1,6 @@
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.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
@@ -91,6 +92,16 @@ public class ByTeacherassessment extends BaseEntity {
private SysUser sysUser;
+ public ByClass getByClass() {
+ return byClass;
+ }
+
+ public void setByClass(ByClass byClass) {
+ this.byClass = byClass;
+ }
+
+ private ByClass byClass;
+
public void setId(Long id) {
this.id = id;
}
@@ -194,7 +205,8 @@ public class ByTeacherassessment extends BaseEntity {
.append("wsbl", getWsbl())
.append("zfbl", getZfbl())
.append("createTime", getCreateTime())
- .append("sysUser",getSysUser())
+ .append("sysUser", getSysUser())
+ .append("byClass", getByClass())
.toString();
}
}
diff --git a/ruoyi/src/main/resources/mybatis/benyi/ByDayflowassessmentMapper.xml b/ruoyi/src/main/resources/mybatis/benyi/ByDayflowassessmentMapper.xml
index 245334b93..53d6fd334 100644
--- a/ruoyi/src/main/resources/mybatis/benyi/ByDayflowassessmentMapper.xml
+++ b/ruoyi/src/main/resources/mybatis/benyi/ByDayflowassessmentMapper.xml
@@ -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 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
- 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
+
@@ -26,9 +27,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- 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 by_class c on a.classid=c.bjbh