diff --git a/ruoyi-ui/src/views/benyi/dayflowassessmentplan/index.vue b/ruoyi-ui/src/views/benyi/dayflowassessmentplan/index.vue
index 3fc3dc393..252ddd7d8 100644
--- a/ruoyi-ui/src/views/benyi/dayflowassessmentplan/index.vue
+++ b/ruoyi-ui/src/views/benyi/dayflowassessmentplan/index.vue
@@ -7,13 +7,19 @@
label-width="70px"
>
-
+ >
+
+
-
+ placeholder="请选择班级"
+ >
+
+
-
-
+
+
@@ -105,13 +117,12 @@
label="评估时间"
align="center"
prop="starttime"
- width="180"
>
{{ parseTime(scope.row.starttime, "{y}-{m}-{d}") }}
-
+
-
+
+
+
-
+
-
+
+
+
@@ -174,7 +199,7 @@
{
+ this.xnxqOptions = response.data;
+ });
},
methods: {
+ // 字典翻译
+ 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("");
+ },
+ getClassList() {
+ listClass(null).then((response) => {
+ this.classOptions = response.rows;
+ // console.log(response.rows[0].bjbh);
+ // this.form.classid = response.rows[0].bjbh;
+ });
+ },
+ // 学年学期类型--字典状态字典翻译
+ xnxqFormat(row, column) {
+ return this.selectDictLabel(this.xnxqOptions, row.xnxq);
+ },
/** 查询幼儿园一日流程评估计划列表 */
getList() {
this.loading = true;
@@ -351,3 +414,20 @@ export default {
},
};
+
\ No newline at end of file
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByDayflowassessmentplanController.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByDayflowassessmentplanController.java
index e40b4b559..fde02c40e 100644
--- a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByDayflowassessmentplanController.java
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByDayflowassessmentplanController.java
@@ -2,6 +2,7 @@ package com.ruoyi.project.benyi.controller;
import java.util.List;
+import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -72,6 +73,8 @@ public class ByDayflowassessmentplanController extends BaseController {
@Log(title = "幼儿园一日流程评估计划", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ByDayflowassessmentplan byDayflowassessmentplan) {
+ byDayflowassessmentplan.setDeptId(SecurityUtils.getLoginUser().getUser().getDeptId());
+ byDayflowassessmentplan.setCreateUserid(SecurityUtils.getLoginUser().getUser().getUserId());
return toAjax(byDayflowassessmentplanService.insertByDayflowassessmentplan(byDayflowassessmentplan));
}