save
This commit is contained in:
parent
7106d26f1f
commit
5e9cf94e96
@ -112,8 +112,8 @@
|
||||
data: e.data,
|
||||
value: '0',
|
||||
model: {"icon":"hidden","label":{"type":"text"}},
|
||||
clickClose: 'true',
|
||||
radio: 'true',
|
||||
clickClose: true,
|
||||
radio: true,
|
||||
tree: {show: true,"strict":false,"clickCheck":true,"clickExpand":false},
|
||||
})
|
||||
}
|
||||
@ -131,8 +131,8 @@
|
||||
data: [{"value":"0","name":"目录"},{"value":"1","name":"菜单"},{"value":"2","name":"权限"}],
|
||||
value: '1',
|
||||
model: {"icon":"hidden","label":{"type":"text"}},
|
||||
clickClose: 'true',
|
||||
radio: 'true',
|
||||
clickClose: true,
|
||||
radio: true,
|
||||
})
|
||||
});
|
||||
|
||||
|
@ -135,8 +135,8 @@
|
||||
toolbar: {show: true, list: ["CLEAR"]},
|
||||
data: e.data,
|
||||
model: {"icon":"hidden","label":{"type":"text"}},
|
||||
clickClose: 'true',
|
||||
radio: 'true',
|
||||
clickClose: true,
|
||||
radio: true,
|
||||
tree: {show: true,"strict":false,"clickCheck":true,"clickExpand":false},
|
||||
})
|
||||
}
|
||||
@ -153,8 +153,8 @@
|
||||
initValue: initValue,
|
||||
data: [{"value":"0","name":"目录"},{"value":"1","name":"菜单"},{"value":"2","name":"权限"}],
|
||||
model: {"icon":"hidden","label":{"type":"text"}},
|
||||
clickClose: 'true',
|
||||
radio: 'true',
|
||||
clickClose: true,
|
||||
radio: true,
|
||||
})
|
||||
});
|
||||
|
||||
|
@ -86,8 +86,8 @@
|
||||
data: e.data,
|
||||
toolbar: {show: true, list: ["CLEAR"]},
|
||||
model: {"icon":"hidden","label":{"type":"text"}},
|
||||
clickClose: 'true',
|
||||
radio: 'true',
|
||||
clickClose: true,
|
||||
radio: true,
|
||||
tree: {show:true, strict:false, clickCheck:true, clickExpand:false},
|
||||
})
|
||||
}
|
||||
|
@ -184,11 +184,11 @@
|
||||
layui.xmSelect.render({
|
||||
el: '#sex',
|
||||
name: 'sex',
|
||||
initValue: initValue,
|
||||
data: [{"value":"男","name":"男"},{"value":"女","name":"女"}],
|
||||
model: {"icon":"hidden","label":{"type":"text"}},
|
||||
clickClose: 'true',
|
||||
radio: 'true',
|
||||
initValue: initValue,
|
||||
data: [{"value":"男","name":"男"},{"value":"女","name":"女"}],
|
||||
model: {"icon":"hidden","label":{"type":"text"}},
|
||||
clickClose: true,
|
||||
radio: true,
|
||||
})
|
||||
});
|
||||
|
||||
@ -204,7 +204,7 @@
|
||||
layui.use(['laydate'], function() {
|
||||
layui.laydate.render({
|
||||
elem: '#last_time',
|
||||
range: ['#last_time-date-start', '#last_time-date-end'],
|
||||
range: ['#last_time-date-start', '#last_time-date-end'],
|
||||
type: 'datetime',
|
||||
});
|
||||
})
|
||||
@ -213,7 +213,7 @@
|
||||
layui.use(['laydate'], function() {
|
||||
layui.laydate.render({
|
||||
elem: '#join_time',
|
||||
range: ['#join_time-date-start', '#join_time-date-end'],
|
||||
range: ['#join_time-date-start', '#join_time-date-end'],
|
||||
type: 'datetime',
|
||||
});
|
||||
})
|
||||
@ -363,7 +363,7 @@
|
||||
|
||||
// 获取表格中下拉或树形组件数据
|
||||
let apiResults = {};
|
||||
apiResults['sex'] = {"男":"男","女":"女"};
|
||||
apiResults['sex'] = {"男":"男","女":"女"};
|
||||
|
||||
// 编辑或删除行事件
|
||||
table.on('tool(data-table)', function(obj) {
|
||||
|
@ -161,12 +161,12 @@
|
||||
layui.xmSelect.render({
|
||||
el: '#sex',
|
||||
name: 'sex',
|
||||
initValue: initValue,
|
||||
data: [{"value":"男","name":"男"},{"value":"女","name":"女"}],
|
||||
value: '男',
|
||||
model: {"icon":"hidden","label":{"type":"text"}},
|
||||
clickClose: 'true',
|
||||
radio: 'true',
|
||||
initValue: initValue,
|
||||
data: [{"value":"男","name":"男"},{"value":"女","name":"女"}],
|
||||
value: '男',
|
||||
model: {"icon":"hidden","label":{"type":"text"}},
|
||||
clickClose: true,
|
||||
radio: true,
|
||||
})
|
||||
});
|
||||
|
||||
@ -175,8 +175,8 @@
|
||||
let input = layui.jquery('#avatar').prev();
|
||||
input.prev().attr('src', input.val());
|
||||
layui.upload.render({
|
||||
elem: '#avatar',
|
||||
url: '/app/admin/upload/avatar',
|
||||
elem: '#avatar',
|
||||
url: '/app/admin/upload/avatar',
|
||||
acceptMime: 'image/gif,image/jpeg,image/jpg,image/png',
|
||||
done: function (res) {
|
||||
if (res.code > 0) return layui.layer.msg(res.msg);
|
||||
@ -195,7 +195,7 @@
|
||||
// 字段 登录时间 last_time
|
||||
layui.use(['laydate'], function() {
|
||||
layui.laydate.render({
|
||||
elem: '#last_time',
|
||||
elem: '#last_time',
|
||||
type: 'datetime',
|
||||
});
|
||||
})
|
||||
@ -203,7 +203,7 @@
|
||||
// 字段 注册时间 join_time
|
||||
layui.use(['laydate'], function() {
|
||||
layui.laydate.render({
|
||||
elem: '#join_time',
|
||||
elem: '#join_time',
|
||||
type: 'datetime',
|
||||
});
|
||||
})
|
||||
|
@ -188,8 +188,8 @@
|
||||
initValue: initValue,
|
||||
data: [{"value":"男","name":"男"},{"value":"女","name":"女"}],
|
||||
model: {"icon":"hidden","label":{"type":"text"}},
|
||||
clickClose: 'true',
|
||||
radio: 'true',
|
||||
clickClose: true,
|
||||
radio: true,
|
||||
})
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user