Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
d1e3491e
Commit
d1e3491e
authored
Dec 23, 2022
by
zhangjianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
培训计划,添加承包商字段
parent
27762a83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
TTrainPlanController.java
...com/zehong/web/controller/train/TTrainPlanController.java
+2
-0
PlanVo.java
...tem/src/main/java/com/zehong/system/domain/vo/PlanVo.java
+2
-0
Lesson.vue
...s/educationPlanExam/trainingProgram/components/Lesson.vue
+19
-0
No files found.
danger-manage-admin/src/main/java/com/zehong/web/controller/train/TTrainPlanController.java
View file @
d1e3491e
...
@@ -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
));
}
}
...
...
danger-manage-system/src/main/java/com/zehong/system/domain/vo/PlanVo.java
View file @
d1e3491e
...
@@ -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
;
...
...
danger-manage-web/src/views/educationPlanExam/trainingProgram/components/Lesson.vue
View file @
d1e3491e
...
@@ -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 } =
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment