chunk-a3190dfe.d72cf3fc.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a3190dfe"],{"2c3e":function(t,e,n){var i=n("da84"),r=n("83ab"),a=n("9f7f").MISSED_STICKY,o=n("c6b6"),s=n("edd0"),c=n("69f3").get,u=RegExp.prototype,l=i.TypeError;r&&a&&s(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!c(this).sticky;throw l("Incompatible receiver, RegExp required")}}})},"4c8e":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"i-layout-page-header"},[n("div",{staticClass:"i-layout-page-header"},[n("span",{staticClass:"ivu-page-header-title mr20",domProps:{textContent:t._s(t.$route.meta.title)}})])]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("Row",{attrs:{type:"flex",gutter:24,align:"middle"}},[n("Col",[n("FormItem",{attrs:{label:"状态:"}},[n("Select",{staticStyle:{width:"200px"},attrs:{placeholder:"请选择状态","element-id":"group_id",clearable:""},on:{"on-change":t.userSearchs},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},[n("Option",{attrs:{value:"all"}},[t._v("全部")]),t._l(t.statusList,(function(e,i){return n("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.status_name))])}))],2)],1)],1),n("Col",[n("FormItem",{attrs:{label:"搜索:"}},[n("Input",{staticStyle:{width:"250px"},attrs:{search:"","enter-button":"",placeholder:"请输入姓名、UID"},on:{"on-search":t.userSearchs},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1)],1)],1)],1)],1),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Row",{staticClass:"ivu-mt box-wrapper"},[n("Col",{ref:"rightBox",attrs:{xs:24,sm:24}},[n("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.userLists,loading:t.loading,"highlight-row":"","no-formValidate-text":"暂无数据","no-filtered-formValidate-text":"暂无筛选结果"},scopedSlots:t._u([{key:"images",fn:function(e){var i=e.row;e.index;return[i.images.length?n("div",{staticClass:"pictrue-box"},t._l(i.images||[],(function(t,e){return n("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"item"}],staticClass:"pictrue mr10",attrs:{src:t}})])})),0):t._e()]}},{key:"status",fn:function(e){var i=e.row;e.index;return[n("Tag",[t._v(t._s(0==i.status?"申请中":1==i.status?"已同意":"已拒绝"))])]}},{key:"division_end_time",fn:function(e){var i=e.row;e.index;return[n("span",[t._v(" "+t._s(i.division_end_time))])]}},{key:"action",fn:function(e){var i=e.row,r=e.index;return[0==i.status?n("a",{on:{click:function(e){return t.groupAdd(i.id,1)}}},[t._v("同意")]):t._e(),0==i.status?n("Divider",{attrs:{type:"vertical"}}):t._e(),0==i.status?n("a",{on:{click:function(e){return t.groupAdd(i.id,0)}}},[t._v("拒绝")]):t._e(),0==i.status?n("Divider",{attrs:{type:"vertical"}}):t._e(),n("a",{on:{click:function(e){return t.del(i,"删除申请",r)}}},[t._v("删除")])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1)],1)],1)],1)},r=[],a=n("c964"),o=n("f3f3"),s=(n("a434"),n("96cf"),n("2f62")),c=n("bbbc"),u=n("61f7"),l={name:"agent_extra",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},total:0,total2:0,userLists:[],formInline:{uid:0,proportion:0,image:""},statusList:[{status_name:"申请中",id:0},{status_name:"已同意",id:1},{status_name:"已拒绝",id:2}],columns:[{title:"用户UID",key:"uid",width:80},{title:"代理商名称",key:"agent_name",minWidth:150},{title:"代理商电话",key:"phone",minWidth:100},{title:"事业部ID",key:"division_id",minWidth:100},{title:"申请图片",slot:"images",minWidth:100},{title:"申请时间",key:"add_time",minWidth:100},{title:"申请状态",slot:"status",minWidth:100},{title:"邀请码",key:"division_invite",minWidth:100},{title:"操作",slot:"action",fixed:"right",minWidth:120}],FromData:null,loading:!1,current:0,formValidate:{page:1,limit:15,keyword:"",status:"all"},staffModal:!1,clerkReqData:{uid:0,page:1,limit:15},clerkLists:[]}},filters:{formatDate:function(t){if(0!==t){var e=new Date(1e3*t);return Object(u["a"])(e,"yyyy-MM-dd hh:mm")}}},computed:Object(o["a"])(Object(o["a"])({},Object(s["e"])("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.getList()},methods:{userSearchs:function(){this.formValidate.page=1,this.getList()},jump:function(t){this.clerkReqData.uid=t,this.getClerkList()},getClerkList:function(){var t=this;this.clerkReqData.division_type=3,Object(c["d"])(this.clerkReqData).then((function(e){t.clerkLists=e.data.list,t.total2=e.data.count,t.staffModal=!0}))},getList:function(){var t=this;this.loading=!0,Object(c["f"])(this.formValidate).then(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(n){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=n.data,t.userLists=i.list,t.total=i.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},clerkPageChange:function(){this.clerkReqData.page=index,this.getClerkList()},groupAdd:function(t,e){var n=this;this.$modalForm(Object(c["e"])(t,e)).then((function(t){n.getList()})).catch((function(t){}))},onchangeIsShow:function(t){var e=this,n={id:t.uid,status:t.division_status};Object(c["g"])(n).then(function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$Message.success(n.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},edit:function(t){},del:function(t,e,n){var i=this,r={title:e,method:"DELETE",uid:t.id,url:"agent/division/del_apply/".concat(t.id)};this.$modalSure(r).then((function(t){i.$Message.success(t.msg),i.userLists.splice(n,1)})).catch((function(t){i.$Message.error(t.msg)}))}}},d=l,f=(n("c4d8"),n("2877")),g=Object(f["a"])(d,i,r,!1,null,"055b2995",null);e["default"]=g.exports},"4d63":function(t,e,n){var i=n("83ab"),r=n("da84"),a=n("e330"),o=n("94ca"),s=n("7156"),c=n("9112"),u=n("241c").f,l=n("3a9b"),d=n("44e7"),f=n("577e"),g=n("90d8"),m=n("9f7f"),h=n("aeb0"),p=n("cb2d"),v=n("d039"),b=n("1a2d"),y=n("69f3").enforce,x=n("2626"),_=n("b622"),k=n("fce3"),w=n("107c"),O=_("match"),j=r.RegExp,R=j.prototype,E=r.SyntaxError,C=a(R.exec),D=a("".charAt),S=a("".replace),$=a("".indexOf),L=a("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,V=/a/g,I=/a/g,W=new j(V)!==V,A=m.MISSED_STICKY,T=m.UNSUPPORTED_Y,q=i&&(!W||A||k||w||v((function(){return I[O]=!1,j(V)!=V||j(I)==I||"/a/i"!=j(V,"i")}))),P=function(t){for(var e,n=t.length,i=0,r="",a=!1;i<=n;i++)e=D(t,i),"\\"!==e?a||"."!==e?("["===e?a=!0:"]"===e&&(a=!1),r+=e):r+="[\\s\\S]":r+=e+D(t,++i);return r},F=function(t){for(var e,n=t.length,i=0,r="",a=[],o={},s=!1,c=!1,u=0,l="";i<=n;i++){if(e=D(t,i),"\\"===e)e+=D(t,++i);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:C(M,L(t,i+1))&&(i+=2,c=!0),r+=e,u++;continue;case">"===e&&c:if(""===l||b(o,l))throw new E("Invalid capture group name");o[l]=!0,a[a.length]=[l,u],c=!1,l="";continue}c?l+=e:r+=e}return[r,a]};if(o("RegExp",q)){for(var U=function(t,e){var n,i,r,a,o,u,m=l(R,this),h=d(t),p=void 0===e,v=[],b=t;if(!m&&h&&p&&t.constructor===U)return t;if((h||l(R,t))&&(t=t.source,p&&(e=g(b))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),b=t,k&&"dotAll"in V&&(i=!!e&&$(e,"s")>-1,i&&(e=S(e,/s/g,""))),n=e,A&&"sticky"in V&&(r=!!e&&$(e,"y")>-1,r&&T&&(e=S(e,/y/g,""))),w&&(a=F(t),t=a[0],v=a[1]),o=s(j(t,e),m?this:R,U),(i||r||v.length)&&(u=y(o),i&&(u.dotAll=!0,u.raw=U(P(t),n)),r&&(u.sticky=!0),v.length&&(u.groups=v)),t!==b)try{c(o,"source",""===b?"(?:)":b)}catch(x){}return o},Y=u(j),z=0;Y.length>z;)h(U,j,Y[z++]);R.constructor=U,U.prototype=R,p(r,"RegExp",U,{constructor:!0})}x("RegExp")},"61f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return l}));var i=n("fc11"),r=n("f3f3");n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0"),n("498a"),n("d3b7"),n("b64b"),n("99af");function a(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var i in n)if(new RegExp("(".concat(i,")")).test(e)){var r=n[i]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?r:o(r))}return e}function o(t){return("00"+t).substr(t.length)}var s={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};var c=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(r["a"])({required:!0,message:t,type:"string"},e)}function l(t){return d.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}c(u,"请输入%s"),c(l,"%s格式不正确");var d=Object.keys(s).reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="range"===e?{min:t[0],max:t[1]}:Object(i["a"])({},e,t);return Object(r["a"])(Object(r["a"])({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},o),a)},c(t[e],s[e]),t}),{})},"88a0":function(t,e,n){},bbbc:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"n",(function(){return o})),n.d(e,"m",(function(){return s})),n.d(e,"h",(function(){return c})),n.d(e,"j",(function(){return u})),n.d(e,"i",(function(){return l})),n.d(e,"o",(function(){return d})),n.d(e,"l",(function(){return f})),n.d(e,"f",(function(){return g})),n.d(e,"a",(function(){return m})),n.d(e,"e",(function(){return h})),n.d(e,"k",(function(){return p})),n.d(e,"d",(function(){return v})),n.d(e,"g",(function(){return b}));n("99af");var i=n("6b6c");function r(t){return Object(i["a"])({url:"agent/index",method:"get",params:t})}function a(t){return Object(i["a"])({url:"agent/spread",method:"PUT",data:t})}function o(t){return Object(i["a"])({url:"agent/statistics",method:"get",params:t})}function s(t,e){return Object(i["a"])({url:t,method:"get",params:e})}function c(t){return Object(i["a"])({url:"agent/look_code",method:"get",params:t})}function u(t){return Object(i["a"])({url:"agent/look_xcx_code",method:"get",params:t})}function l(t){return Object(i["a"])({url:"agent/look_h5_code",method:"get",params:t})}function d(t){return Object(i["a"])({url:"export/userAgent",method:"get",params:t})}function f(t){return Object(i["a"])({url:"agent/division/list",method:"get",params:t})}function g(t){return Object(i["a"])({url:"agent/division/agent_apply/list",method:"get",params:t})}function m(t){return Object(i["a"])({url:"agent/division/agent/create/".concat(t),method:"get"})}function h(t,e){return Object(i["a"])({url:"agent/division/examine_apply/".concat(t,"/").concat(e),method:"get"})}function p(t){return Object(i["a"])({url:"agent/division/create/".concat(t),method:"get"})}function v(t){return Object(i["a"])({url:"agent/division/down_list",method:"get",params:t})}function b(t){return Object(i["a"])({url:"agent/division/set_status/".concat(t.status,"/").concat(t.id),method:"put"})}},c4d8:function(t,e,n){"use strict";var i=n("88a0"),r=n.n(i);r.a},c607:function(t,e,n){var i=n("da84"),r=n("83ab"),a=n("fce3"),o=n("c6b6"),s=n("edd0"),c=n("69f3").get,u=RegExp.prototype,l=i.TypeError;r&&a&&s(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!c(this).dotAll;throw l("Incompatible receiver, RegExp required")}}})},edd0:function(t,e,n){var i=n("13d2"),r=n("9bf2");t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}}}]);