style(接口测试): 定义和场景树搜索样式修改
--bug=1037378 --user=宋天阳 【接口测试】接口定义-模块树搜索无结果时 回收站不应该上移 https://www.tapd.cn/55049933/s/1490115
This commit is contained in:
parent
257696d36f
commit
598737f076
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue