chunk-baa1018a.751358c0.js 5.0 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-baa1018a"],{"419c":function(t,e,i){"use strict";var a=i("f9a0");i.n(a).a},f483:function(t,e,i){"use strict";i.r(e);var a=i("a34a"),n=i.n(a),r=i("2f62"),o=i("47c5");function s(t,e,i,a,n,r,o){try{var s=t[r](o),c=s.value}catch(t){return void i(t)}s.done?e(c):Promise.resolve(c).then(a,n)}function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function l(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var u={name:"anchor",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,columns1:[{title:"ID",key:"id",minWidth:120},{title:"名称",key:"name",minWidth:300},{title:"电话",key:"phone",minWidth:300},{title:"微信号",key:"wechat",minWidth:300},{title:"操作",slot:"action",fixed:"right",minWidth:120}],labelFrom:{kerword:"",page:1,limit:15},labelLists:[],total:0,modal3:!1}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(i,!0).forEach((function(e){l(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(i).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},Object(r.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getList()},methods:{codeImg:function(){this.modal3=!0},cancel:function(){this.modal3=!1},add:function(){var t=this;this.$modalForm(Object(o.b)(0)).then((function(e){t.getList(),1==e.data.auth&&(t.modal3=!0)}))},edit:function(t){var e=this;this.$modalForm(Object(o.b)(t)).then((function(){return e.getList()}))},del:function(t,e,i){var a=this,n={title:e,num:i,url:"live/anchor/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(n).then((function(t){a.$Message.success(t.msg),a.labelLists.splice(i,1),a.labelLists.length||(a.labelFrom.page=1==a.labelFrom.page?1:a.labelFrom.page-1),a.getList()})).catch((function(t){a.$Message.error(t.msg)}))},getList:function(){var t=this;this.loading=!0,Object(o.c)(this.labelFrom).then(function(){var e,i=(e=n.a.mark((function e(i){var a;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=i.data,t.labelLists=a.list,t.total=a.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})),function(){var t=this,i=arguments;return new Promise((function(a,n){var r=e.apply(t,i);function o(t){s(r,a,n,o,c,"next",t)}function c(t){s(r,a,n,o,c,"throw",t)}o(void 0)}))});return function(t){return i.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.labelFrom.page=t,this.getList()}}},d=(i("419c"),i("2877")),m=Object(d.a)(u,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[i("div",{staticClass:"new_card_pd"},[i("div",{staticClass:"acea-row"},[i("Alert",{staticStyle:{width:"590px","margin-bottom":"20px"},attrs:{type:"warning","show-icon":""}},[t._v("必须前往微信小程序官方后台开通直播权限,关注"),i("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:t.codeImg}},[t._v("【小程序直播】")]),t._v("须知直播状态")])],1)])]),i("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[i("div",{staticClass:"acea-row"},[i("Button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-user-label_add"],expression:"['admin-user-label_add']"}],staticStyle:{"margin-right":"20px"},attrs:{type:"primary"},on:{click:t.add}},[t._v("添加主播")])],1),i("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:t.columns1,data:t.labelLists,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"icons",fn:function(t){var e=t.row;return t.index,[i("viewer",[i("div",{staticClass:"tabBox_img"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.icon,expression:"row.icon"}]})])])]}},{key:"action",fn:function(e){var a=e.row,n=e.index;return[i("a",{on:{click:function(e){return t.edit(a.id)}}},[t._v("修改")]),i("Divider",{attrs:{type:"vertical"}}),i("a",{on:{click:function(e){return t.del(a,"删除分组",n)}}},[t._v("删除")])]}}])}),i("div",{staticClass:"acea-row row-right page"},[i("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.labelFrom.limit},on:{"on-change":t.pageChange}})],1)],1),i("Modal",{attrs:{title:"二维码","footer-hide":""},on:{"on-cancel":t.cancel},model:{value:t.modal3,callback:function(e){t.modal3=e},expression:"modal3"}},[i("div",{staticClass:"acea-row row-around"},[i("viewer",{staticClass:"QRpic"},[i("img",{attrs:{src:"https://res.wx.qq.com/op_res/9rSix1dhHfK4rR049JL0PHJ7TpOvkuZ3mE0z7Ou_Etvjf-w1J_jVX0rZqeStLfwh"}})])],1)])],1)}),[],!1,null,"2f623d02",null);e.default=m.exports},f9a0:function(t,e,i){}}]);