fix(资源池): 默认最大并发数

This commit is contained in:
baiqi 2024-07-10 10:02:40 +08:00 committed by 刘瑞斌
parent 984e0de9a9
commit 877d9d473d
2 changed files with 12 additions and 6 deletions

View File

@ -21,8 +21,8 @@
:class="[props.isShowDrag ? 'cursor-move' : '']"
>
<div v-if="props.isShowDrag" class="dragIcon ml-[8px] mr-[8px] pt-[8px]">
<MsIcon type="icon-icon_drag" class="block text-[16px] text-[var(--color-text-4)]"
/></div>
<MsIcon type="icon-icon_drag" class="block text-[16px] text-[var(--color-text-4)]" />
</div>
<a-form-item
v-for="model of props.models"
:key="`${model.field}${index}`"
@ -224,7 +224,6 @@
</template>
<script setup lang="ts">
import { ref, unref, watchEffect } from 'vue';
import { VueDraggable } from 'vue-draggable-plus';
import MsTagsInput from '@/components/pure/ms-tags-input/index.vue';
@ -237,8 +236,6 @@
import type { FormInstance, ValidatedError } from '@arco-design/web-vue';
import { FieldData } from '@arco-design/web-vue/es/form/interface';
const { t } = useI18n();
const props = withDefaults(
defineProps<{
models: FormItemModel[];
@ -260,6 +257,8 @@
);
const emit = defineEmits(['change']);
const { t } = useI18n();
const defaultForm = {
list: [] as Record<string, any>[],
};

View File

@ -433,7 +433,13 @@
girdConcurrentNumber: 1,
podThreads: 1,
concurrentNumber: 1,
nodesList: [] as NodesListItem[],
nodesList: [
{
ip: '',
port: '',
concurrentNumber: 1,
},
],
ip: '',
token: '',
namespace: '',
@ -605,6 +611,7 @@
min: 1,
max: maxConcurrentNumber.value,
tooltip: licenseStore.hasLicense() ? '' : t('system.resourcePool.concurrentNumberMinToolTip'),
defaultValue: 1,
},
]);