Files
library/dist/static/js/8.b72111c921bd0f8908b3.js
2019-11-08 11:13:02 +08:00

2 lines
1.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
webpackJsonp([8],{FzAc:function(e,t){},x1md:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{"margin-top":"50px"}},[n("h3",[e._v("下面按钮根据当前用户的权限来显示隐藏:")]),e._v(" "),n("p",[e._v('当前用户角色: "'+e._s(e.$store.getters.info.permissions)+'"')]),e._v(" "),n("p",[e._v("没权限按钮:"),n("el-button",{attrs:{type:"primary",plain:"",size:"medium"}},[e._v("查看")])],1),e._v(" "),n("p",[e._v('需要 ["管理员"]'),n("el-button",{directives:[{name:"role-btn",rawName:"v-role-btn",value:["admin"],expression:"['admin']"}],attrs:{type:"primary",plain:"",size:"medium"}},[e._v("添加")])],1),e._v(" "),n("p",[e._v('需要 ["超级管理员"]'),n("el-button",{directives:[{name:"role-btn",rawName:"v-role-btn",value:["superAdmin"],expression:"['superAdmin']"}],attrs:{type:"danger",plain:"",size:"medium"}},[e._v("删除")])],1),e._v(" "),n("p",[e._v('需要 ["超级管理员", "管理员"]'),n("el-button",{directives:[{name:"role-btn",rawName:"v-role-btn",value:["superAdmin","admin"],expression:"['superAdmin','admin']"}],attrs:{type:"primary",plain:"",size:"medium"}},[e._v("修改")])],1)])},staticRenderFns:[]};var r=n("VU/8")({name:"btnPermissions"},i,!1,function(e){n("FzAc")},"data-v-8da87712",null);t.default=r.exports}});
//# sourceMappingURL=8.b72111c921bd0f8908b3.js.map