Commit a572940d authored by 赵啸非's avatar 赵啸非

修改自动考核

parent a6ca8eba
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
> >
<el-col :span="5" <el-col :span="5"
>加分/扣分方式:{{ >加分/扣分方式:{{
form.subMethod ? form.subMethod : "--" form.subAddType ? form.subAddType : "--"
}}</el-col }}</el-col
> >
</el-row> </el-row>
...@@ -148,7 +148,8 @@ ...@@ -148,7 +148,8 @@
> >
<el-col :span="8" <el-col :span="8"
>处理人员:{{ >处理人员:{{
form.updateUserId ? form.updateUserId : "--" dict['updateUserId'][form.updateUserId] ? dict['updateUserId'][form.updateUserId] : "--"
}}</el-col }}</el-col
> >
<el-col :span="8" <el-col :span="8"
...@@ -482,13 +483,14 @@ export default { ...@@ -482,13 +483,14 @@ export default {
// 是否显示弹出层 // 是否显示弹出层
open: false, open: false,
direction: "rtl", direction: "rtl",
toString: ["subMethod", "subAddType", "processStatus", "appealResult"], toString: ["subMethod", "subAddType", "processStatus", "appealResult", "updateUserId"],
toDate: [ toDate: [
"attendanceDate", "attendanceDate",
"errorTime", "errorTime",
"actualAttendTime", "actualAttendTime",
"checkTime", "checkTime",
"appealTime", "appealTime",
], ],
// 表单校验 // 表单校验
rules: { rules: {
......
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
{ label: "违规类型", prop: "irregularOtherType" }, { label: "违规类型", prop: "irregularOtherType" },
{ label: "绩效规则", prop: "ruleName" }, { label: "绩效规则", prop: "ruleName" },
{ label: "加分/扣分方式", prop: "subMethod", formatter: this.formatter }, { label: "加分/扣分方式", prop: "subAddType", formatter: this.formatter },
{ {
label: "加分/扣分时间", label: "加分/扣分时间",
......
...@@ -8,8 +8,11 @@ import com.mortals.framework.model.PageInfo; ...@@ -8,8 +8,11 @@ import com.mortals.framework.model.PageInfo;
import com.mortals.framework.model.Result; import com.mortals.framework.model.Result;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.base.system.user.model.UserQuery;
import com.mortals.xhx.base.system.user.service.UserService;
import com.mortals.xhx.common.code.EnabledEnum; import com.mortals.xhx.common.code.EnabledEnum;
import com.mortals.xhx.common.code.IrregularTypeEnum; import com.mortals.xhx.common.code.IrregularTypeEnum;
import com.mortals.xhx.common.code.ProcessStatusEnum;
import com.mortals.xhx.common.code.YesNoEnum; import com.mortals.xhx.common.code.YesNoEnum;
import com.mortals.xhx.module.perform.model.vo.AppealInfo; import com.mortals.xhx.module.perform.model.vo.AppealInfo;
import com.mortals.xhx.module.perform.model.vo.AppealSummaryQuery; import com.mortals.xhx.module.perform.model.vo.AppealSummaryQuery;
...@@ -42,6 +45,7 @@ import org.springframework.web.bind.annotation.*; ...@@ -42,6 +45,7 @@ import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*; import static com.mortals.framework.ap.SysConstains.*;
import static java.util.stream.Collectors.toMap;
/** /**
* 绩效记录申诉信息 * 绩效记录申诉信息
...@@ -55,6 +59,9 @@ public class PerformAttendAppealController extends BaseCRUDJsonBodyMappingContro ...@@ -55,6 +59,9 @@ public class PerformAttendAppealController extends BaseCRUDJsonBodyMappingContro
@Autowired @Autowired
private ParamService paramService; private ParamService paramService;
@Autowired
private UserService userService;
public PerformAttendAppealController() { public PerformAttendAppealController() {
super.setModuleDesc("绩效记录申诉信息"); super.setModuleDesc("绩效记录申诉信息");
...@@ -62,9 +69,12 @@ public class PerformAttendAppealController extends BaseCRUDJsonBodyMappingContro ...@@ -62,9 +69,12 @@ public class PerformAttendAppealController extends BaseCRUDJsonBodyMappingContro
@Override @Override
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "updateUserId", userService.find(new UserQuery()).stream().collect(toMap(x -> x.getId().toString(), y -> y.getRealName(), (o, n) -> n)));
this.addDict(model, "subMethod", paramService.getParamBySecondOrganize("PerformAttendAppeal", "subMethod")); this.addDict(model, "subMethod", paramService.getParamBySecondOrganize("PerformAttendAppeal", "subMethod"));
this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("PerformAttendAppeal", "subAddType")); this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("PerformAttendAppeal", "subAddType"));
this.addDict(model, "processStatus", paramService.getParamBySecondOrganize("PerformAttendAppeal", "processStatus")); this.addDict(model, "processStatus", ProcessStatusEnum.getEnumMap());
this.addDict(model, "appealResult", paramService.getParamBySecondOrganize("PerformAttendAppeal", "appealResult")); this.addDict(model, "appealResult", paramService.getParamBySecondOrganize("PerformAttendAppeal", "appealResult"));
this.addDict(model, "reviewResult", paramService.getParamBySecondOrganize("PerformAttendAppeal", "reviewResult")); this.addDict(model, "reviewResult", paramService.getParamBySecondOrganize("PerformAttendAppeal", "reviewResult"));
this.addDict(model, "reviewSource", paramService.getParamBySecondOrganize("PerformAttendAppeal", "reviewSource")); this.addDict(model, "reviewSource", paramService.getParamBySecondOrganize("PerformAttendAppeal", "reviewSource"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment