style(接口测试): 批量添加样式调整&缺陷应用管理选项消失修复
This commit is contained in:
parent
40638d10d5
commit
45202af5c8
|
@ -46,12 +46,13 @@
|
||||||
const emit = defineEmits(['update:model-value']);
|
const emit = defineEmits(['update:model-value']);
|
||||||
const selectValue = ref<string[] | string>();
|
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 selectLoading = ref(false);
|
||||||
|
|
||||||
const params = ref<OptionsParams>();
|
const params = ref<OptionsParams>();
|
||||||
const pluginId = (sessionStorage.getItem('platformKey') as string) || 'jira';
|
const pluginId = (sessionStorage.getItem('platformKey') as string) || 'jira';
|
||||||
async function getLinksItem() {
|
|
||||||
|
const getLinksItem = debounce(async () => {
|
||||||
if (props.optionMethod) {
|
if (props.optionMethod) {
|
||||||
selectLoading.value = true;
|
selectLoading.value = true;
|
||||||
params.value = {
|
params.value = {
|
||||||
|
@ -75,7 +76,7 @@
|
||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}, 300);
|
||||||
// 内部的关键词
|
// 内部的关键词
|
||||||
const innerKeyword = ref<string | undefined>('');
|
const innerKeyword = ref<string | undefined>('');
|
||||||
const searchHandler = debounce((inputVal: string) => {
|
const searchHandler = debounce((inputVal: string) => {
|
||||||
|
@ -105,9 +106,6 @@
|
||||||
);
|
);
|
||||||
|
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
if (props.options) {
|
|
||||||
optionsList.value = props.options;
|
|
||||||
}
|
|
||||||
if (props.modelValue) {
|
if (props.modelValue) {
|
||||||
selectValue.value = props.modelValue;
|
selectValue.value = props.modelValue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
<template>
|
<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">
|
<a-button :disabled="props.disabled" type="outline" size="mini" @click="showBatchAddParamDrawer = true">
|
||||||
{{ t('apiTestDebug.batchAdd') }}
|
{{ t('apiTestDebug.batchAdd') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
|
||||||
|
|
||||||
<MsDrawer
|
<MsDrawer
|
||||||
v-model:visible="showBatchAddParamDrawer"
|
v-model:visible="showBatchAddParamDrawer"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="mb-[8px] flex items-center justify-between">
|
<div class="mb-[8px] flex items-center justify-between">
|
||||||
|
<span v-if="props.typeTitle">{{ props.typeTitle }}</span>
|
||||||
<batchAddKeyVal
|
<batchAddKeyVal
|
||||||
:disabled="props.disabledExceptParam"
|
:disabled="props.disabledExceptParam"
|
||||||
:params="innerParams"
|
:params="innerParams"
|
||||||
|
|
|
@ -9,14 +9,12 @@
|
||||||
/>
|
/>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</div>
|
</div>
|
||||||
<span>
|
|
||||||
<batchAddKeyVal
|
<batchAddKeyVal
|
||||||
:params="innerParams"
|
:params="innerParams"
|
||||||
:disabled="props.disabledExceptParam"
|
:disabled="props.disabledExceptParam"
|
||||||
:default-param-item="defaultRequestParamsItem"
|
:default-param-item="defaultRequestParamsItem"
|
||||||
@apply="handleBatchParamApply"
|
@apply="handleBatchParamApply"
|
||||||
/>
|
/>
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<paramTable
|
<paramTable
|
||||||
:params="innerParams"
|
:params="innerParams"
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
/>
|
/>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
<batchAddKeyVal
|
<batchAddKeyVal
|
||||||
:params="innerParams"
|
:params="innerParams"
|
||||||
:disabled="props.disabledExceptParam"
|
:disabled="props.disabledExceptParam"
|
||||||
|
@ -17,7 +16,6 @@
|
||||||
@apply="handleBatchParamApply"
|
@apply="handleBatchParamApply"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<paramTable
|
<paramTable
|
||||||
:params="innerParams"
|
:params="innerParams"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</a-input-search>
|
</a-input-search>
|
||||||
<div>
|
|
||||||
<batchAddKeyVal
|
<batchAddKeyVal
|
||||||
:add-type-text="t('project.environmental.env.constantBatchAddTip')"
|
:add-type-text="t('project.environmental.env.constantBatchAddTip')"
|
||||||
:params="innerParams"
|
:params="innerParams"
|
||||||
|
@ -22,7 +21,6 @@
|
||||||
@apply="handleBatchParamApply"
|
@apply="handleBatchParamApply"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<paramsTable
|
<paramsTable
|
||||||
v-model:params="innerParams"
|
v-model:params="innerParams"
|
||||||
:table-key="props.tableKey"
|
:table-key="props.tableKey"
|
||||||
|
|
Loading…
Reference in New Issue