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
48c47006
Commit
48c47006
authored
Dec 15, 2021
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
97a5735d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
4 deletions
+78
-4
src/request/index/homework.js
src/request/index/homework.js
+52
-0
src/views/index/camp/Homework.vue
src/views/index/camp/Homework.vue
+11
-1
src/views/index/camp/Index.vue
src/views/index/camp/Index.vue
+15
-3
No files found.
src/request/index/homework.js
0 → 100644
View file @
48c47006
/* eslint-disable */
import
{
request
}
from
'
./network
'
import
store
from
'
@/store
'
// 获取营地作业列表
export
function
getTeacherWork
(
data
)
{
data
[
'
identity
'
]
=
store
.
state
.
indexIdentity
;
return
request
({
method
:
'
post
'
,
url
:
'
/web/download/getTeacherWork
'
,
params
:
data
})
}
// 下载老师作业
export
function
downloadTeacherWork
(
data
)
{
data
[
'
identity
'
]
=
store
.
state
.
indexIdentity
;
return
request
({
method
:
'
get
'
,
url
:
'
/web/download/downloadTeacherWork
'
,
params
:
data
})
}
// 获取学生上传作业的oss
export
function
getPostWorkStudent
(
data
)
{
data
[
'
identity
'
]
=
store
.
state
.
indexIdentity
;
return
request
({
method
:
'
post
'
,
url
:
'
/web/download/getPostWorkStudent
'
,
params
:
data
})
}
// 获取学生提交营地作业
export
function
getStudentWork
(
data
)
{
data
[
'
identity
'
]
=
store
.
state
.
indexIdentity
;
return
request
({
method
:
'
post
'
,
url
:
'
/web/download/getStudentWork
'
,
params
:
data
})
}
// 提交营地作业
export
function
subStudentWork
(
data
)
{
data
[
'
identity
'
]
=
store
.
state
.
indexIdentity
;
return
request
({
method
:
'
post
'
,
url
:
'
/web/download/subStudentWork
'
,
params
:
data
})
}
src/views/index/camp/Homework.vue
View file @
48c47006
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
{
getTeacherWork
}
from
"
r/index/homework
"
;
export
default
{
export
default
{
name
:
"
homework
"
,
name
:
"
homework
"
,
...
@@ -48,7 +49,7 @@ export default {
...
@@ -48,7 +49,7 @@ export default {
return
{};
return
{};
},
},
created
()
{
created
()
{
//
this.$emit("getStatus", false, 1
);
//
this.getTeacherWork(
);
},
},
watch
:
{},
watch
:
{},
methods
:
{
methods
:
{
...
@@ -56,6 +57,15 @@ export default {
...
@@ -56,6 +57,15 @@ export default {
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
this
.
$router
.
push
(
"
/homework/refer?code=
"
+
code
);
this
.
$router
.
push
(
"
/homework/refer?code=
"
+
code
);
},
},
getTeacherWork
()
{
getTeacherWork
({
page
:
1
}).
then
((
res
)
=>
{
console
.
log
(
res
,
"
getTeacherWork
"
);
if
(
res
.
data
.
code
!=
200
)
{
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
this
.
$message
.
success
(
res
.
data
.
message
);
});
},
},
},
};
};
</
script
>
</
script
>
...
...
src/views/index/camp/Index.vue
View file @
48c47006
...
@@ -28,7 +28,10 @@
...
@@ -28,7 +28,10 @@
</div>
</div>
<div
class=
"camp_right"
ref=
"rightBox"
>
<div
class=
"camp_right"
ref=
"rightBox"
>
<router-view
@
getStatus=
"getStatus"
/>
<!--
<router-view
@
getStatus=
"getStatus"
/>
-->
<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>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -38,23 +41,29 @@
...
@@ -38,23 +41,29 @@
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
Cookie
from
"
js-cookie
"
;
import
Header
from
"
@/components/index/SignUp/Header.vue
"
;
import
Header
from
"
@/components/index/SignUp/Header.vue
"
;
import
Footer
from
"
@/components/index/Footer.vue
"
;
import
Footer
from
"
@/components/index/Footer.vue
"
;
import
svg1
from
"
@/assets/img/signUp/icon.svg
"
;
import
svg1
from
"
@/assets/img/signUp/icon.svg
"
;
import
svg2
from
"
@/assets/img/signUp/icon-1.svg
"
;
import
svg2
from
"
@/assets/img/signUp/icon-1.svg
"
;
import
svg3
from
"
@/assets/img/signUp/icon-2.svg
"
;
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
"
;
export
default
{
export
default
{
name
:
"
campIndex
"
,
name
:
"
campIndex
"
,
components
:
{
components
:
{
Header
,
Header
,
Footer
,
Footer
,
SignUp
,
Homework
,
Certificate
,
},
},
// props:{}
// props:{}
data
()
{
data
()
{
return
{
return
{
index
:
0
,
index
:
""
,
isPosition
:
0
,
// 左侧box是否浮动
isPosition
:
0
,
// 左侧box是否浮动
pageYOffset
:
0
,
// 左侧box浮动时,滚动的高度
pageYOffset
:
0
,
// 左侧box浮动时,滚动的高度
scorllHeight
:
0
,
// 最大滚动高度
scorllHeight
:
0
,
// 最大滚动高度
...
@@ -93,6 +102,7 @@ export default {
...
@@ -93,6 +102,7 @@ export default {
// this.ToSignUp(this.index);
// this.ToSignUp(this.index);
this
.
getStatus
();
this
.
getStatus
();
// this.$refs.child.signUpInit();
// this.$refs.child.signUpInit();
},
},
mounted
()
{
mounted
()
{
window
.
addEventListener
(
"
scroll
"
,
this
.
handleScrollX
,
true
);
window
.
addEventListener
(
"
scroll
"
,
this
.
handleScrollX
,
true
);
...
@@ -116,6 +126,8 @@ export default {
...
@@ -116,6 +126,8 @@ export default {
this
.
$router
.
push
(
"
/signUp/
"
+
this
.
index_status
+
"
?code=
"
+
code
);
this
.
$router
.
push
(
"
/signUp/
"
+
this
.
index_status
+
"
?code=
"
+
code
);
}
else
if
(
this
.
campindex_type
==
1
)
{
}
else
if
(
this
.
campindex_type
==
1
)
{
this
.
$router
.
push
(
"
/homework?code=
"
+
code
);
this
.
$router
.
push
(
"
/homework?code=
"
+
code
);
// this.$refs.rightBox.$children[0].getTeacherWork();
// console.log( this.$refs.rightBox.children)
}
else
if
(
this
.
campindex_type
==
2
)
{
}
else
if
(
this
.
campindex_type
==
2
)
{
this
.
$router
.
push
(
"
/certificate?code=
"
+
code
);
this
.
$router
.
push
(
"
/certificate?code=
"
+
code
);
}
}
...
...
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