Commit 1277cd51 authored by 杨梦雪's avatar 杨梦雪

11

parent 48c47006
...@@ -13,6 +13,7 @@ export default [{ ...@@ -13,6 +13,7 @@ export default [{
meta: { meta: {
title: '营地作业' title: '营地作业'
} }
}, },
{ {
path: '/homework/refer', path: '/homework/refer',
......
...@@ -36,6 +36,9 @@ ...@@ -36,6 +36,9 @@
</div> </div>
</div> </div>
</div> </div>
<div>
<el-pagination layout="prev, pager, next" :total="50"> </el-pagination>
</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -49,16 +52,17 @@ export default { ...@@ -49,16 +52,17 @@ export default {
return {}; return {};
}, },
created() { created() {
// this.getTeacherWork(); this.getTeacherWork();
}, },
watch: {}, watch: {},
methods: { methods: {
toRefer() { toRefer() {
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);
this.$emit("torefer", 1);
}, },
getTeacherWork() { getTeacherWork() {
getTeacherWork({page:1}).then((res) => { getTeacherWork({ page: 1 }).then((res) => {
console.log(res, "getTeacherWork"); console.log(res, "getTeacherWork");
if (res.data.code != 200) { if (res.data.code != 200) {
return this.$message.error(res.data.message); return this.$message.error(res.data.message);
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
<SignUp @getStatus="getStatus" v-if="this.campindex_type==0"> </SignUp> <SignUp @getStatus="getStatus" v-if="this.campindex_type==0"> </SignUp>
<Homework v-if="this.campindex_type==1"> </Homework> <Homework v-if="this.campindex_type==1"> </Homework>
<Certificate v-if="this.campindex_type==2"> </Certificate> <Certificate v-if="this.campindex_type==2"> </Certificate>
<homeRefer @torefer="torefer"> </homeRefer>
</div> </div>
</div> </div>
</div> </div>
...@@ -50,6 +51,7 @@ import svg3 from "@/assets/img/signUp/icon-2.svg"; ...@@ -50,6 +51,7 @@ import svg3 from "@/assets/img/signUp/icon-2.svg";
import SignUp from "v/index/camp/SignUp"; import SignUp from "v/index/camp/SignUp";
import Homework from "v/index/camp/Homework"; import Homework from "v/index/camp/Homework";
import Certificate from "v/index/camp/Certificate"; import Certificate from "v/index/camp/Certificate";
import homeRefer from "v/index/camp/homework/refer";
export default { export default {
name: "campIndex", name: "campIndex",
...@@ -59,6 +61,7 @@ export default { ...@@ -59,6 +61,7 @@ export default {
SignUp, SignUp,
Homework, Homework,
Certificate, Certificate,
homeRefer,
}, },
// props:{} // props:{}
data() { data() {
...@@ -97,6 +100,9 @@ export default { ...@@ -97,6 +100,9 @@ export default {
// console.log(val,'val') // console.log(val,'val')
// window.localStorage.setItem("campindex_type", val); // window.localStorage.setItem("campindex_type", val);
// }, // },
torefer(val){
console.log(val,'val')
}
}, },
created() { created() {
// this.ToSignUp(this.index); // this.ToSignUp(this.index);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment