fix: API 参数删除错误

This commit is contained in:
taojinlong 2024-07-03 12:51:54 +08:00
parent ca35696c70
commit d0376427cb
4 changed files with 10 additions and 6 deletions

View File

@ -51,6 +51,10 @@ public class ExportCenterManage {
private WsService wsService;
@Resource
private SysParameterManage sysParameterManage;
@Value("${export.core.size:10}")
private int core;
@Value("${export.max.size:10}")
private int max;
@Value("${export.dataset.limit:100000}")
private int limit;
@ -60,7 +64,6 @@ public class ExportCenterManage {
private Integer extractPageSize;
static private List<String> STATUS = Arrays.asList("SUCCESS", "FAILED", "PENDING", "IN_PROGRESS", "ALL");
private ScheduledThreadPoolExecutor scheduledThreadPoolExecutor;
private int corePoolSize = 10;
private int keepAliveSeconds = 600;
private Map<String, Future> Running_Task = new HashMap<>();
@Resource
@ -68,9 +71,9 @@ public class ExportCenterManage {
@PostConstruct
public void init() {
scheduledThreadPoolExecutor = new ScheduledThreadPoolExecutor(corePoolSize);
scheduledThreadPoolExecutor = new ScheduledThreadPoolExecutor(core);
scheduledThreadPoolExecutor.setKeepAliveTime(keepAliveSeconds, TimeUnit.SECONDS);
scheduledThreadPoolExecutor.setMaximumPoolSize(10);
scheduledThreadPoolExecutor.setMaximumPoolSize(max);
}
@Scheduled(fixedRate = 5000)

View File

@ -6,10 +6,10 @@
</div>
<div>
<el-button v-if="testConnectText" secondary @click="check">{{ testConnectText }}</el-button>
<el-button type="primary" @click="edit">{{ t('commons.edit') }}</el-button>
<el-button v-if="showValidate" type="primary" @click="check">{{
<el-button v-if="showValidate" secondary @click="check">{{
t('datasource.validate')
}}</el-button>
<el-button type="primary" @click="edit">{{ t('commons.edit') }}</el-button>
</div>
</div>
<div class="info-template-content">

View File

@ -628,7 +628,7 @@ const delParams = data => {
autofocus: false,
showClose: false
}).then(() => {
gridData.value.splice(0, 1)
gridData.value.splice(form.value.apiConfiguration.indexOf(data), 1)
})
}
const datasetTypeList = [

View File

@ -630,6 +630,7 @@ const editDatasource = (editType?: number) => {
}
const handleEdit = async data => {
await handleNodeClick(data)
editDatasource()
}