Commit d1e3491e authored by zhangjianqian's avatar zhangjianqian

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

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