Files

69 lines
1.5 KiB
Vue
Raw Normal View History

2022-09-13 18:23:31 +08:00
<template>
<view>
2022-09-14 01:00:58 +08:00
<u-tabs :list="tabList" class='tabs' @change="activedIndexChanged"></u-tabs>
<view class="sized-box"></view>
<ProjectDetailHome v-if="activedIndex==0"></ProjectDetailHome>
<ProjectProgress v-else-if="activedIndex==1"> </ProjectProgress>
<QualityManage v-else-if="activedIndex==2"> </QualityManage>
<view v-else>
<text>Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit dolor similique molestiae, nostrum
ducimus provident aperiam consequuntur adipisci id in impedit rem officiis ipsam alias error! Ipsam
facere numquam omnis.</text>
</view>
2022-09-13 18:23:31 +08:00
</view>
</template>
<script>
2022-09-13 18:33:35 +08:00
import ProjectDetailHome from './project_detail_home/project_detail_home.vue'
2022-09-14 01:00:58 +08:00
import ProjectProgress from './project_progress/project_progress.vue'
import QualityManage from './quality_manage/quality_manage.vue'
2022-09-13 18:23:31 +08:00
export default {
2022-09-13 18:33:35 +08:00
name: 'ProjectHome',
components: {
2022-09-14 01:00:58 +08:00
ProjectDetailHome,
ProjectProgress,
QualityManage
2022-09-13 18:33:35 +08:00
},
2022-09-13 18:23:31 +08:00
data() {
return {
2022-09-14 01:00:58 +08:00
activedIndex: 2,
2022-09-13 18:23:31 +08:00
tabList: [{
2022-09-13 18:33:35 +08:00
name: '主页'
2022-09-13 18:23:31 +08:00
}, {
2022-09-13 18:33:35 +08:00
name: '进度管理'
2022-09-13 18:23:31 +08:00
},
{
2022-09-13 18:33:35 +08:00
name: '质量管理'
2022-09-13 18:23:31 +08:00
},
{
2022-09-13 18:33:35 +08:00
name: '安全管理'
2022-09-13 18:23:31 +08:00
},
2022-09-14 01:00:58 +08:00
2022-09-13 18:23:31 +08:00
]
}
},
methods: {
2022-09-14 01:00:58 +08:00
activedIndexChanged(item) {
this.activedIndex = item.index;
}
2022-09-13 18:23:31 +08:00
}
}
</script>
<style>
2022-09-14 01:00:58 +08:00
page {
background-color: #f6f6f6;
}
</style>
<style lang="scss" scoped>
.tabs {
position: fixed;
width: 100%;
z-index: 99;
background-color: white;
}
2022-09-13 18:23:31 +08:00
2022-09-14 01:00:58 +08:00
.sized-box {
height: 88rpx;
}
2022-09-13 18:23:31 +08:00
</style>