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 308357b5
authored
Dec 08, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.5.0' of
http://192.168.3.233:8090/saas_plus/dj-car-life-sy…
…stem into SAAS+V5.5.0
2 parents
fab3eac8
2c2dcfc4
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
132 additions
and
38 deletions
src/components/d2-table/index.vue
src/views/serviceCentre/courseManagement/list/components/CategoryTree.vue
src/views/serviceCentre/courseManagement/list/components/course.vue
src/views/serviceCentre/courseManagement/list/index.vue
src/views/serviceCentre/courseManagement/training/add.vue
src/views/serviceCentre/courseManagement/training/components/courseDialog.vue
src/views/serviceCentre/courseManagement/training/components/courseLevel.vue
src/views/serviceCentre/courseManagement/training/components/empDialog.vue
src/views/serviceCentre/examinationManagement/add.vue
src/views/serviceCentre/examinationManagement/components/addLevel.vue
src/views/serviceCentre/examinationManagement/detail.vue
src/views/serviceCentre/examinationManagement/grade.vue
src/components/d2-table/index.vue
View file @
308357b
...
...
@@ -7,6 +7,7 @@
:row-key=
"tableParams.mutiSelectUniqueKey || ''"
v-loading=
"loading"
:border=
"border"
:max-height=
"maxHeight"
:highlight-current-row=
"true"
@
sort-change=
"sortChange"
@
selection-change=
"handleSelect"
...
...
@@ -549,7 +550,9 @@ export default {
type
:
Boolean
,
default
:
true
},
maxHeight
:
{
type
:
Number
|
String
},
noDataImg
:
{
type
:
String
,
default
:
""
...
...
src/views/serviceCentre/courseManagement/list/components/CategoryTree.vue
View file @
308357b
...
...
@@ -170,6 +170,7 @@ export default {
methods
:
{
handleClick
(
node
,
data
)
{
this
.
isClassifyForm
.
parentId
=
""
this
.
isClassifyForm
.
categoryName
=
""
//赋值清空
this
.
isClassifyVisible
=
true
this
.
isClassifyDialogConfig
.
title
=
"新增课程分类"
},
...
...
@@ -180,6 +181,7 @@ export default {
},
isClassifyDialogVisible
()
{
this
.
isClassifyForm
=
{}
this
.
isClassifyForm
.
categoryName
=
""
//赋值清空
this
.
isClassifyVisible
=
!
this
.
isClassifyVisible
},
async
handleClassifyConfirm
(
data
)
{
...
...
@@ -202,11 +204,14 @@ export default {
}
},
async
handleCommand
(
payload
)
{
console
.
log
(
payload
,
"payload"
)
const
{
type
,
node
}
=
typeof
payload
===
"object"
&&
payload
!==
null
?
payload
:
{
type
:
payload
,
node
:
null
}
console
.
log
(
type
)
this
.
isClassifyForm
.
id
=
""
this
.
isClassifyForm
.
categoryName
=
""
//赋值清空
if
(
type
===
"add"
)
{
this
.
isClassifyVisible
=
true
this
.
isClassifyDialogConfig
.
title
=
"新增课程分类"
...
...
@@ -248,12 +253,13 @@ export default {
}
</
script
>
<
style
scoped
>
<
style
scoped
lang=
"scss"
>
.category-tree
{
padding
:
16px
;
background
:
#fff
;
width
:
200px
;
height
:
641px
;
height
:
100%
;
overflow
:
scroll
;
border
:
1px
solid
#e5e5e5
;
.title
{
color
:
#333333
;
...
...
src/views/serviceCentre/courseManagement/list/components/course.vue
View file @
308357b
...
...
@@ -33,6 +33,7 @@
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:sortObj=
"sortObj"
:maxHeight=
"380"
:before-search-fn=
"beforeSearchFn"
>
<!-- 课程标题 -->
...
...
src/views/serviceCentre/courseManagement/list/index.vue
View file @
308357b
<!--
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2025-11-25 17:50:39
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-12-08 17:03:39
* @FilePath: \dj-car-life-system\src\views\serviceCentre\courseManagement\list\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
<div
class=
"course-wrap"
>
<div
class=
"left-pane"
>
...
...
@@ -60,6 +68,8 @@ export default {
.course-wrap
{
margin
:
0
20px
;
display
:
flex
;
height
:
calc
(
100%
-
40px
);
overflow
:
auto
;
.right-pane
{
background
:
#fff
;
width
:
calc
(
100%
-
200px
);
...
...
@@ -68,10 +78,13 @@ export default {
top
:
0
;
bottom
:
0
;
right
:
0
;
height
:
641px
;
height
:
90%
;
::v-deep
.d2-container-full
.d2-container-full__header
{
border-bottom
:
1px
solid
#fff
!important
;
}
}
.left-pane
{
height
:
100%
;
}
}
</
style
>
src/views/serviceCentre/courseManagement/training/add.vue
View file @
308357b
...
...
@@ -291,6 +291,7 @@ export default {
{
label
:
"考试等级"
,
name
:
"levelExamLevels"
,
isHide
:
true
,
addHtml
:
"examinationHtml"
}
],
...
...
@@ -343,7 +344,27 @@ export default {
this
.
getTrainingPlanDetail
()
}
},
watch
:
{
"addForm.orderPermissionStatus"
(
val
)
{
if
(
val
===
0
)
{
this
.
addForm
.
orderPermissionType
=
1
this
.
addForm
.
staffList
=
[]
}
},
"addForm.orderPermissionType"
(
val
)
{
if
(
val
===
2
)
{
this
.
addForm
.
limitTimeParam
=
1
}
},
"addForm.levelExamLevels"
(
val
)
{
this
.
planData
[
this
.
findAttrIdx
(
"planData"
,
"levelExamLevels"
)].
isHide
=
val
.
length
?
false
:
true
}
},
methods
:
{
findAttrIdx
(
formName
,
attrName
)
{
return
this
[
formName
].
findIndex
((
item
)
=>
item
.
name
==
attrName
)
},
//切换等级考试获取考试等级
getLevelExamDetail
(
id
)
{
getLevelExamDetail
({
...
...
@@ -487,15 +508,18 @@ export default {
const
isOk
=
await
this
.
$refs
.
courseLevelRef
.
validateRequiredNotEmpty
()
if
(
!
isOk
)
return
try
{
await
this
.
$confirm
(
"确定是否提交培训计划?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
}
catch
{
return
if
(
status
!==
0
)
{
try
{
await
this
.
$confirm
(
"确定是否提交培训计划?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
}
catch
{
return
}
}
const
{
courseMap
}
=
await
this
.
$refs
.
courseLevelRef
.
buildSubmitPayload
()
let
params
=
{
sceneType
:
this
.
addForm
.
sceneType
,
...
...
src/views/serviceCentre/courseManagement/training/components/courseDialog.vue
View file @
308357b
...
...
@@ -197,6 +197,9 @@ export default {
isVisible
:
{
handler
(
val
)
{
if
(
val
)
{
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
this
.
page
=
this
.
$options
.
data
.
call
(
this
).
page
this
.
$refs
.
seletingTable
.
refreshTable_noApi
()
this
.
getSelectingList
()
this
.
fetchOnboardingPlans
()
// this.recoverySelection()
...
...
src/views/serviceCentre/courseManagement/training/components/courseLevel.vue
View file @
308357b
...
...
@@ -22,8 +22,6 @@
</el-tabs>
</div>
<el-button
type=
"info"
plain
size=
"small"
icon=
"el-icon-plus"
style=
"margin-bottom: 8px"
...
...
@@ -341,6 +339,7 @@ export default {
// 切换等级
switchLevel
(
level
)
{
this
.
currentLevel
=
level
this
.
currentType
=
"1"
},
// 从当前维度移除
...
...
src/views/serviceCentre/courseManagement/training/components/empDialog.vue
View file @
308357b
...
...
@@ -180,7 +180,9 @@ export default {
isVisible
:
{
handler
(
val
)
{
if
(
val
)
{
console
.
log
(
val
,
9999
)
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
this
.
page
=
this
.
$options
.
data
.
call
(
this
).
page
this
.
$refs
.
seletingTable
.
refreshTable_noApi
()
this
.
getSelectingList
()
this
.
fetchOnboardingPlans
()
}
...
...
src/views/serviceCentre/examinationManagement/add.vue
View file @
308357b
...
...
@@ -85,6 +85,18 @@
:form-data=
"setData"
:form-rules=
"formRule"
>
<
template
slot=
"effectiveTimeHtml"
slot-scope=
"scope"
>
<el-date-picker
type=
"datetime"
v-model=
"addForm.effectiveTime"
placeholder=
"选择日期时间"
:picker-options=
"pickerOptions"
format=
"yyyy-MM-dd HH:mm:ss"
default-time=
"00:00:00"
value-format=
"yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
</
template
>
</glsx-combi-form>
</div>
</div>
...
...
@@ -263,6 +275,7 @@ export default {
label
:
"生效时间"
,
name
:
"effectiveTime"
,
isDisabled
:
false
,
addHtml
:
"effectiveTimeHtml"
,
isHide
:
true
,
dateType
:
"datetime"
,
type
:
"datePicker"
...
...
@@ -293,6 +306,13 @@ export default {
postTypeOpt
:
[],
//职务
effectiveOpt
:
deepClone
(
effectiveOpt
)
},
pickerOptions
:
{
// 限制今天当前时间之前的时间(包含小时数)
disabledDate
:
(
time
)
=>
{
return
time
.
getTime
()
<
Date
.
now
()
-
8.64e7
},
selectableRange
:
this
.
getSelectableRange
()
},
formRule
:
{
beisenExamId
:
[
{
required
:
true
,
message
:
"请选择考试名称"
,
trigger
:
"change"
}
...
...
@@ -346,6 +366,11 @@ export default {
}
},
methods
:
{
getSelectableRange
()
{
const
currentDate
=
new
Date
()
currentDate
.
setMinutes
(
currentDate
.
getMinutes
())
return
`
${
currentDate
.
getHours
()}
:
${
currentDate
.
getMinutes
()}
:00 - 23:59:59`
},
getStatusItem
(
baseData
,
optKey
,
row
,
rowKey
)
{
if
(
!
baseData
||
!
baseData
[
optKey
]
||
!
row
)
return
null
let
item
=
baseData
[
optKey
].
find
((
item
)
=>
item
.
confId
==
row
[
rowKey
])
...
...
@@ -447,21 +472,25 @@ export default {
const
ok
=
await
this
.
$refs
.
addLevel
.
onSave
()
if
(
ok
===
false
)
return
// 二次确认
try
{
await
this
.
$confirm
(
"部门考试信息在提交生效后,将无法修改,请确认提交"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
)
}
catch
{
// 用户取消
return
//草稿是3
if
(
status
!==
0
)
{
// 二次确认
try
{
await
this
.
$confirm
(
"部门考试信息在提交生效后,将无法修改,请确认提交"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
)
}
catch
{
// 用户取消
return
}
}
//编辑生效跟未生效保存时,保持原有状态
if
(
this
.
addForm
.
status
==
1
||
this
.
addForm
.
status
==
2
)
{
status
=
this
.
addForm
.
status
...
...
@@ -474,10 +503,9 @@ export default {
examTime
:
this
.
addForm
.
examTime
,
learningCenterPermission
:
this
.
addForm
.
learningCenterPermission
,
effectiveType
:
this
.
addForm
.
effectiveType
,
effectiveTime
:
Util
.
dateFormate
(
this
.
addForm
.
effectiveTime
,
"YYYY-MM-DD HH:mm:ss"
),
effectiveTime
:
this
.
addForm
.
effectiveTime
?
Util
.
dateFormate
(
this
.
addForm
.
effectiveTime
,
"YYYY-MM-DD HH:mm:ss"
)
:
""
,
levelExamLevels
:
this
.
$refs
.
addLevel
.
levels
}
...
...
src/views/serviceCentre/examinationManagement/components/addLevel.vue
View file @
308357b
<
template
>
<!-- ... existing code ... -->
<div
class=
"grade-editor"
>
<el-button
plain
icon=
"el-icon-plus"
type=
"info"
@
click=
"addLevel"
<el-button
plain
icon=
"el-icon-plus"
@
click=
"addLevel"
:disabled=
"status == 2"
>
添加等级
</el-button
>
<el-form
ref=
"levelForm"
:model=
"formModel"
class=
"grade-form"
>
...
...
@@ -57,7 +61,6 @@
placeholder=
"请输入"
:disabled=
"status == 2"
maxlength=
"10"
@
blur=
"onLevelNameBlur(idx)"
@
input=
"onNameInput(scope.$index, $event)"
/>
</el-form-item>
...
...
@@ -102,6 +105,15 @@ export default {
const
name
=
String
(
value
||
""
).
trim
()
if
(
!
name
)
return
cb
(
new
Error
(
"等级名称必填"
))
if
(
name
.
length
>
10
)
return
cb
(
new
Error
(
"最多 10 个字符"
))
const
names
=
(
this
.
levels
||
[])
.
map
((
l
)
=>
String
(
l
&&
l
.
levelName
!=
null
?
l
.
levelName
:
""
).
trim
()
)
.
filter
((
n
)
=>
!!
n
)
const
count
=
names
.
filter
((
n
)
=>
n
===
name
).
length
if
(
count
>
1
)
{
return
cb
(
new
Error
(
"等级名称不可重复"
))
}
cb
()
},
trigger
:
[
"blur"
,
"change"
]
...
...
src/views/serviceCentre/examinationManagement/detail.vue
View file @
308357b
...
...
@@ -152,6 +152,7 @@
</
template
>
</div>
</div>
<div
class=
"message"
>
{{ item.message }}
</div>
</template>
</el-form-item></el-col
>
...
...
@@ -354,7 +355,9 @@ export default {
{
label
:
"等级分数段"
,
formatter
:
(
row
)
=>
{
return
row
.
minScore
||
0
+
"≤分数≤"
+
row
.
maxScore
||
0
return
(
(
row
.
minScore
||
0
)
+
"≤分数≤"
+
(
row
.
maxScore
||
0
)
)
}
},
{
...
...
src/views/serviceCentre/examinationManagement/grade.vue
View file @
308357b
...
...
@@ -85,7 +85,7 @@
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9190408']"
/>
</span>
-->
<!-- 数据 -->
<span
style=
"margin-right: 10px"
>
<span
style=
"margin-right: 10px"
v-if=
"scope.scope.status != 0"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9190406']"
/>
</span>
<!-- 删除 -->
...
...
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