mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 05:29:29 +08:00
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]"
|
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"
|
||||||
|
@ -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"
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user