chunk-06bb51f1.dd25af29.js 9.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06bb51f1"],{"09f4":function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),Math.easeInOutQuad=function(t,e,r,a){return t/=a/2,t<1?r/2*t*t+e:(t--,-r/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function n(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,r){var o=i(),s=t-o,c=20,u=0;e="undefined"===typeof e?500:e;var l=function t(){u+=c;var i=Math.easeInOutQuad(u,o,s,e);n(i),u<e?a(t):r&&"function"===typeof r&&r()};l()}},"6be9":function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"m-container"},[t._m(0),t._v(" "),r("div",{staticClass:"m-core"},[r("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(){t.operationType="create",t.marketVisible=!0}}},[t._v("添加营销活动")]),t._v(" "),r("save-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[r("el-form-item",{attrs:{prop:"search"}},[r("el-input",{attrs:{clearable:"",placeholder:"活动名称/活动编号"},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search",e)},expression:"searchForm.search"}})],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"primary"}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"danger"}},[t._v("重置")])],1)],1),t._v(" "),r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[r("el-table-column",{attrs:{align:"center",prop:"id",label:"营销活动编号",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("copy-text",[t._v(t._s(e.row.id))])],1)]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"name",label:"活动名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("copy-text",[t._v(t._s(e.row.name))])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"activityIds",label:"关联活动方案"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.activityIds)+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",width:"180px",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.onUpdate(e.row)}}},[t._v("修改")]),t._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.lookDetail(e.row)}}},[t._v("详情")])]}}])})],1),t._v(" "),r("pagination",{attrs:{sync:"",total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:total":function(e){return t.$set(t.rules,"total",e)},"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.FetchList}})],1),t._v(" "),t.marketVisible?r("el-dialog",{attrs:{title:("create"==t.operationType?"添加":"修改")+"营销活动",visible:t.marketVisible,width:"550px"},on:{"update:visible":function(e){t.marketVisible=e}}},[r("market-form",{attrs:{marketId:t.marketId,operationType:t.operationType},on:{submited:t.FetchList,close:function(e){t.marketVisible=!1}}})],1):t._e()],1)},n=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("h2",[r("div",{staticClass:"squrt"}),t._v("\n 营销活动\n ")])}],i=r("c7eb"),o=r("5530"),s=(r("96cf"),r("1da1")),c=r("adb2"),u=r("333d"),l=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},["update"==t.type?r("el-form-item",{attrs:{prop:"activeId",label:"营销活动编号"}},[r("el-input",{attrs:{placeholder:"请输入营销活动编号",disabled:""},model:{value:t.form.activeId,callback:function(e){t.$set(t.form,"activeId",e)},expression:"form.activeId"}})],1):t._e(),t._v(" "),r("el-form-item",{attrs:{prop:"name",label:"活动名称",rules:[{required:!0,message:"请输入活动名称"}]}},[r("el-input",{attrs:{placeholder:"请输入活动名称"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"关联活动方案",prop:"activityIds",rules:[{required:!0,message:"请输入关联活动方案"}]}},[r("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",maxlength:"300",autosize:{minRows:5},placeholder:"请输入关联活动方案(多个活动以英文“,”分割)"},model:{value:t.form.activityIds,callback:function(e){t.$set(t.form,"activityIds","string"===typeof e?e.trim():e)},expression:"form.activityIds"}})],1),t._v(" "),r("div",{staticStyle:{"text-align":"right"}},[r("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")]),t._v(" "),r("el-button",{on:{click:t.$listeners.close}},[t._v("取消")])],1)],1)],1)},p=[],d=(r("7f7f"),r("c5f6"),r("61f7"),r("c104")),m={props:{operationType:{type:String,default:"create"},marketId:{type:Number||String,default:null}},data:function(){return{form:{activeId:null,name:null,activityIds:null}}},computed:{type:function(){return this.operationType}},mounted:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e,r;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log(this.type,this.marketId),"update"!=this.type||!this.marketId){t.next=12;break}return t.prev=2,t.next=5,Object(d["e"])({id:this.marketId});case 5:e=t.sent,r=e.data,this.form={activeId:r.id,name:r.name,activityIds:r.activityIds},t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](2);case 12:case"end":return t.stop()}}),t,this,[[2,10]])})));function e(){return t.apply(this,arguments)}return e}(),methods:{submit:function(){var t=this;this.$refs.form.validate(function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(r){var a;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(console.log(r),r){e.next=3;break}return e.abrupt("return");case 3:if(e.prev=3,a=t.form,"create"!=t.type){e.next=11;break}return e.next=8,Object(d["d"])({name:a.name,activityIds:a.activityIds});case 8:t.$message.success("添加营销活动成功"),e.next=16;break;case 11:if("update"!=t.type){e.next=16;break}return console.log("join"),e.next=15,Object(d["g"])({id:t.marketId,name:a.name,activityIds:a.activityIds});case 15:t.$message.success("修改营销活动成功");case 16:t.$listeners.submited(),t.$listeners.close(),e.next=22;break;case 20:e.prev=20,e.t0=e["catch"](3);case 22:case"end":return e.stop()}}),e,null,[[3,20]])})));return function(t){return e.apply(this,arguments)}}())}}},f=m,b=r("2877"),v=Object(b["a"])(f,l,p,!1,null,null,null),h=v.exports,y={components:{saveForm:c["a"],pagination:u["a"],marketForm:h},data:function(){return{operationType:"create",marketVisible:!1,marketId:null,searchForm:{search:null,activityIds:null},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tableList:[]}},mounted:function(){this.FetchList()},methods:{search:function(){this.rules.page=1,this.FetchList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.rules.page=1,this.FetchList()},FetchList:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(d["f"])(Object(o["a"])(Object(o["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit}));case 3:e=t.sent,this.tableList=e.data.rows||[],this.rules.total=e.data.total,t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](0);case 10:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}(),onUpdate:function(t){this.marketId=t.id,this.operationType="update",this.marketVisible=!0},lookDetail:function(t){1==t.id?this.$router.push("/2021memeberActionManager"):2==t.id?this.$router.push("/2021double11List"):3==t.id?this.$router.push("/2021double11List?year=2022"):4==t.id&&this.$router.push("/2021double11List?year=2022&city=hz")}}},k=y,g=Object(b["a"])(k,a,n,!1,null,null,null);e["default"]=g.exports},c104:function(t,e,r){"use strict";r.d(e,"d",(function(){return n})),r.d(e,"g",(function(){return i})),r.d(e,"e",(function(){return o})),r.d(e,"f",(function(){return s})),r.d(e,"b",(function(){return c})),r.d(e,"a",(function(){return u})),r.d(e,"c",(function(){return l}));var a=r("829b");function n(t){return Object(a["a"])({url:"/api-web/marketActivity/add",method:"post",data:t,requestType:"form"})}function i(t){return Object(a["a"])({url:"/api-web/marketActivity/update",method:"post",data:t,requestType:"form"})}function o(t){return Object(a["a"])({url:"/api-web/marketActivity/get",method:"get",params:t})}function s(t){return Object(a["a"])({url:"/api-web/marketActivity/queryPage",method:"get",params:t})}function c(t){return Object(a["a"])({url:"/api-web/vipGroupActivity/organDoubleEleven2021Statis",method:"get",params:t})}function u(t){return Object(a["a"])({url:"/api-web/vipGroupActivity/doubleEleven2021OrderDetail",method:"get",params:t})}function l(t){return Object(a["a"])({url:"/api-web/vipGroupActivity/organDoubleEleven2022Statis",method:"get",params:t})}}}]);