Skip to content

Commit

Permalink
feat: 增加扫描执行集群配置管理页面 #2762
Browse files Browse the repository at this point in the history
  • Loading branch information
lannoy0523 committed Nov 20, 2024
1 parent ff2d052 commit cf4a495
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
<el-form-item v-if="executionCluster.type !== 'docker'" label="clientKeyData" prop="clientCertificateData">
<el-input v-model="executionCluster.kubernetesProperties.clientKeyData" style="height: 40px ; width: 500px;" />
</el-form-item>
<el-form-item v-if="executionCluster.type !== 'docker'" label="最大使用内存(B)" prop="limitMem">
<el-form-item v-if="executionCluster.type !== 'docker'" label="最大使用内存(B)" prop="kubernetesProperties.limitMem" :rules="[{ required: true, message: '最大使用内存不能为空'}]">
<el-input-number v-model="executionCluster.kubernetesProperties.limitMem" controls-position="right" :min="1" />
</el-form-item>
<el-form-item v-if="executionCluster.type !== 'docker'" label="最大临时内存(B)" prop="limitStorage">
<el-form-item v-if="executionCluster.type !== 'docker'" label="最大临时内存(B)" prop="kubernetesProperties.limitStorage" :rules="[{ required: true, message: '最大临时内存不能为空'}]">
<el-input-number v-model="executionCluster.kubernetesProperties.limitStorage" controls-position="right" :min="1" />
</el-form-item>
<el-form-item v-if="executionCluster.type !== 'docker'" label="最大cpu" prop="limitCpu">
<el-form-item v-if="executionCluster.type !== 'docker'" label="最大cpu" prop="kubernetesProperties.limitCpu" :rules="[{ required: true, message: '最大cpu不能为空'}]">
<el-input-number v-model="executionCluster.kubernetesProperties.limitCpu" controls-position="right" :min="1" />
</el-form-item>
<el-form-item v-if="executionCluster.type === 'k8s_job'" label="最大保留时间(秒)" prop="jobTtlSecondsAfterFinished">
Expand All @@ -70,16 +70,16 @@
/>
</el-select>
</el-form-item>
<el-form-item v-if="executionCluster.type === 'k8s_deployment'" label="最大副本数" prop="maxReplicas">
<el-form-item v-if="executionCluster.type === 'k8s_deployment'" label="最大副本数" prop="maxReplicas" :rules="[{ required: true, message: '最大副本数不能为空'}]">
<el-input-number v-model="executionCluster.maxReplicas" controls-position="right" :min="1" />
</el-form-item>
<el-form-item v-if="executionCluster.type === 'k8s_deployment'" label="最小副本数" prop="minReplicas">
<el-form-item v-if="executionCluster.type === 'k8s_deployment'" label="最小副本数" prop="minReplicas" :rules="[{ required: true, message: '最小副本数不能为空'}]">
<el-input-number v-model="executionCluster.minReplicas" controls-position="right" :min="1" />
</el-form-item>
<el-form-item v-if="executionCluster.type === 'k8s_deployment'" label="扩容阈值" prop="scaleThreshold">
<el-form-item v-if="executionCluster.type === 'k8s_deployment'" label="扩容阈值" prop="scaleThreshold" :rules="[{ required: true, message: '扩容阈值不能为空'}]">
<el-input-number v-model="executionCluster.scaleThreshold" controls-position="right" :min="1" />
</el-form-item>
<el-form-item v-if="executionCluster.type === 'k8s_deployment'" label="扫描器重试次数" prop="pullRetry">
<el-form-item v-if="executionCluster.type === 'k8s_deployment'" label="扫描器重试次数" prop="pullRetry" :rules="[{ required: true, message: '扫描器重试次数不能为空'}]">
<el-input-number v-model="executionCluster.pullRetry" controls-position="right" :min="1" />
</el-form-item>
<el-form-item v-if="executionCluster.type === 'docker'" label="host" prop="host" :rules="[{ required: true, message: 'host不能为空'}]">
Expand All @@ -88,13 +88,13 @@
<el-form-item v-if="executionCluster.type === 'docker'" label="版本" prop="version" :rules="[{ required: true, message: '版本不能为空'}]">
<el-input v-model="executionCluster.version" style="height: 40px ; width: 500px;" />
</el-form-item>
<el-form-item v-if="executionCluster.type === 'docker'" label="连接超时时长(毫秒)" prop="connectTimeout">
<el-form-item v-if="executionCluster.type === 'docker'" label="连接超时时长(毫秒)" prop="connectTimeout" :rules="[{ required: true, message: '连接超时时长不能为空'}]">
<el-input-number v-model="executionCluster.connectTimeout" controls-position="right" :min="0" />
</el-form-item>
<el-form-item v-if="executionCluster.type === 'docker'" label="读取超时时长(毫秒)" prop="readTimeout">
<el-form-item v-if="executionCluster.type === 'docker'" label="读取超时时长(毫秒)" prop="readTimeout" :rules="[{ required: true, message: '读取超时时长不能为空'}]">
<el-input-number v-model="executionCluster.readTimeout" controls-position="right" :min="0" />
</el-form-item>
<el-form-item v-if="executionCluster.type === 'docker'" label="最大任务数" prop="maxTaskCount">
<el-form-item v-if="executionCluster.type === 'docker'" label="最大任务数" prop="maxTaskCount" :rules="[{ required: true, message: '最大任务数不能为空'}]">
<el-input-number v-model="executionCluster.maxTaskCount" controls-position="right" :min="0" />
</el-form-item>
</el-form>
Expand Down

0 comments on commit cf4a495

Please sign in to comment.