|
|
@@ -31,7 +31,8 @@
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
|
- <vtable ref="vtable" v-show="index==1"></vtable>
|
|
|
+ <vtable ref="vtable" v-show="index==1" v-on:viewProject='viewProject'></vtable>
|
|
|
+ <project ref="project" v-show="index==4" v-on:onBackToProjectList='onBackToProjectList'></project>
|
|
|
<!-- <teacher ref="teacher" v-show="index==1" @paging="paging"></teacher>
|
|
|
<create ref="create" v-show="index==3"></create>
|
|
|
<vtable ref="table" v-show="index==2"></vtable>
|
|
|
@@ -42,6 +43,7 @@
|
|
|
|
|
|
<script>
|
|
|
import vtable from "./table.vue"
|
|
|
+ import project from "./project.vue"
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -68,7 +70,8 @@
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
- vtable
|
|
|
+ vtable,
|
|
|
+ project
|
|
|
},
|
|
|
methods: {
|
|
|
checkMenu(obj, i) {
|
|
|
@@ -97,6 +100,15 @@
|
|
|
this.name=mydata_userInfo.Name;
|
|
|
this.position=userController.userInfo.Profession;
|
|
|
},
|
|
|
+ viewProject(obj, index) {
|
|
|
+ // this.checkMenu({id:4}, 1);
|
|
|
+ this.index = 4;
|
|
|
+ this.$refs.project.viewProject(obj);
|
|
|
+ },
|
|
|
+ onBackToProjectList(){
|
|
|
+ this.index = 1;
|
|
|
+ this.$refs.vtable.getList();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|