Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
8bceda16
提交
8bceda16
authored
6月 17, 2022
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bug
上级
45ecf677
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
57 行增加
和
27 行删除
+57
-27
Protocol.vue
src/components/base/Protocol.vue
+20
-0
Operation.vue
src/modules/resource/courseware/components/Operation.vue
+2
-2
List.vue
src/modules/resource/courseware/views/List.vue
+3
-3
Update.vue
src/modules/resource/courseware/views/Update.vue
+3
-2
Operation.vue
src/modules/resource/lessonplan/components/Operation.vue
+3
-3
List.vue
src/modules/resource/lessonplan/views/List.vue
+3
-3
Update.vue
src/modules/resource/lessonplan/views/Update.vue
+3
-2
Operation.vue
src/modules/resource/other/components/Operation.vue
+2
-2
List.vue
src/modules/resource/other/views/List.vue
+3
-3
Update.vue
src/modules/resource/other/views/Update.vue
+2
-1
Operation.vue
src/modules/resource/video/components/Operation.vue
+3
-3
Update.vue
src/modules/resource/video/views/Update.vue
+10
-3
没有找到文件。
src/components/base/Protocol.vue
0 → 100644
浏览文件 @
8bceda16
<
script
setup
lang=
"ts"
>
import
PreviewFiles
from
'./PreviewFiles.vue'
const
dialogVisible
=
ref
(
false
)
</
script
>
<
template
>
<div>
我已阅读并同意
<span
@
click=
"dialogVisible = true"
>
《紫荆教育用户入驻及网络教学资源协议》
</span></div>
<el-dialog
v-model=
"dialogVisible"
title=
"提示"
width=
"850px"
>
<PreviewFiles
url=
"https://webapp-pub.ezijing.com/upload/admin/fdf5aa303c802c940884bbc1084bfddd.pdf"
></PreviewFiles>
<template
#
footer
>
<span
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"dialogVisible = false"
>
我已阅读并同意
</el-button>
</span>
</
template
>
</el-dialog>
</template>
<
style
lang=
"scss"
scoped
>
span
{
color
:
#aa1941
;
}
</
style
>
src/modules/resource/courseware/components/Operation.vue
浏览文件 @
8bceda16
...
@@ -18,7 +18,7 @@ const handleDepartment = () => {
...
@@ -18,7 +18,7 @@ const handleDepartment = () => {
ElMessageBox
.
confirm
(
ElMessageBox
.
confirm
(
`
`
${
${
props
.
data
.
status
==
0
props
.
data
.
status
==
1
?
`该操作将会使本课件资源在您所在的部门“
${
props
.
data
.
organ_id_name
}
”内部共享,管理者不变,其余人员只能共享使用该资源,确认部门共享吗?`
?
`该操作将会使本课件资源在您所在的部门“
${
props
.
data
.
organ_id_name
}
”内部共享,管理者不变,其余人员只能共享使用该资源,确认部门共享吗?`
:
`该操作将会取消本课件资源在您所在的部门“
${
props
.
data
.
organ_id_name
}
”内部共享,部门其余人员将不能再看到该共享资源,确认取消部门共享吗?`
:
`该操作将会取消本课件资源在您所在的部门“
${
props
.
data
.
organ_id_name
}
”内部共享,部门其余人员将不能再看到该共享资源,确认取消部门共享吗?`
}
}
...
@@ -134,7 +134,7 @@ const handlesetBelong = () => {
...
@@ -134,7 +134,7 @@ const handlesetBelong = () => {
<div
v-permission=
"'v1-resource-courseware-set-platform'"
class=
"btn-item"
@
click=
"handlePlatform"
>
<div
v-permission=
"'v1-resource-courseware-set-platform'"
class=
"btn-item"
@
click=
"handlePlatform"
>
{{ props.data.platform_public == 0 ? '平台共享' : '取消平台共享' }}
{{ props.data.platform_public == 0 ? '平台共享' : '取消平台共享' }}
</div>
</div>
<div
v-permission=
"'v1-resource-courseware-set-status'"
class=
"btn-item"
@
click=
"handleStatus"
>
{{ props.data.status == 0 ? '资源上线' : '资源下线' }}
</div>
<div
v-
if=
"path === '/resource/lessonplan/view'"
v-
permission=
"'v1-resource-courseware-set-status'"
class=
"btn-item"
@
click=
"handleStatus"
>
{{ props.data.status == 0 ? '资源上线' : '资源下线' }}
</div>
<div
v-permission=
"'v1-resource-courseware-set-belong'"
class=
"btn-item"
@
click=
"handleMembers"
>
更改负责人
</div>
<div
v-permission=
"'v1-resource-courseware-set-belong'"
class=
"btn-item"
@
click=
"handleMembers"
>
更改负责人
</div>
</div>
</div>
<el-dialog
v-model=
"dialogFormVisible"
title=
"更改负责人"
center
>
<el-dialog
v-model=
"dialogFormVisible"
title=
"更改负责人"
center
>
...
...
src/modules/resource/courseware/views/List.vue
浏览文件 @
8bceda16
...
@@ -69,9 +69,9 @@ const typeFilter = () => {
...
@@ -69,9 +69,9 @@ const typeFilter = () => {
<AppCard>
<AppCard>
<div
class=
"video-head"
>
<div
class=
"video-head"
>
<el-tabs
@
tab-change=
"tabChange"
v-model=
"tabValue"
>
<el-tabs
@
tab-change=
"tabChange"
v-model=
"tabValue"
>
<el-tab-pane
label=
"我的资源"
></el-tab-pane>
<el-tab-pane
label=
"我的资源"
name=
"1"
></el-tab-pane>
<el-tab-pane
label=
"部门资源"
></el-tab-pane>
<el-tab-pane
label=
"部门资源"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"公开资源"
></el-tab-pane>
<el-tab-pane
label=
"公开资源"
name=
"3"
></el-tab-pane>
</el-tabs>
</el-tabs>
<el-icon
class=
"video-head-icon"
@
click=
"isCard = !isCard"
><Expand
/></el-icon>
<el-icon
class=
"video-head-icon"
@
click=
"isCard = !isCard"
><Expand
/></el-icon>
</div>
</div>
...
...
src/modules/resource/courseware/views/Update.vue
浏览文件 @
8bceda16
...
@@ -5,6 +5,7 @@ import { ElMessage } from 'element-plus'
...
@@ -5,6 +5,7 @@ import { ElMessage } from 'element-plus'
import
{
createCourse
,
getCourseDetails
,
updateCourse
}
from
'../api'
import
{
createCourse
,
getCourseDetails
,
updateCourse
}
from
'../api'
import
{
useGetCategoryList
}
from
'@/composables/useGetCategoryList'
import
{
useGetCategoryList
}
from
'@/composables/useGetCategoryList'
import
Operation
from
'../components/Operation.vue'
import
Operation
from
'../components/Operation.vue'
import
Protocol
from
'@/components/base/Protocol.vue'
// 路由
// 路由
const
router
=
useRouter
()
const
router
=
useRouter
()
...
@@ -148,12 +149,12 @@ const protocol = ref(false)
...
@@ -148,12 +149,12 @@ const protocol = ref(false)
</el-form>
</el-form>
<div
class=
"protocol-box"
>
<div
class=
"protocol-box"
>
<el-checkbox
v-model=
"protocol"
size=
"large"
>
<el-checkbox
v-model=
"protocol"
size=
"large"
>
我已阅读并同意
<span>
《紫荆教育用户入驻及网络教学资源协议》
</span
>
<Protocol></Protocol
>
</el-checkbox>
</el-checkbox>
</div>
</div>
<div
class=
"btn-box"
>
<div
class=
"btn-box"
>
<div
class=
"confirm"
@
click=
"submitForm(ruleFormRef)"
>
保存
</div>
<div
class=
"confirm"
@
click=
"submitForm(ruleFormRef)"
>
保存
</div>
<div
class=
"cancel"
>
取消
</div>
<div
class=
"cancel"
@
click=
"router.go(-1)"
>
取消
</div>
</div>
</div>
</AppCard>
</AppCard>
</
template
>
</
template
>
...
...
src/modules/resource/lessonplan/components/Operation.vue
浏览文件 @
8bceda16
...
@@ -18,7 +18,7 @@ const handleDepartment = () => {
...
@@ -18,7 +18,7 @@ const handleDepartment = () => {
ElMessageBox
.
confirm
(
ElMessageBox
.
confirm
(
`
`
${
${
props
.
data
.
status
==
0
props
.
data
.
status
==
1
?
`该操作将会使本教案资源在您所在的部门“
${
props
.
data
.
organ_id_name
}
”内部共享,管理者不变,其余人员只能共享使用该资源,确认部门共享吗?`
?
`该操作将会使本教案资源在您所在的部门“
${
props
.
data
.
organ_id_name
}
”内部共享,管理者不变,其余人员只能共享使用该资源,确认部门共享吗?`
:
`该操作将会取消本教案资源在您所在的部门“
${
props
.
data
.
organ_id_name
}
”内部共享,部门其余人员将不能再看到该共享资源,确认取消部门共享吗?`
:
`该操作将会取消本教案资源在您所在的部门“
${
props
.
data
.
organ_id_name
}
”内部共享,部门其余人员将不能再看到该共享资源,确认取消部门共享吗?`
}
}
...
@@ -73,7 +73,7 @@ const handlePlatform = () => {
...
@@ -73,7 +73,7 @@ const handlePlatform = () => {
const
handleStatus
=
()
=>
{
const
handleStatus
=
()
=>
{
ElMessageBox
.
confirm
(
ElMessageBox
.
confirm
(
`
`
${
props
.
data
.
status
==
0
?
'已下线的资源将不能被关联到课程使用,确认下线该资源吗?'
:
'确认再次上线该资源吗?'
}
${
props
.
data
.
status
==
1
?
'已下线的资源将不能被关联到课程使用,确认下线该资源吗?'
:
'确认再次上线该资源吗?'
}
`
,
`
,
'提示'
,
'提示'
,
{
{
...
@@ -134,7 +134,7 @@ const handlesetBelong = () => {
...
@@ -134,7 +134,7 @@ const handlesetBelong = () => {
<div
v-permission=
"'v1-resource-lesson-plan-set-platform'"
class=
"btn-item"
@
click=
"handlePlatform"
>
<div
v-permission=
"'v1-resource-lesson-plan-set-platform'"
class=
"btn-item"
@
click=
"handlePlatform"
>
{{ props.data.platform_public == 0 ? '平台共享' : '取消平台共享' }}
{{ props.data.platform_public == 0 ? '平台共享' : '取消平台共享' }}
</div>
</div>
<div
v-permission=
"'v1-resource-lesson-plan-set-status'"
class=
"btn-item"
@
click=
"handleStatus"
>
{{ props.data.status == 0 ? '资源上线' : '资源下线' }}
</div>
<div
v-
if=
"path === '/resource/lessonplan/view'"
v-
permission=
"'v1-resource-lesson-plan-set-status'"
class=
"btn-item"
@
click=
"handleStatus"
>
{{ props.data.status == 0 ? '资源上线' : '资源下线' }}
</div>
<div
v-permission=
"'v1-resource-lesson-plan-set-belong'"
class=
"btn-item"
@
click=
"handleMembers"
>
更改负责人
</div>
<div
v-permission=
"'v1-resource-lesson-plan-set-belong'"
class=
"btn-item"
@
click=
"handleMembers"
>
更改负责人
</div>
</div>
</div>
<el-dialog
v-model=
"dialogFormVisible"
title=
"更改负责人"
center
>
<el-dialog
v-model=
"dialogFormVisible"
title=
"更改负责人"
center
>
...
...
src/modules/resource/lessonplan/views/List.vue
浏览文件 @
8bceda16
...
@@ -68,9 +68,9 @@ const typeFilter = () => {
...
@@ -68,9 +68,9 @@ const typeFilter = () => {
<AppCard>
<AppCard>
<div
class=
"video-head"
>
<div
class=
"video-head"
>
<el-tabs
@
tab-change=
"tabChange"
v-model=
"tabValue"
>
<el-tabs
@
tab-change=
"tabChange"
v-model=
"tabValue"
>
<el-tab-pane
label=
"我的资源"
></el-tab-pane>
<el-tab-pane
label=
"我的资源"
name=
"1"
></el-tab-pane>
<el-tab-pane
label=
"部门资源"
></el-tab-pane>
<el-tab-pane
label=
"部门资源"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"公开资源"
></el-tab-pane>
<el-tab-pane
label=
"公开资源"
name=
"3"
></el-tab-pane>
</el-tabs>
</el-tabs>
<el-icon
class=
"video-head-icon"
@
click=
"isCard = !isCard"
><Expand
/></el-icon>
<el-icon
class=
"video-head-icon"
@
click=
"isCard = !isCard"
><Expand
/></el-icon>
</div>
</div>
...
...
src/modules/resource/lessonplan/views/Update.vue
浏览文件 @
8bceda16
...
@@ -5,6 +5,7 @@ import { ElMessage } from 'element-plus'
...
@@ -5,6 +5,7 @@ import { ElMessage } from 'element-plus'
import
{
createLessonPlan
,
getLessonDetails
,
updateLessonPlan
}
from
'../api'
import
{
createLessonPlan
,
getLessonDetails
,
updateLessonPlan
}
from
'../api'
import
{
useGetCategoryList
}
from
'@/composables/useGetCategoryList'
import
{
useGetCategoryList
}
from
'@/composables/useGetCategoryList'
import
Operation
from
'../components/Operation.vue'
import
Operation
from
'../components/Operation.vue'
import
Protocol
from
'@/components/base/Protocol.vue'
// 路由
// 路由
const
router
=
useRouter
()
const
router
=
useRouter
()
...
@@ -142,12 +143,12 @@ const protocol = ref(false)
...
@@ -142,12 +143,12 @@ const protocol = ref(false)
</el-form>
</el-form>
<div
class=
"protocol-box"
>
<div
class=
"protocol-box"
>
<el-checkbox
v-model=
"protocol"
size=
"large"
>
<el-checkbox
v-model=
"protocol"
size=
"large"
>
我已阅读并同意
<span>
《紫荆教育用户入驻及网络教学资源协议》
</span
>
<Protocol></Protocol
>
</el-checkbox>
</el-checkbox>
</div>
</div>
<div
class=
"btn-box"
>
<div
class=
"btn-box"
>
<div
class=
"confirm"
@
click=
"submitForm(ruleFormRef)"
>
保存
</div>
<div
class=
"confirm"
@
click=
"submitForm(ruleFormRef)"
>
保存
</div>
<div
class=
"cancel"
>
取消
</div>
<div
class=
"cancel"
@
click=
"router.go(-1)"
>
取消
</div>
</div>
</div>
</AppCard>
</AppCard>
</
template
>
</
template
>
...
...
src/modules/resource/other/components/Operation.vue
浏览文件 @
8bceda16
...
@@ -75,7 +75,7 @@ const handlePlatform = () => {
...
@@ -75,7 +75,7 @@ const handlePlatform = () => {
const
handleStatus
=
()
=>
{
const
handleStatus
=
()
=>
{
ElMessageBox
.
confirm
(
ElMessageBox
.
confirm
(
`
`
${
props
.
data
.
status
==
0
?
'已下线的资源将不能被关联到课程使用,确认下线该资源吗?'
:
'确认再次上线该资源吗?'
}
${
props
.
data
.
status
==
1
?
'已下线的资源将不能被关联到课程使用,确认下线该资源吗?'
:
'确认再次上线该资源吗?'
}
`
,
`
,
'提示'
,
'提示'
,
{
{
...
@@ -136,7 +136,7 @@ const handlesetBelong = () => {
...
@@ -136,7 +136,7 @@ const handlesetBelong = () => {
<div
v-permission=
"'v1-resource-other-information-set-platform'"
class=
"btn-item"
@
click=
"handlePlatform"
>
<div
v-permission=
"'v1-resource-other-information-set-platform'"
class=
"btn-item"
@
click=
"handlePlatform"
>
{{ props.data.platform_public == 0 ? '平台共享' : '取消平台共享' }}
{{ props.data.platform_public == 0 ? '平台共享' : '取消平台共享' }}
</div>
</div>
<div
v-permission=
"'v1-resource-other-information-set-status'"
class=
"btn-item"
@
click=
"handleStatus"
>
{{ props.data.status == 0 ? '资源上线' : '资源下线' }}
</div>
<div
v-
if=
"path === '/resource/other/view'"
v-
permission=
"'v1-resource-other-information-set-status'"
class=
"btn-item"
@
click=
"handleStatus"
>
{{ props.data.status == 0 ? '资源上线' : '资源下线' }}
</div>
<div
v-permission=
"'v1-resource-other-information-set-belong'"
class=
"btn-item"
@
click=
"handleMembers"
>
更改负责人
</div>
<div
v-permission=
"'v1-resource-other-information-set-belong'"
class=
"btn-item"
@
click=
"handleMembers"
>
更改负责人
</div>
</div>
</div>
<el-dialog
v-model=
"dialogFormVisible"
title=
"更改负责人"
center
>
<el-dialog
v-model=
"dialogFormVisible"
title=
"更改负责人"
center
>
...
...
src/modules/resource/other/views/List.vue
浏览文件 @
8bceda16
...
@@ -77,9 +77,9 @@ const typeFilter = () => {
...
@@ -77,9 +77,9 @@ const typeFilter = () => {
<AppCard>
<AppCard>
<div
class=
"video-head"
>
<div
class=
"video-head"
>
<el-tabs
@
tab-change=
"tabChange"
v-model=
"tabValue"
>
<el-tabs
@
tab-change=
"tabChange"
v-model=
"tabValue"
>
<el-tab-pane
label=
"我的资源"
></el-tab-pane>
<el-tab-pane
label=
"我的资源"
name=
"1"
></el-tab-pane>
<el-tab-pane
label=
"部门资源"
></el-tab-pane>
<el-tab-pane
label=
"部门资源"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"公开资源"
></el-tab-pane>
<el-tab-pane
label=
"公开资源"
name=
"3"
></el-tab-pane>
</el-tabs>
</el-tabs>
<el-icon
class=
"video-head-icon"
@
click=
"isCard = !isCard"
><Expand
/></el-icon>
<el-icon
class=
"video-head-icon"
@
click=
"isCard = !isCard"
><Expand
/></el-icon>
</div>
</div>
...
...
src/modules/resource/other/views/Update.vue
浏览文件 @
8bceda16
...
@@ -5,6 +5,7 @@ import { ElMessage } from 'element-plus'
...
@@ -5,6 +5,7 @@ import { ElMessage } from 'element-plus'
import
{
createOther
,
getOtherDetails
,
updateOther
}
from
'../api'
import
{
createOther
,
getOtherDetails
,
updateOther
}
from
'../api'
import
{
useGetCategoryList
}
from
'@/composables/useGetCategoryList'
import
{
useGetCategoryList
}
from
'@/composables/useGetCategoryList'
import
Operation
from
'../components/Operation.vue'
import
Operation
from
'../components/Operation.vue'
import
Protocol
from
'@/components/base/Protocol.vue'
// 路由
// 路由
const
router
=
useRouter
()
const
router
=
useRouter
()
...
@@ -142,7 +143,7 @@ const protocol = ref(false)
...
@@ -142,7 +143,7 @@ const protocol = ref(false)
</el-form>
</el-form>
<div
class=
"protocol-box"
>
<div
class=
"protocol-box"
>
<el-checkbox
v-model=
"protocol"
size=
"large"
>
<el-checkbox
v-model=
"protocol"
size=
"large"
>
我已阅读并同意
<span>
《紫荆教育用户入驻及网络教学资源协议》
</span
>
<Protocol></Protocol
>
</el-checkbox>
</el-checkbox>
</div>
</div>
<div
class=
"btn-box"
>
<div
class=
"btn-box"
>
...
...
src/modules/resource/video/components/Operation.vue
浏览文件 @
8bceda16
...
@@ -18,7 +18,7 @@ const handleDepartment = () => {
...
@@ -18,7 +18,7 @@ const handleDepartment = () => {
ElMessageBox
.
confirm
(
ElMessageBox
.
confirm
(
`
`
${
${
props
.
data
.
status
==
0
props
.
data
.
status
==
1
?
`该操作将会使本视频资源在您所在的部门“
${
props
.
data
.
organ_id_name
}
”内部共享,管理者不变,其余人员只能共享使用该资源,确认部门共享吗?`
?
`该操作将会使本视频资源在您所在的部门“
${
props
.
data
.
organ_id_name
}
”内部共享,管理者不变,其余人员只能共享使用该资源,确认部门共享吗?`
:
`该操作将会取消本视频资源在您所在的部门“
${
props
.
data
.
organ_id_name
}
”内部共享,部门其余人员将不能再看到该共享资源,确认取消部门共享吗?`
:
`该操作将会取消本视频资源在您所在的部门“
${
props
.
data
.
organ_id_name
}
”内部共享,部门其余人员将不能再看到该共享资源,确认取消部门共享吗?`
}
}
...
@@ -73,7 +73,7 @@ const handlePlatform = () => {
...
@@ -73,7 +73,7 @@ const handlePlatform = () => {
const
handleStatus
=
()
=>
{
const
handleStatus
=
()
=>
{
ElMessageBox
.
confirm
(
ElMessageBox
.
confirm
(
`
`
${
props
.
data
.
status
==
0
?
'已下线的资源将不能被关联到课程使用,确认下线该资源吗?'
:
'确认再次上线该资源吗?'
}
${
props
.
data
.
status
==
1
?
'已下线的资源将不能被关联到课程使用,确认下线该资源吗?'
:
'确认再次上线该资源吗?'
}
`
,
`
,
'提示'
,
'提示'
,
{
{
...
@@ -136,7 +136,7 @@ const handlesetBelong = () => {
...
@@ -136,7 +136,7 @@ const handlesetBelong = () => {
<div
v-permission=
"'v1-resource-video-set-platform'"
class=
"btn-item"
@
click=
"handlePlatform"
>
<div
v-permission=
"'v1-resource-video-set-platform'"
class=
"btn-item"
@
click=
"handlePlatform"
>
{{ props.data.platform_public == 0 ? '平台共享' : '取消平台共享' }}
{{ props.data.platform_public == 0 ? '平台共享' : '取消平台共享' }}
</div>
</div>
<div
v-permission=
"'v1-resource-video-set-status'"
class=
"btn-item"
@
click=
"handleStatus"
>
<div
v-
if=
"path === '/resource/video/view'"
v-
permission=
"'v1-resource-video-set-status'"
class=
"btn-item"
@
click=
"handleStatus"
>
{{ props.data.status == 0 ? '资源上线' : '资源下线' }}
{{ props.data.status == 0 ? '资源上线' : '资源下线' }}
</div>
</div>
<div
v-permission=
"'v1-resource-video-set-belong'"
class=
"btn-item"
@
click=
"handleMembers"
>
更改负责人
</div>
<div
v-permission=
"'v1-resource-video-set-belong'"
class=
"btn-item"
@
click=
"handleMembers"
>
更改负责人
</div>
...
...
src/modules/resource/video/views/Update.vue
浏览文件 @
8bceda16
...
@@ -7,6 +7,7 @@ import Operation from '../components/Operation.vue'
...
@@ -7,6 +7,7 @@ import Operation from '../components/Operation.vue'
import
UploadVideo
from
'../components/UploadVideo.vue'
import
UploadVideo
from
'../components/UploadVideo.vue'
import
{
getCoverList
,
createVideo
,
getVideoDetails
,
updateVideo
}
from
'../api'
import
{
getCoverList
,
createVideo
,
getVideoDetails
,
updateVideo
}
from
'../api'
import
{
useGetCategoryList
}
from
'@/composables/useGetCategoryList'
import
{
useGetCategoryList
}
from
'@/composables/useGetCategoryList'
import
Protocol
from
'@/components/base/Protocol.vue'
// 路由
// 路由
const
router
=
useRouter
()
const
router
=
useRouter
()
...
@@ -39,7 +40,8 @@ let swiperCovers: [{ id: string; url: string }[]] = $ref([[]])
...
@@ -39,7 +40,8 @@ let swiperCovers: [{ id: string; url: string }[]] = $ref([[]])
// 获取封面
// 获取封面
getCoverList
().
then
(
res
=>
{
getCoverList
().
then
(
res
=>
{
let
arr
:
object
[]
=
[]
let
arr
:
object
[]
=
[]
swiperCovers
=
res
.
data
.
list
.
reduce
((
a
:
any
,
b
:
any
,
index
:
number
)
=>
{
const
filtersData
=
res
.
data
.
list
.
filter
((
i
:
any
)
=>
i
.
type
===
'1'
)
swiperCovers
=
filtersData
.
reduce
((
a
:
any
,
b
:
any
,
index
:
number
)
=>
{
if
(
index
===
0
)
{
if
(
index
===
0
)
{
arr
.
push
(
b
)
arr
.
push
(
b
)
a
.
push
(
arr
)
a
.
push
(
arr
)
...
@@ -53,6 +55,11 @@ getCoverList().then(res => {
...
@@ -53,6 +55,11 @@ getCoverList().then(res => {
}
}
return
a
return
a
},
[])
},
[])
swiperCovers
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
if
(
item
.
length
===
0
)
{
swiperCovers
.
splice
(
index
,
1
)
}
})
})
})
// 获取swiper 自定义左右切换按钮
// 获取swiper 自定义左右切换按钮
let
swiper
=
ref
()
let
swiper
=
ref
()
...
@@ -216,12 +223,12 @@ const uploadVideo = (data: any) => {
...
@@ -216,12 +223,12 @@ const uploadVideo = (data: any) => {
</el-form>
</el-form>
<div
class=
"protocol-box"
>
<div
class=
"protocol-box"
>
<el-checkbox
v-model=
"protocol"
size=
"large"
>
<el-checkbox
v-model=
"protocol"
size=
"large"
>
我已阅读并同意
<span>
《紫荆教育用户入驻及网络教学资源协议》
</span
>
<Protocol></Protocol
>
</el-checkbox>
</el-checkbox>
</div>
</div>
<div
class=
"btn-box"
>
<div
class=
"btn-box"
>
<div
class=
"confirm"
@
click=
"submitForm(ruleFormRef)"
>
保存
</div>
<div
class=
"confirm"
@
click=
"submitForm(ruleFormRef)"
>
保存
</div>
<div
class=
"cancel"
>
取消
</div>
<div
class=
"cancel"
@
click=
"router.go(-1)"
>
取消
</div>
</div>
</div>
</AppCard>
</AppCard>
</
template
>
</
template
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论