style(接口测试): 批量添加样式调整&缺陷应用管理选项消失修复

This commit is contained in:
xinxin.wu 2024-04-09 10:52:33 +08:00 committed by 刘瑞斌
parent 40638d10d5
commit 45202af5c8
6 changed files with 26 additions and 36 deletions

View File

@ -46,12 +46,13 @@
const emit = defineEmits(['update:model-value']);
const selectValue = ref<string[] | string>();
const optionsList = ref<{ label: string; value: string }[]>([]);
const optionsList = ref<{ label: string; value: string }[]>(props.options || []);
const selectLoading = ref(false);
const params = ref<OptionsParams>();
const pluginId = (sessionStorage.getItem('platformKey') as string) || 'jira';
async function getLinksItem() {
const getLinksItem = debounce(async () => {
if (props.optionMethod) {
selectLoading.value = true;
params.value = {
@ -75,7 +76,7 @@
console.log(error);
}
}
}
}, 300);
//
const innerKeyword = ref<string | undefined>('');
const searchHandler = debounce((inputVal: string) => {
@ -105,9 +106,6 @@
);
watchEffect(() => {
if (props.options) {
optionsList.value = props.options;
}
if (props.modelValue) {
selectValue.value = props.modelValue;
}

View File

@ -1,10 +1,7 @@
<template>
<div class="flex w-full" :class="[props.typeTitle ? 'justify-between' : 'justify-start']">
<span v-if="props.typeTitle">{{ props.typeTitle }}</span>
<a-button :disabled="props.disabled" type="outline" size="mini" @click="showBatchAddParamDrawer = true">
{{ t('apiTestDebug.batchAdd') }}
</a-button>
</div>
<MsDrawer
v-model:visible="showBatchAddParamDrawer"

View File

@ -1,5 +1,6 @@
<template>
<div class="mb-[8px] flex items-center justify-between">
<span v-if="props.typeTitle">{{ props.typeTitle }}</span>
<batchAddKeyVal
:disabled="props.disabledExceptParam"
:params="innerParams"

View File

@ -9,14 +9,12 @@
/>
</a-tooltip>
</div>
<span>
<batchAddKeyVal
:params="innerParams"
:disabled="props.disabledExceptParam"
:default-param-item="defaultRequestParamsItem"
@apply="handleBatchParamApply"
/>
</span>
</div>
<paramTable
:params="innerParams"

View File

@ -9,7 +9,6 @@
/>
</a-tooltip>
</div>
<div>
<batchAddKeyVal
:params="innerParams"
:disabled="props.disabledExceptParam"
@ -17,7 +16,6 @@
@apply="handleBatchParamApply"
/>
</div>
</div>
<paramTable
:params="innerParams"
:columns="columns"

View File

@ -14,7 +14,6 @@
</span>
</template>
</a-input-search>
<div>
<batchAddKeyVal
:add-type-text="t('project.environmental.env.constantBatchAddTip')"
:params="innerParams"
@ -22,7 +21,6 @@
@apply="handleBatchParamApply"
/>
</div>
</div>
<paramsTable
v-model:params="innerParams"
:table-key="props.tableKey"