You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
14 KiB
1 lines
14 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d69c0a5a"],{"0b65":function(t,e,n){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,n=new Date;n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[n,e])}},{text:"昨天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()))),t.$emit("pick",[n,e])}},{text:"最近7天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近30天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:"本月",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[n,e])}},{text:"本年",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[n,e])}}]}},"325d":function(t,e,n){"use strict";n("740e")},"740e":function(t,e,n){},b7be:function(t,e,n){"use strict";n.d(e,"gb",(function(){return o})),n.d(e,"fb",(function(){return a})),n.d(e,"bb",(function(){return i})),n.d(e,"ab",(function(){return u})),n.d(e,"Z",(function(){return c})),n.d(e,"cb",(function(){return s})),n.d(e,"db",(function(){return l})),n.d(e,"eb",(function(){return d})),n.d(e,"N",(function(){return f})),n.d(e,"I",(function(){return g})),n.d(e,"J",(function(){return p})),n.d(e,"L",(function(){return m})),n.d(e,"K",(function(){return b})),n.d(e,"W",(function(){return h})),n.d(e,"H",(function(){return v})),n.d(e,"o",(function(){return w})),n.d(e,"u",(function(){return y})),n.d(e,"m",(function(){return k})),n.d(e,"l",(function(){return _})),n.d(e,"n",(function(){return D})),n.d(e,"X",(function(){return x})),n.d(e,"Y",(function(){return F})),n.d(e,"pb",(function(){return L})),n.d(e,"r",(function(){return C})),n.d(e,"q",(function(){return T})),n.d(e,"v",(function(){return $})),n.d(e,"a",(function(){return z})),n.d(e,"ob",(function(){return S})),n.d(e,"lb",(function(){return O})),n.d(e,"nb",(function(){return j})),n.d(e,"kb",(function(){return M})),n.d(e,"mb",(function(){return V})),n.d(e,"hb",(function(){return P})),n.d(e,"qb",(function(){return Y})),n.d(e,"p",(function(){return I})),n.d(e,"t",(function(){return W})),n.d(e,"s",(function(){return E})),n.d(e,"F",(function(){return J})),n.d(e,"x",(function(){return q})),n.d(e,"A",(function(){return B})),n.d(e,"B",(function(){return H})),n.d(e,"z",(function(){return K})),n.d(e,"C",(function(){return N})),n.d(e,"G",(function(){return A})),n.d(e,"E",(function(){return G})),n.d(e,"D",(function(){return Q})),n.d(e,"w",(function(){return R})),n.d(e,"y",(function(){return U})),n.d(e,"M",(function(){return X})),n.d(e,"V",(function(){return Z})),n.d(e,"U",(function(){return tt})),n.d(e,"jb",(function(){return et})),n.d(e,"T",(function(){return nt})),n.d(e,"rb",(function(){return rt})),n.d(e,"S",(function(){return ot})),n.d(e,"Q",(function(){return at})),n.d(e,"R",(function(){return it})),n.d(e,"ib",(function(){return ut})),n.d(e,"O",(function(){return ct})),n.d(e,"f",(function(){return st})),n.d(e,"e",(function(){return lt})),n.d(e,"d",(function(){return dt})),n.d(e,"c",(function(){return ft})),n.d(e,"b",(function(){return gt})),n.d(e,"P",(function(){return pt})),n.d(e,"k",(function(){return mt})),n.d(e,"i",(function(){return bt})),n.d(e,"h",(function(){return ht})),n.d(e,"j",(function(){return vt})),n.d(e,"g",(function(){return wt}));var r=n("0c6d");function o(t){return r["a"].get("/store/coupon/platformLst",t)}function a(t){return r["a"].get("/store/coupon/update/".concat(t,"/form"))}function i(t){return r["a"].get("/store/coupon/show/".concat(t))}function u(t){return r["a"].delete("store/coupon/delete/".concat(t))}function c(t){return r["a"].get("/store/coupon/sys/clone/".concat(t,"/form"))}function s(t){return r["a"].get("store/coupon/sys/issue",t)}function l(t,e){return r["a"].get("store/coupon/show_lst/".concat(t),e)}function d(t){return r["a"].get("/store/coupon/send/lst",t)}function f(t){return r["a"].post("store/coupon/send",t)}function g(t){return r["a"].get("store/coupon/detail/".concat(t))}function p(t){return r["a"].get("store/coupon/lst",t)}function m(t,e){return r["a"].post("store/coupon/status/".concat(t),{status:e})}function b(){return r["a"].get("store/coupon/create/form")}function h(t){return r["a"].get("store/coupon/issue",t)}function v(t){return r["a"].delete("store/coupon/delete/".concat(t))}function w(t){return r["a"].get("broadcast/room/lst",t)}function y(t,e){return r["a"].post("broadcast/room/status/".concat(t),e)}function k(t){return r["a"].delete("broadcast/room/delete/".concat(t))}function _(t){return r["a"].get("broadcast/room/apply/form/".concat(t))}function D(t){return r["a"].get("broadcast/room/detail/".concat(t))}function x(t,e){return r["a"].post("broadcast/room/feedsPublic/".concat(t),{status:e})}function F(t,e){return r["a"].post("broadcast/room/comment/".concat(t),{status:e})}function L(t,e){return r["a"].post("broadcast/room/closeKf/".concat(t),{status:e})}function C(t){return r["a"].get("broadcast/goods/lst",t)}function T(t){return r["a"].get("broadcast/goods/detail/".concat(t))}function $(t,e){return r["a"].post("broadcast/goods/status/".concat(t),e)}function z(t){return r["a"].get("broadcast/goods/apply/form/".concat(t))}function S(){return r["a"].get("seckill/config/create/form")}function O(t){return r["a"].get("seckill/config/lst",t)}function j(t){return r["a"].get("seckill/config/update/".concat(t,"/form"))}function M(t){return r["a"].delete("seckill/config/delete/".concat(t))}function V(t,e){return r["a"].post("seckill/config/status/".concat(t),{status:e})}function P(t,e){return r["a"].get("seckill/product/detail/".concat(t),e)}function Y(t,e){return r["a"].get("broadcast/room/goods/".concat(t),e)}function I(t){return r["a"].delete("broadcast/goods/delete/".concat(t))}function W(t,e){return r["a"].post("broadcast/room/sort/".concat(t),e)}function E(t,e){return r["a"].post("broadcast/goods/sort/".concat(t),e)}function J(t){return r["a"].post("config/others/group_buying",t)}function q(){return r["a"].get("config/others/group_buying")}function B(t){return r["a"].get("store/product/group/lst",t)}function H(t){return r["a"].get("store/product/group/get/".concat(t))}function K(t){return r["a"].get("store/product/group/detail/".concat(t))}function N(t){return r["a"].post("store/product/group/status",t)}function A(t,e){return r["a"].post("store/product/group/is_show/".concat(t),{status:e})}function G(t){return r["a"].get("store/product/group/get/".concat(t))}function Q(t,e){return r["a"].post("store/product/group/update/".concat(t),e)}function R(t){return r["a"].get("store/product/group/buying/lst",t)}function U(t,e){return r["a"].get("store/product/group/buying/detail/".concat(t),e)}function X(t,e){return r["a"].get("store/coupon/product/".concat(t),e)}function Z(){return r["a"].get("user/integral/title")}function tt(t){return r["a"].get("user/integral/lst",t)}function et(t){return r["a"].get("user/integral/excel",t)}function nt(){return r["a"].get("user/integral/config")}function rt(t){return r["a"].post("user/integral/config",t)}function ot(t){return r["a"].get("discounts/lst",t)}function at(t,e){return r["a"].post("discounts/status/".concat(t),{status:e})}function it(t){return r["a"].get("discounts/detail/".concat(t))}function ut(t){return r["a"].get("marketing/spu/lst",t)}function ct(t){return r["a"].post("activity/atmosphere/create",t)}function st(t,e){return r["a"].post("activity/atmosphere/update/".concat(t),e)}function lt(t){return r["a"].get("activity/atmosphere/lst",t)}function dt(t){return r["a"].get("activity/atmosphere/detail/".concat(t))}function ft(t,e){return r["a"].post("activity/atmosphere/status/".concat(t),{status:e})}function gt(t){return r["a"].delete("activity/atmosphere/delete/".concat(t))}function pt(t){return r["a"].post("activity/border/create",t)}function mt(t,e){return r["a"].post("activity/border/update/".concat(t),e)}function bt(t){return r["a"].get("activity/border/lst",t)}function ht(t){return r["a"].get("activity/border/detail/".concat(t))}function vt(t,e){return r["a"].post("activity/border/status/".concat(t),{status:e})}function wt(t){return r["a"].delete("activity/border/delete/".concat(t))}},e4c5: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:"divBox"},[n("el-card",{staticClass:"box-card mb20"},[n("div",{staticClass:"container"},[n("el-form",{ref:"tableFrom",attrs:{model:t.tableFrom,size:"small","label-width":"90px",inline:!0}},[n("el-form-item",{attrs:{label:"创建时间:",prop:"date"}},[n("el-date-picker",{staticClass:"selWidth",attrs:{"value-format":"yyyy/MM/dd",align:"right","unlink-panels":"",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"活动状态:",prop:"status"}},[n("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[n("el-option",{attrs:{label:"未开始",value:0}}),t._v(" "),n("el-option",{attrs:{label:"进行中",value:1}}),t._v(" "),n("el-option",{attrs:{label:"已结束",value:-1}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"活动搜索:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入活动名称/关键字",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("查询")]),t._v(" "),n("el-button",{attrs:{size:"small"},on:{click:function(e){return t.reset("tableFrom")}}},[t._v("重置")])],1)],1)],1),t._v(" "),n("router-link",{attrs:{to:{path:t.roterPre+"/marketing/border/add"}}},[n("el-button",{attrs:{size:"small",type:"primary"}},[t._v("添加活动边框")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"mt20",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[n("el-table-column",{attrs:{prop:"activity_id",label:"ID","min-width":"50"}}),t._v(" "),n("el-table-column",{attrs:{prop:"activity_name",label:"活动名称","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{"min-width":"100",label:"活动边框"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.pic}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"200",label:"活动日期"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("div",[t._v("\n "+t._s(r.start_time)+" - "+t._s(r.end_time)+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"活动状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[0==r.status?n("el-tag",{attrs:{type:"danger"}},[t._v("未开始")]):t._e(),t._v(" "),1==r.status?n("el-tag",[t._v("进行中")]):t._e(),t._v(" "),-1==r.status?n("el-tag",{attrs:{type:"info"}},[t._v("已结束")]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"是否开启","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},nativeOn:{click:function(n){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_show,callback:function(n){t.$set(e.row,"is_show",n)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("router-link",{attrs:{to:{path:t.roterPre+"/marketing/border/add/"+e.row.activity_id}}},[n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("编辑")])],1),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleDelete(e.row.activity_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},o=[],a=n("b7be"),i=n("83d6"),u=n("0b65"),c={name:"HoneyList",components:{},data:function(){return{props:{multiple:!1,emitPath:!1},Loading:!1,dialogVisible:!1,roterPre:i["roterPre"],listLoading:!0,receiveType:0,id:"",categoryList:[],labelList:[],tableData:{data:[],total:0},tableFrom:{page:1,limit:20,keyword:"",status:"",date:""},type:0,isShow:!1,pickerOptions:u["a"],timeVal:[]}},mounted:function(){this.getList(1)},methods:{onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):""},reset:function(t){this.timeVal=[],this.tableFrom={page:1,limit:20,keyword:"",status:"",date:""},this.getList("")},handleDelete:function(t,e){var n=this;this.$modalSureDelete("删除活动后将无法恢复,请谨慎操作!").then((function(){Object(a["g"])(t).then((function(t){var e=t.message;n.$message.success(e),n.getList("")})).catch((function(t){var e=t.message;n.$message.error(e)}))}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(a["i"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},onchangeIsShow:function(t){var e=this;Object(a["j"])(t.activity_id,t.is_show).then((function(t){var n=t.message;e.$message.success(n),e.getList("")})).catch((function(t){var n=t.message;e.$message.error(n)}))}}},s=c,l=(n("325d"),n("2877")),d=Object(l["a"])(s,r,o,!1,null,"230b837e",null);e["default"]=d.exports}}]); |