Commit d1e3491e authored by zhangjianqian's avatar zhangjianqian

培训计划,添加承包商字段

parent 27762a83
......@@ -89,6 +89,7 @@ public class TTrainPlanController extends BaseController
{
TTrainPlan tTrainPlan = new TTrainPlan();
tTrainPlan.setPlanName(planVo.getPlanName());
tTrainPlan.setPersonnelType(planVo.getPersonnelType());
List<Map<String,Object>> list = (List<Map<String,Object>>) JSON.parse(planVo.getPeopleList());
return AjaxResult.success(tTrainPlanService.insertTTrainPlan(tTrainPlan,list));
}
......@@ -107,6 +108,7 @@ public class TTrainPlanController extends BaseController
TTrainPlan tTrainPlan = new TTrainPlan();
tTrainPlan.setPlanId(planVo.getPlanId());
tTrainPlan.setPlanName(planVo.getPlanName());
tTrainPlan.setPersonnelType(planVo.getPersonnelType());
List<Map<String,Object>> list = (List<Map<String,Object>>) JSON.parse(planVo.getPeopleList());
return toAjax(tTrainPlanService.updateTTrainPlan(tTrainPlan,list));
}
......
......@@ -8,6 +8,8 @@ public class PlanVo {
private String planName;
private Integer personnelType;
private Long[] postIds;
private String peopleList;
......
......@@ -19,6 +19,16 @@
<el-form-item label="计划名称" prop="bankName">
<el-input style="width: 500px" v-model="form.bankName"></el-input>
</el-form-item>
<el-form-item label="人员类型" prop="personnelType">
<el-select v-model="form.personnelType" placeholder="请选择">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<!--<el-form-item label="开始时间" prop="releaseTime">-->
<!--<el-date-picker-->
<!--v-model="form.startTime"-->
......@@ -99,6 +109,13 @@ export default {
},
data() {
return {
options: [{
value: 1,
label: '内部员工'
}, {
value: 2,
label: '承包商培训'
}],
form: {
bankName: "",
// courseType: "",
......@@ -106,6 +123,7 @@ export default {
// video: "",
// enclosure: "",
deptId: null,
personnelType:1,
abc: 0,
},
// 参考人员
......@@ -166,6 +184,7 @@ export default {
this.form = {
bankName: res.data.planName,
deptId: res.data.planId,
personnelType: res.data.personnelType
};
// const data = res.data;
// const { bankName, courseType, courseConent, video, enclosure } =
......
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