1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-97b42dd8"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,n){var i=r(),s=e-i,c=20,u=0;t="undefined"===typeof t?500:t;var l=function e(){u+=c;var r=Math.easeInOutQuad(u,i,s,t);o(r),u<t?a(e):n&&"function"===typeof n&&n()};l()}},"2f82":function(e,t,n){"use strict";n("c1bb")},c1bb:function(e,t,n){},cee8:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[e._m(0),e._v(" "),n("div",{staticClass:"m-core"},[n("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[n("el-form-item",{attrs:{prop:"search"}},[n("el-input",{attrs:{clearable:"",placeholder:"请输入角色类型"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")])],1)],1),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"role/add",expression:"'role/add'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.onAdminOperation("create")}}},[e._v("添加")]),e._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:e.tableList,"header-cell-class-name":"headerName"}},[n("el-table-column",{attrs:{align:"center",prop:"roleName",label:"角色类型"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"roleDesc",label:"角色描述"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"role/update",expression:"'role/update'"}],attrs:{type:"text"},on:{click:function(n){return e.onAdminOperation("update",t.row)}}},[e._v("修改")])]}}])})],1),e._v(" "),n("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)])},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("\n 平台角色管理\n ")])}],r=n("db72"),i=(n("386d"),n("333d")),s=n("99b4"),c={name:"adminManager",components:{pagination:i["a"]},data:function(){return{tableList:[],searchForm:{search:""},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){this.init()},methods:{search:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.search()},init:function(){this.$route.query.page?this.pageInfo.page=parseInt(this.$route.query.page):this.pageInfo.page=1,this.getList()},getList:function(){var e=this;Object(s["L"])(Object(r["a"])(Object(r["a"])({rows:this.pageInfo.limit,page:this.pageInfo.page},this.searchForm),{},{tenantId:-1})).then((function(t){200==t.code&&t.data&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},onAdminOperation:function(e,t){var n={path:"/platformManager/adminOperation",query:{type:e,page:this.pageInfo.page,isplatform:!0}},a="添加";t&&(n.query.id=t.id,a="修改"),this.$router.push(n,(function(e){e.meta.title=a+"平台角色"}))}}},u=c,l=(n("2f82"),n("2877")),p=Object(l["a"])(u,a,o,!1,null,null,null);t["default"]=p.exports}}]);
|