mirror of https://gitee.com/stylefeng/guns
整理代码
parent
9ef03a4cb7
commit
17b9e4c06c
|
@ -74,5 +74,4 @@ public interface DictTagConstants {
|
||||||
*/
|
*/
|
||||||
String ITEM_NAME = "itemName";
|
String ITEM_NAME = "itemName";
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* select控件提示name
|
* select控件提示name
|
||||||
*/
|
*/
|
||||||
public String headName;
|
public String headName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* select控件提示value
|
* select控件提示value
|
||||||
*/
|
*/
|
||||||
public String headValue;
|
public String headValue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* select控件提示类型::1-全部,2-请选择
|
* select控件提示类型::1-全部,2-请选择
|
||||||
*/
|
*/
|
||||||
public String headType;
|
public String headType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 默认值
|
* 默认值
|
||||||
*/
|
*/
|
||||||
public String defaultValue;
|
public String defaultValue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 工作流相关
|
* 工作流相关
|
||||||
*/
|
*/
|
||||||
public String workflowForm;
|
public String workflowForm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 工作流相关
|
* 工作流相关
|
||||||
*/
|
*/
|
||||||
|
@ -136,25 +151,25 @@ public class SysDictBaseTag extends GeneralVarTagBinding {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取字典类型
|
* 获取字典类型
|
||||||
|
*
|
||||||
* @return 字典类型
|
* @return 字典类型
|
||||||
* @author liuhanqing
|
* @author liuhanqing
|
||||||
* @date 2021/1/16 23:46
|
* @date 2021/1/16 23:46
|
||||||
*/
|
*/
|
||||||
public SysDictType getDictType(){
|
public SysDictType getDictType() {
|
||||||
// 根据字典类型编码去查询字典类型
|
// 根据字典类型编码去查询字典类型
|
||||||
LambdaQueryWrapper<SysDictType> dictTypeQueryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<SysDictType> dictTypeQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
dictTypeQueryWrapper.eq(SysDictType::getDictTypeCode, this.getDictTypeCode());
|
dictTypeQueryWrapper.eq(SysDictType::getDictTypeCode, this.getDictTypeCode());
|
||||||
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
|
||||||
*/
|
*/
|
||||||
public List<SysDict> getDictList(){
|
public List<SysDict> getDictList() {
|
||||||
// 查询字典列表
|
// 查询字典列表
|
||||||
LambdaQueryWrapper<SysDict> dictQueryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<SysDict> dictQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
dictQueryWrapper.eq(SysDict::getDictTypeCode, this.getDictTypeCode());
|
dictQueryWrapper.eq(SysDict::getDictTypeCode, this.getDictTypeCode());
|
||||||
|
|
|
@ -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 //解析数据列表
|
||||||
|
@ -163,4 +163,4 @@ layui.config({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue