chunk-363494be.300ea65c.js 3.2 KB

1
  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 i(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function r(t,e,n){var r=o(),s=t-r,u=20,c=0;e="undefined"===typeof e?500:e;var p=function t(){c+=u;var o=Math.easeInOutQuad(c,r,s,e);i(o),c<e?a(t):n&&"function"===typeof n&&n()};p()}},"87ac":function(t,e,n){"use strict";var a=n("0678"),i=n.n(a);i.a},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:"/adminOperation",expression:"'/adminOperation'"}],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:"/adminOperation",expression:"'/adminOperation'"}],attrs:{type:"text"},on:{click:function(n){return t.onAdminOperation("update",e.row)}}},[t._v("修改")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"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)])])},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("系统角色权限管理\n ")])}],o=n("333d"),r=n("99b4"),s={name:"adminManager",components:{pagination:o["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["E"])({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:"/specialSetup/adminoperation",query:{type:t,page:this.pageInfo.page}};e&&(n.query.id=e.id),this.$router.push(n)}}},u=s,c=(n("87ac"),n("2877")),p=Object(c["a"])(u,a,i,!1,null,null,null);e["default"]=p.exports}}]);