RuoYi преди 7 години
родител
ревизия
11e4c65372
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 2 2
      src/main/resources/static/ruoyi/js/ry-ui.js
  2. 1 1
      src/main/resources/templates/system/config/config.html

+ 2 - 2
src/main/resources/static/ruoyi/js/ry-ui.js

@@ -137,8 +137,8 @@ $(function(){
 	//初始化表格树,_expandAll true展开 false 不展开
 	$.initTreeTable = function (_id, _parentId, _columns, _url, _expandAll) {
 	    $('.bootstrap-table').bootstrapTreeTable({
-		    code : _id,                  // 用于设置父子关系
-	        parentCode : _parentId,      // 用于设置父子关系
+		    code : _id,                   // 用于设置父子关系
+	        parentCode : _parentId,       // 用于设置父子关系
 	    	type: 'get',                  // 请求方式(*)
 	        url: _url,                    // 请求后台的URL(*)
 	        ajaxParams : {},              // 请求数据的ajax的data属性

+ 1 - 1
src/main/resources/templates/system/config/config.html

@@ -12,7 +12,7 @@
 	            <i class="fa fa-trash-o"></i> 删除
 	        </button>
         </div>
-        <table class="bootstrap-table" data-mobile-responsive="true">
+        <table class="bootstrap-table" data-mobile-responsive="true" data-sort-name="config_id" data-sort-order="asc">
         </table>
     </div>
     <div th:include="include :: footer"></div>