|
@@ -25,7 +25,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts" name="FormDialog">
|
|
|
-import { ref, ComputedRef, computed, reactive } from 'vue'
|
|
|
+import { ref, ComputedRef, computed, reactive, nextTick } from 'vue'
|
|
|
import ProFrom from '@/components/ProForm/index.vue'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import FileUpload from '@/components/Upload/File.vue'
|
|
@@ -150,8 +150,16 @@ const openDialog = (params: FormParameterProps, algoModelId = null) => {
|
|
|
dialogVisible.value = true
|
|
|
}
|
|
|
|
|
|
+const updateItemOptions = (itemsOptions: ProForm.ItemsOptions[]) => {
|
|
|
+ console.log('updateItemOptions', itemsOptions)
|
|
|
+ nextTick(() => {
|
|
|
+ parameter.value.itemsOptions = Object.assign([], itemsOptions)
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
defineExpose({
|
|
|
- openDialog
|
|
|
+ openDialog,
|
|
|
+ updateItemOptions
|
|
|
})
|
|
|
</script>
|
|
|
|