Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
legobackend
/
lego-manage-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
731040c1
authored
2026-04-18 09:44:31 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
a49498f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletions
src/api/legao/course.js
src/views/legao/course/index.vue
src/api/legao/course.js
View file @
731040c
...
...
@@ -9,6 +9,14 @@ export function getCourseList(data) {
})
}
// 同步数据至阿里云vod
export
function
sync
()
{
return
request
({
url
:
'/system/oss/sync/'
,
method
:
'get'
})
}
// 新增
export
function
addCourse
(
data
)
{
return
request
({
...
...
src/views/legao/course/index.vue
View file @
731040c
...
...
@@ -23,6 +23,9 @@
<el-form-item
label=
""
>
<el-button
type=
"primary"
icon=
"Search"
@
click=
"btn_search"
>
查询
</el-button>
</el-form-item>
<el-form-item
label=
""
>
<el-button
type=
"primary"
icon=
"Search"
@
click=
"btn_sync"
>
同步
</el-button>
</el-form-item>
</el-form>
<!-- 列表操作 -->
<el-col
:span=
"1.5"
>
...
...
@@ -199,7 +202,7 @@
<
script
setup
name=
"ruleManager"
>
import
{
useTableHeight
}
from
'@/hooks/useTableHeight'
// 导入api接口
import
{
getCourseList
,
addCourse
,
editCourse
,
delCourse
,
displayCourse
,
batchDisplayCourse
,
hideCourse
,
batchHideCourse
}
from
'@/api/legao/course'
import
{
getCourseList
,
addCourse
,
editCourse
,
delCourse
,
displayCourse
,
batchDisplayCourse
,
hideCourse
,
batchHideCourse
,
sync
}
from
'@/api/legao/course'
import
{
getEntiretyists
}
from
'@/api/legao/kit'
import
{
reactive
,
toRefs
}
from
'vue'
;
const
{
windowSize
}
=
useTableHeight
(
'max-height'
)
...
...
@@ -274,6 +277,18 @@ function getList () {
})
}
// 同步数据至阿里云vod
function
syncFile
()
{
status
.
loading
=
true
sync
()
.
then
((
res
)
=>
{
})
.
finally
(()
=>
{
status
.
loading
=
false
})
}
// 系列
function
getBlockLists
()
{
getEntiretyists
().
then
((
res
)
=>
{
...
...
@@ -287,6 +302,11 @@ function btn_search () {
getList
()
}
// 同步
function
btn_sync
()
{
syncFile
()
}
// 单条编辑
function
handleEdit
(
row
)
{
getBlockLists
()
...
...
Write
Preview
Styling with
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