|
@@ -3,7 +3,8 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24" class="style">
|
|
|
<el-col :span="24" class="top">
|
|
|
- <topInfo></topInfo>
|
|
|
+ <!-- <topInfo></topInfo> -->
|
|
|
+ <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="main">
|
|
|
<mainData :teacherinfo="teacherinfo" :form="form" @onsave="onsave"></mainData>
|
|
@@ -17,7 +18,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import topInfo from '@/layout/teacherscore/topInfo.vue';
|
|
|
+import NavBar from '@/layout/teacherscore/topInfo.vue';
|
|
|
import footInfo from '@/layout/common/footInfo.vue';
|
|
|
import mainData from '@/layout/teacherscore/mainData.vue';
|
|
|
const { mapActions: teacher } = createNamespacedHelpers('teacher');
|
|
@@ -28,13 +29,17 @@ export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
|
components: {
|
|
|
- topInfo, //头部导航
|
|
|
+ NavBar, //头部导航
|
|
|
footInfo, //底部导航
|
|
|
mainData, //课程安排主体
|
|
|
},
|
|
|
data: () => ({
|
|
|
teacherinfo: {},
|
|
|
form: {},
|
|
|
+ title: '',
|
|
|
+ isleftarrow: '',
|
|
|
+ transitionName: 'fade',
|
|
|
+ navShow: true,
|
|
|
}),
|
|
|
created() {
|
|
|
this.searchInfo();
|
|
@@ -44,8 +49,16 @@ export default {
|
|
|
return this.$route.query.id;
|
|
|
},
|
|
|
},
|
|
|
- mounted() {},
|
|
|
- watch: {},
|
|
|
+ mounted() {
|
|
|
+ this.title = this.$route.meta.title;
|
|
|
+ this.isleftarrow = this.$route.meta.isleftarrow;
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ $route(to, from) {
|
|
|
+ this.title = to.meta.title;
|
|
|
+ this.isleftarrow = to.meta.isleftarrow;
|
|
|
+ },
|
|
|
+ },
|
|
|
methods: {
|
|
|
...teacher({ columnList: 'query', teacherInfo: 'fetch' }),
|
|
|
...mapScore(['fetch', 'create', 'update']),
|