style(接口测试): 批量添加样式调整&缺陷应用管理选项消失修复
This commit is contained in:
parent
40638d10d5
commit
45202af5c8
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue