From d669ebebc5ddd4018554edec1afb8938adbdac1a Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 02 四月 2021 17:15:20 +0800
Subject: [PATCH] #
---
src/main/webapp/views/resource/resource.html | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/views/resource/resource.html b/src/main/webapp/views/resource/resource.html
index 974c274..300d718 100644
--- a/src/main/webapp/views/resource/resource.html
+++ b/src/main/webapp/views/resource/resource.html
@@ -116,7 +116,15 @@
</div>
</form>
</script>
-
+<script type="text/html" id="typeTpl">
+ {{# if( d.level === 1 ){ }}
+ <span name="level" class="layui-badge layui-badge-green">鑿滃崟</span>
+ {{# } else if(d.level === 2){ }}
+ <span name="level" class="layui-badge layui-badge-green">鑿滃崟</span>
+ {{# } else if(d.level === 3){ }}
+ <span name="level" class="layui-badge layui-badge-gray">鎸夐挳</span>
+ {{# } }}
+</script>
<script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
@@ -155,7 +163,8 @@
,{field: 'name', align: 'left',title: '鑿滃崟鍚嶇О'}
,{field: 'code', align: 'center',title: '鑿滃崟缂栫爜'}
// ,{field: 'resourceName', align: 'center',title: '鐖剁骇鑿滃崟'}
- ,{field: 'level$', align: 'center',title: '鑿滃崟绛夌骇'}
+ // ,{field: 'level$', align: 'center',title: '鑿滃崟绛夌骇'}
+ ,{field: 'type', align: 'center',title: '绫诲瀷', templet: '#typeTpl', width: 120}
,{field: 'sort', align: 'center',title: '鎺掑簭'}
,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:150}
@@ -164,6 +173,7 @@
$('.ew-tree-table-box').css('height', '100%');
// insTb.expandAll();
tbDataList = data;
+ limit();
}
});
--
Gitblit v1.9.1