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

View File

@ -58,7 +58,7 @@
</div> </div>
<a-divider class="my-[8px]" /> <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 <MsTree
v-model:focus-node-key="focusNodeKey" v-model:focus-node-key="focusNodeKey"
v-model:selected-keys="selectedKeys" v-model:selected-keys="selectedKeys"

View File

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