整理代码

pull/65/head
fengshuonan 2021-01-17 14:55:47 +08:00
parent 9ef03a4cb7
commit 17b9e4c06c
3 changed files with 21 additions and 7 deletions

View File

@ -74,5 +74,4 @@ public interface DictTagConstants {
*/ */
String ITEM_NAME = "itemName"; String ITEM_NAME = "itemName";
} }

View File

@ -23,56 +23,71 @@ import java.util.Map;
*/ */
@Data @Data
public class SysDictBaseTag extends GeneralVarTagBinding { public class SysDictBaseTag extends GeneralVarTagBinding {
public DictService dictService = SpringUtil.getBean(DictService.class); public DictService dictService = SpringUtil.getBean(DictService.class);
public DictTypeService dictTypeService = SpringUtil.getBean(DictTypeService.class); public DictTypeService dictTypeService = SpringUtil.getBean(DictTypeService.class);
/** /**
* html id * html id
*/ */
public String id; public String id;
/** /**
* html name * html name
*/ */
public String name; public String name;
/** /**
* html type * html type
*/ */
public String type; public String type;
/** /**
* *
*/ */
public String dictTypeCode; public String dictTypeCode;
/** /**
* layui * layui
*/ */
public String laySkin; public String laySkin;
/** /**
* layui * layui
*/ */
public String layFilter; public String layFilter;
/** /**
* layui * layui
*/ */
public String layVerify; public String layVerify;
/** /**
* selectname * selectname
*/ */
public String headName; public String headName;
/** /**
* selectvalue * selectvalue
*/ */
public String headValue; public String headValue;
/** /**
* select1-2- * select1-2-
*/ */
public String headType; public String headType;
/** /**
* *
*/ */
public String defaultValue; public String defaultValue;
/** /**
* *
*/ */
public String workflowForm; public String workflowForm;
/** /**
* *
*/ */
@ -136,6 +151,7 @@ public class SysDictBaseTag extends GeneralVarTagBinding {
/** /**
* *
*
* @return * @return
* @author liuhanqing * @author liuhanqing
* @date 2021/1/16 23:46 * @date 2021/1/16 23:46
@ -147,9 +163,8 @@ public class SysDictBaseTag extends GeneralVarTagBinding {
dictTypeQueryWrapper.ne(SysDictType::getDelFlag, YesOrNotEnum.Y.getCode()); dictTypeQueryWrapper.ne(SysDictType::getDelFlag, YesOrNotEnum.Y.getCode());
return dictTypeService.getOne(dictTypeQueryWrapper); return dictTypeService.getOne(dictTypeQueryWrapper);
} }
/** /**
*
*
* @return * @return
* @author liuhanqing * @author liuhanqing
* @date 2021/1/16 23:46 * @date 2021/1/16 23:46

View File

@ -5,7 +5,7 @@
/* 解析数据表格templet列 */ /* 解析数据表格templet列 */
Feng.parseData = function (res) { Feng.parseData = function (res) {
return { return {
"code": res.code == "00000" ? "0" : res.code, //解析接口状态 "code": res.code === "00000" ? "0" : res.code, //解析接口状态
"msg": res.message, //解析提示文本 "msg": res.message, //解析提示文本
"count": res.data.totalRows, //解析数据长度 "count": res.data.totalRows, //解析数据长度
"data": res.data.rows //解析数据列表 "data": res.data.rows //解析数据列表