| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["activity"],{"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"1d96":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"web_active","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[r("div",{staticClass:"crm_search"},[r("el-form",{ref:"form",attrs:{"label-position":"",model:e.search,"label-width":""}},[r("el-row",[r("el-col",{attrs:{span:24,md:24,lg:24}},[r("el-form-item",{staticStyle:{"margin-right":"10px"}},[r("el-select",{staticClass:"crm_search_down_special crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.search.tag,callback:function(t){e.$set(e.search,"tag",t)},expression:"search.tag"}},[r("el-option",{attrs:{label:e.$t("Web_info.All"),value:""},nativeOn:{click:function(t){return e.toSearch(t)}}}),r("el-option",{attrs:{label:e.$t("Label.Ib"),value:2},nativeOn:{click:function(t){return e.toSearch(t)}}}),r("el-option",{attrs:{label:e.$t("Label.Customer"),value:1},nativeOn:{click:function(t){return e.toSearch(t)}}})],1)],1),r("el-form-item",[r("el-date-picker",{staticClass:"crm_date_pick crm-border-radius-no",attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"-",size:"small","start-placeholder":e.$t("Placeholder.Start"),"end-placeholder":e.$t("Placeholder.End")},on:{input:e.getSearchDate},model:{value:e.search.date,callback:function(t){e.$set(e.search,"date",t)},expression:"search.date"}}),r("el-button",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.toSearch}})],1)],1)],1),e.display["R-Activity-Add"].show?r("el-form-item",[r("div",{staticClass:"search_action_btn"},[r("span",{staticClass:"crm-cursor",on:{click:e.toNew}},[r("i",{staticClass:"el-icon-plus"}),r("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Add",expression:"'Btn.Add'"}]})])])]):e._e()],1)],1),r("el-row",{staticClass:"activity-list"},e._l(e.mock_tableData,(function(t,n){return r("el-col",{key:n,staticClass:"active-box",attrs:{span:8}},[r("div",{staticClass:"box"},[r("div",{staticClass:"box-img"},[r("img",{attrs:{src:e.imgUrl+t.coverImage,alt:""}})]),r("div",{staticClass:"box-title"},[r("div",{staticClass:"title crm-one-font"},[e._v(e._s(t.title))]),r("div",[e._v(e._s(t.deliveryTime.split(" ")[0]))])]),r("div",{staticClass:"box-des"},[r("div",{staticClass:"crm-tow-font"},[e._v(e._s(t.subTitle))])]),r("div",{staticClass:"box-tag"},[r("div",[r("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Tag",expression:"'Label.Tag'"}]}),e._v(": "),e._l(t.tags,(function(t,n){return r("el-tag",{key:n,attrs:{type:"info"}},[1==t.tag?r("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Customer",expression:"'Label.Customer'"}]}):e._e(),2==t.tag?r("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Ib",expression:"'Label.Ib'"}]}):e._e()])}))],2),r("div",{staticClass:"number"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Participation",expression:"'Label.Participation'"}]}),e._v(":"+e._s(t.number?t.number:"0"))])]),r("div",{staticClass:"box-btn"},[r("div",{staticClass:"crm_table_btn"},[e.display["R-Activity-Update"].show?r("span",{staticClass:"crm-cursor",on:{click:function(r){return e.toUpdate(t.id)}}},[r("i",{staticClass:"el-icon-edit"})]):e._e(),e.display["R-Activity-Delete"].show?r("span",{staticClass:"crm-cursor",on:{click:function(r){return e.toDelete(t.id)}}},[r("i",{staticClass:"el-icon-delete"})]):e._e(),r("span",{staticClass:"crm-cursor",on:{click:function(r){return e.toCheck(t.id)}}},[r("i",{staticClass:"el-icon-view"})])])])])])})),1),e.pagerInfo.rowTotal?r("div",{staticClass:"crm_pagination"},[r("div",{staticClass:"crm_page_total"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),r("span",[e._v(e._s(e.pagerInfo.rowTotal))]),r("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),r("el-pagination",{staticClass:"page",attrs:{background:"",layout:"sizes, prev, pager, next","page-sizes":[10,20,50,100],"page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e()],1)},a=[],i=(r("ac1f"),r("841c"),r("5530")),s=(r("96cf"),r("1da1")),c=r("c554"),o=r("f121"),u=r.n(o),l=u.a.Code,p={name:"Activity",data:function(){return{pictLoading:!1,imgUrl:u.a.Host85,mock_tableData:[],search:{valid:"",hot:"",tag:"",lang:"",date:[],startDate:"",endDate:""},pagerInfo:{row:6,current:1,pageTotal:0,rowTotal:0}}},computed:{display:function(){return JSON.parse(this.Session.Get("display",!0))}},methods:{searchFunc:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,e.display["R-Activity-Search"].show){t.next=5;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 5:return null==e.search.date||0==e.search.date.length?(e.search.startDate="",e.search.endDate=""):(e.search.startDate=e.search.date[0],e.search.endDate=e.search.date[1]),e.search.lang=e.Session.Get("lang"),t.next=9,c["a"].getActiveList(Object(i["a"])(Object(i["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 9:r=t.sent,r.code==l.StatusOK?(e.mock_tableData=r.data,null!=r.page?(e.pagerInfo.rowTotal=r.page.rowTotal,e.pagerInfo.pageTotal=r.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess"))):e.$pigeon.MessageError(r.msg),e.pictLoading=!1;case 12:case"end":return t.stop()}}),t)})))()},getSearchDate:function(e){this.search.date=e},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},toNew:function(){this.$router.push({path:"/web/activityadd",query:{type:"add"}}).catch((function(e){return e}))},toCheck:function(e){this.$router.push({path:"/web/activityadd",query:{id:e,type:"check"}}).catch((function(e){return e}))},toUpdate:function(e){this.$router.push({path:"/web/activityadd",query:{id:e,type:"update"}}).catch((function(e){return e}))},toDelete:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=this,this.$pigeon.MessageConfirm(this.$i18n.t("Msg.Delete"),this.$i18n.t("Msg.SystemPrompt"),this.$i18n.t("Btn.Confirm"),this.$i18n.t("Btn.Cancel"),Object(s["a"])(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[],n.push(t),e.next=4,c["a"].webActiveDelete({ids:n});case 4:a=e.sent,a.code==l.StatusOK?(r.$pigeon.MessageOK(r.$i18n.t("Msg.DeleteSuccess")),r.searchFunc()):r.$pigeon.MessageError(a.msg);case 6:case"end":return e.stop()}}),e)}))),(function(){}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getDate:function(){var e,t,r=2,n=(new Date).getTimezoneOffset(),a=(new Date).getTime(),i=new Date(a+60*n*1e3+60*r*60*1e3),s=i.getFullYear(),c=i.getMonth()+1,o=i.getDate();c<10&&(c="0"+c),o<10&&(o="0"+o),e=s+"-"+c+"-01";var u=i.getMonth(),l=++u,p=new Date(i.getFullYear(),l,1),h=864e5,d=new Date(p-h),v=d.getDate();v<10&&(v="0"+v),t=s+"-"+c+"-"+v,this.search.date=[e,t]},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()}},mounted:function(){this.searchFunc()}},h=p,d=(r("2066"),r("4332"),r("2877")),v=Object(d["a"])(h,n,a,!1,null,"531e3c5f",null);t["default"]=v.exports},2066:function(e,t,r){"use strict";var n=r("43ce"),a=r.n(n);a.a},4332:function(e,t,r){"use strict";var n=r("be72"),a=r.n(n);a.a},"43ce":function(e,t,r){},"841c":function(e,t,r){"use strict";var n=r("d784"),a=r("825a"),i=r("1d80"),s=r("129f"),c=r("14c3");n("search",1,(function(e,t,r){return[function(t){var r=i(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](String(r))},function(e){var n=r(t,e,this);if(n.done)return n.value;var i=a(e),o=String(this),u=i.lastIndex;s(u,0)||(i.lastIndex=0);var l=c(i,o);return s(i.lastIndex,u)||(i.lastIndex=u),null===l?-1:l.index}]}))},be72:function(e,t,r){},c554:function(e,t,r){"use strict";r("96cf");var n=r("1da1"),a=r("d4ec"),i=r("bee2"),s=r("262e"),c=r("2caf"),o=r("ff2d"),u=r("bc3a"),l=r.n(u),p=r("f121"),h=r.n(p),d=function(e){Object(s["a"])(r,e);var t=Object(c["a"])(r);function r(){var e;return Object(a["a"])(this,r),e=t.call(this),l.a.defaults.baseURL=h.a.Host85,e}return Object(i["a"])(r,[{key:"getList",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/information/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getSingle",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/information/search/single",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webInfoAdd",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/information/add",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webInfoDelete",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/information/delete",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webInfoUpdate",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/information/update",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getActiveList",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getActiveSingle",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/search/single",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webActiveAdd",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/add",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webActiveDelete",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/delete",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webActiveUpdate",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/activity/update",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"customGroupTypeList",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/custom/group/type/list",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getVideoList",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/video/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getVideoSingle",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/video/search/single",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webVideoAdd",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/video/add",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webVideoDelete",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/video/delete",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"webVideoUpdate",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/web/video/update",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),r}(o["a"]);t["a"]=new d}}]);
|