style(接口测试): 定义和场景树搜索样式修改

--bug=1037378 --user=宋天阳 【接口测试】接口定义-模块树搜索无结果时 回收站不应该上移 https://www.tapd.cn/55049933/s/1490115
This commit is contained in:
Jianguo-Genius 2024-04-08 14:22:04 +08:00 committed by 刘瑞斌
parent 257696d36f
commit 598737f076
3 changed files with 13 additions and 4 deletions

View File

@ -108,7 +108,7 @@
class="mb-[16px]"
allow-clear
/>
<a-spin class="w-full" :loading="loading">
<a-spin class="w-full" :style="{ height: `calc(100vh - 298px)` }" :loading="loading">
<MsTree
v-model:focus-node-key="focusNodeKey"
v-model:selected-keys="selectedKeys"

View File

@ -58,7 +58,7 @@
</div>
<a-divider class="my-[8px]" />
<a-spin class="w-full" :loading="loading">
<a-spin class="w-full" :style="{ height: `calc(100vh - 320px)` }" :loading="loading">
<MsTree
v-model:focus-node-key="focusNodeKey"
v-model:selected-keys="selectedKeys"

View File

@ -652,7 +652,7 @@
const priorityFilters = ref<string[]>([]);
const scheduleConfig = ref<ApiScenarioScheduleConfig>({
scenarioId: '',
enable: false,
enable: true,
cron: '',
config: {
poolId: '',
@ -898,6 +898,12 @@
if (tableRow.scheduleConfig) {
//
return [
{
eventTag: 'updateSchedule',
label: t('apiScenario.schedule.update'),
permission: ['PROJECT_API_SCENARIO:READ+EXECUTE'],
danger: false,
},
{
eventTag: 'deleteSchedule',
label: t('apiScenario.schedule.delete'),
@ -1104,7 +1110,7 @@
//
scheduleConfig.value = {
scenarioId: record.id,
enable: false,
enable: true,
cron: '0 0 0/1 * * ? ',
config: {
poolId: defaultPoolId?.value,
@ -1153,6 +1159,9 @@
case 'deleteSchedule':
deleteScenarioSchedule(record.id);
break;
case 'updateSchedule':
openScheduleModal(record);
break;
default:
break;
}