1,cms问题优化

2,dev配置修改
dev
zhc077 1 year ago
parent 2bc1bb970e
commit 8c98faeaa9
  1. 11
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/cms/controller/CmsColumnController.java
  2. 2
      jeecg-boot-master/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml
  3. 6
      jeecgboot-vue3-master/src/views/cms/admin/column/CmsColumn.data.ts
  4. 4
      jeecgboot-vue3-master/src/views/cms/admin/column/CmsColumnList.vue

@ -105,11 +105,12 @@ public class CmsColumnController extends JeecgController<CmsColumn, ICmsColumnSe
CmsColumn.setPid("0");
}
Result<IPage<CmsColumn>> result = new Result<>();
QueryWrapper<CmsColumn> queryWrapper = QueryGenerator.initQueryWrapper(CmsColumn, req.getParameterMap());
QueryWrapper<CmsColumn> queryWrapper = new QueryWrapper<>();// QueryGenerator.initQueryWrapper(CmsColumn, req.getParameterMap());
String name = CmsColumn.getName();
if (StringUtils.isBlank(name)) {
queryWrapper.eq("pid", CmsColumn.getPid());
}
queryWrapper.orderBy(true, true, "sort");
Page<CmsColumn> page = new Page<CmsColumn>(pageNo, pageSize);
IPage<CmsColumn> pageList = cmsColumnService.page(page, queryWrapper);
result.setSuccess(true);
@ -189,9 +190,12 @@ public class CmsColumnController extends JeecgController<CmsColumn, ICmsColumnSe
//@AutoLog(value = "基础能力设置-获取子数据")
@ApiOperation(value = "基础能力设置-获取子数据", notes = "基础能力设置-获取子数据")
@GetMapping(value = "/childList")
public Result<List<CmsColumn>> queryPageList(CmsColumn CmsColumn, HttpServletRequest req) {
public Result<List<CmsColumn>> queryPageList(CmsColumn cmsColumn, HttpServletRequest req) {
Result<List<CmsColumn>> result = new Result();
QueryWrapper<CmsColumn> queryWrapper = QueryGenerator.initQueryWrapper(CmsColumn, req.getParameterMap());
// QueryWrapper<CmsColumn> queryWrapper = QueryGenerator.initQueryWrapper(CmsColumn, req.getParameterMap());
QueryWrapper<CmsColumn> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("pid", cmsColumn.getPid());
queryWrapper.orderBy(true, true, "sort");
List<CmsColumn> list = cmsColumnService.list(queryWrapper);
result.setSuccess(true);
result.setResult(list);
@ -213,6 +217,7 @@ public class CmsColumnController extends JeecgController<CmsColumn, ICmsColumnSe
QueryWrapper<CmsColumn> queryWrapper = new QueryWrapper<>();
List<String> parentIdList = Arrays.asList(parentIds.split(","));
queryWrapper.in("pid", parentIdList);
queryWrapper.orderBy(true, true, "sort");
List<CmsColumn> list = cmsColumnService.list(queryWrapper);
IPage<CmsColumn> pageList = new Page<>(1, 10, list.size());
pageList.setRecords(list);

@ -160,7 +160,7 @@ mybatis-plus:
table-underline: true
configuration:
# 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
#log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# 返回类型为Map,显示null对应的字段
call-setters-on-nulls: true
#jeecg专用配置

@ -72,11 +72,11 @@ export const formSchema: FormSchema[] = [
componentProps: {
//options里面由一个一个的radio组成,支持disabled
options: [
{ label: '是', value: 1 },
{ label: '否', value: 0 },
{ label: '是', value: '1' },
{ label: '否', value: '0' },
],
},
defaultValue: 1,
defaultValue: '1',
},
{
label: '排序',

@ -10,8 +10,8 @@
>
<!--插槽:table标题-->
<template #tableTitle>
<!-- <a-button type="primary" @click="handleCreate" preIcon="ant-design:plus-outlined"> 新增-->
<!-- </a-button>-->
<a-button type="primary" @click="handleCreate" preIcon="ant-design:plus-outlined"> 新增
</a-button>
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出
</a-button>
<!--<a-dropdown v-if="selectedRowKeys.length > 0">

Loading…
Cancel
Save