|
@@ -19,7 +19,7 @@ class BirdGridPermissionPage extends React.Component {
|
|
|
formOption:{modal:"",title:""},
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/* 弹出框取消事件 */
|
|
|
cancelClick() {
|
|
|
this.setState({
|
|
@@ -88,19 +88,19 @@ class BirdGridPermissionPage extends React.Component {
|
|
|
],
|
|
|
actions: [{ name: '按钮新增', onClick: function () {
|
|
|
const fields=[
|
|
|
- { title: "权限id", data: "Id", type: "number" },
|
|
|
- { title: "权限名", data: "PermissionName", type: "text", editor: {}, query: true, isRequired: true },
|
|
|
- { title: "权限url", data: "PermissionUrl", type: "text", editor: {}, query: true, isRequired: true },
|
|
|
- { title: "类型", data: "AuthType", type: "dropdown", editor: {}, source: {data:[{value:'A',label:'按钮'}]}, query: true },
|
|
|
- { title: "按钮类型", data: "ActionType", type: "dropdown", editor: {},
|
|
|
+ { 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: "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: '/web/auth/parents'} ,query: true },
|
|
|
- { title: "是否禁用", data: "IsDelete", type: "switch", editor: {}, query: true },
|
|
|
- { title: "角色", data: "Roleids", type: "multi", editor: {}, source: { url: '/web/user/role' }, query: true },
|
|
|
- { title: "创建时间", data: "CreationDate", type: "datetime", 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: "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 }
|
|
|
];
|
|
|
let formOption = {
|
|
|
model: "add",
|