user_edit.html 8.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <div id="content_2" style="display:">
  2. <div class="layui-fluid">
  3. <div style="display:none;"><span id="list-name">账号管理-更新数据</span> > <span id="list-project">工厂管理</span></div>
  4. <form method="post" target="f1" class="form1" role="form" autocomplete="off" action="http://192.168.33.10/churen/package/manage/?l=database.update_action">
  5. <input type="hidden" name="function" id="function" value="msg"/>
  6. <input type="hidden" name="url" id="url" value="http://192.168.33.10/churen/package/manage/?l=project/database/list&project=factory&search_option_factory_id=1&oper_table=info&page_type=2&table=member&menu=factory&menu_id=65&search_option_state=1" />
  7. <input type="hidden" name="project" id="project" value="factory" />
  8. <input type="hidden" name="table" id="table" value="member" />
  9. <input type="hidden" name="update_where_id" id="update_where_id" value="2"/>
  10. <input type="hidden" name="copy_num" id="copy_num" value="0"/>
  11. <iframe id="f1" name="f1" style="display:none;"></iframe>
  12. <div class="layui-row layui-col-space15">
  13. <div class="layui-col-md12">
  14. <div class="layui-card" style="">
  15. <div class="layui-card-header" style="display:none;">响应式组合</div>
  16. <div class="layui-card-body" id="content"><div class="layui-form-item "><div classs="layui-col-lg6"><div><input type="hidden" class="autoload_text layui-input update_value form-control layui-input validate[required]" value="2" name="update_id" id="update_id_value" autocomplete="new1636596318" placeholder=""/></div></div></div><div class="layui-form-item "><div classs="layui-col-lg6"><div><input type="hidden" class="autoload_text layui-input update_value form-control layui-input validate[required]" value="1" name="update_factory_id" id="update_factory_id_value" autocomplete="new1636596318" placeholder=""/></div></div></div><div class="layui-form-item "><div classs="layui-col-lg6"><div ><label style="font-size:14px;font-weight:bold;" class="">角色</label></div><div><div><div class="am-btn-group" ><input update_type="checked" class="checkbox-checkall update_role_id update_value" type="checkbox" name="temp_update_role_id[]" value="0_update_role_id"/> 全选 &nbsp;&nbsp;<input update_type="checked" class="autoload checkbox-checkall-0_update_role_id update_role_id update_value validate[required]" type="checkbox" name="update_role_id[]" value="1" checked /> 管理员 &nbsp;&nbsp;<input update_type="checked" class="autoload checkbox-checkall-0_update_role_id update_role_id update_value validate[required]" type="checkbox" name="update_role_id[]" value="2" /> 配货员 &nbsp;&nbsp;<input update_type="checked" class="autoload checkbox-checkall-0_update_role_id update_role_id update_value validate[required]" type="checkbox" name="update_role_id[]" value="3" /> 库存管理员 &nbsp;&nbsp;<input update_type="checked" class="autoload checkbox-checkall-0_update_role_id update_role_id update_value validate[required]" type="checkbox" name="update_role_id[]" value="4" /> 财务 &nbsp;&nbsp;</div></div></div></div></div><div class="layui-form-item "><div classs="layui-col-lg6"><div ><label style="font-size:14px;font-weight:bold;" class="">员工姓名</label></div><div><input type="text" class="autoload_text layui-input update_value form-control layui-input validate[required]" value="" name="update_name" id="update_name_value" autocomplete="new1636596318" placeholder=""/></div></div></div><div class="layui-form-item "><div classs="layui-col-lg6"><div ><label style="font-size:14px;font-weight:bold;" class="">员工手机号</label></div><div><input type="text" class="autoload_text layui-input update_value form-control layui-input validate[required]" value="" name="update_mobile" id="update_mobile_value" autocomplete="new1636596318" placeholder=""/></div></div></div><div class="layui-form-item "><div classs="layui-col-lg6"><div ><label style="font-size:14px;font-weight:bold;" class="">头像</label></div><div><input type="button" style="width:100px;display:inline;padding-left:0px;" class="form-control layui-input image_upload" v="update_avatar_avatar" i="update_avatar_info_value" id="file_update_avatar_avatar" key="1" upload_search_value="factory-member.avatar" place="150" value="本地上传"/>
  17. <div style="margin-top:10px;display:none;" class="layui-progress layui-progress-big" id="file_update_avatar_avatar_progress" lay-filter="file_update_avatar_avatar_progress" lay-showPercent="true">
  18. <div class="layui-progress-bar" lay-percent="0%"></div>
  19. </div>
  20. <div style="margin-top: 10px;margin-bottom: 10px;">
  21. <img src="" style="display:none;" class="update_value" id="show_update_avatar_avatar" width="150" />
  22. </div>
  23. <input type="text" class="update_value form-control layui-input " name="update_avatar" id="update_avatar_avatar" value="" style="display: none"></div></div></div></div>
  24. <div class="layui-card-body">
  25. <div class="layui-form-item">
  26. <div id="update_button" submit=""><button type="button" class="btn btn-primary save-data layui-btn layuiadmin-btn-list"><i class="fa fa-save"></i> 提交保存</button>
  27. <a href="http://192.168.33.10/churen/package/manage/?l=project/database/list&project=factory&search_option_factory_id=1&oper_table=info&page_type=2&table=member&menu=factory&menu_id=65&search_option_state=1" class="btn btn-danger layui-btn layuiadmin-btn-list layui-btn-danger" onclicks="msg({status:1,msg:'yes'})">放弃保存</a></div>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. <div id="valid"><script>(function($){
  34. $.fn.validationEngineLanguage = function(){
  35. };
  36. $.validationEngineLanguage = {
  37. newLang: function(){
  38. $.validationEngineLanguage.allRules = {"required":{"regex":"none","alertText":"\u6b64\u9879\u4e0d\u80fd\u4e3a\u7a7a","alertTextCheckboxMultiple":"\u8bf7\u9009\u62e9\u4e00\u4e2a\u9009\u9879","alertTextCheckboxe":"\u8bf7\u9009\u62e9\u4e00\u4e2a\u9009\u9879","alertTextDateRange":"\u65e5\u671f\u8303\u56f4\u4e0d\u53ef\u7a7a\u767d"}};}
  39. };
  40. $.validationEngineLanguage.newLang();
  41. })(jQuery);$(document).ready(function(){
  42. $(".form1").validationEngine("attach",{onSuccess:function(){submit();},onFailure:function(){submit();}});
  43. });</script></div>
  44. <div id="struct" style="display:none;" save="no"><table border=1 width=100% height=100%><tr><td style=width:30%;line-height:1.75;font-weight:bold>id</td><td style=width:30%;word-break:break-all;word-wrap:break-word;>int-11</td><td style=word-break:break-all;word-wrap:break-word;>ID</td></tr><tr><td style=width:30%;line-height:1.75;font-weight:bold>uid</td><td style=width:30%;word-break:break-all;word-wrap:break-word;>int-11</td><td style=word-break:break-all;word-wrap:break-word;>用户名</td></tr><tr><td style=width:30%;line-height:1.75;font-weight:bold>factory_id</td><td style=width:30%;word-break:break-all;word-wrap:break-word;>int-11</td><td style=word-break:break-all;word-wrap:break-word;>所属工厂</td></tr><tr><td style=width:30%;line-height:1.75;font-weight:bold>role_id</td><td style=width:30%;word-break:break-all;word-wrap:break-word;>varchar-60</td><td style=word-break:break-all;word-wrap:break-word;>角色</td></tr><tr><td style=width:30%;line-height:1.75;font-weight:bold>name</td><td style=width:30%;word-break:break-all;word-wrap:break-word;>varchar-32</td><td style=word-break:break-all;word-wrap:break-word;>员工姓名</td></tr><tr><td style=width:30%;line-height:1.75;font-weight:bold>mobile</td><td style=width:30%;word-break:break-all;word-wrap:break-word;>bigint-11</td><td style=word-break:break-all;word-wrap:break-word;>员工手机号</td></tr><tr><td style=width:30%;line-height:1.75;font-weight:bold>avatar</td><td style=width:30%;word-break:break-all;word-wrap:break-word;>varchar-150</td><td style=word-break:break-all;word-wrap:break-word;>头像</td></tr><tr><td style=width:30%;line-height:1.75;font-weight:bold>state</td><td style=width:30%;word-break:break-all;word-wrap:break-word;>tinyint-1</td><td style=word-break:break-all;word-wrap:break-word;>状态</td></tr><tr><td style=width:30%;line-height:1.75;font-weight:bold>cdate</td><td style=width:30%;word-break:break-all;word-wrap:break-word;>int-11</td><td style=word-break:break-all;word-wrap:break-word;>创建时间</td></tr></table></div>
  45. </form>
  46. </div>
  47. </div>
  48. <script class="include" system="" path="inc/" file="script">include()</script>
  49. <script>
  50. layui.config({
  51. base: '../script/lib/layui/admin/' //静态资源所在路径
  52. }).extend({
  53. formSelects: 'plugin/formselects/formselects',
  54. index: 'lib/index' //主入口模块
  55. }).use(['index', 'contlist', 'table', 'form', 'formSelects'], function(){
  56. var table = layui.table;
  57. var form = layui.form;
  58. var formSelects = layui.formSelects;
  59. init();
  60. });
  61. </script>