| | |
| | | }else { |
| | | formData.value.derItem.dimension = "" |
| | | } |
| | | await handleChange(formData.value.atomItem.itemId) |
| | | await handleChange(formData.value.derItem.atomItemId) |
| | | } finally { |
| | | formLoading.value = false |
| | | } |
| | |
| | | formLoading.value = true |
| | | try { |
| | | formData.value.itemType = 'DER' |
| | | formData.value.derItem.atomItemId = formData.value.atomItem.id |
| | | formData.value.derItem.atomItemId = formData.value.atomItem.itemId |
| | | if(formData.value.derItem.dimension.length > 0){ |
| | | let dimension = '' |
| | | for (let index in formData.value.derItem.dimension){ |
| | |
| | | async function handleChange(event) { |
| | | if (event !== null && event !== undefined) { |
| | | const itemData = await ItemApi.getItem(event) |
| | | let a = itemData.atomItem.id |
| | | formData.value.atomItem.id = a |
| | | formData.value.atomItem.itemName = itemData.itemName |
| | | formData.value.atomItem.id = itemData.atomItem.id |
| | | formData.value.atomItem.itemId = itemData.id |
| | | formData.value.atomItem.itemId = itemData.atomItem.itemId |
| | | const queryParams = reactive({ |
| | | dataSetId: itemData.atomItem.dataSet, |
| | | }) |