mirror of https://gitee.com/stylefeng/guns
整理代码
parent
9ef03a4cb7
commit
17b9e4c06c
|
@ -74,5 +74,4 @@ public interface DictTagConstants {
|
|||
*/
|
||||
String ITEM_NAME = "itemName";
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
* select控件提示name
|
||||
*/
|
||||
public String headName;
|
||||
|
||||
/**
|
||||
* select控件提示value
|
||||
*/
|
||||
public String headValue;
|
||||
|
||||
/**
|
||||
* select控件提示类型::1-全部,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());
|
||||
|
|
|
@ -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({
|
|||
}
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue