{"inframe":false,"title":"界面绑定模块","hidden":false,"roles":{"demo":1,"dev":1},"children":[{"configs":{"serverScript":"//把当前请求是否可以对用户删除和角色更新模块的布尔值设置到attribute属性，以便在客户端使用该变量\n//userDelete和roleUpdate变量分别在userDeleteButton.hidden属性和viewport1.afterrender事件中使用\napp.set({\n  userDelete: app.perm('m?xwl=admin/user/delete'),\n  roleUpdate: app.perm('m?xwl=admin/role/update')\n});","itemId":"module"},"children":[{"configs":{"layout":"border","itemId":"viewport1"},"events":{"afterrender":"var userDelete = Wb.parseBool('{#userDelete#}');\napp.roleUpdateButton.setVisible(userDelete);\napp.roleUpdateText.setWidth(userDelete ? 300 : 310);"},"children":[{"configs":{"region":"north","itemId":"toolbar1"},"children":[{"configs":{"text":"如果不能访问userDelete，按钮不可见","hidden":"!{#userDelete#}","itemId":"userDeleteButton"},"children":[],"expanded":false,"type":"item"},{"configs":{"text":"如果不能访问roleUpdate，按钮不可见","itemId":"roleUpdateButton"},"children":[],"expanded":false,"type":"item"},{"configs":{"value":"如果可以访问roleUpdate宽度为300，否则为310","itemId":"roleUpdateText"},"children":[],"expanded":false,"type":"text"}],"expanded":true,"type":"toolbar"},{"configs":{"region":"center","itemId":"panel1"},"children":[],"expanded":false,"type":"panel"}],"expanded":true,"type":"viewport"}],"expanded":true,"type":"module"}],"pageLink":"","iconCls":""}