save
This commit is contained in:
parent
f9b4394d20
commit
846be6eecc
@ -127,7 +127,7 @@
|
||||
// 字段 角色 roles
|
||||
layui.use(["jquery", "xmSelect"], function() {
|
||||
layui.$.ajax({
|
||||
url: "/app/admin/role/select?format=select",
|
||||
url: "/app/admin/role/select?format=tree",
|
||||
dataType: "json",
|
||||
success: function (e) {
|
||||
let value = layui.$("#roles").attr("value");
|
||||
@ -137,8 +137,8 @@
|
||||
name: "roles",
|
||||
initValue: initValue,
|
||||
data: e.data,
|
||||
tree: {"show":true},
|
||||
toolbar: {"show":true,"list":["ALL","CLEAR","REVERSE"]},
|
||||
tree: {"show":true, expandedKeys:true, strict:false},
|
||||
toolbar: {show:true, list:["ALL","CLEAR","REVERSE"]},
|
||||
})
|
||||
}
|
||||
});
|
||||
|
@ -150,7 +150,7 @@
|
||||
// 字段 角色 roles
|
||||
layui.use(["jquery", "xmSelect"], function() {
|
||||
layui.$.ajax({
|
||||
url: "/app/admin/role/select?format=select",
|
||||
url: "/app/admin/role/select?format=tree",
|
||||
dataType: "json",
|
||||
success: function (e) {
|
||||
let value = layui.$("#roles").attr("value");
|
||||
@ -160,7 +160,7 @@
|
||||
name: "roles",
|
||||
initValue: initValue,
|
||||
data: e.data,
|
||||
tree: {show: true, expandedKeys: initValue},
|
||||
tree: {show: true, expandedKeys: initValue, strict: false},
|
||||
toolbar: {show: true, list: ["ALL","CLEAR","REVERSE"]},
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user