| | |
| | | id: undefined, |
| | | projectName: undefined, |
| | | projectCode: undefined, |
| | | models: undefined, |
| | | }) |
| | | |
| | | |
| | |
| | | const data = { |
| | | ...formData.value |
| | | } |
| | | data.models = data.models.map(e => { |
| | | return {id: e} |
| | | }) |
| | | if (data.models && data.models.length > 0) { |
| | | data.models = data.models.map(e => { |
| | | return {id: e} |
| | | }) |
| | | } |
| | | if (formType.value === 'create') { |
| | | await ProjectApi.createProject(data) |
| | | message.success(t('common.createSuccess')) |
| | |
| | | // 所有模型列表 |
| | | const modelList = ref([]) |
| | | const getModelList = async () => { |
| | | modelList.value = await MpkApi.list() |
| | | modelList.value = await MpkApi.list({}) |
| | | } |
| | | |
| | | // 模型筛选 |