2521e626fecef8b97bcc592589118f5d.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?php /*a:1:{s:71:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\auction\auction_site\index.php";i:1648517357;}*/ ?>
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8">
  6. <title>竞拍配置</title>
  7. <link href="/system/frame//css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
  8. <link href="/system//css/layui-admin.css" rel="stylesheet">
  9. <link href="/system/frame//css/style.min.css?v=3.0.0" rel="stylesheet">
  10. <link href="/system/frame/css/font-awesome.min.css?v=4.3.0" rel="stylesheet">
  11. <script src="/static/plug/vue/dist/vue.min.js"></script>
  12. <link href="/static/plug/iview/dist/styles/iview.css" rel="stylesheet">
  13. <script src="/static/plug/iview/dist/iview.min.js"></script>
  14. <script src="/static/plug/jquery/jquery.min.js"></script>
  15. <script src="/static/plug/form-create/province_city.js"></script>
  16. <script src="/static/plug/form-create/form-create.min.js"></script>
  17. <link href="/static/plug/layui/css/layui.css" rel="stylesheet">
  18. <script src="/static/plug/layui/layui.all.js"></script>
  19. <style>
  20. /*弹框样式修改*/
  21. .ivu-modal{top: 20px;}
  22. .ivu-modal .ivu-modal-body{padding: 10px;}
  23. .ivu-modal .ivu-modal-body .ivu-modal-confirm-head{padding:0 0 10px 0;}
  24. .ivu-modal .ivu-modal-body .ivu-modal-confirm-footer{display: none;padding-bottom: 10px;}
  25. .ivu-date-picker {display: inline-block;line-height: normal;width: 280px;}
  26. .ivu-modal-footer{display: none;}
  27. .ivu-poptip-popper{text-align: left;}
  28. .ivu-icon{padding-left: 5px;}
  29. .ivu-btn-long{width: 10%;min-width:100px;margin-left: 18%;}
  30. </style>
  31. </head>
  32. <body class="gray-bg">
  33. <div class="wrapper wrapper-content">
  34. <div class="row">
  35. <div class="col-sm-12">
  36. <div class="ibox float-e-margins">
  37. <div class="ibox-title">
  38. <h5>系统配置</h5>
  39. </div>
  40. <div class="tabs-container ibox-title gray-bg">
  41. <ul class="nav nav-tabs">
  42. <li ><a href=""><i class="fa "></i></a></li>
  43. </ul>
  44. <div class="ibox-content">
  45. <div class="p-m m-t-sm" id="configboay">
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </body>
  53. <script>
  54. formCreate.formSuccess = function(form,$r){
  55. <?=$form->getSuccessScript()?>
  56. $r.btn.loading(false);
  57. };
  58. (function () {
  59. var create = (function () {
  60. var getRule = function () {
  61. var rule = <?=json_encode($form->getRules())?>;
  62. rule.forEach(function (c) {
  63. if ((c.type == 'cascader' || c.type == 'tree') && Object.prototype.toString.call(c.props.data) == '[object String]') {
  64. if (c.props.data.indexOf('js.') === 0) {
  65. c.props.data = window[c.props.data.replace('js.', '')];
  66. }
  67. }
  68. });
  69. return rule;
  70. }, vm = new Vue,name = 'formBuilderExec<?= !$form->getId() ? '' : '_'.$form->getId() ?>';
  71. var _b = false;
  72. window[name] = function create(el, callback) {
  73. if(_b) return ;
  74. _b = true;
  75. if (!el) el = document.getElementById('configboay');
  76. var $f = formCreate.create(getRule(), {
  77. el: el,
  78. form:<?=json_encode($form->getConfig('form'))?>,
  79. row:<?=json_encode($form->getConfig('row'))?>,
  80. submitBtn:<?=$form->isSubmitBtn() ? '{}' : 'false'?>,
  81. resetBtn:<?=$form->isResetBtn() ? 'true' : '{}'?>,
  82. iframeHelper:true,
  83. global:{
  84. upload: {
  85. props:{
  86. onExceededSize: function (file) {
  87. vm.$Message.error(file.name + '超出指定大小限制');
  88. },
  89. onFormatError: function () {
  90. vm.$Message.error(file.name + '格式验证失败');
  91. },
  92. onError: function (error) {
  93. vm.$Message.error(file.name + '上传失败,(' + error + ')');
  94. },
  95. onSuccess: function (res, file) {
  96. if (res.code == 200) {
  97. file.url = res.data.filePath;
  98. } else {
  99. vm.$Message.error(res.msg);
  100. }
  101. },
  102. },
  103. },
  104. },
  105. //表单提交事件
  106. onSubmit: function (formData) {
  107. $f.btn.loading(true);
  108. $.ajax({
  109. url: '<?=$form->getAction()?>',
  110. type: '<?=$form->getMethod()?>',
  111. dataType: 'json',
  112. data: formData,
  113. success: function (res) {
  114. if (res.code == 200) {
  115. vm.$Message.success(res.msg);
  116. $f.btn.loading(false);
  117. formCreate.formSuccess && formCreate.formSuccess(res, $f, formData);
  118. callback && callback(0, res, $f, formData);
  119. //TODO 表单提交成功!
  120. } else {
  121. vm.$Message.error(res.msg || '表单提交失败');
  122. $f.btn.loading(false);
  123. callback && callback(1, res, $f, formData);
  124. //TODO 表单提交失败
  125. }
  126. },
  127. error: function () {
  128. vm.$Message.error('表单提交失败');
  129. $f.btn.loading(false);
  130. }
  131. });
  132. }
  133. });
  134. return $f;
  135. };
  136. return window[name];
  137. }());
  138. window.$f = create();
  139. })();
  140. </script>
  141. </html>