Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
campSite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨梦雪
campSite
Commits
1277cd51
Commit
1277cd51
authored
Dec 16, 2021
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
48c47006
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
src/router/index/camp.js
src/router/index/camp.js
+1
-0
src/views/index/camp/Homework.vue
src/views/index/camp/Homework.vue
+6
-2
src/views/index/camp/Index.vue
src/views/index/camp/Index.vue
+6
-0
No files found.
src/router/index/camp.js
View file @
1277cd51
...
...
@@ -13,6 +13,7 @@ export default [{
meta
:
{
title
:
'
营地作业
'
}
},
{
path
:
'
/homework/refer
'
,
...
...
src/views/index/camp/Homework.vue
View file @
1277cd51
...
...
@@ -36,6 +36,9 @@
</div>
</div>
</div>
<div>
<el-pagination
layout=
"prev, pager, next"
:total=
"50"
>
</el-pagination>
</div>
</div>
</
template
>
<
script
>
...
...
@@ -49,16 +52,17 @@ export default {
return
{};
},
created
()
{
//
this.getTeacherWork();
this
.
getTeacherWork
();
},
watch
:
{},
methods
:
{
toRefer
()
{
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
$router
.
push
(
"
/homework/refer?code=
"
+
code
);
this
.
$emit
(
"
torefer
"
,
1
);
},
getTeacherWork
()
{
getTeacherWork
({
page
:
1
}).
then
((
res
)
=>
{
getTeacherWork
({
page
:
1
}).
then
((
res
)
=>
{
console
.
log
(
res
,
"
getTeacherWork
"
);
if
(
res
.
data
.
code
!=
200
)
{
return
this
.
$message
.
error
(
res
.
data
.
message
);
...
...
src/views/index/camp/Index.vue
View file @
1277cd51
...
...
@@ -32,6 +32,7 @@
<SignUp
@
getStatus=
"getStatus"
v-if=
"this.campindex_type==0"
>
</SignUp>
<Homework
v-if=
"this.campindex_type==1"
>
</Homework>
<Certificate
v-if=
"this.campindex_type==2"
>
</Certificate>
<homeRefer
@
torefer=
"torefer"
>
</homeRefer>
</div>
</div>
</div>
...
...
@@ -50,6 +51,7 @@ import svg3 from "@/assets/img/signUp/icon-2.svg";
import
SignUp
from
"
v/index/camp/SignUp
"
;
import
Homework
from
"
v/index/camp/Homework
"
;
import
Certificate
from
"
v/index/camp/Certificate
"
;
import
homeRefer
from
"
v/index/camp/homework/refer
"
;
export
default
{
name
:
"
campIndex
"
,
...
...
@@ -59,6 +61,7 @@ export default {
SignUp
,
Homework
,
Certificate
,
homeRefer
,
},
// props:{}
data
()
{
...
...
@@ -97,6 +100,9 @@ export default {
// console.log(val,'val')
// window.localStorage.setItem("campindex_type", val);
// },
torefer
(
val
){
console
.
log
(
val
,
'
val
'
)
}
},
created
()
{
// this.ToSignUp(this.index);
...
...
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