Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 09915ef0
authored
Dec 12, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复二轮bug
1 parent
dc4aac23
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
41 deletions
src/router/modules/919_serviceCentre.js
src/views/serviceCentre/courseManagement/training/add.vue
src/views/serviceCentre/courseManagement/training/components/courseLevel.vue
src/views/serviceCentre/examinationManagement/add.vue
src/views/serviceCentre/examinationManagement/components/addLevel.vue
src/router/modules/919_serviceCentre.js
View file @
09915ef
...
@@ -93,7 +93,7 @@ export const routerName = {
...
@@ -93,7 +93,7 @@ export const routerName = {
addRoutePath
:
[
addRoutePath
:
[
{
{
authId
:
"91905"
,
authId
:
"91905"
,
name
:
"
新建
考试"
,
name
:
"
等级
考试"
,
parentId
:
"91904"
parentId
:
"91904"
}
}
]
]
...
@@ -156,7 +156,7 @@ export const routerName = {
...
@@ -156,7 +156,7 @@ export const routerName = {
path
:
"/addExamination"
,
path
:
"/addExamination"
,
name
:
"addExamination"
,
name
:
"addExamination"
,
meta
:
{
meta
:
{
title
:
"
新增
考试"
,
title
:
"
等级
考试"
,
authId
:
"91905"
,
authId
:
"91905"
,
parentId
:
"91904"
,
parentId
:
"91904"
,
cache
:
false
,
cache
:
false
,
...
@@ -196,7 +196,7 @@ export const routerName = {
...
@@ -196,7 +196,7 @@ export const routerName = {
addRoutePath
:
[
addRoutePath
:
[
{
{
authId
:
"91908"
,
authId
:
"91908"
,
name
:
"
新增
培训计划"
,
name
:
"
课程
培训计划"
,
parentId
:
"91907"
parentId
:
"91907"
}
}
]
]
...
@@ -269,7 +269,7 @@ export const routerName = {
...
@@ -269,7 +269,7 @@ export const routerName = {
path
:
"/addTraining"
,
path
:
"/addTraining"
,
name
:
"addTraining"
,
name
:
"addTraining"
,
meta
:
{
meta
:
{
title
:
"
新增
培训计划"
,
title
:
"
课程
培训计划"
,
authId
:
"91908"
,
authId
:
"91908"
,
parentId
:
"91907"
,
parentId
:
"91907"
,
cache
:
false
,
cache
:
false
,
...
...
src/views/serviceCentre/courseManagement/training/add.vue
View file @
09915ef
...
@@ -107,7 +107,10 @@
...
@@ -107,7 +107,10 @@
>
>
<template
slot=
"enableHtml"
slot-scope=
"scope"
>
<template
slot=
"enableHtml"
slot-scope=
"scope"
>
<!-- 考试等级 -->
<!-- 考试等级 -->
<el-radio-group
v-model=
"addForm.orderPermissionType"
>
<el-radio-group
v-model=
"addForm.orderPermissionType"
@
change=
"changeOrderPermissionType"
>
<div
class=
"order-permission-radio"
>
<div
class=
"order-permission-radio"
>
<el-radio
:label=
"1"
<el-radio
:label=
"1"
>
锁定开单权限,完成培训计划后开放
</el-radio
>
锁定开单权限,完成培训计划后开放
</el-radio
...
@@ -355,17 +358,17 @@ export default {
...
@@ -355,17 +358,17 @@ export default {
this
.
addForm
.
staffList
=
[]
this
.
addForm
.
staffList
=
[]
}
}
},
},
"addForm.orderPermissionType"
(
val
)
{
if
(
val
===
2
)
{
this
.
addForm
.
limitTimeParam
=
1
}
},
"addForm.levelExamLevels"
(
val
)
{
"addForm.levelExamLevels"
(
val
)
{
this
.
planData
[
this
.
findAttrIdx
(
"planData"
,
"levelExamLevels"
)].
isHide
=
this
.
planData
[
this
.
findAttrIdx
(
"planData"
,
"levelExamLevels"
)].
isHide
=
val
.
length
?
false
:
true
val
.
length
?
false
:
true
}
}
},
},
methods
:
{
methods
:
{
changeOrderPermissionType
(
val
)
{
if
(
val
===
2
)
{
this
.
addForm
.
limitTimeParam
=
1
}
},
validatePlanNameChars
(
rule
,
value
,
callback
)
{
validatePlanNameChars
(
rule
,
value
,
callback
)
{
// 允许:中文、英文、数字、空格、-、_、()
// 允许:中文、英文、数字、空格、-、_、()
const
pattern
=
/^
[\u
4e00-
\u
9fa5A-Za-z0-9_
\-\s
()
]
+$/
const
pattern
=
/^
[\u
4e00-
\u
9fa5A-Za-z0-9_
\-\s
()
]
+$/
...
@@ -374,7 +377,7 @@ export default {
...
@@ -374,7 +377,7 @@ export default {
return
callback
()
return
callback
()
}
}
if
(
!
pattern
.
test
(
value
))
{
if
(
!
pattern
.
test
(
value
))
{
return
callback
(
new
Error
(
"名称仅允许中英文、数字、
空格、
- _ ()"
))
return
callback
(
new
Error
(
"名称仅允许中英文、数字、- _ ()"
))
}
}
callback
()
callback
()
},
},
...
@@ -399,6 +402,7 @@ export default {
...
@@ -399,6 +402,7 @@ export default {
id
id
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
this
.
isUpdate
=
true
this
.
isUpdate
=
true
console
.
log
(
res
)
this
.
addForm
.
levelExamLevels
=
res
.
examLevel
?
res
.
examLevel
:
[]
this
.
addForm
.
levelExamLevels
=
res
.
examLevel
?
res
.
examLevel
:
[]
})
})
},
},
...
@@ -406,6 +410,7 @@ export default {
...
@@ -406,6 +410,7 @@ export default {
getTrainingPlanDetail
({
getTrainingPlanDetail
({
id
:
this
.
id
id
:
this
.
id
}).
then
(
async
(
res
)
=>
{
}).
then
(
async
(
res
)
=>
{
console
.
log
(
res
,
9999
)
Object
.
assign
(
this
.
addForm
,
res
,
{
Object
.
assign
(
this
.
addForm
,
res
,
{
levelExamLevels
:
res
.
levelExamLevels
?
res
.
levelExamLevels
:
[],
levelExamLevels
:
res
.
levelExamLevels
?
res
.
levelExamLevels
:
[],
courseMap
:
res
.
courseMapObject
,
courseMap
:
res
.
courseMapObject
,
...
@@ -438,7 +443,8 @@ export default {
...
@@ -438,7 +443,8 @@ export default {
pageSize
:
9999
,
pageSize
:
9999
,
currentPage
:
1
,
currentPage
:
1
,
notRelatedPlan
:
true
,
notRelatedPlan
:
true
,
planId
:
this
.
id
planId
:
this
.
id
,
statusList
:
[
1
,
2
]
})
})
])
])
this
.
baseData
.
LevelExamList
=
LevelExamList
.
list
this
.
baseData
.
LevelExamList
=
LevelExamList
.
list
...
...
src/views/serviceCentre/courseManagement/training/components/courseLevel.vue
View file @
09915ef
...
@@ -433,8 +433,6 @@ export default {
...
@@ -433,8 +433,6 @@ export default {
}
}
}
}
.type-row
{
.type-row
{
display
:
flex
;
align-items
:
center
;
::v-deep
.el-tabs__nav
{
::v-deep
.el-tabs__nav
{
display
:
flex
;
display
:
flex
;
}
}
...
...
src/views/serviceCentre/examinationManagement/add.vue
View file @
09915ef
...
@@ -270,14 +270,16 @@ export default {
...
@@ -270,14 +270,16 @@ export default {
optionId
:
"confId"
,
optionId
:
"confId"
,
optionLabel
:
"confValue"
,
optionLabel
:
"confValue"
,
optionsName
:
"effectiveOpt"
,
optionsName
:
"effectiveOpt"
,
handleRadioChange
:
()
=>
{}
handleRadioChange
:
(
val
)
=>
{
this
.
handleChangeEffectiveType
(
val
)
}
},
},
{
{
label
:
"生效时间"
,
label
:
"生效时间"
,
name
:
"effectiveTime"
,
name
:
"effectiveTime"
,
isDisabled
:
false
,
isDisabled
:
false
,
addHtml
:
"effectiveTimeHtml"
,
addHtml
:
"effectiveTimeHtml"
,
isHide
:
tru
e
,
isHide
:
fals
e
,
dateType
:
"datetime"
,
dateType
:
"datetime"
,
type
:
"datePicker"
type
:
"datePicker"
},
},
...
@@ -342,22 +344,6 @@ export default {
...
@@ -342,22 +344,6 @@ export default {
}
}
}
}
},
},
watch
:
{
"addForm.effectiveType"
(
val
)
{
// 状态生效、失效时,仅展示生效时间
if
(
!
(
this
.
addForm
.
status
==
2
)
||
!
(
this
.
addForm
.
status
==
3
)
||
(
this
.
id
!==
0
&&
!
this
.
id
)
)
{
this
.
setData
[
this
.
findAttrIdx
(
"setData"
,
"effectiveTime"
)].
isHide
=
val
==
2
?
false
:
true
}
if
((
this
.
addForm
.
status
==
1
||
this
.
addForm
.
status
==
0
)
&&
val
==
1
)
{
this
.
addForm
.
effectiveTime
=
""
}
}
},
async
created
()
{
async
created
()
{
this
.
getOptionsList
(
this
,
"setData"
,
false
)
this
.
getOptionsList
(
this
,
"setData"
,
false
)
...
@@ -369,9 +355,16 @@ export default {
...
@@ -369,9 +355,16 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
handleChangeEffectiveType
(
val
)
{
this
.
setData
[
this
.
findAttrIdx
(
"setData"
,
"effectiveTime"
)].
isHide
=
val
==
2
?
false
:
true
if
(
val
==
1
)
{
this
.
addForm
.
effectiveTime
=
""
}
},
getSelectableRange
()
{
getSelectableRange
()
{
const
currentDate
=
new
Date
()
const
currentDate
=
new
Date
()
currentDate
.
setMinutes
(
currentDate
.
getMinutes
())
currentDate
.
setMinutes
(
currentDate
.
getMinutes
()
+
30
)
return
`
${
currentDate
.
getHours
()}
:
${
currentDate
.
getMinutes
()}
:00 - 23:59:59`
return
`
${
currentDate
.
getHours
()}
:
${
currentDate
.
getMinutes
()}
:00 - 23:59:59`
},
},
getStatusItem
(
baseData
,
optKey
,
row
,
rowKey
)
{
getStatusItem
(
baseData
,
optKey
,
row
,
rowKey
)
{
...
@@ -406,10 +399,11 @@ export default {
...
@@ -406,10 +399,11 @@ export default {
handleDisabledForm
()
{
handleDisabledForm
()
{
//草稿 、未生效
//草稿 、未生效
if
(
this
.
addForm
.
status
==
0
||
this
.
addForm
.
status
==
1
)
{
if
(
this
.
addForm
.
status
==
0
||
this
.
addForm
.
status
==
1
)
{
//考试职务不可编辑
this
.
setData
[
// this.formData[
this
.
findAttrIdx
(
"setData"
,
"updateEffectiveTime"
)
// this.findAttrIdx("formData", "positionCode")
].
isHide
=
true
// ].isDisabled = true
this
.
setData
[
this
.
findAttrIdx
(
"setData"
,
"effectiveTime"
)].
isHide
=
this
.
addForm
.
effectiveType
==
1
?
true
:
false
}
else
{
}
else
{
//考试职务不可编辑
//考试职务不可编辑
this
.
formData
[
this
.
formData
[
...
...
src/views/serviceCentre/examinationManagement/components/addLevel.vue
View file @
09915ef
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
plain
plain
icon=
"el-icon-plus"
icon=
"el-icon-plus"
@
click=
"addLevel"
@
click=
"addLevel"
:disabled=
"status == 2"
:disabled=
"status == 2
|| status == 1
"
>
添加等级
</el-button
>
添加等级
</el-button
>
>
<el-form
ref=
"levelForm"
:model=
"formModel"
class=
"grade-form"
>
<el-form
ref=
"levelForm"
:model=
"formModel"
class=
"grade-form"
>
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<el-input
<el-input
v-model=
"levels[scope.$index].maxScore"
v-model=
"levels[scope.$index].maxScore"
placeholder=
"请输入"
placeholder=
"请输入"
:disabled=
"status == 2"
:disabled=
"status == 2
|| status == 1
"
style=
"width: 140px"
style=
"width: 140px"
@
input=
"onMaxInput(scope.$index, $event)"
@
input=
"onMaxInput(scope.$index, $event)"
/>
/>
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<el-input
<el-input
v-model=
"levels[scope.$index].levelName"
v-model=
"levels[scope.$index].levelName"
placeholder=
"请输入"
placeholder=
"请输入"
:disabled=
"status == 2"
:disabled=
"status == 2
|| status == 1
"
maxlength=
"10"
maxlength=
"10"
@
input=
"onNameInput(scope.$index, $event)"
@
input=
"onNameInput(scope.$index, $event)"
/>
/>
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
label=
"操作"
label=
"操作"
width=
"68"
width=
"68"
align=
"center"
align=
"center"
v-if=
"status
!= 2
"
v-if=
"status
== 0
"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-link
<el-link
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment