| | |
| | | label="参数value" |
| | | align="center"> |
| | | <template #default="scope"> |
| | | <el-input size="small" v-model="scope.row.settingValue" maxlength="50" clearable /> |
| | | <el-input size="small" v-model="scope.row.settingValue" :disabled="scope.row.settingKey === 'pyFile'" maxlength="50" clearable /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" fixed="right" header-align="center" align="center" width="100"> |
| | |
| | | @click="deleteRow(scope.$index)" |
| | | key="danger" |
| | | type="danger" |
| | | :disabled="scope.row.settingKey === 'pyFile'" |
| | | link |
| | | >删除</el-button> |
| | | </template> |
| | |
| | | ], |
| | | className: [ |
| | | {required: true, message: '全类名不能为空', trigger: 'blur'} |
| | | ], |
| | | model: [ |
| | | {required: true, message: 'model不能为空', trigger: 'blur'} |
| | | ] |
| | | }) |
| | | |
| | |
| | | if (!formRef) return |
| | | const valid = await formRef.value.validate() |
| | | if (!valid) return |
| | | |
| | | if (hasModel.value) { |
| | | debugger |
| | | if (!formData.model || formData.model === '') { |
| | | message.error("model为必填项!") |
| | | return |
| | | } |
| | | |
| | | try { |
| | | JSON.parse(formData.model) |
| | | } catch (e) { |
| | | message.error("model参数异常!") |
| | | return |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | // 提交请求 |
| | | modelRunloading.value = true |
| | | try { |