Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
Project
Project
Details
Activity
Releases
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
张伯涛
tea-resources-web
Commits
2209307c
Commit
2209307c
authored
Mar 25, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程管理接口初步调整
parent
4349254d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
547 additions
and
460 deletions
+547
-460
indexApi.js
src/api/courseManagement/indexApi.js
+117
-0
courseCatalogues.vue
...s/courseInformation/courseManagement/courseCatalogues.vue
+306
-332
index.vue
src/views/courseInformation/courseManagement/index.vue
+124
-128
No files found.
src/api/courseManagement/indexApi.js
View file @
2209307c
import
request
from
'@/utils/request'
import
Qs
from
"qs"
;
// 课程管理列表查询
export
function
queryBLessonsByPagination
(
query
)
{
...
...
@@ -16,3 +17,119 @@ export function queryBChaptersWithoutAuth(query) {
params
:
query
})
}
// 查询课程方向下拉
export
function
queryDirectionsList
(
query
)
{
return
request
({
url
:
'/bdirection/queryDirectionsList'
,
method
:
'get'
,
params
:
query
})
}
// 课程管理新增
export
function
blessonAdd
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/blesson/add'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理删除
export
function
blessonRemove
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/blesson/remove'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理导入
export
function
excelImport
(
data
)
{
return
request
({
url
:
'/blesson/excelImport'
,
method
:
'post'
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
transformRequest
:
[(
data
)
=>
{
return
data
}],
data
})
}
// 课程管理恢复封面
export
function
defaultUrl
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/blesson/defaultUrl'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理修改封面
export
function
picImport
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/blesson/picImport'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理-目录添加章
export
function
bchapterAdd
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/bchapter/add'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理-目录删除节
export
function
bchapterRemove
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/bchapter/remove'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理-目录章节上移
export
function
updateTopChapter
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/bchapter/updateTopChapter'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理-目录章节下移
export
function
updateDownChapter
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/bchapter/updateDownChapter'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 6.导入
export
function
uploadVideo
(
data
)
{
return
request
({
url
:
'/bvideo/uploadVideo'
,
method
:
'post'
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
transformRequest
:
[(
data
)
=>
{
return
data
}],
data
})
}
src/views/courseInformation/courseManagement/courseCatalogues.vue
View file @
2209307c
This diff is collapsed.
Click to expand it.
src/views/courseInformation/courseManagement/index.vue
View file @
2209307c
This diff is collapsed.
Click to expand it.
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