Commit 4ba63d13 by 前端

员工管理添加

1 parent 343b88bd
...@@ -171,8 +171,13 @@ ...@@ -171,8 +171,13 @@
autocomplete="off" autocomplete="off"
class="layui-input" class="layui-input"
/> />
<div>
<input id="mesVerifyFlag" type="checkbox" name="mesVerifyFlag" lay-filter="encrypt" lay-skin="primary" title="开启短信验证登录" />
</div> </div>
</div> </div>
</div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label required">登录密码:</label> <label class="layui-form-label required">登录密码:</label>
<div class="layui-input-block" style="position: relative"> <div class="layui-input-block" style="position: relative">
...@@ -568,6 +573,7 @@ ...@@ -568,6 +573,7 @@
otherParams.method = 'merchants.api.staff.saveStaff' otherParams.method = 'merchants.api.staff.saveStaff'
} }
var params = helper.clone(true, data.field, otherParams) var params = helper.clone(true, data.field, otherParams)
params.mesVerifyFlag = params.mesVerifyFlag == 'on' ? 1 : 0
delete params.merhcnatImg delete params.merhcnatImg
params.createdSource = 1 params.createdSource = 1
request(params, function (result) { request(params, function (result) {
...@@ -714,6 +720,7 @@ ...@@ -714,6 +720,7 @@
staffName: data.staffName, staffName: data.staffName,
staffPhone: data.staffPhone, staffPhone: data.staffPhone,
password: data.password, password: data.password,
mesVerifyFlag: data.mesVerifyFlag,
// visibleInferiorMer: "1", // visibleInferiorMer: "1",
roleIds: data.roleIds ? +data.roleIds.join('') : '', roleIds: data.roleIds ? +data.roleIds.join('') : '',
staffEmail: data.staffEmail, staffEmail: data.staffEmail,
...@@ -723,6 +730,7 @@ ...@@ -723,6 +730,7 @@
weChatPhone: data.weChatPhone, weChatPhone: data.weChatPhone,
weChatOpenId: data.weChatOpenId weChatOpenId: data.weChatOpenId
} }
if (data.staffLabel) { if (data.staffLabel) {
var item = data.staffLabel.split(','.toString()) var item = data.staffLabel.split(','.toString())
tagAuth.setValue(item) tagAuth.setValue(item)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!