Commit 30e90259 authored by 李家智's avatar 李家智
Browse files

bug fix

parent 28497287
...@@ -20,7 +20,6 @@ import com.ibeetl.admin.core.rbac.tree.MenuItem; ...@@ -20,7 +20,6 @@ import com.ibeetl.admin.core.rbac.tree.MenuItem;
import com.ibeetl.admin.core.rbac.tree.OrgItem; import com.ibeetl.admin.core.rbac.tree.OrgItem;
import com.ibeetl.admin.core.service.CorePlatformService; import com.ibeetl.admin.core.service.CorePlatformService;
import com.ibeetl.admin.core.service.CoreUserService; import com.ibeetl.admin.core.service.CoreUserService;
import com.ibeetl.admin.core.util.DictUtil;
import com.ibeetl.admin.core.util.HttpRequestLocal; import com.ibeetl.admin.core.util.HttpRequestLocal;
import com.ibeetl.admin.core.web.dto.FunctionNodeView; import com.ibeetl.admin.core.web.dto.FunctionNodeView;
import com.ibeetl.admin.core.web.dto.MenuNodeView; import com.ibeetl.admin.core.web.dto.MenuNodeView;
...@@ -41,8 +40,7 @@ public class CoreUserController { ...@@ -41,8 +40,7 @@ public class CoreUserController {
@Autowired @Autowired
HttpRequestLocal httpRequestLocal; HttpRequestLocal httpRequestLocal;
@Autowired
DictUtil dictUtil;
@Autowired @Autowired
......
...@@ -22,7 +22,7 @@ findChildByParent ...@@ -22,7 +22,7 @@ findChildByParent
* *
FROM core_dict FROM core_dict
WHERE WHERE
parent = #parentValue# and del_flag = 0 order by sort DESC parent = #id# and del_flag = 0 order by sort DESC
bathDelByValue bathDelByValue
......
...@@ -203,7 +203,8 @@ var Lib = { ...@@ -203,7 +203,8 @@ var Lib = {
value = data.value; value = data.value;
if (value != "") { if (value != "") {
Common.post("/core/dict/viewChildren.json", { Common.post("/core/dict/viewChildren.json", {
"value" : value "value" : value,
"group":groupName
}, function(serverData) { }, function(serverData) {
Lib._resetDictSelect(selects[start], serverData); Lib._resetDictSelect(selects[start], serverData);
layuiForm.render(); layuiForm.render();
......
<!--#
var dicts = core.dictLevel(type,value!);
var id=id!(name+"id");
if(isEmpty(value)){
-->
<!--# for(dict in dicts){
-->
<div class="${style!'layui-input-inline'}">
<!--#if(dictLP.isLast){ /*最后一项字典需要提交,因此需要名称*/ -->
<select name="${name}" id="${id}" >
<!--# }else{ -->
<select>
<!--# } -->
<option value="">请选择</option>
<!--#
if(dictLP.isFirst){ //第一项需要显示完整列表
var allData = core.dictDownQuery(dict.type);//该类型下所有字典
for(one in allData){
-->
<option value="${one.value}">${one.name}</option>
<!--#}
} -->
</select>
</div>
<!--# } -->
<!--# }else{ /*提供值的情况下,需要遍历每一项父字典*/ -->
<!--# for(dict in dicts){
-->
<div class="${style!'layui-input-inline'}">
<!--#if(dictLP.isLast){ /*最后一项字典需要提交,因此需要名称*/ -->
<select name="${name}" id="${id}" >
<!--# }else{ -->
<select>
<!--# } -->
<option value="">请选择</option>
<!--#
var allData = core.dictDownQuery(dict.type);//该类型下所有字典
var f=dict.value;
for(one in allData){
if(one.value==f){ //如果有期望值
-->
<option value="${one.value}" selected>${one.name}</option>
<!--#}else{ -->
<option value="${one.value}" >${one.name}</option>
<!--#} -->
<!--#}elsefor{ -->
<option selected>未配置数据字典:${n}</option>
<!--#} -->
</select>
</div>
<!--# } -->
<!--# } -->
\ No newline at end of file
...@@ -35,16 +35,7 @@ for(item in items){ ...@@ -35,16 +35,7 @@ for(item in items){
</div> </div>
<!--#} <!--#}
case 7:{ //级连数据字典
-->
<div class="layui-inline select-container">
<label class="layui-form-label">${item.name}</label>
<layui:childrenDictSelect style='layui-input-inline' type="${item.dict}" name="${item.fieldName}"
value=""></layui:childrenDictSelect>
</div>
<!--#}
case 2:{ //日期范围 case 2:{ //日期范围
--> -->
<div class="layui-inline"> <div class="layui-inline">
......
...@@ -4,10 +4,11 @@ ...@@ -4,10 +4,11 @@
<option value="">请选择</option> <option value="">请选择</option>
<!--# <!--#
var dicts = []; var dicts = [];
if(isNotEmpty(type)&&isEmpty(value)){ if(isNotEmpty(type)){
dicts = core.dictDownQuery(type); dicts = dict.dictDownQuery(type);
}else if(isNotEmpty(value)){ }else if(isNotEmpty(group)&&isNotEmpty(value)){
dicts = core.dictListByValue(value); //级联选择
dicts = dict.dictListByValue(group,value);
} }
var expected = value!""; var expected = value!"";
for(dict in dicts){ for(dict in dicts){
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment