Commit 29450d3c authored by 沈翠玲's avatar 沈翠玲

排班日历去除首页以及去除工作单元的全部查询

parent cabdab9a
<template> <template>
<div class="app-container"> <div class="app-container">
<el-tabs type="border-card"> <el-tabs type="border-card">
<el-tab-pane label="首页"> <!-- <el-tab-pane label="首页">
<CalendarTypeView></CalendarTypeView> <CalendarTypeView></CalendarTypeView>
</el-tab-pane> </el-tab-pane> -->
<el-tab-pane label="工作单元"> <el-tab-pane label="工作单元">
<TeamView></TeamView> <TeamView></TeamView>
</el-tab-pane> </el-tab-pane>
...@@ -15,11 +15,12 @@ ...@@ -15,11 +15,12 @@
</template> </template>
<script> <script>
import CalendarTypeView from "./calendarType.vue" // import CalendarTypeView from "./calendarType.vue"
import TeamView from "./team.vue" import TeamView from "./team.vue"
import UserView from "./person.vue" import UserView from "./person.vue"
export default { export default {
components:{CalendarTypeView,TeamView,UserView}, // components:{CalendarTypeView,TeamView,UserView},
components:{TeamView,UserView},
data(){ data(){
return { return {
......
<template> <template>
<div class="app-container"> <div class="app-container">
<el-container> <el-container class="el-container-cal">
<el-aside width="200px"> <el-aside width="200px" class="el-aside-cal">
<el-radio-group v-model="selectedType" class="x-fillitem el-group-list" @change="onSelected"> <el-radio-group v-model="selectedType" class="x-fillitem el-group-list" @change="onSelected">
<el-radio-button <el-radio-button
v-for="(item, index) in teamList" v-for="(item, index) in teamList"
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
data(){ data(){
return { return {
// 遮罩层 // 遮罩层
loading: true, loading: false,
date: new Date(), date: new Date(),
teamList: [], //所有的班组 teamList: [], //所有的班组
holidayList:[],//假日 holidayList:[],//假日
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
} }
}, },
created() { created() {
this.getList(); // this.getList();
this.getTeams(); this.getTeams();
}, },
methods:{ methods:{
...@@ -156,6 +156,9 @@ export default { ...@@ -156,6 +156,9 @@ export default {
} }
</script> </script>
<style> <style>
.el-aside-cal {
max-height: 700px;
}
.grid-content{ .grid-content{
padding: 5px 0; padding: 5px 0;
} }
......
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