فهرست منبع

dynamicFormatter

Crystal.Sea 4 سال پیش
والد
کامیت
0dc4e4448f
1فایلهای تغییر یافته به همراه10 افزوده شده و 4 حذف شده
  1. 10 4
      maxkey-web-manage/src/main/resources/templates/views/groups/groupsList.ftl

+ 10 - 4
maxkey-web-manage/src/main/resources/templates/views/groups/groupsList.ftl

@@ -5,6 +5,11 @@
 	<#include  "../layout/common.cssjs.ftl"/>
 
 </head>
+<script type="text/javascript">	
+	function dynamicFormatter(value, row, index){
+  		return value=='0'? '<@locale code="common.text.no" />':'<@locale code="common.text.yes" />';
+	};
+</script>
 <body> 
 <div class="app header-default side-nav-dark">
 <div class="layout">
@@ -94,11 +99,12 @@
 				<th data-checkbox="true"></th>
 				<th data-sortable="true" data-field="id"   data-visible="false">Id</th>
 				<th data-field="name"><@locale code="group.name"/></th>
+				<th data-field="dynamic"  data-formatter="dynamicFormatter"><@locale code="group.dynamic"/></th>
 				<th data-field="description"><@locale code="common.text.description"/></th>
-				<th data-field="createdBy"><@locale code="common.text.createdby"/></th>
-				<th data-field="createdDate"><@locale code="common.text.createddate"/></th>
-				<th data-field="modifiedBy"><@locale code="common.text.modifiedby"/></th>
-				<th data-field="modifiedDate"><@locale code="common.text.modifieddate"/></th>
+				<th data-field="createdBy"    data-visible="false"><@locale code="common.text.createdby"/></th>
+				<th data-field="createdDate"  data-visible="false"><@locale code="common.text.createddate"/></th>
+				<th data-field="modifiedBy"   data-visible="false"><@locale code="common.text.modifiedby"/></th>
+				<th data-field="modifiedDate" data-visible="false"><@locale code="common.text.modifieddate"/></th>
 	
 			</tr>
 		</thead>