|
@@ -61,25 +61,25 @@ class BirdGridPermissionPage extends React.Component {
|
|
let gridOption = {
|
|
let gridOption = {
|
|
title: "权限资源",
|
|
title: "权限资源",
|
|
url: {
|
|
url: {
|
|
- read: "/web/auth/index",
|
|
|
|
- add: "/web/auth/add",
|
|
|
|
- edit: "/web/auth/edit",
|
|
|
|
- delete: "/web/auth/delete"
|
|
|
|
|
|
+ read: "/ums/resource/searchByCondition",
|
|
|
|
+ add: "/ums/resource//add",
|
|
|
|
+ edit: "/ums/resource/edit",
|
|
|
|
+ delete: "/ums/resource/delete"
|
|
},
|
|
},
|
|
checkable: true,
|
|
checkable: true,
|
|
sortField:"Sort",
|
|
sortField:"Sort",
|
|
sortDirection:0,
|
|
sortDirection:0,
|
|
columns: [
|
|
columns: [
|
|
- { 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: "类型", data: "AuthType", type: "dropdown", editor: {}, source: { url: '/web/auth/authType' }, query: true },
|
|
|
|
- { title: "权限图标", data: "Icon", type: "text", editor: {}, query: true },
|
|
|
|
- { title: "父权限", data: "ParentId", type: "dropdown", editor: {},source: { url: '/web/auth/parents' } ,query: true },
|
|
|
|
- { title: "是否禁用", data: "Status", type: "switch", editor: {}, query: true },
|
|
|
|
|
|
+ { 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: "类型", data: "AuthType", type: "dropdown", editor: {}, source: { url: '/web/auth/authType' }, query: true },
|
|
|
|
+ { title: "权限图标", data: "icon", type: "text", editor: {}, query: true },
|
|
|
|
+ // { title: "父权限", data: "ParentId", type: "dropdown", editor: {},source: { url: '/web/auth/parents' } ,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: {}, source: { url: '/web/user/role' }, query: true },
|
|
// { title: "角色", data: "Roleids", type: "multi", editor: {}, source: { url: '/web/user/role' }, query: true },
|
|
- { title: "创建时间", data: "CreateTime", type: "datetime", query: true },
|
|
|
|
|
|
+ { title: "创建时间", data: "createTime", type: "datetime", query: true },
|
|
{
|
|
{
|
|
title: "操作选项", type: "command", actions: []
|
|
title: "操作选项", type: "command", actions: []
|
|
}
|
|
}
|
|
@@ -115,18 +115,18 @@ class BirdGridPermissionPage extends React.Component {
|
|
}]
|
|
}]
|
|
};
|
|
};
|
|
|
|
|
|
- let treeOption = {
|
|
|
|
- url: "/web/auth/menusTree?type=U','O','M",
|
|
|
|
- canSelectFolder: false,
|
|
|
|
- expandAll: true,
|
|
|
|
- paramName:"ParentId",
|
|
|
|
- onSelect: (value,selectKeys,type) => {
|
|
|
|
- if(type === "folder"){
|
|
|
|
- self.refs.tg.getTree().setState({selectedKeys: selectKeys});
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- title:"树实例"
|
|
|
|
- };
|
|
|
|
|
|
+ // let treeOption = {
|
|
|
|
+ // url: "/web/auth/menusTree?type=U','O','M",
|
|
|
|
+ // canSelectFolder: false,
|
|
|
|
+ // expandAll: true,
|
|
|
|
+ // paramName:"ParentId",
|
|
|
|
+ // onSelect: (value,selectKeys,type) => {
|
|
|
|
+ // if(type === "folder"){
|
|
|
|
+ // self.refs.tg.getTree().setState({selectedKeys: selectKeys});
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ // title:"树实例"
|
|
|
|
+ // };
|
|
|
|
|
|
return <div>
|
|
return <div>
|
|
{/* <BirdTreeGrid gridOption={gridOption}
|
|
{/* <BirdTreeGrid gridOption={gridOption}
|