1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-363494be"],{"0678":function(t,e,n){},"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),Math.easeInOutQuad=function(t,e,n,a){return t/=a/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function o(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function r(t,e,n){var r=i(),s=t-r,u=20,c=0;e="undefined"===typeof e?500:e;var l=function t(){c+=u;var i=Math.easeInOutQuad(c,r,s,e);o(i),c<e?a(t):n&&"function"===typeof n&&n()};l()}},"87ac":function(t,e,n){"use strict";n("0678")},fb00:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("div",{directives:[{name:"permission",rawName:"v-permission",value:"role/add",expression:"'role/add'"}],staticClass:"newBand",on:{click:function(e){return t.onAdminOperation("create")}}},[t._v("添加")]),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-class-name":"headerName"}},[n("el-table-column",{attrs:{align:"center",prop:"roleName",label:"角色类型"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"roleDesc",label:"角色描述"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"role/update",expression:"'role/update'"}],attrs:{type:"text"},on:{click:function(n){return t.onAdminOperation("update",e.row)}}},[t._v("修改")])]}}])})],1),t._v(" "),n("pagination",{attrs:{sync:"",total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:total":function(e){return t.$set(t.pageInfo,"total",e)},"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)])])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("系统权限管理\n ")])}],i=n("333d"),r=n("99b4"),s={name:"adminManager",components:{pagination:i["a"]},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){this.init()},activated:function(){this.init()},mounted:function(){},methods:{init:function(){this.$route.query.page?this.pageInfo.page=parseInt(this.$route.query.page):this.pageInfo.page=1,this.getList()},getList:function(){var t=this;Object(r["F"])({rows:this.pageInfo.limit,page:this.pageInfo.page}).then((function(e){200==e.code&&e.data&&(t.tableList=e.data.rows,t.pageInfo.total=e.data.total)}))},onAdminOperation:function(t,e){var n={path:"/systemManager/adminOperation",query:{type:t,page:this.pageInfo.page}},a="新建";e&&(n.query.id=e.id,a="修改"),this.$router.push(n,(function(t){t.meta.title=a+"系统角色权限"}))}}},u=s,c=(n("87ac"),n("2877")),l=Object(c["a"])(u,a,o,!1,null,null,null);e["default"]=l.exports}}]);
|