| | |
| | | |
| | | <script setup> |
| | | import { getAssets } from '@/utils' |
| | | import { getDepartmentList } from '@/utils/apis.js' |
| | | import { getDepartmentList } from '@/utils/api.js' |
| | | import { reactive, toRefs, onMounted, computed } from 'vue'; |
| | | import { useCounterStore } from '@/stores/counter.js' |
| | | import { RouterView, useRoute, useRouter } from 'vue-router' |
| | |
| | | import axiosInstance from './request'; |
| | | |
| | | // å工产åç»è®¡TOP10 |
| | | export function getTop (companyId, departId) { |
| | | return axiosInstance.get(`statistics/userProduceTop/${companyId}/${departId}`) |
| | | export function getTop (companyId, departId, params) { |
| | | return axiosInstance.get(`statistics/userProduceTop/${companyId}/${departId}`, { params }) |
| | | } |
| | | |
| | | // æå计å-宿¶ä»åºä½éç»è®¡ |
| | |
| | | // è¿7天ä¸è¯ååå¸-ä¸è¯åæ°é-æä¸è¯é¡¹ç»è®¡ |
| | | export function getUnqualifiedCateData (companyId, departId, procedureId) { |
| | | return axiosInstance.get(`statistics/getUnqualifiedCateData/${companyId}/${departId}?procedureId=${procedureId}`) |
| | | } |
| | | |
| | | |
| | | // æ°æ®ç»è®¡-æå计åï¼æ§è¡ä¸ãå»¶æè®¡åæ°ã仿¥ç产人æ°ã仿¥çäº§è®¾å¤æ°ã仿¥ä¸è¯å |
| | | export function getProcedurePlansList (companyId, departId, params) { |
| | | return axiosInstance.get(`statistics/getProcedurePlansList/${companyId}/${departId}`, {params} ) |
| | | } |
| | | |
| | | // æ¥è¯¢ä¼ä¸å
¨é¨å
¬å¸é¨é¨ |
| | | export function getDepartmentList (companyId) { |
| | | return axiosInstance.get(`statistics/getDepartmentList/${companyId}`) |
| | | } |
| | | |
| | | // æ°æ®ç»è®¡-æå计åï¼æ§è¡ä¸ãå»¶æè®¡åæ°ã仿¥ç产人æ°ã仿¥çäº§è®¾å¤æ°ã仿¥ä¸è¯å |
| | | export function getProcedurePlanData (companyId, departId, params) { |
| | | return axiosInstance.get(`statistics/getProcedurePlanData/${companyId}/${departId}`, {params} ) |
| | | } |
| | |
| | | |
| | | <script setup> |
| | | import { reactive, ref, toRefs, onMounted, onBeforeUnmount, onUnmounted, nextTick } from 'vue' |
| | | import { getProcedurePlanData, getTop, getProcedurePlansList, getRecordLogPage } from '@/utils/apis.js' |
| | | import { getProcedurePlanData, getTop, getProcedurePlansList, getRecordLogPage } from '@/utils/api.js' |
| | | import { useCounterStore } from '@/stores/counter.js' |
| | | import { useRoute } from 'vue-router' |
| | | import * as echarts from 'echarts' |