Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
9b083a3f
提交
9b083a3f
authored
4月 14, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
样式修改添加教学评估
上级
7606ee87
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
34 行增加
和
31 行删除
+34
-31
navigation.vue
client/src/components/learnSysLayout/navigation.vue
+3
-3
sidebar.vue
client/src/components/learnSysLayout/sidebar.vue
+5
-5
index.vue
client/src/pages/player/index.vue
+3
-0
survey.vue
client/src/pages/survey/survey.vue
+17
-17
routes.js
client/src/router/routes.js
+6
-6
没有找到文件。
client/src/components/learnSysLayout/navigation.vue
浏览文件 @
9b083a3f
...
...
@@ -4,7 +4,7 @@
<img
class=
"logo"
src=
"@/assets/images/logo-header.png"
alt=
"logo"
/>
<div
class=
"text-title"
@
click=
"setStatus"
>
{{
$t
(
'components.learnSysLayout.navigation.title'
)
}}
</div>
</div>
<
s-language></s-language
>
<
!--
<s-language></s-language>
--
>
<div
class=
"notify"
@
click=
"goNotify()"
>
{{
$t
(
'components.learnSysLayout.navigation.tip'
)
}}
<div
class=
"num"
v-if=
"num"
>
{{
num
}}
</div>
</div>
...
...
@@ -12,11 +12,11 @@
</
template
>
<
script
>
import
sLanguage
from
'@/components/languageSwitch/index.vue'
//
import sLanguage from '@/components/languageSwitch/index.vue'
// import cAction from '@action'
export
default
{
components
:
{
sLanguage
},
components
:
{},
data
()
{
return
{
num
:
0
...
...
client/src/components/learnSysLayout/sidebar.vue
浏览文件 @
9b083a3f
...
...
@@ -86,11 +86,11 @@ export default {
{
name
:
this
.
$t
(
'components.learnSysLayout.sideBar.header2Child1'
),
index
:
'2-1'
}
]
},
{
name
:
this
.
$t
(
'components.learnSysLayout.sideBar.header3'
),
iconClass
:
'el-icon-self-fankuiyijian'
,
index
:
'4'
},
//
{
//
name: this.$t('components.learnSysLayout.sideBar.header3'),
//
iconClass: 'el-icon-self-fankuiyijian',
//
index: '4'
//
},
{
name
:
this
.
$t
(
'components.learnSysLayout.sideBar.header4'
),
iconClass
:
'el-icon-self-fankuiyijian'
,
...
...
client/src/pages/player/index.vue
浏览文件 @
9b083a3f
...
...
@@ -333,6 +333,9 @@ export default {
width
:
350px
;
background
:
#212121
;
border-left
:
19px
solid
#1b1b1b
;
*
{
box-sizing
:
border-box
;
}
/* 箭头 */
.ctrl-arrow
{
position
:
absolute
;
...
...
client/src/pages/survey/survey.vue
浏览文件 @
9b083a3f
...
...
@@ -84,7 +84,7 @@
<
script
>
import
qData
from
'./store/data'
import
cAction
from
'@action
s
'
import
cAction
from
'@action'
import
Base64
from
'Base64'
import
_
from
'lodash'
...
...
@@ -94,7 +94,7 @@ export default {
cid
:
{
type
:
String
,
require
:
false
}
},
data
()
{
le
t
_headerInfo
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'headerInfo'
)
||
'{}'
)
cons
t
_headerInfo
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'headerInfo'
)
||
'{}'
)
return
{
dataQuestion
:
_
.
cloneDeep
(
qData
.
question
),
headerInfo
:
_headerInfo
,
...
...
@@ -134,9 +134,9 @@ export default {
},
mounted
()
{
/* 读取本地缓存 */
le
t
quesLocal
=
window
.
localStorage
.
getItem
(
'quesLocal'
+
this
.
sid
+
this
.
cid
)
le
t
quesPage
=
window
.
localStorage
.
getItem
(
'quesPage'
+
this
.
sid
+
this
.
cid
)
le
t
quesSelectId
=
window
.
localStorage
.
getItem
(
'quesSelectId'
+
this
.
sid
+
this
.
cid
)
cons
t
quesLocal
=
window
.
localStorage
.
getItem
(
'quesLocal'
+
this
.
sid
+
this
.
cid
)
cons
t
quesPage
=
window
.
localStorage
.
getItem
(
'quesPage'
+
this
.
sid
+
this
.
cid
)
cons
t
quesSelectId
=
window
.
localStorage
.
getItem
(
'quesSelectId'
+
this
.
sid
+
this
.
cid
)
if
(
quesLocal
)
{
qData
.
question
=
JSON
.
parse
(
quesLocal
)
this
.
curPage
=
quesPage
...
...
@@ -151,7 +151,7 @@ export default {
/* 提交数据 */
goSubmit
()
{
for
(
let
i
=
0
;
i
<
qData
.
question
.
length
;
i
++
)
{
le
t
_item
=
qData
.
question
[
i
]
cons
t
_item
=
qData
.
question
[
i
]
if
(
_item
.
type
===
3
)
{
for
(
let
j
=
0
;
j
<
_item
.
arr
.
length
;
j
++
)
{
if
(
_item
.
arr
[
j
].
star
===
0
)
{
...
...
@@ -168,12 +168,12 @@ export default {
}
}
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
''
,
spinner
:
''
,
background
:
'rgba(255, 255, 255, 0.9)'
})
cAction
.
chapterAction
.
updateSurveyAnswer
({
cAction
.
Player
.
updateSurveyAnswer
({
semester_id
:
this
.
sid
,
course_id
:
this
.
cid
,
raw
:
Base64
.
encode
(
JSON
.
stringify
(
qData
.
question
))
}).
then
(
res
=>
{
le
t
a
=
1
cons
t
a
=
1
if
(
a
)
{
this
.
$message
.
success
(
'感谢你的宝贵意见。'
)
/* 答题成功,清空本地缓存 */
...
...
@@ -198,7 +198,7 @@ export default {
loadQuestion
()
{
this
.
exam
.
group
=
[]
for
(
let
i
=
0
;
i
<
qData
.
question
.
length
;
i
++
)
{
le
t
exp
=
new
RegExp
(
'^
\\
d+-'
+
this
.
curPage
,
'gi'
)
cons
t
exp
=
new
RegExp
(
'^
\\
d+-'
+
this
.
curPage
,
'gi'
)
if
(
exp
.
test
(
qData
.
question
[
i
].
id
))
{
this
.
exam
.
group
.
push
(
qData
.
question
[
i
])
if
(
qData
.
question
[
i
].
submit
)
{
...
...
@@ -242,11 +242,11 @@ export default {
* PC端 值会 返回 选择的 值
*/
radioChange
(
val
)
{
le
t
i
=
this
.
radioCur
le
t
arr
=
this
.
exam
.
group
[
i
].
arr
le
t
value
=
val
cons
t
i
=
this
.
radioCur
cons
t
arr
=
this
.
exam
.
group
[
i
].
arr
cons
t
value
=
val
for
(
let
j
=
0
;
j
<
arr
.
length
;
j
++
)
{
arr
[
j
]
[
'selected'
]
=
0
arr
[
j
]
.
selected
=
0
}
arr
[
value
].
selected
=
1
/* 记录 题目是否 已经选过 */
...
...
@@ -262,11 +262,11 @@ export default {
* checkbox选择
*/
checkboxChange
(
val
)
{
le
t
i
=
this
.
checkboxCur
le
t
arr
=
this
.
exam
.
group
[
i
].
arr
le
t
value
=
val
cons
t
i
=
this
.
checkboxCur
cons
t
arr
=
this
.
exam
.
group
[
i
].
arr
cons
t
value
=
val
for
(
let
j
=
0
;
j
<
arr
.
length
;
j
++
)
{
arr
[
j
]
[
'selected'
]
=
0
arr
[
j
]
.
selected
=
0
}
for
(
let
j
=
0
;
j
<
value
.
length
;
j
++
)
{
arr
[
value
[
j
]].
selected
=
1
...
...
client/src/router/routes.js
浏览文件 @
9b083a3f
...
...
@@ -175,12 +175,12 @@ export default [
}
]
},
//
{
//
path: '/survey/:sid/:cid',
//
name: 'survey',
// component: () => import('../../component
s/survey/survey.vue'),
//
props: true
//
},
{
path
:
'/survey/:sid/:cid'
,
name
:
'survey'
,
component
:
()
=>
import
(
'@/page
s/survey/survey.vue'
),
props
:
true
},
// /* survey 内未找到页面时 - 指向 */
// { path: '/survey/*', redirect: '/learn-error/learn-error' },
// {
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论