| | |
| | | <template> |
| | | <div> |
| | | <PanelHeader title="工单执行效率分析" /> |
| | | <PanelHeader title="工单执行效率分析" to="/productionManagement/productionManagement/workOrderEdit/index" /> |
| | | <div class="main-panel panel-item-customers"> |
| | | <div class="filters-row"> |
| | | <DateTypeSwitch v-model="dateType" @change="handleDateTypeChange" /> |
| | |
| | | import Echarts from '@/components/Echarts/echarts.vue' |
| | | import DateTypeSwitch from './DateTypeSwitch.vue' |
| | | |
| | | const dateType = ref(1) // 1=周 2=月 3=季度 |
| | | const dateType = ref(3) // 1=周 2=月 3=季度 |
| | | |
| | | const chartStyle = { |
| | | width: '100%', |
| | |
| | | } |
| | | |
| | | const fetchData = () => { |
| | | workOrderEfficiencyAnalysis({ dateType: dateType.value }) |
| | | workOrderEfficiencyAnalysis({ type: dateType.value }) |
| | | .then((res) => { |
| | | if (res.code !== 200 || !Array.isArray(res.data)) return |
| | | const items = res.data |