整理代码

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";
}

View File

@ -23,56 +23,71 @@ import java.util.Map;
*/
@Data
public class SysDictBaseTag extends GeneralVarTagBinding {
public DictService dictService = SpringUtil.getBean(DictService.class);
public DictTypeService dictTypeService = SpringUtil.getBean(DictTypeService.class);
/**
* html id
*/
public String id;
/**
* html name
*/
public String name;
/**
* html type
*/
public String type;
/**
*
*/
public String dictTypeCode;
/**
* layui
*/
public String laySkin;
/**
* layui
*/
public String layFilter;
/**
* layui
*/
public String layVerify;
/**
* selectname
*/
public String headName;
/**
* selectvalue
*/
public String headValue;
/**
* select1-2-
*/
public String headType;
/**
*
*/
public String defaultValue;
/**
*
*/
public String workflowForm;
/**
*
*/
@ -136,25 +151,25 @@ public class SysDictBaseTag extends GeneralVarTagBinding {
/**
*
*
* @return
* @author liuhanqing
* @date 2021/1/16 23:46
*/
public SysDictType getDictType(){
public SysDictType getDictType() {
// 根据字典类型编码去查询字典类型
LambdaQueryWrapper<SysDictType> dictTypeQueryWrapper = new LambdaQueryWrapper<>();
dictTypeQueryWrapper.eq(SysDictType::getDictTypeCode, this.getDictTypeCode());
dictTypeQueryWrapper.ne(SysDictType::getDelFlag, YesOrNotEnum.Y.getCode());
return dictTypeService.getOne(dictTypeQueryWrapper);
}
/**
*
*
* @return
* @author liuhanqing
* @date 2021/1/16 23:46
*/
public List<SysDict> getDictList(){
public List<SysDict> getDictList() {
// 查询字典列表
LambdaQueryWrapper<SysDict> dictQueryWrapper = new LambdaQueryWrapper<>();
dictQueryWrapper.eq(SysDict::getDictTypeCode, this.getDictTypeCode());

View File

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