Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
3f1b3100
提交
3f1b3100
authored
6月 22, 2022
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bug
上级
fd3f94ff
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
40 行增加
和
18 行删除
+40
-18
Protocol.vue
src/components/base/Protocol.vue
+17
-3
Update.vue
src/modules/resource/courseware/views/Update.vue
+5
-3
Statistics.vue
src/modules/resource/dashboard/components/Statistics.vue
+1
-1
Index.vue
src/modules/resource/dashboard/views/Index.vue
+2
-2
Update.vue
src/modules/resource/lessonplan/views/Update.vue
+5
-3
Update.vue
src/modules/resource/other/views/Update.vue
+5
-3
Update.vue
src/modules/resource/video/views/Update.vue
+5
-3
没有找到文件。
src/components/base/Protocol.vue
浏览文件 @
3f1b3100
<
script
setup
lang=
"ts"
>
import
PreviewFiles
from
'./PreviewFiles.vue'
const
dialogVisible
=
ref
(
false
)
const
protocol
=
ref
(
false
)
const
emit
=
defineEmits
([
'change'
])
const
changeProtocol
=
(
flag
?:
boolean
)
=>
{
if
(
flag
!==
undefined
)
{
protocol
.
value
=
flag
}
emit
(
'change'
,
protocol
)
dialogVisible
.
value
=
false
}
</
script
>
<
template
>
<div>
我已阅读并同意
<span
class=
"red-color"
@
click=
"dialogVisible = true"
>
《紫荆教育用户入驻及网络教学资源协议》
</span>
<div
style=
"display: flex;align-items: center;"
>
<el-checkbox
@
change=
"changeProtocol()"
v-model=
"protocol"
size=
"large"
>
我已阅读并同意
</el-checkbox>
<span
class=
"red-color"
@
click=
"dialogVisible = true"
>
《紫荆教育用户入驻及网络教学资源协议》
</span>
</div>
<el-dialog
v-model=
"dialogVisible"
title=
"提示"
width=
"850px"
>
<PreviewFiles
url=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/center_resource/%E7%B4%AB%E8%8D%86%E6%95%99%E8%82%B2%E7%94%A8%E6%88%B7%E5%85%A5%E9%A9%BB%E5%8F%8A%E7%BD%91%E7%BB%9C%E6%95%99%E5%AD%A6%E8%B5%84%E6%BA%90%E5%8D%8F%E8%AE%AE(1).docx"
></PreviewFiles>
<template
#
footer
>
<el-button
type=
"primary"
@
click=
"
dialogVisible = false
"
>
我已阅读并同意
</el-button>
<el-button
type=
"primary"
@
click=
"
changeProtocol(true)
"
>
我已阅读并同意
</el-button>
</
template
>
</el-dialog>
</template>
<
style
lang=
"scss"
scoped
>
.red-color
{
color
:
#aa1941
;
cursor
:
pointer
;
}
</
style
>
src/modules/resource/courseware/views/Update.vue
浏览文件 @
3f1b3100
...
...
@@ -142,6 +142,10 @@ const createResources = (params: any) => {
// 协议
const
protocol
=
ref
(
false
)
const
changeProtocol
=
(
data
:
any
)
=>
{
protocol
.
value
=
data
.
value
}
</
script
>
<
template
>
...
...
@@ -183,9 +187,7 @@ const protocol = ref(false)
</el-form-item>
</el-form>
<div
class=
"protocol-box"
>
<el-checkbox
v-model=
"protocol"
size=
"large"
>
<Protocol></Protocol>
</el-checkbox>
<Protocol
@
change=
"changeProtocol"
></Protocol>
</div>
<div
class=
"btn-box"
>
<div
class=
"confirm"
@
click=
"submitForm(ruleFormRef)"
>
保存
</div>
...
...
src/modules/resource/dashboard/components/Statistics.vue
浏览文件 @
3f1b3100
...
...
@@ -23,7 +23,7 @@ const bytesToSize = (bytes: number) => {
<
template
v-else-if=
"item.key === 'learn_time_length' || item.key === 'length'"
>
<div
class=
"icon"
></div>
<div
class=
"num"
>
{{
Number
((
item
.
number
/
60
).
toString
().
match
(
/^
\d
+
(?:\.\d
{0,2
}
)?
/
))
}}
<
span
>
{{
item
.
unit
}}
<
/span
>
{{
Number
((
item
.
number
/
60
/
60
).
toString
().
match
(
/^
\d
+
(?:\.\d
{0,2
}
)?
/
))
}}
<
span
>
{{
item
.
unit
}}
<
/span
>
<
/div
>
<
div
class
=
"text"
>
{{
item
.
text
}}
<
/div
>
<
/template
>
...
...
src/modules/resource/dashboard/views/Index.vue
浏览文件 @
3f1b3100
...
...
@@ -25,9 +25,9 @@ getUtilData().then(res => {
{
key
:
'question_count'
,
unit
:
'个'
,
number
:
0
,
text
:
'题库资源'
},
{
key
:
'paper_count'
,
unit
:
'套'
,
number
:
0
,
text
:
'试卷资源'
},
{
key
:
'memory_size'
,
unit
:
''
,
number
:
0
,
text
:
'资源总体量'
},
{
key
:
'length'
,
unit
:
'
分钟
'
,
number
:
0
,
text
:
'资源总时长'
},
{
key
:
'length'
,
unit
:
'
小时
'
,
number
:
0
,
text
:
'资源总时长'
},
{
key
:
'learn_times'
,
unit
:
'万人次'
,
number
:
0
,
text
:
'总学习人次'
},
{
key
:
'learn_time_length'
,
unit
:
'
分钟
'
,
number
:
0
,
text
:
'总学习时长'
}
{
key
:
'learn_time_length'
,
unit
:
'
小时
'
,
number
:
0
,
text
:
'总学习时长'
}
]
data
.
statistics
=
statisticsData
.
map
((
item
:
any
)
=>
{
item
.
number
=
res
.
data
[
item
.
key
]
||
0
...
...
src/modules/resource/lessonplan/views/Update.vue
浏览文件 @
3f1b3100
...
...
@@ -141,6 +141,10 @@ const createResources = (params: any) => {
// 协议
const
protocol
=
ref
(
false
)
const
changeProtocol
=
(
data
:
any
)
=>
{
protocol
.
value
=
data
.
value
}
</
script
>
<
template
>
...
...
@@ -181,9 +185,7 @@ const protocol = ref(false)
</el-form-item>
</el-form>
<div
class=
"protocol-box"
>
<el-checkbox
v-model=
"protocol"
size=
"large"
>
<Protocol></Protocol>
</el-checkbox>
<Protocol
@
change=
"changeProtocol"
></Protocol>
</div>
<div
class=
"btn-box"
>
<div
class=
"confirm"
@
click=
"submitForm(ruleFormRef)"
>
保存
</div>
...
...
src/modules/resource/other/views/Update.vue
浏览文件 @
3f1b3100
...
...
@@ -141,6 +141,10 @@ const createResources = (params: any) => {
// 协议
const
protocol
=
ref
(
false
)
const
changeProtocol
=
(
data
:
any
)
=>
{
protocol
.
value
=
data
.
value
}
</
script
>
<
template
>
...
...
@@ -185,9 +189,7 @@ const protocol = ref(false)
</el-form-item>
</el-form>
<div
class=
"protocol-box"
>
<el-checkbox
v-model=
"protocol"
size=
"large"
>
<Protocol></Protocol>
</el-checkbox>
<Protocol
@
change=
"changeProtocol"
></Protocol>
</div>
<div
class=
"btn-box"
>
<div
class=
"confirm"
@
click=
"submitForm(ruleFormRef)"
>
保存
</div>
...
...
src/modules/resource/video/views/Update.vue
浏览文件 @
3f1b3100
...
...
@@ -150,6 +150,10 @@ const watchSwiper = (index: number) => {
swiperCovers
.
length
===
index
+
1
?
isSwiperBtn
=
1
:
isSwiperBtn
=
2
}
}
const
changeProtocol
=
(
data
:
any
)
=>
{
protocol
.
value
=
data
.
value
}
</
script
>
<
template
>
...
...
@@ -251,9 +255,7 @@ const watchSwiper = (index: number) => {
</el-form-item>
</el-form>
<div
class=
"protocol-box"
>
<el-checkbox
v-model=
"protocol"
size=
"large"
>
<Protocol></Protocol>
</el-checkbox>
<Protocol
@
change=
"changeProtocol"
></Protocol>
</div>
<div
class=
"btn-box"
>
<div
class=
"confirm"
@
click=
"submitForm(ruleFormRef)"
>
保存
</div>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论