|
|
@@ -1227,4 +1227,21 @@ public class WbsTreePrivateController extends BladeController {
|
|
|
IPage<TreeNodeVOByTabType> page = wbsTreePrivateService.tabTypeLazyTreeByProject(Condition.getPage(query), parentId, projectId, titleName);
|
|
|
return R.data(page);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * wbs私有树懒加载获取项目私有节点树形结构--(表单类型划分树)
|
|
|
+ */
|
|
|
+ @GetMapping("/showTable")
|
|
|
+ @ApiOperationSupport(order = 41)
|
|
|
+ @ApiOperation(value = "设置/取消 表单默认隐藏", notes = "传入表单的pKeyId")
|
|
|
+ @ApiImplicitParams(value = {
|
|
|
+ @ApiImplicitParam(name = "pKeyId", value = "表单的pKeyId", required = true)})
|
|
|
+ public R<Boolean> showTable(Long pKeyId) {
|
|
|
+ boolean update = wbsTreePrivateService.update(Wrappers.<WbsTreePrivate>lambdaUpdate().eq(WbsTreePrivate::getPKeyId, pKeyId).ne(WbsTreePrivate::getType, 1).setSql(" default_conceal = 1 - default_conceal"));
|
|
|
+ if ( update) {
|
|
|
+ // todo 是否同步到客户端
|
|
|
+ }
|
|
|
+ return R.data(update);
|
|
|
+ }
|
|
|
}
|