|
@@ -69,15 +69,15 @@ class BirdGridPermissionPage extends React.Component {
|
|
delete: "/ums/resource/delete"
|
|
delete: "/ums/resource/delete"
|
|
},
|
|
},
|
|
checkable: true,
|
|
checkable: true,
|
|
- sortField:"Sort",
|
|
|
|
- sortDirection:0,
|
|
|
|
|
|
+ sortField:"resId",
|
|
|
|
+ sortDirection:1,
|
|
columns: [
|
|
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: "types", type: "dropdown", editor: { isRequired:true }, source: { url: '/ums/resource/authType' }, query: true },
|
|
{ title: "权限图标", data: "icon", type: "text", editor: {}, 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: "status", type: "switch", editor: {}, query: true },
|
|
// { title: "排序", data: "Sort", type: "number" },
|
|
// { title: "排序", data: "Sort", type: "number" },
|
|
{ title: "角色", data: "roleIds", type: "multi", editor: { isRequired:true }, source: { url: '/ums/resource/roles' }, query: true },
|
|
{ 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 () {
|
|
actions: [{ name: '按钮新增', onClick: function () {
|
|
const fields=[
|
|
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: "types", type: "dropdown", editor: {}, source: {data:[{value:'A',label:'按钮'}]}, query: true },
|
|
{ title: "按钮类型", data: "actionType", type: "dropdown", editor: {},
|
|
{ title: "按钮类型", data: "actionType", type: "dropdown", editor: {},
|
|
source: {
|
|
source: {
|
|
data:[{value:'1',label:'外部按钮'},{value:'2',label:'内部按钮'}]
|
|
data:[{value:'1',label:'外部按钮'},{value:'2',label:'内部按钮'}]
|
|
}, query: true },
|
|
}, query: true },
|
|
{ title: "权限图标", data: "icon", type: "text", editor: {}, 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: "status", type: "switch", editor: {}, query: true },
|
|
{ title: "角色", data: "roleIds", type: "multi", editor: {}, source: { url: '/ums/resource/roles' }, query: true },
|
|
{ title: "角色", data: "roleIds", type: "multi", editor: {}, source: { url: '/ums/resource/roles' }, query: true },
|
|
{ title: "创建时间", data: "createTime", type: "datetime", query: true }
|
|
{ title: "创建时间", data: "createTime", type: "datetime", query: true }
|