Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
ab1f8da6
Commit
ab1f8da6
authored
May 19, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
e19c93b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
apps/home/Tpl/default/Home/exams_w3g.html
+16
-8
No files found.
apps/home/Tpl/default/Home/exams_w3g.html
View file @
ab1f8da6
...
@@ -217,6 +217,12 @@
...
@@ -217,6 +217,12 @@
},
},
selectedCondition
:
function
()
{
selectedCondition
:
function
()
{
return
this
.
condition
.
filter
(
r
=>
{
return
r
.
id
!=
''
&&
r
.
select
})
return
this
.
condition
.
filter
(
r
=>
{
return
r
.
id
!=
''
&&
r
.
select
})
},
conditionId
:
function
()
{
let
f
=
this
.
condition
.
filter
(
r
=>
{
return
r
.
id
!=
''
&&
r
.
select
})
if
(
this
.
tab
==
0
)
{
return
f
.
length
>
0
?
f
[
0
].
id
:
''
}
}
}
},
},
methods
:
{
methods
:
{
...
@@ -236,21 +242,21 @@
...
@@ -236,21 +242,21 @@
this
.
myTab
=
tab
this
.
myTab
=
tab
},
},
onCondition
:
function
(
condition
)
{
onCondition
:
function
(
condition
)
{
if
(
condition
.
id
==
''
)
{
this
.
condition
.
forEach
(
r
=>
{
r
.
select
=
false
})
this
.
condition
.
forEach
(
r
=>
{
r
.
select
=
false
})
condition
.
select
=
true
this
.
$refs
.
item
.
toggle
()
if
(
this
.
tab
==
0
)
{
this
.
loadZhenti
()
}
else
{
}
else
{
this
.
condition
.
forEach
(
r
=>
{
r
.
select
=
r
.
id
==
''
?
false
:
r
.
select
})
}
}
condition
.
select
=
true
},
},
//加载真题
//加载真题
loadZhenti
:
function
()
{
loadZhenti
:
function
()
{
let
that
=
this
let
that
=
this
$
.
ajax
({
$
.
ajax
({
type
:
"GET"
,
type
:
"GET"
,
url
:
"{:U('exams/Index/paper')}"
+
"&api=1
"
,
url
:
"{:U('exams/Index/paper')}"
+
"&api=1
&c="
+
that
.
conditionId
,
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
.
status
==
1
)
{
if
(
res
.
status
==
1
)
{
...
@@ -277,7 +283,9 @@
...
@@ -277,7 +283,9 @@
}
}
}
}
})
})
}
},
//加载试题下载
}
}
})
})
</script>
</script>
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