app/views/educode_sales/staffs/edit.html.erb in educode_sales-0.1.1 vs app/views/educode_sales/staffs/edit.html.erb in educode_sales-0.1.2
- old
+ new
@@ -31,11 +31,11 @@
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label required">生效日期</label>
<div class="layui-input-block">
- <input type="text" id="day" class="layui-input" lay-verify="required" lay-reqtext="生效日期不能为空"
+ <input type="text" id="day" autocomplete="off" class="layui-input" lay-verify="required" lay-reqtext="生效日期不能为空"
name="enabled_at" value="<%= @staff.enabled_at&.to_s(:date) %>" placeholder="">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label required">有效期</label>
@@ -95,10 +95,9 @@
if (area_ids.length == 0) {
layer.alert("请选择负责区域");
return false;
}
data.field['area_ids'] = area_ids;
- console.log(data.field);
request.authPut("educode_sales/staffs/" + parent.staff_id, data.field, function (res) {
console.log(res.success == false)
if (res.success == false) {
layer.alert(res.msg)
} else {
\ No newline at end of file