Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
f730ddd0
提交
f730ddd0
authored
8月 11, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
能力自测文案修改,错题列表修改
上级
1b2128c8
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
70 行增加
和
57 行删除
+70
-57
abilityAnswer.vue
src/pages/courseExam/abilityAnswer.vue
+4
-4
collectQuestions.vue
src/pages/my/collectQuestions.vue
+22
-18
errorQuestionList.vue
src/pages/my/errorQuestionList.vue
+22
-18
questionsList.vue
src/pages/my/questionsList.vue
+22
-17
没有找到文件。
src/pages/courseExam/abilityAnswer.vue
浏览文件 @
f730ddd0
...
...
@@ -4,10 +4,10 @@
<!--
<div
class=
"title"
>
能力自测 测试说明
</div>
-->
<img
src=
"../../assets/images/tab1bg.png"
alt=
""
>
<p
class=
"ti"
>
自测考试时间20分钟
</p>
<p
class=
"tx"
>
考试题目共
3
3题,分四部分
</p>
<p
class=
"tx"
>
单选题共1
5
题
</p>
<p
class=
"tx"
>
多选题共1
0
题
</p>
<p
class=
"tx"
>
判断题共
5
题
</p>
<p
class=
"tx"
>
考试题目共
4
3题,分四部分
</p>
<p
class=
"tx"
>
单选题共1
6
题
</p>
<p
class=
"tx"
>
多选题共1
6
题
</p>
<p
class=
"tx"
>
判断题共
10
题
</p>
<p
class=
"tx"
>
案例题共1题
</p>
<p
class=
"ti2"
>
了解自己知识掌握情况
</p>
<p
class=
"ti2"
>
成绩报告准确分析定位
</p>
...
...
src/pages/my/collectQuestions.vue
浏览文件 @
f730ddd0
...
...
@@ -22,7 +22,7 @@
<div
class=
"text"
v-html=
"item.question_content"
></div>
<template
v-if=
"!batchDel.selectShow"
>
<div
class=
"del"
>
<div
class=
"dels"
@
click
.
prevent
.
stop
.
stop=
"del(item.question_id)"
></div>
<div
class=
"dels"
@
click
.
prevent
.
stop
.
stop=
"del(item.question_id
, 1
)"
></div>
<!--
<div
:class=
"item.is_collection ? 'collect active' : 'collect'"
@
click
.
prevent
.
stop
.
stop=
"collectQuestion(item.question_id)"
></div>
-->
</div>
</
template
>
...
...
@@ -57,7 +57,7 @@
<
template
v-else
>
<div
class=
"z-btn"
@
click=
"batchDel.selectShow = false"
>
返回
</div>
<div
class=
"z-btn mar"
@
click=
"allSelect"
>
{{
batchDel
.
isAllSelect
?
'取消全选'
:
'全选'
}}
</div>
<div
:class=
"!batchDel.isDelBtn ? 'z-btn col' : 'z-btn'"
@
click=
"batchDel.isPopShow = true"
>
删除
</div>
<div
:class=
"!batchDel.isDelBtn ? 'z-btn col' : 'z-btn'"
@
click=
"
!batchDel.isDelBtn ? batchDel.isPopShow = false :
batchDel.isPopShow = true"
>
删除
</div>
</
template
>
</div>
<div
class=
"exam_submit"
v-if=
"batchDel.isPopShow"
>
...
...
@@ -232,7 +232,7 @@ export default {
this
.
initData
()
}
},
del
(
ids
)
{
del
(
ids
,
n
)
{
const
idGroup
=
Array
.
isArray
(
ids
)
?
ids
:
[
ids
]
const
param
=
{
question_id
:
idGroup
.
toString
(),
...
...
@@ -240,24 +240,23 @@ export default {
}
api
.
deleteQuestion
(
param
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
idGroup
.
map
(
id
=>
{
const
index
=
this
.
question
.
list
.
findIndex
(
item
=>
{
return
item
.
question_id
===
id
})
this
.
question
.
list
.
splice
(
index
,
1
)
})
if
(
n
===
1
)
{
idGroup
.
map
(
id
=>
{
const
index
=
this
.
question
.
list
.
findIndex
(
item
=>
{
return
item
.
question_id
===
id
})
this
.
question
.
list
.
splice
(
index
,
1
)
})
this
.
initData
()
}
else
{
this
.
params
.
page
=
1
this
.
initData
(
2
)
document
.
documentElement
.
scrollTop
=
0
}
if
(
this
.
question
.
list
.
length
===
0
)
{
this
.
clear
()
}
this
.
batchDel
.
isDelBtn
=
false
this
.
batchDel
.
isPopShow
=
false
Toast
(
'删除成功'
)
this
.
batchDel
.
isAllSelect
=
false
console
.
log
(
this
.
question
.
list
)
if
(
this
.
question
.
list
.
length
<
5
)
{
this
.
params
.
page
=
this
.
params
.
page
+
1
this
.
initData
()
}
else
{
this
.
initData
(
true
)
}
}
})
},
...
...
@@ -338,9 +337,14 @@ export default {
initData
(
isDel
)
{
api
.
getMyQuestion
(
this
.
params
).
then
(
res
=>
{
if
(
!
isDel
)
{
res
.
list
.
map
(
item
=>
{
this
.
question
.
list
.
push
(
item
)
})
if
(
this
.
question
.
list
.
length
===
0
)
{
res
.
list
.
map
(
item
=>
{
this
.
question
.
list
.
push
(
item
)
})
}
}
if
(
isDel
===
2
)
{
this
.
question
.
list
=
res
.
list
}
this
.
question
.
total
=
res
.
total
this
.
question
.
errorTotal
=
res
.
error_total
...
...
src/pages/my/errorQuestionList.vue
浏览文件 @
f730ddd0
...
...
@@ -32,7 +32,7 @@
<div
class=
"text"
v-html=
"item.question_content"
></div>
<template
v-if=
"!batchDel.selectShow"
>
<div
class=
"del"
>
<div
class=
"dels"
@
click
.
prevent
.
stop
.
stop=
"del(item.question_id)"
></div>
<div
class=
"dels"
@
click
.
prevent
.
stop
.
stop=
"del(item.question_id
, 1
)"
></div>
<div
:class=
"item.is_collection ? 'collect active' : 'collect'"
@
click
.
prevent
.
stop
.
stop=
"collectQuestion(item.question_id)"
></div>
</div>
</
template
>
...
...
@@ -67,7 +67,7 @@
<
template
v-else
>
<div
class=
"z-btn"
@
click=
"batchDel.selectShow = false"
>
返回
</div>
<div
class=
"z-btn mar"
@
click=
"allSelect"
>
{{
batchDel
.
isAllSelect
?
'取消全选'
:
'全选'
}}
</div>
<div
:class=
"!batchDel.isDelBtn ? 'z-btn col' : 'z-btn'"
@
click=
"batchDel.isPopShow = true"
>
删除
</div>
<div
:class=
"!batchDel.isDelBtn ? 'z-btn col' : 'z-btn'"
@
click=
"
!batchDel.isDelBtn ? batchDel.isPopShow = false :
batchDel.isPopShow = true"
>
删除
</div>
</
template
>
</div>
<div
class=
"exam_submit"
v-if=
"batchDel.isPopShow"
>
...
...
@@ -242,7 +242,7 @@ export default {
this
.
initData
()
}
},
del
(
ids
)
{
del
(
ids
,
n
)
{
const
idGroup
=
Array
.
isArray
(
ids
)
?
ids
:
[
ids
]
const
param
=
{
question_id
:
idGroup
.
toString
(),
...
...
@@ -250,24 +250,23 @@ export default {
}
api
.
deleteQuestion
(
param
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
idGroup
.
map
(
id
=>
{
const
index
=
this
.
question
.
list
.
findIndex
(
item
=>
{
return
item
.
question_id
===
id
})
this
.
question
.
list
.
splice
(
index
,
1
)
})
if
(
n
===
1
)
{
idGroup
.
map
(
id
=>
{
const
index
=
this
.
question
.
list
.
findIndex
(
item
=>
{
return
item
.
question_id
===
id
})
this
.
question
.
list
.
splice
(
index
,
1
)
})
this
.
initData
()
}
else
{
this
.
params
.
page
=
1
this
.
initData
(
2
)
document
.
documentElement
.
scrollTop
=
0
}
if
(
this
.
question
.
list
.
length
===
0
)
{
this
.
clear
()
}
this
.
batchDel
.
isDelBtn
=
false
this
.
batchDel
.
isPopShow
=
false
Toast
(
'删除成功'
)
this
.
batchDel
.
isAllSelect
=
false
console
.
log
(
this
.
question
.
list
)
if
(
this
.
question
.
list
.
length
<
5
)
{
this
.
params
.
page
=
this
.
params
.
page
+
1
this
.
initData
()
}
else
{
this
.
initData
(
true
)
}
}
})
},
...
...
@@ -348,9 +347,14 @@ export default {
initData
(
isDel
)
{
api
.
getMyQuestion
(
this
.
params
).
then
(
res
=>
{
if
(
!
isDel
)
{
res
.
list
.
map
(
item
=>
{
this
.
question
.
list
.
push
(
item
)
})
if
(
this
.
question
.
list
.
length
===
0
)
{
res
.
list
.
map
(
item
=>
{
this
.
question
.
list
.
push
(
item
)
})
}
}
if
(
isDel
===
2
)
{
this
.
question
.
list
=
res
.
list
}
this
.
question
.
total
=
res
.
total
this
.
question
.
errorTotal
=
res
.
error_total
...
...
src/pages/my/questionsList.vue
浏览文件 @
f730ddd0
...
...
@@ -32,7 +32,7 @@
<div
class=
"text"
v-html=
"item.question_content"
></div>
<template
v-if=
"!batchDel.selectShow"
>
<div
class=
"del"
>
<div
class=
"dels"
@
click
.
prevent
.
stop
.
stop=
"del(item.question_id)"
></div>
<div
class=
"dels"
@
click
.
prevent
.
stop
.
stop=
"del(item.question_id
, 1
)"
></div>
<div
:class=
"item.is_collection ? 'collect active' : 'collect'"
@
click
.
prevent
.
stop
.
stop=
"collectQuestion(item.question_id)"
></div>
</div>
</
template
>
...
...
@@ -67,7 +67,7 @@
<
template
v-else
>
<div
class=
"z-btn"
@
click=
"batchDel.selectShow = false"
>
返回
</div>
<div
class=
"z-btn mar"
@
click=
"allSelect"
>
{{
batchDel
.
isAllSelect
?
'取消全选'
:
'全选'
}}
</div>
<div
:class=
"!batchDel.isDelBtn ? 'z-btn col' : 'z-btn'"
@
click=
"batchDel.isPopShow = true"
>
删除
</div>
<div
:class=
"!batchDel.isDelBtn ? 'z-btn col' : 'z-btn'"
@
click=
"
!batchDel.isDelBtn ? batchDel.isPopShow = false :
batchDel.isPopShow = true"
>
删除
</div>
</
template
>
</div>
<div
class=
"exam_submit"
v-if=
"batchDel.isPopShow"
>
...
...
@@ -261,7 +261,7 @@ export default {
// const bottomView = document.getElementById('bottom-view')
// bottomView.style.height = (clientHeight - topViewH) + 'px'
// },
del
(
ids
)
{
del
(
ids
,
n
)
{
const
idGroup
=
Array
.
isArray
(
ids
)
?
ids
:
[
ids
]
const
param
=
{
question_id
:
idGroup
.
toString
(),
...
...
@@ -269,23 +269,23 @@ export default {
}
api
.
deleteQuestion
(
param
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
idGroup
.
map
(
id
=>
{
const
index
=
this
.
question
.
list
.
findIndex
(
item
=>
{
return
item
.
question_id
===
id
})
this
.
question
.
list
.
splice
(
index
,
1
)
})
if
(
n
===
1
)
{
idGroup
.
map
(
id
=>
{
const
index
=
this
.
question
.
list
.
findIndex
(
item
=>
{
return
item
.
question_id
===
id
})
this
.
question
.
list
.
splice
(
index
,
1
)
})
this
.
initData
()
}
else
{
this
.
params
.
page
=
1
this
.
initData
(
2
)
document
.
documentElement
.
scrollTop
=
0
}
if
(
this
.
question
.
list
.
length
===
0
)
{
this
.
clear
()
}
this
.
batchDel
.
isDelBtn
=
false
this
.
batchDel
.
isPopShow
=
false
Toast
(
'删除成功'
)
this
.
batchDel
.
isAllSelect
=
false
if
(
this
.
question
.
list
.
length
<
8
)
{
this
.
params
.
page
=
this
.
params
.
page
+
1
this
.
initData
()
}
else
{
this
.
initData
(
true
)
}
}
})
},
...
...
@@ -367,9 +367,14 @@ export default {
initData
(
isDel
)
{
api
.
getMyQuestion
(
this
.
params
).
then
(
res
=>
{
if
(
!
isDel
)
{
res
.
list
.
map
(
item
=>
{
this
.
question
.
list
.
push
(
item
)
})
if
(
this
.
question
.
list
.
length
===
0
)
{
res
.
list
.
map
(
item
=>
{
this
.
question
.
list
.
push
(
item
)
})
}
}
if
(
isDel
===
2
)
{
this
.
question
.
list
=
res
.
list
}
this
.
question
.
total
=
res
.
total
this
.
question
.
errorTotal
=
res
.
error_total
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论