|
|
|
@ -119,16 +119,16 @@ async function updatempName(selectedRowKeys, selectedRows) { |
|
|
|
else |
|
|
|
setProps({disabled: false}) |
|
|
|
|
|
|
|
instantForm.modelId = selectedRows.length !== 0 ? `${selectedRows[0].id}` : `` |
|
|
|
instantForm.modelId = selectedRows.length !== 0 ? `${selectedRows[0].modelId}` : `` |
|
|
|
|
|
|
|
instantForm.mpName = selectedRows.length !== 0 ? `${selectedRows[0].modelName}-实例` : `` |
|
|
|
setFieldsValue(instantForm) |
|
|
|
|
|
|
|
const versionData = selectedRows.length !== 0 ? await getModelVersionList({modelId: selectedRows[0].id}) : [] |
|
|
|
const versionData = selectedRows.length !== 0 ? await getModelVersionList({modelId: selectedRows[0].modelId}) : [] |
|
|
|
const versionList = [] as any |
|
|
|
// // 组名下拉框问题 |
|
|
|
versionData.forEach((item) => { |
|
|
|
versionList.push({label: `${item.version} (${item.conditionName})`, value: item.id}) |
|
|
|
versionList.push({label: `${item.version} (${item.conditionName})`, value: item.versionId}) |
|
|
|
}) |
|
|
|
const calcGroupData = selectedRows.length !== 0 ? await getCalcGroupList({unitId: selectedRows[0].unitId}) : [] |
|
|
|
const calcGroupList = [] as any |
|
|
|
@ -195,7 +195,7 @@ async function CompleteCreate() { |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
|
<BasicModal v-bind="$attrs" title="新增模型实例" width="80%" @cancel="onCanel" |
|
|
|
<BasicModal v-bind="$attrs" title="新增模型实例" width="60%" height="500px" @cancel="onCanel" |
|
|
|
@register="registerCreateModal"> |
|
|
|
<Card title="实例信息"> |
|
|
|
<BasicForm @register="registerForm" ref="instantFormRef"/> |
|
|
|
|