fix: 系统变量显示问题

This commit is contained in:
taojinlong 2024-05-31 18:07:14 +08:00
parent 980a728818
commit 714dd2f9c8
5 changed files with 8 additions and 10 deletions

View File

@ -160,7 +160,7 @@ public class ExportCenterManage {
exportTaskMapper.updateById(exportTask); exportTaskMapper.updateById(exportTask);
FileUtils.deleteDirectoryRecursively(exportData_path + id); FileUtils.deleteDirectoryRecursively(exportData_path + id);
if (exportTask.getExportFromType().equalsIgnoreCase("chart")) { if (exportTask.getExportFromType().equalsIgnoreCase("chart")) {
ChartExcelRequest request = JsonUtil.parse(exportTask.getParams(), ChartExcelRequest.class); ChartExcelRequest request = JsonUtil.parseObject(exportTask.getParams(), ChartExcelRequest.class);
startViewTask(exportTask, request); startViewTask(exportTask, request);
} }
} }

View File

@ -426,7 +426,7 @@ defineExpose({
</div> </div>
</el-button> </el-button>
<el-tooltip effect="dark" content="重新导出" placement="top"> <el-tooltip effect="dark" content="重新导出" placement="top">
<el-button text @click="retry(scope.row)"> <el-button v-if="scope.row.exportStatus === 'FAILED'" text @click="retry(scope.row)">
<template #icon> <template #icon>
<Icon name="icon_refresh_outlined"></Icon> <Icon name="icon_refresh_outlined"></Icon>
</template> </template>

View File

@ -2,8 +2,6 @@ package io.dataease.api.permissions.dataset.api;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import io.dataease.api.permissions.dataset.dto.DataSetColumnPermissionsDTO; import io.dataease.api.permissions.dataset.dto.DataSetColumnPermissionsDTO;
import io.dataease.api.permissions.dataset.dto.DataSetRowPermissionsTreeDTO;
import io.dataease.api.permissions.dataset.dto.Item;
import io.dataease.auth.DeApiPath; import io.dataease.auth.DeApiPath;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
@ -19,7 +17,7 @@ import static io.dataease.constant.AuthResourceEnum.DATASET;
public interface ColumnPermissionsApi { public interface ColumnPermissionsApi {
@GetMapping("/pager/{datasetId}/{goPage}/{pageSize}") @GetMapping("/pager/{datasetId}/{goPage}/{pageSize}")
public IPage<DataSetColumnPermissionsDTO> columnPermissions(@PathVariable Long datasetId, @PathVariable int goPage, @PathVariable int pageSize); public IPage<DataSetColumnPermissionsDTO> columnPermissions(@PathVariable("datasetId") Long datasetId, @PathVariable("goPage") int goPage, @PathVariable("pageSize") int pageSize);
@PostMapping("save") @PostMapping("save")
public void save(@RequestBody DataSetColumnPermissionsDTO dataSetColumnPermissionsDTO); public void save(@RequestBody DataSetColumnPermissionsDTO dataSetColumnPermissionsDTO);

View File

@ -18,7 +18,7 @@ import static io.dataease.constant.AuthResourceEnum.DATASET;
public interface RowPermissionsApi { public interface RowPermissionsApi {
@GetMapping("/pager/{datasetId}/{goPage}/{pageSize}") @GetMapping("/pager/{datasetId}/{goPage}/{pageSize}")
public IPage<DataSetRowPermissionsTreeDTO> rowPermissions(@PathVariable Long datasetId, @PathVariable int goPage, @PathVariable int pageSize); public IPage<DataSetRowPermissionsTreeDTO> rowPermissions(@PathVariable("datasetId") Long datasetId, @PathVariable("goPage") int goPage, @PathVariable("pageSize") int pageSize);
@PostMapping("save") @PostMapping("save")
@ -30,7 +30,7 @@ public interface RowPermissionsApi {
@GetMapping("/authObjs/{datasetId}/{type}") @GetMapping("/authObjs/{datasetId}/{type}")
public List<Item> authObjs(@PathVariable Long datasetId, @PathVariable String type); public List<Item> authObjs(@PathVariable("datasetId") Long datasetId, @PathVariable("type") String type);
@PostMapping("/dataSetRowPermissionInfo") @PostMapping("/dataSetRowPermissionInfo")
public DataSetRowPermissionsTreeDTO dataSetRowPermissionInfo(@RequestBody DataSetRowPermissionsTreeDTO request); public DataSetRowPermissionsTreeDTO dataSetRowPermissionInfo(@RequestBody DataSetRowPermissionsTreeDTO request);

View File

@ -32,11 +32,11 @@ public interface SysVariablesApi {
@Operation(summary = "删除") @Operation(summary = "删除")
@GetMapping("/delete/{id}") @GetMapping("/delete/{id}")
void delete(@PathVariable Long id); void delete(@PathVariable("id") Long id);
@Operation(summary = "详细信息") @Operation(summary = "详细信息")
@GetMapping("/detail/{id}") @GetMapping("/detail/{id}")
SysVariableDto detail(@PathVariable Long id); SysVariableDto detail(@PathVariable("id") Long id);
@Operation(summary = "查询") @Operation(summary = "查询")
@PostMapping("/query") @PostMapping("/query")
@ -52,7 +52,7 @@ public interface SysVariablesApi {
@Operation(summary = "删除") @Operation(summary = "删除")
@GetMapping("/value/delete/{id}") @GetMapping("/value/delete/{id}")
void deleteValue(@PathVariable String id); void deleteValue(@PathVariable("id") String id);
@GetMapping("/value/selected/{id}") @GetMapping("/value/selected/{id}")
List<SysVariableValueDto> selectVariableValue(@PathVariable("id") Long id); List<SysVariableValueDto> selectVariableValue(@PathVariable("id") Long id);