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 eeee5cfa
authored
May 21, 2026
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.8.1' of
http://192.168.3.233:8090/saas_plus/dj-car-life-sy…
…stem into SAAS+V5.8.1
2 parents
091b7605
a17046fe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
194 additions
and
36 deletions
src/api/serviceCentre.js
src/views/serviceCentre/longCourse/components/allocation.vue
src/views/serviceCentre/longCourse/components/allocationDialog.vue
src/views/serviceCentre/longCourse/components/couseAllocation.vue
src/api/serviceCentre.js
View file @
eeee5cf
...
...
@@ -364,4 +364,10 @@ export function importLightChangePhone(data) {
data
.
method
=
`
${
path
}
servicecenter.short.course.phone.import`
;
// 文件参数不参与签名拼接(参考 importProfit)
return
request
(
data
,
RequestMethods
.
POST
,
[
"file"
]);
}
// 课程管理-查询课程分类树
export
function
getCourseCategoryList
(
data
=
{})
{
data
.
method
=
`
${
path
}
servicecenter.course.category.list`
;
return
request
(
data
,
RequestMethods
.
POST
);
}
\ No newline at end of file
src/views/serviceCentre/longCourse/components/allocation.vue
View file @
eeee5cf
...
...
@@ -11,26 +11,59 @@
</div>
</div>
<div
class=
"content gl-form-page"
>
<!--
<el-form
:inline=
"true"
:model=
"courseForm"
class=
"form-inline"
>
<el-form-item>
<el-input
v-model=
"courseForm.tagSearch"
prefix-icon=
"el-icon-search"
placeholder=
"课程/标签搜索"
>
</el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"resetForm"
>
重置
</el-button>
</el-form-item>
</el-form>
-->
<el-form
:model=
"courseForm"
class=
"allocation-filter-form"
size=
"small"
label-width=
"60px"
>
<div
class=
"form-row"
>
<el-form-item
label=
"课程搜索:"
>
<el-input
v-model=
"courseForm.courseName"
prefix-icon=
"el-icon-search"
placeholder=
"课程/标签搜索"
clearable
/>
</el-form-item>
<el-form-item
label=
"所属目录:"
>
<el-select
v-model=
"courseForm.categoryName"
placeholder=
"全部"
clearable
>
<el-option
label=
"全部"
value=
""
/>
<el-option
v-for=
"item in catalogOptions"
:key=
"item"
:label=
"item"
:value=
"item"
/>
</el-select>
</el-form-item>
</div>
<div
class=
"form-row"
>
<el-form-item
label=
"标签:"
>
<el-input
v-model=
"courseForm.tagSearch"
placeholder=
"请输入标签"
clearable
/>
</el-form-item>
<el-form-item
label=
"发布时间:"
>
<el-date-picker
v-model=
"courseForm.publishTimeRange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始"
end-placeholder=
"结束"
>
</el-date-picker>
</el-form-item>
</div>
<div
class=
"form-row form-row-btns"
>
<el-form-item>
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"resetForm"
>
重置
</el-button>
</el-form-item>
</div>
</el-form>
<d2-table
ref=
"table"
:table-data=
"courseList"
:table-params=
"tableParams"
...
...
@@ -40,7 +73,7 @@
:page-size=
"pageSize"
:layout=
"paginationLayout"
:pager-count=
"pagerCount"
:max-height=
"3
85
"
:max-height=
"3
20
"
@
refreshTable=
"handleRefreshTable"
@
selectionTable=
"handleCheckedChange('left', $event)"
>
<!-- 课程名称 -->
...
...
@@ -175,8 +208,9 @@
</template>
<
script
>
import
{
getCourseCategoryList
}
from
"@/api/serviceCentre"
;
import
{
courseFileTypeOpt
}
from
"@/common/constants.js"
;
import
{
deepClone
}
from
"@/common/util"
;
import
{
deepClone
,
Util
}
from
"@/common/util"
;
export
default
{
name
:
"Allocation"
,
...
...
@@ -197,9 +231,13 @@ export default {
data
()
{
return
{
courseForm
:
{
courseName
:
""
,
categoryName
:
""
,
tagSearch
:
""
,
publishTimeRange
:
[],
queryAll
:
false
,
},
catalogOptions
:
[],
suppressSelectionEvent
:
false
,
selected
:
[],
selectCourseList
:
[],
...
...
@@ -246,6 +284,16 @@ export default {
addHtml
:
"courseName"
,
},
{
label
:
"所属目录"
,
prop
:
"categoryName"
,
width
:
"88px"
,
},
{
label
:
"标签"
,
prop
:
"tagName"
,
width
:
"88px"
,
},
{
label
:
"课程状态"
,
prop
:
"courseStatus"
,
width
:
"88px"
,
...
...
@@ -269,6 +317,16 @@ export default {
prop
:
"courseTotalDuration"
,
width
:
94
,
},
{
label
:
"发布时间"
,
prop
:
"publishTime"
,
width
:
94
,
formatter
:
(
row
)
=>
{
return
row
.
publishTime
?
Util
.
dateFormate
(
row
.
publishTime
,
"YYYY-MM-DD"
)
:
"-"
;
},
},
],
},
selecTableParams
:
{
...
...
@@ -283,6 +341,16 @@ export default {
addHtml
:
"courseName"
,
},
{
label
:
"所属目录"
,
prop
:
"categoryName"
,
width
:
"88px"
,
},
{
label
:
"标签"
,
prop
:
"tagName"
,
width
:
"88px"
,
},
{
label
:
"课程状态"
,
prop
:
"courseStatus"
,
width
:
"88px"
,
...
...
@@ -306,6 +374,16 @@ export default {
prop
:
"courseTotalDuration"
,
width
:
92
,
},
{
label
:
"发布时间"
,
prop
:
"publishTime"
,
width
:
94
,
formatter
:
(
row
)
=>
{
return
row
.
publishTime
?
Util
.
dateFormate
(
row
.
publishTime
,
"YYYY-MM-DD"
)
:
"-"
;
},
},
],
},
baseData
:
{
...
...
@@ -340,9 +418,15 @@ export default {
},
},
// computed
mounted
()
{},
mounted
()
{
this
.
loadCatalogOptions
();
},
methods
:
{
loadCatalogOptions
()
{
getCourseCategoryList
().
then
((
res
)
=>
{
this
.
catalogOptions
=
res
||
[];
});
},
getStatusItem
(
baseData
,
optKey
,
row
,
rowKey
)
{
if
(
!
baseData
||
!
baseData
[
optKey
]
||
!
row
)
return
null
;
...
...
@@ -441,11 +525,22 @@ export default {
this
.
$emit
(
"handleCourse"
,
this
.
selectCourseList
);
},
getAllocationParams
()
{
return
{
...
this
.
courseForm
,
const
{
publishTimeRange
,
...
formData
}
=
this
.
courseForm
;
const
params
=
{
...
formData
,
publishTimeStart
:
""
,
publishTimeEnd
:
""
,
currentPage
:
this
.
page
.
currentPage
,
pageSize
:
this
.
page
.
pageSize
,
};
if
(
publishTimeRange
&&
publishTimeRange
.
length
===
2
)
{
params
.
publishTimeStart
=
`
${
Util
.
dateFormate
(
publishTimeRange
[
0
],
"YYYY-MM-DD"
)}
00:00:00`
;
params
.
publishTimeEnd
=
`
${
Util
.
dateFormate
(
publishTimeRange
[
1
],
"YYYY-MM-DD"
)}
23:59:59`
;
}
return
params
;
},
resetPagination
()
{
this
.
page
=
{
...
...
@@ -574,7 +669,14 @@ export default {
});
},
resetForm
()
{
this
.
courseForm
.
tagSearch
=
""
;
const
{
queryAll
}
=
this
.
courseForm
;
this
.
courseForm
=
{
courseName
:
""
,
categoryName
:
""
,
tagSearch
:
""
,
publishTimeRange
:
[],
queryAll
,
};
// 重置将刷新列表,屏蔽 selection 事件以保留已选
this
.
suppressSelectionEvent
=
true
;
this
.
resetPagination
();
...
...
@@ -595,18 +697,69 @@ export default {
display
:
flex
;
align-content
:
center
;
.form-inline
{
margin-left
:
16px
;
margin-bottom
:
21px
;
.allocation-filter-form
{
margin
:
0
16px
12px
;
::v-deep
.form-row
{
display
:
flex
;
align-items
:
flex-start
;
.el-form-item
{
flex
:
1
;
min-width
:
0
;
margin-right
:
0
;
margin-bottom
:
10px
;
display
:
flex
;
align-items
:
center
;
&:first-child
{
padding-right
:
8px
;
}
.el-form-item__label
{
float
:
none
;
flex
:
0
0
80px
;
width
:
80px
!important
;
line-height
:
32px
;
padding-right
:
8px
;
text-align
:
left
;
}
.el-form-item__content
{
float
:
none
;
flex
:
1
;
min-width
:
0
;
width
:
auto
!important
;
height
:
auto
!important
;
margin-left
:
0
!important
;
line-height
:
32px
;
.el-input,
.el-select,
.el-date-editor
{
width
:
100%
!important
;
}
}
}
}
::v-deep
.form-row-btns
{
justify-content
:
flex-end
;
.el-form-item
{
flex
:
none
;
width
:
auto
;
box-sizing
:
border-box
;
&:first-child
{
padding-right
:
0
;
}
.el-form-item__content
{
display
:
flex
;
justify-content
:
flex-end
;
}
}
}
}
.left
{
width
:
48
8px
;
width
:
56
8px
;
height
:
568px
;
border
:
1px
solid
#e5e5e5
;
}
.right
,
.left
{
width
:
48
8px
;
width
:
52
8px
;
height
:
568px
;
border
:
1px
solid
#e5e5e5
;
}
...
...
@@ -712,7 +865,6 @@ export default {
.el-form-item__content
{
height
:
32px
;
//
width
:
231px
;
}
.el-form
.el-button
{
width
:
52px
;
...
...
src/views/serviceCentre/longCourse/components/allocationDialog.vue
View file @
eeee5cf
<
template
>
<d2-dialog
title=
"新增课程"
:is-visible
.
sync=
"isVisible"
width=
"1
04
0px"
width=
"1
12
0px"
btn-ok-label=
"确定"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
...
...
src/views/serviceCentre/longCourse/components/couseAllocation.vue
View file @
eeee5cf
...
...
@@ -175,9 +175,9 @@
@
handleMultiple=
"handleConfirmMultiple"
>
</MultipleDialog>
<!-- 新增课程 -->
<AllocationDialog
v-if=
"isVisible"
<AllocationDialog
v-if=
"
!
isVisible"
ref=
"allocationDialog"
:is-visible=
"isVisible"
:is-visible=
"
!
isVisible"
:selected-rows=
"selectStaffCourseList"
:staff-item=
"staffItem"
@
handleClose=
"handleCloseCouseDialog"
...
...
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