【user】统一xm-select下拉属性

pull/64/head
fengshuonan 2021-01-31 19:18:13 +08:00
parent 85f766bdea
commit bb2a1d89e3
2 changed files with 4 additions and 10 deletions

View File

@ -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();

View File

@ -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位且不能出现空格'],