dengzedong
2024-11-22 627a6b93d3582e5ccce8937bda5fe65538b521fc
pyd配置不可修改
已修改3个文件
2600 ■■■■ 文件已修改
pnpm-lock.yaml 2574 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/model/mpk/file/MpkForm.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/model/mpk/file/MpkRun.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pnpm-lock.yaml
文件太大
src/views/model/mpk/file/MpkForm.vue
@@ -210,6 +210,7 @@
                        @click="updateSetting(scope.row)"
                        key="danger"
                        type="primary"
                        :disabled="scope.row.settingKey === 'pyFile'"
                        link
                      >修改
                      </el-button>
@@ -217,6 +218,7 @@
                        @click="deleteSetting(props.row.methodSettings,scope.$index)"
                        key="danger"
                        type="danger"
                        :disabled="scope.row.settingKey === 'pyFile'"
                        link
                      >删除
                      </el-button>
src/views/model/mpk/file/MpkRun.vue
@@ -90,7 +90,7 @@
          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">
@@ -99,6 +99,7 @@
              @click="deleteRow(scope.$index)"
              key="danger"
              type="danger"
              :disabled="scope.row.settingKey === 'pyFile'"
              link
            >删除</el-button>
          </template>
@@ -171,6 +172,9 @@
    ],
    className: [
      {required: true, message: '全类名不能为空', trigger: 'blur'}
    ],
    model: [
      {required: true, message: 'model不能为空', trigger: 'blur'}
    ]
  })
@@ -256,6 +260,24 @@
    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 {