Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
9bec5a21
提交
9bec5a21
authored
7月 07, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates:资源详情跳转调整
上级
c936e35e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
14 行增加
和
5 行删除
+14
-5
AddVideoDialog.vue
...se/create/components/stepTwoComponents/AddVideoDialog.vue
+11
-2
CardListItem.vue
...urse/create/components/stepTwoComponents/CardListItem.vue
+2
-2
StepTwo.vue
src/modules/course/create/views/StepTwo.vue
+1
-1
没有找到文件。
src/modules/course/create/components/stepTwoComponents/AddVideoDialog.vue
浏览文件 @
9bec5a21
...
@@ -6,6 +6,7 @@ import { useGetCategoryList } from '@/composables/useGetCategoryList'
...
@@ -6,6 +6,7 @@ import { useGetCategoryList } from '@/composables/useGetCategoryList'
const
appList
=
ref
()
const
appList
=
ref
()
// 资源出处 tab触发
// 资源出处 tab触发
const
tabValue
=
ref
(
'1'
)
const
tabValue
=
ref
(
'1'
)
const
path
=
ref
(
''
)
let
tableData
:
any
=
reactive
({
let
tableData
:
any
=
reactive
({
list
:
[],
list
:
[],
title
:
''
,
title
:
''
,
...
@@ -106,6 +107,15 @@ const handleSave = () => {
...
@@ -106,6 +107,15 @@ const handleSave = () => {
emit
(
'create'
)
emit
(
'create'
)
})
})
}
}
if
(
props
.
btnInfo
.
resource_type
===
'2'
)
{
path
.
value
=
'/resource/video/view'
}
else
if
(
props
.
btnInfo
.
resource_type
===
'10'
)
{
path
.
value
=
'/resource/courseware/view'
}
else
if
(
props
.
btnInfo
.
resource_type
===
'11'
)
{
path
.
value
=
'/resource/lessonplan/view'
}
else
if
(
props
.
btnInfo
.
resource_type
===
'4'
)
{
path
.
value
=
'/resource/other/view'
}
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -137,12 +147,11 @@ const handleSave = () => {
...
@@ -137,12 +147,11 @@ const handleSave = () => {
<div
class=
"card-list"
v-if=
"data.length"
>
<div
class=
"card-list"
v-if=
"data.length"
>
<div
class=
"card-list-con"
>
<div
class=
"card-list-con"
>
<div
style=
"position: relative"
v-for=
"(item, index) in data"
:key=
"index"
>
<div
style=
"position: relative"
v-for=
"(item, index) in data"
:key=
"index"
>
{{
item
.
check_status
}}
<el-checkbox
<el-checkbox
v-model=
"item.check_status"
v-model=
"item.check_status"
style=
"position: absolute; right: 40px; bottom: 22px"
style=
"position: absolute; right: 40px; bottom: 22px"
></el-checkbox>
></el-checkbox>
<CardListItem
:tabIndex=
"tabValue"
:data=
"item"
>
</CardListItem>
<CardListItem
:tabIndex=
"tabValue"
:data=
"item"
:path=
"path"
>
</CardListItem>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/modules/course/create/components/stepTwoComponents/CardListItem.vue
浏览文件 @
9bec5a21
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
const
props
:
any
=
defineProps
<
{
data
:
object
;
tabIndex
:
string
}
>
()
const
props
:
any
=
defineProps
<
{
data
:
object
;
tabIndex
:
string
;
path
:
string
}
>
()
</
script
>
</
script
>
<
template
>
<
template
>
<!--
<div>
{{
props
.
data
}}
</div>
-->
<!--
<div>
{{
props
.
data
}}
</div>
-->
...
@@ -15,7 +15,7 @@ const props: any = defineProps<{ data: object; tabIndex: string }>()
...
@@ -15,7 +15,7 @@ const props: any = defineProps<{ data: object; tabIndex: string }>()
</router-link>
-->
</router-link>
-->
</div>
</div>
<div
style=
"min-width: 100%"
>
<div
style=
"min-width: 100%"
>
<router-link
v-if=
"props.data.auth_view"
:to=
"`
/resource/video/view
?id=$
{props.data.id}`">
<router-link
v-if=
"props.data.auth_view"
:to=
"`
$
{props.path}
?id=${props.data.id}`">
<div
class=
"view-btn"
>
查看
</div>
<div
class=
"view-btn"
>
查看
</div>
</router-link>
</router-link>
</div>
</div>
...
...
src/modules/course/create/views/StepTwo.vue
浏览文件 @
9bec5a21
...
@@ -229,10 +229,10 @@ const handleDrop = (startNode: any, endNode: any, position: any, event: any) =>
...
@@ -229,10 +229,10 @@ const handleDrop = (startNode: any, endNode: any, position: any, event: any) =>
</template>
</template>
</el-tree>
</el-tree>
<div
class=
"btn-box"
style=
"display: flex; justify-content: center"
>
<div
class=
"btn-box"
style=
"display: flex; justify-content: center"
>
<el-button
type=
"primary"
@
click=
"router.push('/course/my')"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"router.push({ path: '/course/update-course', query: { id: id } })"
<el-button
type=
"primary"
@
click=
"router.push({ path: '/course/update-course', query: { id: id } })"
>
上一步
</el-button
>
上一步
</el-button
>
>
<el-button
type=
"primary"
@
click=
"router.push('/course/my')"
>
保存
</el-button>
</div>
</div>
</AppCard>
</AppCard>
<!-- 添加章 -->
<!-- 添加章 -->
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论