chunk-642244ea.8c21861a.js 8.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-642244ea"],{"0678":function(t,e,n){},"09f4":function(t,e,n){"use strict";n.d(e,"a",function(){return u}),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 r(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 u(t,e,n){var u=o(),i=t-u,c=20,d=0;e="undefined"===typeof e?500:e;var s=function t(){d+=c;var o=Math.easeInOutQuad(d,u,i,e);r(o),d<e?a(t):n&&"function"===typeof n&&n()};s()}},"333d":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[n("el-pagination",t._b({attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},r=[],o=(n("c5f6"),n("09f4")),u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(o["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(o["a"])(0,800)}}},i=u,c=(n("c0b9"),n("2877")),d=Object(c["a"])(i,a,r,!1,null,"31cb099a",null);e["a"]=d.exports},"87ac":function(t,e,n){"use strict";var a=n("0678"),r=n.n(a);r.a},"99b4":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"c",function(){return c}),n.d(e,"b",function(){return d}),n.d(e,"x",function(){return s}),n.d(e,"v",function(){return p}),n.d(e,"C",function(){return l}),n.d(e,"B",function(){return f}),n.d(e,"D",function(){return g}),n.d(e,"w",function(){return m}),n.d(e,"h",function(){return h}),n.d(e,"j",function(){return b}),n.d(e,"m",function(){return y}),n.d(e,"i",function(){return O}),n.d(e,"z",function(){return j}),n.d(e,"k",function(){return v}),n.d(e,"A",function(){return w}),n.d(e,"y",function(){return q}),n.d(e,"d",function(){return z}),n.d(e,"f",function(){return S}),n.d(e,"e",function(){return I}),n.d(e,"g",function(){return _}),n.d(e,"n",function(){return C}),n.d(e,"o",function(){return P}),n.d(e,"q",function(){return $}),n.d(e,"p",function(){return L}),n.d(e,"l",function(){return k}),n.d(e,"t",function(){return N}),n.d(e,"r",function(){return A}),n.d(e,"u",function(){return B}),n.d(e,"s",function(){return x});var a=n("b775"),r=n("4328"),o=n.n(r),u="/api-web";function i(t){return Object(a["a"])({url:u+"/cooperationOrgan/add",method:"post",data:o.a.stringify(t)})}function c(t){return Object(a["a"])({url:u+"/cooperationOrgan/update",method:"put",data:o.a.stringify(t)})}function d(t){return Object(a["a"])({url:u+"/cooperationOrgan/del/".concat(t),method:"post"})}function s(t){return Object(a["a"])({url:u+"/cooperationOrgan/queryPage",method:"get",params:t})}function p(t){return Object(a["a"])({url:u+"/cooperationOrgan/queryByOrganId",method:"get",params:t})}function l(t){return Object(a["a"])({url:u+"/school/queryPage",method:"get",params:t})}function f(t){return Object(a["a"])({url:u+"/school/add",method:"post",data:o.a.stringify(t)})}function g(t){return Object(a["a"])({url:u+"/school/update",method:"post",data:o.a.stringify(t)})}function m(t){return Object(a["a"])({url:u+"/employee/queryEmployByOrganId",method:"get",params:t})}function h(t){return Object(a["a"])({url:u+"/employee/add",method:"post",data:t})}function b(t){return Object(a["a"])({url:u+"/employee/update",method:"post",data:t})}function y(t){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function O(t){return Object(a["a"])({url:u+"/employee/employeeOperate",method:"post",data:o.a.stringify(t)})}function j(t){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function v(t){return Object(a["a"])({url:"/api-auth/role/".concat(t.id),method:"get"})}function w(t){return Object(a["a"])({url:"/api-auth/role/update",method:"post",data:t})}function q(t){return Object(a["a"])({url:"/api-auth/role/add",method:"post",data:t})}function z(t){return Object(a["a"])({url:u+"/courseScheduleRewards/queryPage",method:"get",params:t})}function S(t){return Object(a["a"])({url:u+"/courseScheduleRewards/query",method:"get",params:t})}function I(t){return Object(a["a"])({url:u+"/courseScheduleRewards/add",method:"post",data:o.a.stringify(t)})}function _(t){return Object(a["a"])({url:u+"/courseScheduleRewards/update",method:"post",data:o.a.stringify(t)})}function C(t){return Object(a["a"])({url:u+"/hotWordLabelManage/queryPage",method:"get",params:t})}function P(t){return Object(a["a"])({url:u+"/hotWordLabelManage/add",method:"post",data:o.a.stringify(t)})}function $(t){return Object(a["a"])({url:u+"/hotWordLabelManage/update",method:"post",data:o.a.stringify(t)})}function L(t){return Object(a["a"])({url:u+"/hotWordLabelManage/del/".concat(t),method:"post"})}function k(t){return Object(a["a"])({url:u+"/school/queryByOrganId",method:"get",params:t})}function N(t){return Object(a["a"])({url:u+"/paymentConfig/queryPage",method:"get",params:t})}function A(t){return Object(a["a"])({url:u+"/paymentConfig/add",method:"post",data:o.a.stringify(t)})}function B(t){return Object(a["a"])({url:u+"/paymentConfig/update",method:"post",data:o.a.stringify(t)})}function x(t){return Object(a["a"])({url:u+"/paymentConfig/del/"+t.id,method:"post"})}},c0b9:function(t,e,n){"use strict";var a=n("de4e"),r=n.n(a);r.a},de4e:function(t,e,n){},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)])])},r=[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"),u=n("99b4"),i={components:{pagination:o["a"]},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){this.$route.query.page?this.pageInfo.page=parseInt(this.$route.query.page):this.pageInfo.page=1},mounted:function(){this.getList()},methods:{getList:function(){var t=this;Object(u["z"])({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)}}},c=i,d=(n("87ac"),n("2877")),s=Object(d["a"])(c,a,r,!1,null,null,null);e["default"]=s.exports}}]);