温红权 9 years ago
parent
commit
64ebe3c174

+ 0 - 0
VisualInspection/css/role/role.css


+ 45 - 0
VisualInspection/js/role/role.js

@@ -0,0 +1,45 @@
+  var cols = [{
+      width: 'auto',
+      text: '序号',
+      type: 'number',
+      flex: true,
+      colClass: 'text-center'
+  }, {
+      width: 'auto',
+      text: '角色名称',
+      type: 'string',
+      flex: true,
+      colClass: 'text-center'
+  }, {
+      width: 'auto',
+      text: '组织机构',
+      type: 'string',
+      flex: true,
+      sort: 'down',
+      colClass: 'text-center'
+  }, {
+      width: 'auto',
+      text: '用户数',
+      type: 'number',
+      flex: true,
+      colClass: 'text-center'
+  }, {
+      width: 'auto',
+      text: '操作',
+      type: 'string',
+      flex: true,
+      colClass: 'text-center'
+  }];
+  $(document).ready(function() {
+
+      $("#main_content_title").html("角色管理")
+
+      $('.datatable').datatable({
+          checkable: false,
+          sortable: false,
+          data: {
+              cols: cols,
+              rows: [{ checked: false, data: [1, '2016-01-18 11:05:15', '名称示例1', 22, '<button class="btn btn-primary" name="user_edit" id=' + 1 + '><i class="icon icon-edit"></i>修改</button>  <button class="btn btn-primary" name="user_delete" id=' + 1 + ' ><i class="icon icon-remove-circle"></i>删除</button>'] }]
+          }
+      });
+  });

+ 28 - 0
VisualInspection/view/role/role.html

@@ -0,0 +1,28 @@
+<link rel="stylesheet" type="text/css" href="/css/role/role.css?__inline">
+<!--<script type="text/javascript" src="/node_modules/zui/dist/lib/dashboard/zui.dashboard.min.js?__inline"></script>
+<link rel="stylesheet" type="text/css" href="/node_modules/zui/dist/lib/dashboard/zui.dashboard.min.css">-->
+<script type="text/javascript" src="/js/role/role.js?__inline"></script>
+<div class="container-fluid " style="padding-left:0;padding-right:0">
+    <div class="row" style="padding-left:10px;padding-right:10px">
+        <div class="col-md-6">
+            <div class="row">
+                <div class="col-md-2">
+                    <p style="line-height:32px;text-align: right;">关键词</p>
+                </div>
+                <div class="col-md-6"><input type="text" class="form-control" placeholder="关键词"></div>
+                <div class="col-md-2"><button class="btn btn-primary" type="button">查询</button></div>
+            </div>
+
+        </div>
+        <div class="col-md-6">
+
+            <button class="btn btn-primary" style="float:right" type="button">添加角色</button>
+
+        </div>
+    </div>
+    <div class="row" style="padding-top:20px">
+        <div class="datatable" style="border: 1px solid #ddd" data-checkable="true" data-sortable="true"></div>
+
+    </div>
+
+</div>