731040c1 by chentao

no message

1 parent a49498f6
......@@ -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({
......
......@@ -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()
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!