From fd13b0017518273406ee1a9906c07d079e4a9ac4 Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期三, 27 十一月 2024 17:54:52 +0800
Subject: [PATCH] 租户列表 套餐宽度固定180

---
 src/views/model/mpk/file/MpkRun.vue |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/src/views/model/mpk/file/MpkRun.vue b/src/views/model/mpk/file/MpkRun.vue
index a99ae2b..104377d 100644
--- a/src/views/model/mpk/file/MpkRun.vue
+++ b/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 {

--
Gitblit v1.9.3