swagger定时同步样式修改
This commit is contained in:
parent
cadd9d3fc7
commit
230d86c8fa
|
@ -690,7 +690,7 @@ public class ApiTestCaseService {
|
||||||
public void editApiBathByParam(ApiTestBatchRequest request) {
|
public void editApiBathByParam(ApiTestBatchRequest request) {
|
||||||
List<String> ids = request.getIds();
|
List<String> ids = request.getIds();
|
||||||
if (request.isSelectAll()) {
|
if (request.isSelectAll()) {
|
||||||
ids = this.getAllApiCaseIdsByFrontedSelect(request.getFilters(), request.getModuleIds(), request.getName(), request.getProjectId(), request.getProtocol(), request.getUnSelectIds(), request.getStatus(), null, request.getCombine());
|
ids = this.getAllApiCaseIdsByFrontedSelect(request.getFilters(), request.getModuleIds(), request.getName(), request.getProjectId(), request.getProtocol(), request.getUnSelectIds(), request.getStatus(), request.getApiDefinitionId(), request.getCombine());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StringUtils.equals("tags", request.getType())) {
|
if (StringUtils.equals("tags", request.getType())) {
|
||||||
|
|
|
@ -217,7 +217,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 定时任务 -->
|
<!-- 定时任务 -->
|
||||||
<div v-if="item.type=== 'SCHEDULE'" class="ms-api-div">
|
<div v-if="item.type=== 'SCHEDULE'" class="ms-api-schedule-div">
|
||||||
<api-schedule :param="param" :module-options="nodeTree" ref="apiSchedules"/>
|
<api-schedule :param="param" :module-options="nodeTree" ref="apiSchedules"/>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
@ -1007,6 +1007,11 @@ export default {
|
||||||
height: calc(100vh - 100px)
|
height: calc(100vh - 100px)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ms-api-schedule-div {
|
||||||
|
overflow-y: auto;
|
||||||
|
height: calc(100vh - 100px)
|
||||||
|
}
|
||||||
|
|
||||||
:deep(.el-main) {
|
:deep(.el-main) {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,21 @@
|
||||||
<template>
|
<template>
|
||||||
<el-main>
|
<el-main>
|
||||||
<div class="api-schedule-form">
|
<div class="api-schedule-form" style="overflow: auto!important;">
|
||||||
<el-form :model="formData" :rules="rules" v-loading="result" label-width="80px" ref="form">
|
<el-form :model="formData" :rules="rules" v-loading="result" label-width="80px" ref="form">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item :label-width="labelWith" :label="'Swagger URL'" prop="swaggerUrl" class="swagger-url">
|
<el-form-item :label-width="labelWith" :label="'Swagger URL'" prop="swaggerUrl" class="swagger-url">
|
||||||
<el-input size="small" v-model="formData.swaggerUrl" clearable/>
|
<el-input size="small" v-model="formData.swaggerUrl" clearable/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label-width="labelWith" :label="'Cron表达式'" prop="rule">
|
<el-form-item :label-width="labelWith" :label="$t('commons.schedule_cron_title')" prop="rule">
|
||||||
<el-input :disabled="isReadOnly"
|
<el-input :disabled="isReadOnly"
|
||||||
v-model="formData.rule"
|
v-model="formData.rule"
|
||||||
size="small"
|
size="small"
|
||||||
:placeholder="$t('schedule.please_input_cron_expression')"/>
|
:placeholder="$t('schedule.please_input_cron_expression')">
|
||||||
|
<a :disabled="isReadOnly" @click="showCronDialog" slot="suffix" class="head">
|
||||||
|
{{ $t('schedule.generate_expression') }}
|
||||||
|
</a>
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
|
@ -60,39 +64,30 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-form-item class="expression-link">
|
|
||||||
<el-link :disabled="isReadOnly" type="primary" @click="showCronDialog">
|
|
||||||
{{ $t('schedule.generate_expression') }}
|
|
||||||
</el-link>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<crontab-result :ex="formData.rule" ref="crontabResult"/>
|
<crontab-result :ex="formData.rule" ref="crontabResult"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<div style="margin-top: 20px;" class="clearfix">
|
<div class="clearfix">
|
||||||
<el-row>
|
<el-button v-if="!formData.id" type="primary" style="float: right" size="mini" @click="saveCron">
|
||||||
<el-col :span="4">
|
{{ $t('commons.add') }}
|
||||||
<el-button type="primary" style="float: right" size="mini" @click="openSchedule">
|
</el-button>
|
||||||
{{ $t('schedule.task_notification') }}
|
<div v-else>
|
||||||
</el-button>
|
<el-button type="primary" style="float: right;margin-left: 10px" size="mini" @click="clear">
|
||||||
</el-col>
|
{{ $t('commons.clear') }}
|
||||||
<el-col :span="20">
|
</el-button>
|
||||||
<el-button v-if="!formData.id" type="primary" style="float: right" size="mini" @click="saveCron">
|
<el-button type="primary" style="float: right" size="mini" @click="saveCron">{{ $t('commons.update') }}
|
||||||
{{ $t('commons.add') }}
|
</el-button>
|
||||||
</el-button>
|
</div>
|
||||||
<div v-else>
|
|
||||||
<el-button type="primary" style="float: right;margin-left: 10px" size="mini" @click="clear">
|
|
||||||
{{ $t('commons.clear') }}
|
|
||||||
</el-button>
|
|
||||||
<el-button type="primary" style="float: right" size="mini" @click="saveCron">{{ $t('commons.update') }}
|
|
||||||
</el-button>
|
|
||||||
</div>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div style="margin-top: 10px;">
|
||||||
|
<el-button type="primary" style="float: left" size="mini" @click="openSchedule">
|
||||||
|
{{ $t('schedule.task_notification') }}
|
||||||
|
</el-button>
|
||||||
|
</div>
|
||||||
<div class="task-list">
|
<div class="task-list">
|
||||||
<swagger-task-list
|
<swagger-task-list
|
||||||
@clear="clear"
|
@clear="clear"
|
||||||
|
@ -414,10 +409,14 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.task-list {
|
.task-list {
|
||||||
margin-top: 15px;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expression-link {
|
.head {
|
||||||
margin-bottom: 0;
|
border-bottom: 1px solid var(--primary_color);
|
||||||
|
color: var(--primary_color);
|
||||||
|
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
|
||||||
|
font-size: 13px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue