Parcourir la source

资源字段改成匹配sysmenu表字段

pzc il y a 4 ans
Parent
commit
3b47e82829
2 fichiers modifiés avec 11 ajouts et 11 suppressions
  1. 10 10
      UI/src/pages/auth/bird-permission.js
  2. 1 1
      UI/src/utils/config.js

+ 10 - 10
UI/src/pages/auth/bird-permission.js

@@ -69,15 +69,15 @@ class BirdGridPermissionPage extends React.Component {
         delete: "/ums/resource/delete"
       },
       checkable: true,
-      sortField:"Sort",
-      sortDirection:0,
+      sortField:"resId",
+      sortDirection:1,
       columns: [
-        { title: "权限id", data: "id", type: "text" },
-        { title: "权限名", data: "name", type: "text", editor: { isRequired:true }, query: true, isRequired: true },
-        { title: "权限url", data: "url", type: "text", editor: { isRequired:true }, query: true, isRequired: true },
+        { title: "权限id", data: "resId", type: "text" },
+        { title: "权限名", data: "menuName", type: "text", editor: { isRequired:true }, query: true, isRequired: true },
+        { title: "权限url", data: "linkUrl", type: "text", editor: { isRequired:true }, query: true, isRequired: true },
         { title: "类型", data: "types", type: "dropdown", editor: { isRequired:true }, source: { url: '/ums/resource/authType' }, query: true },
         { title: "权限图标", data: "icon", type: "text", editor: {}, query: true },
-        { title: "父权限", data: "parentId", type: "dropdown", editor: { isRequired:true },source: { url: '/ums/resource/parents' } ,query: true },
+        { title: "父权限", data: "parentResId", type: "dropdown", editor: { isRequired:true },source: { url: '/ums/resource/parents' } ,query: true },
         { title: "是否开启", data: "status", type: "switch", editor: {}, query: true },
         // { title: "排序", data: "Sort", type: "number" },
         { title: "角色", data: "roleIds", type: "multi", editor: { isRequired:true }, source: { url: '/ums/resource/roles' }, query: true },
@@ -88,16 +88,16 @@ class BirdGridPermissionPage extends React.Component {
       ],
       actions: [{ name: '按钮新增', onClick: function () {
           const fields=[
-            { title: "权限id", data: "id", type: "number" },
-            { title: "权限名", data: "name", type: "text", editor: {}, query: true, isRequired: true },
-            { title: "权限url", data: "url", type: "text", editor: {}, query: true, isRequired: true },
+            { title: "权限id", data: "resId", type: "number" },
+            { title: "权限名", data: "menuName", type: "text", editor: {}, query: true, isRequired: true },
+            { title: "权限url", data: "linkUrl", type: "text", editor: {}, query: true, isRequired: true },
             { title: "类型", data: "types", type: "dropdown", editor: {}, source: {data:[{value:'A',label:'按钮'}]}, query: true },
             { title: "按钮类型", data: "actionType", type: "dropdown", editor: {}, 
               source: {
                 data:[{value:'1',label:'外部按钮'},{value:'2',label:'内部按钮'}]
               }, query: true },
             { title: "权限图标", data: "icon", type: "text", editor: {}, query: true },
-            { title: "父权限", data: "parentId", type: "dropdown", editor: {},source: {url: '/ums/resource/parents'} ,query: true },
+            { title: "父权限", data: "parentResId", type: "dropdown", editor: {},source: {url: '/ums/resource/parents'} ,query: true },
             { title: "是否禁用", data: "status", type: "switch", editor: {}, query: true },
             { title: "角色", data: "roleIds", type: "multi", editor: {}, source: { url: '/ums/resource/roles' }, query: true },
             { title: "创建时间", data: "createTime", type: "datetime", query: true }

+ 1 - 1
UI/src/utils/config.js

@@ -31,7 +31,7 @@ module.exports =  {
   WXAPIV5,
   ClientId:'f3ed0d90-3fc8-4eba-b83c-a0cfe54c174d',
   ClientSecret:'78e238b4-c199-49ad-b619-69b6a78959d8',
-  ApplicationKey:'test',
+  ApplicationKey:'wechatcp',
   color:{
     success:'#52c41a',
     warn:'#E6A23C',