| | |
| | | <template> |
| | | <div class="work-time-management"> |
| | | <div class="work-time-management bg-1"> |
| | | <div style="text-align: left"> |
| | | <el-radio-group |
| | | v-model="currentComponent" |
| | | size="small" |
| | | style="margin-top: 16px; margin-left: 16px" |
| | | > |
| | | <el-radio-button |
| | | v-if="checkPermi(['performance:manHour:workTimeStatistics'])" |
| | | label="workTimeStatistics" |
| | | > |
| | | 工时汇总 |
| | | <el-radio-group v-model="currentComponent" size="small" style="margin-top: 16px;margin-bottom: 16px;"> |
| | | <el-radio-button label="workTimeStatistics" v-hasPermi="['performance:manHour:workTimeStatistics']"> |
| | | 工时统计 |
| | | </el-radio-button> |
| | | <el-radio-button |
| | | v-if="checkPermi(['performance:manHour:workTimeManagement'])" |
| | | label="workTimeManagement" |
| | | > |
| | | <el-radio-button label="workTimeManagement" v-hasPermi="['performance:manHour:workTimeManagement']"> |
| | | 日工时管理 |
| | | </el-radio-button> |
| | | <el-radio-button |
| | | v-if="checkPermi(['performance:manHour:workTimeConfig'])" |
| | | label="workTimeConfig" |
| | | > |
| | | <el-radio-button label="workTimeConfig" v-hasPermi="['performance:manHour:workTimeConfig']"> |
| | | 辅助工时配置 |
| | | </el-radio-button> |
| | | </el-radio-group> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import workTimeStatistics from "./workTimeStatistics.vue"; |
| | | import workTimeManagement from "./workTimeManagement.vue"; |
| | | import workTimeConfig from "./workTimeConfig.vue"; |
| | | import { checkPermi } from "@/utils/permission"; // 权限判断函数 |
| | | import workTimeStatistics from '../manHour/work-time-statistics.vue' |
| | | import workTimeManagement from '../manHour/work-time-management.vue' |
| | | import workTimeConfig from '../manHour/work-time-config.vue' |
| | | export default { |
| | | components: { |
| | | workTimeStatistics, |
| | | workTimeManagement, |
| | | workTimeConfig, |
| | | workTimeConfig |
| | | }, |
| | | created() {}, |
| | | created() { |
| | | this.currentComponent = 'workTimeStatistics' |
| | | }, |
| | | data() { |
| | | return { |
| | | currentComponent: "workTimeStatistics", |
| | | }; |
| | | return{ |
| | | currentComponent:'workTimeStatistics', |
| | | selectAuxiliaryOriginalHours:false, |
| | | selectAuxiliaryOutputWorkingHours:false, |
| | | insertAuxiliaryWorkingHours:false |
| | | } |
| | | }, |
| | | methods: { |
| | | checkPermi, |
| | | }, |
| | | }; |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped></style> |
| | | <style scoped> |
| | | |
| | | </style> |