From 663489b2ce63ee84851dfbc2db32814e40ae9a89 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期五, 25 十月 2024 23:15:10 +0800
Subject: [PATCH] 优化WCS用户管理功能

---
 项目代码/WCS/WIDESEAWCS_Client/src/extension/system/Sys_Role.js |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/system/Sys_Role.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/system/Sys_Role.js"
index 5ba4845..537fc71 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/system/Sys_Role.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/extension/system/Sys_Role.js"
@@ -11,11 +11,11 @@
     modelFooter: ''
   },
   buttons: [],//鎵╁睍鐨勬寜閽�
-  tableAction:"Sys_Role",
+  tableAction: "Sys_Role",
   methods: {//浜嬩欢鎵╁睍
-    onInited () {
+    onInited() {
       this.height = this.height - 80;
-       this.editFormOptions.forEach(x => {
+      this.editFormOptions.forEach(x => {
         x.forEach(item => {
           if (item.field == 'ParentId') {
             item.title = "涓婄骇瑙掕壊";
@@ -26,21 +26,23 @@
       })
     },
     onInit() {
+      this.pagination.sortName = "roleId";  //璁剧疆鎺掑簭瀛楁,澶氫釜瀛楁鎺掑簭鐢ㄩ�楀彿闅斿紑,濡�:a,b,c
+      this.pagination.order = "asc"; //鎺掑簭鏂瑰紡desc鎴栬�卆sc
       //璁剧疆treetable鐨勫敮涓�鍊煎瓧娈�(杩欎釜瀛楁鐨勫�煎湪琛ㄩ噷闈㈠繀椤绘槸鍞竴鐨�)
-      this.rowKey="Role_Id";
+      this.rowKey = "Role_Id";
     },
     /***鍔犺浇鍚庡彴鏁版嵁瑙丼ys_RoleController.cs鏂囦欢***/
     loadTreeChildren(tree, treeNode, resolve) { //鍔犺浇瀛愯妭鐐�
-      let url=`api/role/getTreeTableChildrenData?roleId=${tree.Role_Id}`;
-      this.http.post(url,{}).then(result=>{
+      let url = `api/role/getTreeTableChildrenData?roleId=${tree.Role_Id}`;
+      this.http.post(url, {}).then(result => {
         resolve(result.rows)
       })
     },
-      /***鍔犺浇鍚庡彴鏁版嵁瑙丼ys_RoleController.cs鏂囦欢***/
-    searchBefore(params){//鍒ゆ柇鍔犺浇鏍硅妭鐐规垨瀛愯妭鐐�
+    /***鍔犺浇鍚庡彴鏁版嵁瑙丼ys_RoleController.cs鏂囦欢***/
+    searchBefore(params) {//鍒ゆ柇鍔犺浇鏍硅妭鐐规垨瀛愯妭鐐�
       //娌℃湁鏌ヨ鏉′欢锛岄粯璁ゆ煡璇㈣繑鍥炴墍鏈夋牴鑺傜偣鏁版嵁
       if (!params.wheres.length) {
-        params.value=1;
+        params.value = 1;
       }
       return true;
     }

--
Gitblit v1.9.3