Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Damon
study
Commits
283ea2c5
Commit
283ea2c5
authored
Jul 28, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement: 只有二级题库弹窗
parent
32ec109f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
examSetting.vue
src/pages/learn/examSetting.vue
+13
-8
No files found.
src/pages/learn/examSetting.vue
View file @
283ea2c5
...
...
@@ -91,6 +91,7 @@
@
submit=
"handleClickSubmit"
>
<view
v-for=
"(value, key) in selected"
:key=
"key"
class=
"pop-content"
>
<u-icon
v-if=
"key != firstKey"
name=
"arrow-downward"
></u-icon>
<view
:class=
"['pop-content-text',
{ last: key == thirdKey }]"
>
{{
value
.
label
}}
<text
v-if=
"key != secondKey"
...
...
@@ -99,7 +100,6 @@
}}
)
</text
></view
>
<u-icon
v-if=
"key != thirdKey"
name=
"arrow-downward"
></u-icon>
</view>
</PopView>
<view>
...
...
@@ -231,16 +231,21 @@ export default {
async
getProvinceList
(
id
)
{
let
res
=
await
this
.
$u
.
api
.
getProvinceList
(
id
)
console
.
log
(
res
)
this
.
range
=
res
},
// 学员增加自己的题库
async
addQuestionWarehouse
(
params
)
{
let
res
=
await
this
.
$u
.
api
.
addQuestionWarehouse
({
params
})
console
.
log
(
res
)
this
.
range
=
res
this
.
range
=
res
||
[]
},
async
handleClickSubmit
()
{
if
(
this
.
buttonDisabled
)
return
if
(
this
.
range
.
length
<=
0
||
this
.
range
.
length
==
null
)
{
this
.
$refs
.
uToast
.
show
({
title
:
'该类型和区域没有的题库'
,
type
:
'warning'
,
duration
:
1500
,
callback
:
()
=>
{
this
.
showPop
=
false
},
})
return
}
if
(
this
.
index
==
0
)
{
this
.
changeIndex
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment