周计划和详细 页面优化

This commit is contained in:
sk1551 2020-08-29 10:52:00 +08:00
parent 64281f5d49
commit 49b8014970
4 changed files with 14 additions and 9 deletions

View File

@ -184,9 +184,9 @@
:picker-options="pickerOptions7"
>></el-date-picker>
</el-form-item>
<el-form-item label="星期" prop="day">
<!-- <el-form-item label="星期" prop="day">
<el-input v-model="form.day" placeholder="请输入星期几" />
</el-form-item>
</el-form-item> -->
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
@ -279,9 +279,9 @@ export default {
activitytime: [
{ required: true, message: "活动时间不能为空", trigger: "blur" }
],
day: [
{ required: true, message: "星期不能为空", trigger: "blur" }
]
// day: [
// { required: true, message: "", trigger: "blur" }
// ]
}
};
},

View File

@ -191,7 +191,7 @@ export default {
tpid: undefined,
themeconent: undefined,
createuserid: undefined,
updateuserid: undefined,
updateuserid: undefined
},
//
form: {},
@ -306,7 +306,7 @@ export default {
createuserid: undefined,
month: undefined,
updateuserid: undefined,
updateTime: undefined,
updateTime: undefined
};
this.resetForm("form");
this.themeList = [];

View File

@ -3,6 +3,7 @@ package com.ruoyi.project.benyi.controller;
import java.util.List;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.project.common.SchoolCommon;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@ -34,6 +35,8 @@ public class ByPlanweekitemController extends BaseController
{
@Autowired
private IByPlanweekitemService byPlanweekitemService;
@Autowired
private SchoolCommon schoolCommon;
/**
* 查询周计划(家长和教育部门细化)列表
@ -79,6 +82,7 @@ public class ByPlanweekitemController extends BaseController
public AjaxResult add(@RequestBody ByPlanweekitem byPlanweekitem)
{
byPlanweekitem.setCreateuserid(SecurityUtils.getLoginUser().getUser().getUserId());
byPlanweekitem.setDay("星期" + String.valueOf(schoolCommon.dateToWeek(byPlanweekitem.getActivitytime())));
return toAjax(byPlanweekitemService.insertByPlanweekitem(byPlanweekitem));
}
@ -91,6 +95,7 @@ public class ByPlanweekitemController extends BaseController
public AjaxResult edit(@RequestBody ByPlanweekitem byPlanweekitem)
{
byPlanweekitem.setUpdateuserid(SecurityUtils.getLoginUser().getUser().getUserId());
byPlanweekitem.setDay("星期" + String.valueOf(schoolCommon.dateToWeek(byPlanweekitem.getActivitytime())));
return toAjax(byPlanweekitemService.updateByPlanweekitem(byPlanweekitem));
}

View File

@ -18,7 +18,7 @@
</resultMap>
<sql id="selectByPlanweekitemVo">
select id, wid, activitytype, content, activitytime, createuserid, create_time, updateuserid, update_time from by_planweekitem
select id, wid, activitytype, content, activitytime, createuserid, create_time, updateuserid, update_time, day from by_planweekitem
</sql>
<select id="selectByPlanweekitemList" parameterType="ByPlanweekitem" resultMap="ByPlanweekitemResult">