From a9092c13255ef2fd6cb35fccfafd38f24c2ea2f8 Mon Sep 17 00:00:00 2001 From: zhanglipeng Date: Mon, 1 Feb 2021 17:14:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BC=E5=84=BF=E5=9B=AD=E4=B8=80=E6=97=A5?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E8=AF=84=E4=BC=B0=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../benyi/dayflowassessmentplan/index.vue | 122 +++++++++++++++--- .../ByDayflowassessmentplanController.java | 3 + 2 files changed, 104 insertions(+), 21 deletions(-) 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" > - + - + + + - + - + + + @@ -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)); }