Commit 748c71d1 authored by chenjianxing's avatar chenjianxing Committed by jianxing
Browse files

fix: swagger定时任务优化

parent f83b8e3a
Showing with 10 additions and 9 deletions
+10 -9
......@@ -975,7 +975,7 @@ public class ApiDefinitionService {
//删除
public void deleteSchedule(ScheduleRequest request) {
swaggerUrlProjectMapper.deleteByPrimaryKey(request.getId());
scheduleService.deleteByResourceId(request.getTaskId(), ScheduleGroup.SWAGGER_IMPORT.name());
scheduleService.deleteByResourceId(request.getId(), ScheduleGroup.SWAGGER_IMPORT.name());
}
//查询swaggerUrl详情
......
......@@ -13,7 +13,7 @@
@setModuleOptions="setModuleOptions"
@setNodeTree="setNodeTree"
@enableTrash="enableTrash"
@schedule="handleTabsEdit($t('api_test.definition.request.fast_debug'), 'SCHEDULE')"
@schedule="handleTabsEdit($t('api_test.api_import.timing_synchronization'), 'SCHEDULE')"
:type="'edit'"
page-source="definition"
ref="nodeTree"/>
......@@ -177,7 +177,6 @@ import ApiCaseSimpleList from "./components/list/ApiCaseSimpleList";
import ApiDocumentsPage from "@/business/components/api/definition/components/list/ApiDocumentsPage";
import MsTableButton from "@/business/components/common/components/MsTableButton";
import MsTabButton from "@/business/components/common/components/MsTabButton";
import {getLabel} from "@/common/js/tableUtils";
import MockConfig from "@/business/components/api/definition/components/mock/MockConfig";
import ApiSchedule from "@/business/components/api/definition/components/import/ApiSchedule";
......
......@@ -53,6 +53,7 @@
<div class="task-list">
<swagger-task-list
@clear="clear"
@rowClick="handleRowClick"
ref="taskList"/>
</div>
......
......@@ -106,6 +106,7 @@ export default {
deleteRowTask(row) {
this.result = this.$post('/api/definition/schedule/delete', row, response => {
this.search();
this.$emit('clear');
});
}
......
......@@ -61,17 +61,17 @@ export default {
permissions: ['PROJECT_API_DEFINITION:READ+DEBUG']
},
{
label: this.$t('api_test.api_import.label'),
callback: this.handleImport,
permissions: ['PROJECT_API_DEFINITION:READ+IMPORT_API']
},
{
label: this.$t('定时同步'),
label: this.$t('api_test.api_import.timing_synchronization'),
callback: () => {
this.$emit('schedule');
},
permissions: ['PROJECT_API_DEFINITION:READ+IMPORT_API']
},
{
label: this.$t('api_test.api_import.label'),
callback: this.handleImport,
permissions: ['PROJECT_API_DEFINITION:READ+IMPORT_API']
},
{
label: this.$t('report.export'),
permissions: ['PROJECT_API_DEFINITION:READ+EXPORT_API'],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment