| | |
| | | import request from '@/config/axios' |
| | | import * as DataPointApi from '@/api/data/da/point' |
| | | import * as PredictItemApi from '@/api/model/pre/predict' |
| | | import * as PredictItemApi from '@/api/model/pre/item' |
| | | import * as PlanItemApi from '@/api/data/plan/item' |
| | | import {CommonEnabled} from "@/utils/constants"; |
| | | import {getItemList, ItemVO} from "@/api/data/plan/item"; |
| | | |
| | | export interface ScheduleModelVO { |
| | | id: string |
| | |
| | | ) |
| | | }) |
| | | } |
| | | |
| | | const planItemList = ref([] as PlanItemApi.ItemVO) |
| | | planItemList.value = await PlanItemApi.getItemList({ |
| | | }) |
| | | const planList = [] |
| | | if (planItemList.value) { |
| | | planItemList.value.forEach(item => { |
| | | planList.push( |
| | | { |
| | | id: item.id, |
| | | name: item.itemName |
| | | } |
| | | ) |
| | | }) |
| | | } |
| | | |
| | | return { |
| | | 'DATAPOINT':pointList, |
| | | 'PREDICTITEM': itemList |
| | | 'PREDICTITEM': itemList, |
| | | 'PLAN': planList, |
| | | } |
| | | } |