25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

63 satır
2.4 KiB

  1. <title>执行规则</title>
  2. <div class="layui-card layadmin-header">
  3. <div class="layui-breadcrumb" lay-filter="breadcrumb">
  4. <a lay-href="">主页</a>
  5. <a><cite>安全维护</cite></a>
  6. <a><cite>非正常模式</cite></a>
  7. <a><cite>清空站点数据</cite></a>
  8. </div>
  9. </div>
  10. <div class="layui-fluid">
  11. <div class="layui-row layui-col-space15">
  12. <div class="layui-col-md12">
  13. <div class="layui-card">
  14. <div class="layui-card-header">清空站点数据</div>
  15. <div class="layui-card-body" pad15>
  16. <form class="layui-form" wid100 lay-filter="LAY-info-form">
  17. <div class="layui-fields">
  18. </div>
  19. <div class="layui-submit">
  20. <div class="layui-form-item">
  21. <div class="layui-input-block">
  22. <button class="layui-btn" lay-submit lay-filter="submit">确认执行</button>
  23. </div>
  24. </div>
  25. </div>
  26. </form>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. <script>
  33. var config;
  34. layui.admin.req({
  35. url: '/manage/data/response.json',
  36. method: 'POST',
  37. data: {site: 'select'},
  38. success: function (res) {
  39. config = {
  40. submit: function (obj) {
  41. layui.layer.open({
  42. type: 2,
  43. title: '执行脚本',
  44. shadeClose: false,
  45. shade: false,
  46. maxmin: true,
  47. area: ['893px', '600px'],
  48. content: '/manage/system/tool/siteclear.html?siteid=' + obj.field.siteid +'&isdel=' + obj.field.isdel + '&access_token=' + encodeURIComponent(layui.data('layuiAdmin').access_token)
  49. });
  50. return false;
  51. },
  52. fields: [
  53. {name: '所属站点', key: 'siteid', type: 'select', extra: res.data.site.select, require: true},
  54. {name: '删除站点', key: 'isdel', type: 'switch', intro: '清空信息后是否删除站点', extra: '是|否', value: "1"},
  55. ]
  56. };
  57. layui.use('curd/addOrEdit', layui.factory('curd/addOrEdit'));
  58. }
  59. });
  60. </script>