猎户系统

42.11dcbe63c94c4d675b22.js 2.7KB

1
  1. webpackJsonp([42],{B6NS:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("Xxa5"),i=n.n(a),s=n("exGp"),r=n.n(s),o=n("vieU"),c={name:"dataSummary",mixins:[n("K7TI").a],components:{TableList:o.a},data:function(){return{descolList:[{name:"公众号",column:"account_name",alignSelf:"center",slotFlag:!0,minWidth:"100px"},{name:"操作人",column:"op_uname",alignSelf:"center"},{name:"授权时间",column:"created_at",alignSelf:"center"}],btnLoading:!1}},mounted:function(){var t=this;this.$nextTick(function(){t.init()})},methods:{AuthEvent:function(){var t=this;return r()(i.a.mark(function e(){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.btnLoading=!0,t.$axios.get(t.URL.BASEURL+t.URL.getPreAuthCode).then(function(e){t.btnLoading=!1,(e=e.data)&&0==e.errno&&window.open(e.rst.data.url,"_blank")}).catch(function(e){t.$message({message:e,type:"warning"})});case 2:case"end":return e.stop()}},e,t)}))()},turnPageEvent:function(t){this.init(t)},init:function(t){var e=this;return r()(i.a.mark(function n(){var a,s,r;return i.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return e.loading=!0,n.next=3,e.$axios.get(e.URL.BASEURL+e.URL.authAccountList,{params:{page:t||1,pageSize:e.pageSize}});case 3:a=n.sent,s=a.data,r=void 0===s?{}:s,e.loading=!1,e.page=t||1,r&&0==r.errno?(e.tableList=r.rst.data,e.total=r.rst.pageInfo.total):e.$message({message:r.err,type:"warning"});case 9:case"end":return n.stop()}},n,e)}))()},clickEvent:function(){}}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"screenBox"},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.btnLoading,expression:"btnLoading"}],attrs:{type:"primary",size:"small"},on:{click:t.AuthEvent}},[t._v("公众号授权")])],1),t._v(" "),a("div",{staticClass:"tMar10"},[a("TableList",{ref:"tableListRef",attrs:{total:t.total,loading:t.loading,showPagination:!0,tableData:t.tableList,descol:t.descolList},on:{turnPageEvent:t.turnPageEvent},scopedSlots:t._u([{key:"account_name",fn:function(e){return[a("div",{staticClass:"pageFlex",staticStyle:{"justify-content":"center"}},[a("div",[e.row.head_img?a("img",{staticClass:"userImg",attrs:{src:e.row.head_img,alt:""}}):a("img",{staticClass:"userImg",attrs:{src:n("pIyw"),alt:""}})]),t._v(" "),a("div",[t._v(t._s(e.row.nickname||"-"))])])]}},{key:"operate",fn:function(e){return[a("div",{staticClass:"text-center"},[a("span",{staticClass:"operate_text",on:{click:function(n){return t.clickEvent(e.row)}}},[t._v("禁用")])])]}}])})],1)])},staticRenderFns:[]};var l=n("VU/8")(c,u,!1,function(t){n("p/Fp")},"data-v-424f6824",null);e.default=l.exports},"p/Fp":function(t,e){}});