Index.cshtml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. @{
  2. string RightInfo = ViewBag.RightInfo as string;
  3. string right = ViewBag.right as string;
  4. }
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta charset="utf-8">
  9. <title>上传配置项</title>
  10. <meta name="renderer" content="webkit">
  11. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  12. <meta name="viewport"
  13. content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  14. <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
  15. <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
  16. <script src="/admin/js/jquery-1.10.1.min.js"></script>
  17. </head>
  18. <body>
  19. <div class="layui-fluid">
  20. <div class="layui-card">
  21. <div class="layui-form layui-card-header layuiadmin-card-header-auto">
  22. <div class="layui-form-item">
  23. <div class="layui-inline">
  24. <div class="layui-input-inline">
  25. <input class="layui-input" type="text" name="TableName" placeholder="表名" autocomplete="off">
  26. </div>
  27. </div>
  28. <div class="layui-inline">
  29. <div class="layui-input-inline">
  30. <input class="layui-input" type="text" name="ColumnName" placeholder="字段名"
  31. autocomplete="off">
  32. </div>
  33. </div>
  34. <div class="layui-inline">
  35. <div class="layui-input-inline">
  36. <input class="layui-input" type="text" name="ColumnEnName" placeholder="字段英文明"
  37. autocomplete="off">
  38. </div>
  39. </div>
  40. <div class="layui-inline">
  41. <button class="layui-btn" lay-submit lay-filter="LAY-list-front-search">
  42. <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>查询
  43. </button>
  44. <button class="layui-btn" lay-submit lay-filter="LAY-list-front-searchall">
  45. <i class="layui-icon layui-icon-list layuiadmin-button-btn"></i>全部
  46. </button>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="layui-card-body">
  51. <div style="padding-bottom: 10px;">
  52. <button class="layui-btn" data-type="add"><i class="layui-icon layui-icon-add-1 layuiadmin-button-btn"></i>新增</button>
  53. <button class="layui-btn" data-type="batchdel"><i class="layui-icon layui-icon-delete layuiadmin-button-btn"></i>删除</button>
  54. <button class="layui-btn" data-type="makeparams">生成配置</button>
  55. </div>
  56. <table id="LAY-list-manage" lay-filter="LAY-list-manage"></table>
  57. <script type="text/html" id="imgTpl">
  58. <img style="display: inline-block; width: 50%; height: 100%;" src={{ d.avatar }}>
  59. </script>
  60. <script type="text/html" id="table-list-tools">
  61. <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i
  62. class="layui-icon layui-icon-edit"></i>编辑</a>
  63. <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i
  64. class="layui-icon layui-icon-delete"></i>删除</a>
  65. </script>
  66. </div>
  67. </div>
  68. </div>
  69. <div id="excelForm" style="display:none; padding:20px;">
  70. <div class="layui-tab-item layui-show">
  71. <div class="layui-form-item">
  72. <label class="layui-form-label">excel文件</label>
  73. <div class="layui-input-block">
  74. <div class="layui-upload">
  75. <input type="file" id="ExcelFile" name="ExcelFile" value="">
  76. </div>
  77. <div class="mt10" id="ExcelFileList">
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="layui-form-item ml10">
  83. <div class="layui-input-block">
  84. <button type="button" class="layui-btn" onclick="ConfirmImport()">立即导入</button>
  85. </div>
  86. </div>
  87. </div>
  88. <script src="/layuiadmin/layui/layui.js"></script>
  89. <script src="/layuiadmin/modules/UploadParams_Admin.js"></script>
  90. <script>
  91. </script>
  92. </body>
  93. </html>