| | |
| | | |
| | | const predictItemList = ref([] as PredictItemApi.MmPredictItemVO) |
| | | predictItemList.value = await PredictItemApi.getMmPredictItemList({ |
| | | status: CommonEnabled.ENABLE, |
| | | itemtypename: 'NormalItem' |
| | | status: CommonEnabled.ENABLE |
| | | }) |
| | | const normalItemList = [] |
| | | if (predictItemList.value) { |
| | | const predictNormalItemList = predictItemList.value.filter(e => e.itemtypename === 'NormalItem' && e.outPuts && e.outPuts.length > 0); |
| | | if (predictNormalItemList && predictNormalItemList.length > 0) { |
| | | // 过滤掉本身 |
| | | predictItemList.value.filter(e => e.id !== id).forEach(item => { |
| | | predictNormalItemList.filter(e => e.id !== id).forEach(item => { |
| | | normalItemList.push( |
| | | { |
| | | value: item.id, |
| | |
| | | }) |
| | | } |
| | | |
| | | |
| | | predictItemList.value = await PredictItemApi.getMmPredictItemList({ |
| | | status: CommonEnabled.ENABLE, |
| | | itemtypename: 'MergeItem' |
| | | }) |
| | | const predictMergeItemList = predictItemList.value.filter(e => e.itemtypename === 'MergeItem' && e.outPuts && e.outPuts.length > 0); |
| | | const mergeItemList = [] |
| | | if (predictItemList.value) { |
| | | if (predictMergeItemList && predictMergeItemList.length > 0) { |
| | | // 过滤掉本身 |
| | | predictItemList.value.filter(e => e.id !== id).forEach(item => { |
| | | predictMergeItemList.filter(e => e.id !== id).forEach(item => { |
| | | mergeItemList.push( |
| | | { |
| | | id: item.id, |
| | | id: item.outPuts[0].id, |
| | | name: item.itemname |
| | | } |
| | | ) |