| | |
| | | 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 = "ä¸çº§è§è²"; |
| | |
| | | }) |
| | | }, |
| | | onInit() { |
| | | this.pagination.sortName = "roleId"; //设置æåºå段,å¤ä¸ªå段æåºç¨éå·éå¼,å¦:a,b,c |
| | | this.pagination.order = "asc"; //æåºæ¹å¼descæè
asc |
| | | //设置treetableçå¯ä¸å¼å段(è¿ä¸ªå段çå¼å¨è¡¨éé¢å¿
é¡»æ¯å¯ä¸ç) |
| | | this.rowKey="Role_Id"; |
| | | this.rowKey = "Role_Id"; |
| | | }, |
| | | /***å è½½åå°æ°æ®è§Sys_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) |
| | | }) |
| | | }, |
| | | /***å è½½åå°æ°æ®è§Sys_RoleController.csæä»¶***/ |
| | | searchBefore(params){//夿å è½½æ ¹èç¹æåèç¹ |
| | | /***å è½½åå°æ°æ®è§Sys_RoleController.csæä»¶***/ |
| | | searchBefore(params) {//夿å è½½æ ¹èç¹æåèç¹ |
| | | //æ²¡ææ¥è¯¢æ¡ä»¶ï¼é»è®¤æ¥è¯¢è¿åæææ ¹èç¹æ°æ® |
| | | if (!params.wheres.length) { |
| | | params.value=1; |
| | | params.value = 1; |
| | | } |
| | | return true; |
| | | } |