|
@@ -33,7 +33,7 @@
|
|
|
<!-- <view class="rightBox"> -->
|
|
<!-- <view class="rightBox"> -->
|
|
|
<!-- showboder -->
|
|
<!-- showboder -->
|
|
|
<teacher ref="teacher" v-show="index==1" @paging="paging"></teacher>
|
|
<teacher ref="teacher" v-show="index==1" @paging="paging"></teacher>
|
|
|
- <create ref="create" v-show="index==3"></create>
|
|
|
|
|
|
|
+ <create ref="create" v-show="index==3" v-on:onBackCreateInfo="onBackCreateInfo"></create>
|
|
|
<vtable ref="table" v-show="index==2" v-on:viewProject='viewProject'></vtable>
|
|
<vtable ref="table" v-show="index==2" v-on:viewProject='viewProject'></vtable>
|
|
|
<project ref="project" v-show="index==4"></project>
|
|
<project ref="project" v-show="index==4"></project>
|
|
|
<location ref="location" v-show="index==2||index==4"></location>
|
|
<location ref="location" v-show="index==2||index==4"></location>
|
|
@@ -59,17 +59,19 @@
|
|
|
menu: [{
|
|
menu: [{
|
|
|
id: 1,
|
|
id: 1,
|
|
|
icon: "icon-bianzu22",
|
|
icon: "icon-bianzu22",
|
|
|
- select: true,
|
|
|
|
|
|
|
+ select: false,
|
|
|
title: '新建项目',
|
|
title: '新建项目',
|
|
|
list: []
|
|
list: []
|
|
|
- }, {
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
id: 2,
|
|
id: 2,
|
|
|
icon: "icon-bianzu22",
|
|
icon: "icon-bianzu22",
|
|
|
select: false,
|
|
select: false,
|
|
|
title: '选择项目',
|
|
title: '选择项目',
|
|
|
|
|
+ // list: []
|
|
|
list: [{
|
|
list: [{
|
|
|
id: 4,
|
|
id: 4,
|
|
|
- title: "项目",
|
|
|
|
|
|
|
+ title: "项目1",
|
|
|
select: false
|
|
select: false
|
|
|
}]
|
|
}]
|
|
|
}],
|
|
}],
|
|
@@ -84,11 +86,9 @@
|
|
|
vtable,
|
|
vtable,
|
|
|
project,
|
|
project,
|
|
|
location
|
|
location
|
|
|
- },
|
|
|
|
|
- created() {
|
|
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+
|
|
|
checkMenu(obj, i) {
|
|
checkMenu(obj, i) {
|
|
|
this.index = obj.id;
|
|
this.index = obj.id;
|
|
|
if (i == 0) {
|
|
if (i == 0) {
|
|
@@ -101,10 +101,13 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (obj.id == 2) {
|
|
if (obj.id == 2) {
|
|
|
|
|
+ // this.$refs.table.$forceUpdate();//强制刷新页面
|
|
|
this.$refs.table.getList();
|
|
this.$refs.table.getList();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
paging(obj) {
|
|
paging(obj) {
|
|
|
|
|
+ // console.log('this.index=',this.index)
|
|
|
|
|
+ // console.log('obj=',obj)
|
|
|
this.index = obj;
|
|
this.index = obj;
|
|
|
},
|
|
},
|
|
|
childrenClick(obj) {
|
|
childrenClick(obj) {
|
|
@@ -127,6 +130,9 @@
|
|
|
this.menu[1].list[0].title = '项目' + (index + 1);
|
|
this.menu[1].list[0].title = '项目' + (index + 1);
|
|
|
this.checkMenu(this.menu[1].list[0],1);
|
|
this.checkMenu(this.menu[1].list[0],1);
|
|
|
this.$refs.project.viewProject(obj);
|
|
this.$refs.project.viewProject(obj);
|
|
|
|
|
+ },
|
|
|
|
|
+ onBackCreateInfo(){
|
|
|
|
|
+ this.index = 1;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|