(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-557b970f"],{"0cb2":function(t,e,n){var r=n("7b0b"),a=Math.floor,i="".replace,o=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,u,s,d){var l=n+t.length,f=u.length,p=c;return void 0!==s&&(s=r(s),p=o),i.call(d,p,(function(r,i){var o;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":o=s[i.slice(1,-1)];break;default:var c=+i;if(0===c)return r;if(c>f){var d=a(c/10);return 0===d?r:d<=f?void 0===u[d-1]?i.charAt(1):u[d-1]+i.charAt(1):r}o=u[c-1]}return void 0===o?"":o}))}},"14c3":function(t,e,n){var r=n("c6b6"),a=n("9263");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var i=n.call(t,e);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(t,e)}},"16e0":function(t,e,n){"use strict";n.d(e,"m",(function(){return i})),n.d(e,"v",(function(){return o})),n.d(e,"Q",(function(){return c})),n.d(e,"U",(function(){return u})),n.d(e,"h",(function(){return s})),n.d(e,"f",(function(){return d})),n.d(e,"w",(function(){return l})),n.d(e,"P",(function(){return f})),n.d(e,"O",(function(){return p})),n.d(e,"S",(function(){return g})),n.d(e,"x",(function(){return m})),n.d(e,"F",(function(){return h})),n.d(e,"E",(function(){return v})),n.d(e,"L",(function(){return b})),n.d(e,"k",(function(){return y})),n.d(e,"G",(function(){return x})),n.d(e,"H",(function(){return k})),n.d(e,"C",(function(){return E})),n.d(e,"B",(function(){return I})),n.d(e,"I",(function(){return S})),n.d(e,"D",(function(){return w})),n.d(e,"y",(function(){return C})),n.d(e,"K",(function(){return R})),n.d(e,"A",(function(){return O})),n.d(e,"J",(function(){return _})),n.d(e,"z",(function(){return T})),n.d(e,"u",(function(){return N})),n.d(e,"q",(function(){return $})),n.d(e,"p",(function(){return j})),n.d(e,"T",(function(){return A})),n.d(e,"r",(function(){return D})),n.d(e,"t",(function(){return L})),n.d(e,"s",(function(){return P})),n.d(e,"g",(function(){return M})),n.d(e,"b",(function(){return U})),n.d(e,"e",(function(){return z})),n.d(e,"M",(function(){return V})),n.d(e,"c",(function(){return F})),n.d(e,"N",(function(){return B})),n.d(e,"d",(function(){return K})),n.d(e,"i",(function(){return q})),n.d(e,"V",(function(){return Y})),n.d(e,"a",(function(){return G})),n.d(e,"l",(function(){return J})),n.d(e,"n",(function(){return X})),n.d(e,"j",(function(){return H})),n.d(e,"o",(function(){return Q})),n.d(e,"R",(function(){return W})),n.d(e,"Y",(function(){return Z})),n.d(e,"Z",(function(){return tt})),n.d(e,"X",(function(){return et})),n.d(e,"W",(function(){return nt}));var r=n("284b"),a=n("f121"),i=a["a"]+"/admin/dealer/invitation-code/excel/excelDownload",o=function(t){return r["a"].post("/admin/dealer/invitation-code/queryDealerInvitationCodeResult",t)},c=function(t){return r["a"].post("/admin/dealer/invitation-code/saveDealerInvitationCode",t)},u=function(t){return r["a"].post("/admin/dealer/invitation-code/updDealerInvitationCode",t)},s=function(t){return r["a"].get("/admin/dealer/invitation-code/getDealerInvitationCodeResult",{params:t})},d=function(){return r["a"].get("/admin/agent/select/users")},l=function(t){return r["a"].get("/admin/dealer/invitation-code/disabled",{params:t})},f=function(t){return r["a"].post("/admin/dealer/invitation-code/queryDealerInvitationRecordResult",t)},p=function(t){return r["a"].post("/adminv2/dealer/queryInvitationCode",t)},g=function(t){return r["a"].post("/admin/files/getQRCodeBase64",t)},m=function(t){return r["a"].post("/admin/dealer/invitation-record/setStatus",t)},h=function(t){return r["a"].post("/admin/dealer/invitation-code/generateDealerInvitationCode",t)},v=function(t){return r["a"].post("/admin/dealer/invitation-code/queryAgentDealerInvitationRecordResult",t)},b=function(t){return r["a"].get("/admin/agent/goods/lists/".concat(t.agentUserId),{params:t})},y=function(t){return r["a"].post("/admin/course/info/tab/queryCourseInfoAll",t)},x=function(t){return r["a"].post("/admin/member/tab",t)},k=function(t){return r["a"].post("/adminv2/member/lists",t)},E=function(t){return r["a"].post("/adminv2/member/enable",t)},I=function(t){return r["a"].post("/adminv2/member/disable",t)},S=function(t){return r["a"].post("/admin/member/record",t)},w=function(t){return r["a"].get("/admin/member/invalidate",{params:t})},C=function(t){return r["a"].post("/adminv2/member/add",t)},R=function(t){return r["a"].post("/adminv2/member/update",t)},O=function(t){return r["a"].post("/adminv2/member/detail",t)},_=function(t){return r["a"].post("/admin/member/sort",t)},T=function(t){return r["a"].post("/admin/member/delay",t)},N=function(t){return r["a"].post("/admin/agent/users",t)},$=function(t){return r["a"].post("/admin/agent/enable/".concat(t.agentUserId),t)},j=function(t){return r["a"].post("/admin/agent/disable/".concat(t.agentUserId),t)},A=function(t){return r["a"].post("/admin/sys/user/tab",t)},D=function(t){return r["a"].get("/admin/agent/select/label",{params:t})},L=function(t){return r["a"].get("/admin/agent/user/info/".concat(t.agentUserId),{params:t})},P=function(t){return r["a"].post("/admin/agent/setting",t)},M=function(t){return r["a"].post("/admin/agent/update",t)},U=function(t){return r["a"].post("/admin/agent",t)},z=a["a"]+"/admin/agent/export",V=function(t){return r["a"].get("/admin/agent/order/codes/".concat(t.agentUserId),{params:t})},F=function(t){return r["a"].post("/admin/agent/configs",t)},B=function(t){return r["a"].get("/admin/agent/config/".concat(t.id),{params:t})},K=function(t){return r["a"].post("/admin/agent/config/update/".concat(t.id),t)},q=function(t){return r["a"].post("/adminv2/getCouponList",t)},Y=function(t){return r["a"].post("/adminv2/upCouponStatus",t)},G=function(t){return r["a"].post("/adminv2/addCoupon",t)},J=function(t){return r["a"].post("/adminv2/editCoupon",t)},X=function(t){return r["a"].post("/adminv2/getCouponInfo",t)},H=function(t){return r["a"].post("/adminv2/getCouponUseInfo",t)},Q=function(t){return r["a"].post("/adminv2/getMemberAppShow ",t)},W=function(t){return r["a"].post("/adminv2/setMemberAppShow ",t)},Z=function(t){return r["a"].post("/adminv2/shoptask/lists",t)},tt=function(t){return r["a"].post("/adminv2/shoptask/removed",t)},et=function(t){return r["a"].post("/adminv2/shoptask/getOne",t)},nt=function(t){return r["a"].post("/adminv2/shoptask/edit",t)}},2532:function(t,e,n){"use strict";var r=n("23e7"),a=n("5a34"),i=n("1d80"),o=n("ab13");r({target:"String",proto:!0,forced:!o("includes")},{includes:function(t){return!!~String(i(this)).indexOf(a(t),arguments.length>1?arguments[1]:void 0)}})},"25f0":function(t,e,n){"use strict";var r=n("6eeb"),a=n("825a"),i=n("d039"),o=n("ad6d"),c="toString",u=RegExp.prototype,s=u[c],d=i((function(){return"/a/b"!=s.call({source:"a",flags:"b"})})),l=s.name!=c;(d||l)&&r(RegExp.prototype,c,(function(){var t=a(this),e=String(t.source),n=t.flags,r=String(void 0===n&&t instanceof RegExp&&!("flags"in u)?o.call(t):n);return"/"+e+"/"+r}),{unsafe:!0})},3835:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return c}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");function a(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=t[Symbol.iterator]();!(r=(o=c.next()).done);r=!0)if(n.push(o.value),e&&n.length===e)break}catch(u){a=!0,i=u}finally{try{r||null==c["return"]||c["return"]()}finally{if(a)throw i}}return n}}var i=n("06c5");function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,e){return r(t)||a(t,e)||Object(i["a"])(t,e)||o()}},"3e65":function(t,e,n){},"44e7":function(t,e,n){var r=n("861d"),a=n("c6b6"),i=n("b622"),o=i("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==a(t))}},"4d63":function(t,e,n){var r=n("83ab"),a=n("da84"),i=n("94ca"),o=n("7156"),c=n("9bf2").f,u=n("241c").f,s=n("44e7"),d=n("ad6d"),l=n("9f7f"),f=n("6eeb"),p=n("d039"),g=n("69f3").set,m=n("2626"),h=n("b622"),v=h("match"),b=a.RegExp,y=b.prototype,x=/a/g,k=/a/g,E=new b(x)!==x,I=l.UNSUPPORTED_Y,S=r&&i("RegExp",!E||I||p((function(){return k[v]=!1,b(x)!=x||b(k)==k||"/a/i"!=b(x,"i")})));if(S){var w=function(t,e){var n,r=this instanceof w,a=s(t),i=void 0===e;if(!r&&a&&t.constructor===w&&i)return t;E?a&&!i&&(t=t.source):t instanceof w&&(i&&(e=d.call(t)),t=t.source),I&&(n=!!e&&e.indexOf("y")>-1,n&&(e=e.replace(/y/g,"")));var c=o(E?new b(t,e):b(t,e),r?this:y,w);return I&&n&&g(c,{sticky:n}),c},C=function(t){t in w||c(w,t,{configurable:!0,get:function(){return b[t]},set:function(e){b[t]=e}})},R=u(b),O=0;while(R.length>O)C(R[O++]);y.constructor=w,w.prototype=y,f(a,"RegExp",w)}m("RegExp")},"4de4":function(t,e,n){"use strict";var r=n("23e7"),a=n("b727").filter,i=n("1dde"),o=i("filter");r({target:"Array",proto:!0,forced:!o},{filter:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}})},5319:function(t,e,n){"use strict";var r=n("d784"),a=n("825a"),i=n("50c4"),o=n("a691"),c=n("1d80"),u=n("8aa5"),s=n("0cb2"),d=n("14c3"),l=Math.max,f=Math.min,p=function(t){return void 0===t?t:String(t)};r("replace",2,(function(t,e,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=r.REPLACE_KEEPS_$0,h=g?"$":"$0";return[function(n,r){var a=c(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,a,r):e.call(String(a),n,r)},function(t,r){if(!g&&m||"string"===typeof r&&-1===r.indexOf(h)){var c=n(e,t,this,r);if(c.done)return c.value}var v=a(t),b=String(this),y="function"===typeof r;y||(r=String(r));var x=v.global;if(x){var k=v.unicode;v.lastIndex=0}var E=[];while(1){var I=d(v,b);if(null===I)break;if(E.push(I),!x)break;var S=String(I[0]);""===S&&(v.lastIndex=u(b,i(v.lastIndex),k))}for(var w="",C=0,R=0;R=C&&(w+=b.slice(C,_)+A,C=_+O.length)}return w+b.slice(C)}]}))},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("b64b"),n("a4d3"),n("4de4"),n("e439"),n("159b"),n("dbb4");var r=n("ade3");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e0&&(!u.multiline||u.multiline&&"\n"!==t[u.lastIndex-1])&&(g="(?: "+g+")",h=" "+h,m++),n=new RegExp("^(?:"+g+")",p)),l&&(n=new RegExp("^"+g+"$(?!\\s)",p)),s&&(e=u.lastIndex),a=o.call(f?n:u,h),f?a?(a.input=a.input.slice(m),a[0]=a[0].slice(m),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:s&&a&&(u.lastIndex=u.global?a.index+a[0].length:e),l&&a&&a.length>1&&c.call(a[0],n,(function(){for(i=1;i2)if(s=h(s),e=s.charCodeAt(0),43===e||45===e){if(n=s.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:r=2,a=49;break;case 79:case 111:r=8,a=55;break;default:return+s}for(i=s.slice(2),o=i.length,c=0;ca)return NaN;return parseInt(i,r)}return+s};if(i(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var E,I=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof I&&(x?l((function(){y.valueOf.call(n)})):u(n)!=v)?s(new b(k(e)),n,I):k(e)},S=r?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),w=0;S.length>w;w++)c(b,E=S[w])&&!c(I,E)&&m(I,E,g(b,E));I.prototype=y,y.constructor=I,o(a,v,I)}},ab13:function(t,e,n){var r=n("b622"),a=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[a]=!1,"/./"[t](e)}catch(r){}}return!1}},ac1f:function(t,e,n){"use strict";var r=n("23e7"),a=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},ade3:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},ae61:function(t,e,n){"use strict";n("96b4")},b64b:function(t,e,n){var r=n("23e7"),a=n("7b0b"),i=n("df75"),o=n("d039"),c=o((function(){i(1)}));r({target:"Object",stat:!0,forced:c},{keys:function(t){return i(a(t))}})},b893:function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"b",(function(){return u})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return d})),n.d(e,"c",(function(){return l}));n("ac1f"),n("5319"),n("4d63"),n("25f0"),n("d81d"),n("159b");var r,a=n("c1df"),i=n.n(a),o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;r||(r=!0,setTimeout((function(){r=!1,"function"===typeof t&&t()}),e))},c=null,u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;null!==c&&clearTimeout(c),c=setTimeout((function(){"function"===typeof t&&t()}),e)},s=function(t,e){var n={"M+":t.getMonth()+1,"d+":t.getDate(),"H+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var r in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[r]:("00"+n[r]).substr((""+n[r]).length)));return e},d=function(t){var e=JSON.parse(localStorage.getItem("powerListArr")),n="";return e.map((function(e){e.children.forEach((function(e){e.code==t&&(n=t),e.children.forEach((function(e){e.code==t&&(n=t)}))}))})),n},l=function(t){return t&&t")})),s=function(){return"$0"==="a".replace(/./,"$0")}(),d=i("replace"),l=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),f=!a((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,d){var p=i(t),g=!a((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),m=g&&!a((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return e=!0,null},n[p](""),!e}));if(!g||!m||"replace"===t&&(!u||!s||l)||"split"===t&&!f){var h=/./[p],v=n(p,""[t],(function(t,e,n,r,a){return e.exec===RegExp.prototype.exec?g&&!a?{done:!0,value:h.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:l}),b=v[0],y=v[1];r(String.prototype,t,b),r(RegExp.prototype,p,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}d&&o(RegExp.prototype[p],"sham",!0)}},dbb4:function(t,e,n){var r=n("23e7"),a=n("83ab"),i=n("56ef"),o=n("fc6a"),c=n("06cf"),u=n("8418");r({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(t){var e,n,r=o(t),a=c.f,s=i(r),d={},l=0;while(s.length>l)n=a(r,e=s[l++]),void 0!==n&&u(d,e,n);return d}})},e439:function(t,e,n){var r=n("23e7"),a=n("d039"),i=n("fc6a"),o=n("06cf").f,c=n("83ab"),u=a((function(){o(1)})),s=!c||u;r({target:"Object",stat:!0,forced:s,sham:!c},{getOwnPropertyDescriptor:function(t,e){return o(i(t),e)}})},ebac:function(t,e,n){},f827:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"padding24 color_white"},[n("div",{staticClass:"head-box"},[n("a-alert",{attrs:{message:"积分获取行为及数值配置",type:"info"}}),t.operation.add?n("a-button",{attrs:{type:"primary"},on:{click:function(e){t.taskListModal=!0}}},[t._v("添加选择任务")]):t._e()],1),n("a-table",{attrs:{columns:t.TaskListColumns,"data-source":t.tabledData,pagination:!1,loading:t.tableLoading,"row-key":function(t){return t.id}},scopedSlots:t._u([{key:"number",fn:function(e,r){return n("span",{},[1===+r.creditType?n("span",[t._v(t._s(r.credit))]):n("span",[t._v(t._s(r.creditStart)+"~"+t._s(r.creditEnd))])])}},{key:"state",fn:function(e,r){return n("span",{},[t._v(t._s(1===+r.state?"启用":"禁用"))])}},{key:"action",fn:function(e,r){return n("span",{},[t.operation.edit?n("a",{on:{click:function(e){return t.editClick(r)}}},[t._v("编辑")]):t._e()])}}])}),n("IntegralList",{attrs:{visible:t.taskListModal,ids:t.selectIds},on:{ok:t.selectTask,cancel:function(e){t.taskListModal=!1}}}),n("EditIntegralConfig",{attrs:{visible:t.editModal,record:t.curRecord},on:{ok:t.onEdit,cancel:function(e){t.editModal=!1}}})],1)},a=[],i=n("1da1"),o=(n("96cf"),n("d81d"),n("cc25")),c=n("6ffe"),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-modal",{attrs:{visible:t.visible,width:800,title:"选择关联任务","destroy-on-close":""},on:{cancel:function(){return t.$emit("cancel")}}},[n("div",{attrs:{slot:"footer"},slot:"footer"},[n("a-button",{on:{click:function(){return t.$emit("cancel")}}},[t._v("取消")]),n("a-button",{attrs:{type:"primary",disabled:0===t.selectedRowKeys.length},on:{click:t.handleOk}},[t._v("确定")])],1),n("div",{staticClass:"search-box"},[n("a-input",{staticClass:"search-input",attrs:{allowClear:""},model:{value:t.filter.taskName,callback:function(e){t.$set(t.filter,"taskName",e)},expression:"filter.taskName"}}),n("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("搜索")])],1),n("a-table",{attrs:{columns:t.selectTaskColumns,"data-source":t.taskList,pagination:!1,loading:t.tableLoading,"row-selection":{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange,getCheckboxProps:t.getCheckboxProps},"row-key":function(t){return t.id},scroll:{y:300}}})],1)},s=[],d=(n("4de4"),n("caad"),n("2532"),n("16e0")),l=n("fdb4"),f={props:{visible:{type:Boolean,default:!1},ids:{type:Array,default:[]}},watch:{visible:function(t){this.selectedRowKeys=[]}},data:function(){return{filter:{taskName:"",state:1},selectTaskColumns:o["d"],tableLoading:!0,selectedRowKeys:[],taskList:[]}},created:function(){this.fetchData()},methods:{fetchData:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.tableLoading=!0,e.next=3,Object(d["Y"])(t.filter);case 3:if(n=e.sent,r=n.code,a=n.data,t.tableLoading=!1,200===r){e.next=9;break}return e.abrupt("return");case 9:t.taskList=a;case 10:case"end":return e.stop()}}),e)})))()},onSelectChange:function(t){this.selectedRowKeys=t},getCheckboxProps:function(t){return{props:{disabled:this.ids.includes(t.id)}}},paginationCallBack:function(t,e){this.fetchData()},handleOk:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={taskId:t.selectedRowKeys},e.next=3,Object(l["a"])(n);case 3:if(r=e.sent,r.data,a=r.code,200===a){e.next=8;break}return e.abrupt("return");case 8:t.$message.success("添加成功"),t.$emit("ok");case 10:case"end":return e.stop()}}),e)})))()},onSearch:function(){this.fetchData()}}},p=f,g=(n("bd4a"),n("2877")),m=Object(g["a"])(p,u,s,!1,null,"07875625",null),h=m.exports,v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-modal",{attrs:{visible:t.visible,title:"修改积分获取配置",destroyOnClose:""},on:{ok:t.handleOk,cancel:t.onCancel}},[n("a-form-model",{ref:"ruleForm",staticStyle:{height:"350px",overflow:"hidden","overflow-y":"auto"},attrs:{model:t.record,rules:t.rules,labelAlign:"right","label-col":t.labelCol,"wrapper-col":t.wrapperCol}},[n("a-form-model-item",{attrs:{label:"积分获取行为",prop:"name"}},[t._v(" "+t._s(t.record.taskName)+" ")]),n("a-form-model-item",{attrs:{label:"积分获取数量",prop:"count"}},[n("a-select",{staticStyle:{width:"120px"},on:{change:t.setCountVal},model:{value:t.record.creditType,callback:function(e){t.$set(t.record,"creditType",e)},expression:"record.creditType"}},[n("a-select-option",{attrs:{value:1}},[t._v("固定积分")]),n("a-select-option",{attrs:{value:2}},[t._v("随机积分")])],1),n("br"),1===+t.record.creditType?n("a-input-number",{attrs:{min:0},on:{change:t.setCountVal},model:{value:t.record.credit,callback:function(e){t.$set(t.record,"credit",e)},expression:"record.credit"}}):n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("a-input-number",{attrs:{min:0},on:{change:t.setCountVal},model:{value:t.record.creditStart,callback:function(e){t.$set(t.record,"creditStart",e)},expression:"record.creditStart"}}),n("span",{staticStyle:{margin:"10px"}},[t._v("——")]),n("a-input-number",{attrs:{min:0},on:{change:t.setCountVal},model:{value:t.record.creditEnd,callback:function(e){t.$set(t.record,"creditEnd",e)},expression:"record.creditEnd"}})],1)],1),n("a-form-model-item",{attrs:{label:"任务对应的值",prop:"taskValue"}},[n("a-input",{attrs:{placeholder:"请输入任务对应的值"},model:{value:t.record.taskValue,callback:function(e){t.$set(t.record,"taskValue",e)},expression:"record.taskValue"}})],1),n("a-form-model-item",{attrs:{label:"生效版本号",prop:"version"}},[n("a-input",{attrs:{placeholder:"请输入生效版本号"},model:{value:t.record.version,callback:function(e){t.$set(t.record,"version",e)},expression:"record.version"}})],1),n("a-form-model-item",{attrs:{label:"跳转方式",prop:"targetType"}},[n("a-select",{staticStyle:{width:"150px"},attrs:{allowClear:""},model:{value:t.record.targetType,callback:function(e){t.$set(t.record,"targetType",e)},expression:"record.targetType"}},t._l(t.targetTypeList,(function(e){return n("a-select-option",{key:e.key},[t._v(" "+t._s(e.value))])})),1),n("a-input",{attrs:{placeholder:"请输入跳转参数"},model:{value:t.record.targetValue,callback:function(e){t.$set(t.record,"targetValue",e)},expression:"record.targetValue"}})],1),n("a-form-model-item",{attrs:{label:"是否启用",prop:"state",required:""}},[n("a-radio-group",{model:{value:t.record.state,callback:function(e){t.$set(t.record,"state",e)},expression:"record.state"}},[n("a-radio",{attrs:{value:1}},[t._v(" 是 ")]),n("a-radio",{attrs:{value:2}},[t._v(" 否 ")])],1)],1)],1)],1)],1)},b=[],y=n("5530"),x=n("3835"),k=n("2909"),E=(n("4ec9"),n("d3b7"),n("3ca3"),n("ddb0"),n("13d5"),new Map([[1,"观看直播"],[2,"邀请好友观看直播"],[3,"听指定的书"],[4,"邀请好友听书"],[5,"分享好书"],[6,"完善个人信息"],[7,"绑定微信"],[8,"邀请好友页面"]])),I={props:{visible:{type:Boolean,default:!1},record:{type:Object,default:function(){return{}}}},computed:{recordId:function(){return this.record.id}},watch:{visible:function(t){t&&this.setCountVal()}},data:function(){return{targetTypeMap:E,targetTypeList:[],selectVisible:!1,labelCol:{span:6},wrapperCol:{span:14},rules:{count:[{required:!0,message:"请设置合理的积分",min:1,type:"number",trigger:["blur","change"]}],version:[{required:!0,message:"请输入生效版本号",trigger:["blur","change"]}]}}},created:function(){this.targetTypeList=this.getMapToArr(E)},methods:{onCancel:function(){this.record=this.$options.propsData.record,this.$emit("cancel")},getMapToArr:function(t){var e=Object(k["a"])(t.entries()).reduce((function(t,e){var n=Object(x["a"])(e,2),r=n[0],a=n[1];return t.push({key:r,value:a}),t}),[]);return e},handleOk:function(){var t=this;this.$refs.ruleForm.validate(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(n){var r,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=10;break}return r=Object(y["a"])({},t.record),e.next=4,Object(l["d"])(r);case 4:if(a=e.sent,i=a.code,200===i){e.next=8;break}return e.abrupt("return");case 8:t.$message.success("修改成功"),t.$emit("ok",t.record);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},setCountVal:function(){var t=this.$options.propsData.record,e=0;1===this.record.creditType?(e=this.record.credit,this.record.creditStart=t.creditStart,this.record.creditEnd=t.creditEnd):(this.record.credit=t.credit,e=0===this.record.creditStart||0===this.record.creditEnd||this.record.creditStart>this.record.creditEnd?0:this.record.creditStart),this.$set(this.record,"count",e)}}},S=I,w=Object(g["a"])(S,v,b,!1,null,null,null),C=w.exports,R=n("b893"),O={name:"IntegralConfig",components:{MyPagination:c["a"],IntegralList:h,EditIntegralConfig:C},data:function(){return{operation:{edit:!1,disabled:!1},tableLoading:!1,TaskListColumns:o["b"],tabledData:[],total:0,pageNo:1,pageSize:20,taskListModal:!1,editModal:!1,curRecord:{},selectIds:[]}},created:function(){this.operation.add=!!Object(R["a"])("addIntegralConfig"),this.operation.edit=!!Object(R["a"])("editIntegralConfig"),this.fetchData()},methods:{fetchData:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var n,r,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.tableLoading=!0,n={pageNo:t.pageNo,pageSize:100},e.next=4,Object(l["f"])(n);case 4:if(r=e.sent,a=r.code,i=r.data,t.tableLoading=!1,200===a){e.next=10;break}return e.abrupt("return");case 10:t.tabledData=i.data,t.total=i.count,t.selectIds=i.data.map((function(t){return t.taskId}));case 13:case"end":return e.stop()}}),e)})))()},selectTask:function(){this.pageNo=1,this.fetchData(),this.taskListModal=!1},paginationCallBack:function(t,e){this.pageNo=t,this.pageSize=e,this.fetchData()},editClick:function(t){this.curRecord=Object.assign({},t),this.editModal=!0},onEdit:function(){this.editModal=!1,this.pageNo=1,this.fetchData()}}},_=O,T=(n("99ae"),Object(g["a"])(_,r,a,!1,null,"f2cf8dfe",null));e["default"]=T.exports},fdb4:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"f",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"e",(function(){return c})),n.d(e,"g",(function(){return u})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return d}));var r=n("284b"),a=function(t){return r["a"].post("/adminv2/shoptask/addTaskConfig",t)},i=function(t){return r["a"].post("/adminv2/shoptask/taskConfigLists",t)},o=function(t){return r["a"].post("/adminv2/shoptask/editTaskConfig",t)},c=function(t){return r["a"].post("/adminv2/credit/list",t)},u=function(t){return r["a"].post("/adminv2/credit/status",t)},s=function(t){return r["a"].post("/adminv2/credit/changeRecord",t)},d=function(t){return r["a"].post("/adminv2/credit/change",t)}}}]); //# sourceMappingURL=chunk-557b970f.ca67aa78.js.map