| | |
| | | } |
| | | |
| | | // 查询模型参数列表 |
| | | export const getModelParamList = async () => { |
| | | export const getModelParamList = async (id) => { |
| | | |
| | | const dataPointList = ref([] as DataPointApi.DaPointVO) |
| | | dataPointList.value = await DataPointApi.getPointList({}) |
| | |
| | | status: CommonEnabled.ENABLE, |
| | | itemtypename: 'NormalItem' |
| | | }) |
| | | const itemList = [] |
| | | const normalItemList = [] |
| | | if (predictItemList.value) { |
| | | predictItemList.value.forEach(item => { |
| | | itemList.push( |
| | | // 过滤掉本身 |
| | | predictItemList.value.filter(e => e.id !== id).forEach(item => { |
| | | normalItemList.push( |
| | | { |
| | | id: item.id, |
| | | name: item.itemname |
| | | value: item.id, |
| | | label: item.itemname, |
| | | predictlength: item.predictlength, |
| | | moduleid: item.moduleid, |
| | | children: item.outPuts?.map(e => { |
| | | return { |
| | | value: e.id, |
| | | label: e.resultName |
| | | } |
| | | }) |
| | | } |
| | | ) |
| | | }) |
| | |
| | | }) |
| | | } |
| | | |
| | | |
| | | predictItemList.value = await PredictItemApi.getMmPredictItemList({ |
| | | status: CommonEnabled.ENABLE, |
| | | itemtypename: 'MergeItem' |
| | | }) |
| | | const mergeItemList = [] |
| | | if (predictItemList.value) { |
| | | // 过滤掉本身 |
| | | predictItemList.value.filter(e => e.id !== id).forEach(item => { |
| | | mergeItemList.push( |
| | | { |
| | | id: item.id, |
| | | name: item.itemname |
| | | } |
| | | ) |
| | | }) |
| | | } |
| | | |
| | | return { |
| | | 'DATAPOINT':pointList, |
| | | 'PREDICTITEM': itemList, |
| | | 'NormalItem': normalItemList, |
| | | 'MergeItem': mergeItemList, |
| | | 'PLAN': planList, |
| | | } |
| | | } |