| | |
| | | </Dialog> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import * as MpkApi from '@/api/mpk/mpk' |
| | | import * as MpkApi from '@/api/model/mpk/mpk' |
| | | import {FormRules} from "element-plus"; |
| | | import {getAccessToken, getTenantId} from "@/utils/auth"; |
| | | |
| | |
| | | const dialogTitle = ref('模型运行') // 弹窗的标题 |
| | | |
| | | const formData = reactive({ |
| | | pyName: '', |
| | | className: '', |
| | | methodName: '', |
| | | datas: [], |
| | |
| | | const open = async (row) => { |
| | | dialogVisible.value = true |
| | | formData.className = row.pkgName + '.impl.' + row.pyName + 'Impl'; |
| | | formData.pyName = row.pyName; |
| | | const mpk = await MpkApi.getMpk(row.id) |
| | | methodList.value = mpk.modelMethods |
| | | formData.methodName = mpk.modelMethods[0].methodName |