mirror of https://gitee.com/stylefeng/guns
【user】统一xm-select下拉属性
parent
85f766bdea
commit
bb2a1d89e3
|
@ -14,7 +14,6 @@ layui.use(['layer', 'form', 'admin', 'laydate', 'HttpRequest', 'xmSelect'], func
|
||||||
el: '#organization',
|
el: '#organization',
|
||||||
data: data.data,
|
data: data.data,
|
||||||
model: {label: {type: 'text'}},
|
model: {label: {type: 'text'}},
|
||||||
prop: {name: 'title', value: 'id'},
|
|
||||||
radio: true,
|
radio: true,
|
||||||
layVerify: 'required',
|
layVerify: 'required',
|
||||||
clickClose: true,
|
clickClose: true,
|
||||||
|
@ -34,8 +33,7 @@ layui.use(['layer', 'form', 'admin', 'laydate', 'HttpRequest', 'xmSelect'], func
|
||||||
radio: true,
|
radio: true,
|
||||||
layVerify: 'required',
|
layVerify: 'required',
|
||||||
clickClose: true,
|
clickClose: true,
|
||||||
data: data.data,
|
data: data.data
|
||||||
prop: {name: 'positionName', value: 'positionId'},
|
|
||||||
});
|
});
|
||||||
}).start();
|
}).start();
|
||||||
|
|
||||||
|
|
|
@ -21,12 +21,10 @@ layui.use(['layer', 'form', 'admin', 'laydate', 'HttpRequest', 'xmSelect'], func
|
||||||
clickClose: true,
|
clickClose: true,
|
||||||
layVerify: 'required',
|
layVerify: 'required',
|
||||||
data: data.data,
|
data: data.data,
|
||||||
initValue: [result.data.positionId],
|
initValue: [result.data.positionId]
|
||||||
prop: {name: 'positionName', value: 'positionId'},
|
|
||||||
});
|
});
|
||||||
}).start();
|
}).start();
|
||||||
|
|
||||||
|
|
||||||
// 初始化组织树
|
// 初始化组织树
|
||||||
new HttpRequest(Feng.ctxPath + "/hrOrganization/treeLayui", 'get', function (data) {
|
new HttpRequest(Feng.ctxPath + "/hrOrganization/treeLayui", 'get', function (data) {
|
||||||
organizationXmSel = xmSelect.render({
|
organizationXmSel = xmSelect.render({
|
||||||
|
@ -35,7 +33,6 @@ layui.use(['layer', 'form', 'admin', 'laydate', 'HttpRequest', 'xmSelect'], func
|
||||||
initValue: [result.data.orgId],
|
initValue: [result.data.orgId],
|
||||||
layVerify: 'required',
|
layVerify: 'required',
|
||||||
model: {label: {type: 'text'}},
|
model: {label: {type: 'text'}},
|
||||||
prop: {name: 'title', value: 'id'},
|
|
||||||
radio: true,
|
radio: true,
|
||||||
clickClose: true,
|
clickClose: true,
|
||||||
tree: {
|
tree: {
|
||||||
|
@ -47,7 +44,6 @@ layui.use(['layer', 'form', 'admin', 'laydate', 'HttpRequest', 'xmSelect'], func
|
||||||
});
|
});
|
||||||
}).start();
|
}).start();
|
||||||
|
|
||||||
|
|
||||||
// 添加表单验证方法
|
// 添加表单验证方法
|
||||||
form.verify({
|
form.verify({
|
||||||
psw: [/^[\S]{6,12}$/, '密码必须6到12位,且不能出现空格'],
|
psw: [/^[\S]{6,12}$/, '密码必须6到12位,且不能出现空格'],
|
||||||
|
|
Loading…
Reference in New Issue