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
15 KiB
1 lines
15 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-456b6f66"],{1385:function(t,n,e){},"445a":function(t,n,e){"use strict";e("1385")},b7be:function(t,n,e){"use strict";e.d(n,"Ob",(function(){return o})),e.d(n,"Nb",(function(){return u})),e.d(n,"Jb",(function(){return c})),e.d(n,"Ib",(function(){return a})),e.d(n,"Hb",(function(){return i})),e.d(n,"Kb",(function(){return s})),e.d(n,"Lb",(function(){return d})),e.d(n,"Mb",(function(){return f})),e.d(n,"W",(function(){return l})),e.d(n,"R",(function(){return p})),e.d(n,"S",(function(){return g})),e.d(n,"U",(function(){return b})),e.d(n,"T",(function(){return m})),e.d(n,"Bb",(function(){return h})),e.d(n,"Q",(function(){return v})),e.d(n,"x",(function(){return y})),e.d(n,"D",(function(){return _})),e.d(n,"v",(function(){return w})),e.d(n,"u",(function(){return k})),e.d(n,"w",(function(){return x})),e.d(n,"Cb",(function(){return L})),e.d(n,"Db",(function(){return C})),e.d(n,"Yb",(function(){return S})),e.d(n,"A",(function(){return F})),e.d(n,"z",(function(){return $})),e.d(n,"E",(function(){return z})),e.d(n,"i",(function(){return D})),e.d(n,"Xb",(function(){return j})),e.d(n,"Ub",(function(){return O})),e.d(n,"Wb",(function(){return I})),e.d(n,"Tb",(function(){return V})),e.d(n,"Vb",(function(){return E})),e.d(n,"Qb",(function(){return J})),e.d(n,"Zb",(function(){return P})),e.d(n,"y",(function(){return W})),e.d(n,"C",(function(){return B})),e.d(n,"B",(function(){return K})),e.d(n,"O",(function(){return N})),e.d(n,"G",(function(){return T})),e.d(n,"J",(function(){return U})),e.d(n,"K",(function(){return X})),e.d(n,"I",(function(){return q})),e.d(n,"L",(function(){return A})),e.d(n,"P",(function(){return H})),e.d(n,"N",(function(){return M})),e.d(n,"M",(function(){return Q})),e.d(n,"F",(function(){return R})),e.d(n,"H",(function(){return Y})),e.d(n,"V",(function(){return Z})),e.d(n,"nb",(function(){return G})),e.d(n,"mb",(function(){return tt})),e.d(n,"Sb",(function(){return nt})),e.d(n,"fb",(function(){return et})),e.d(n,"cc",(function(){return rt})),e.d(n,"cb",(function(){return ot})),e.d(n,"ab",(function(){return ut})),e.d(n,"bb",(function(){return ct})),e.d(n,"Rb",(function(){return at})),e.d(n,"X",(function(){return it})),e.d(n,"o",(function(){return st})),e.d(n,"n",(function(){return dt})),e.d(n,"m",(function(){return ft})),e.d(n,"l",(function(){return lt})),e.d(n,"k",(function(){return pt})),e.d(n,"Y",(function(){return gt})),e.d(n,"t",(function(){return bt})),e.d(n,"r",(function(){return mt})),e.d(n,"q",(function(){return ht})),e.d(n,"s",(function(){return vt})),e.d(n,"p",(function(){return yt})),e.d(n,"ib",(function(){return _t})),e.d(n,"gb",(function(){return wt})),e.d(n,"kb",(function(){return kt})),e.d(n,"hb",(function(){return xt})),e.d(n,"jb",(function(){return Lt})),e.d(n,"Z",(function(){return Ct})),e.d(n,"zb",(function(){return St})),e.d(n,"yb",(function(){return Ft})),e.d(n,"wb",(function(){return $t})),e.d(n,"Ab",(function(){return zt})),e.d(n,"eb",(function(){return Dt})),e.d(n,"vb",(function(){return jt})),e.d(n,"xb",(function(){return Ot})),e.d(n,"ub",(function(){return It})),e.d(n,"qb",(function(){return Vt})),e.d(n,"sb",(function(){return Et})),e.d(n,"rb",(function(){return Jt})),e.d(n,"lb",(function(){return Pt})),e.d(n,"db",(function(){return Wt})),e.d(n,"ob",(function(){return Bt})),e.d(n,"tb",(function(){return Kt})),e.d(n,"pb",(function(){return Nt})),e.d(n,"a",(function(){return Tt})),e.d(n,"ac",(function(){return Ut})),e.d(n,"d",(function(){return Xt})),e.d(n,"f",(function(){return qt})),e.d(n,"c",(function(){return At})),e.d(n,"j",(function(){return Ht})),e.d(n,"b",(function(){return Mt})),e.d(n,"h",(function(){return Qt})),e.d(n,"e",(function(){return Rt})),e.d(n,"g",(function(){return Yt}));var r=e("0c6d");function o(t){return r["a"].get("/store/coupon/platformLst",t)}function u(t){return r["a"].get("/store/coupon/update/".concat(t,"/form"))}function c(t){return r["a"].get("/store/coupon/show/".concat(t))}function a(t){return r["a"].delete("store/coupon/delete/".concat(t))}function i(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 d(t,n){return r["a"].get("store/coupon/show_lst/".concat(t),n)}function f(t){return r["a"].get("/store/coupon/send/lst",t)}function l(t){return r["a"].post("store/coupon/send",t)}function p(t){return r["a"].get("store/coupon/detail/".concat(t))}function g(t){return r["a"].get("store/coupon/lst",t)}function b(t,n){return r["a"].post("store/coupon/status/".concat(t),{status:n})}function m(){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 y(t){return r["a"].get("broadcast/room/lst",t)}function _(t,n){return r["a"].post("broadcast/room/status/".concat(t),n)}function w(t){return r["a"].delete("broadcast/room/delete/".concat(t))}function k(t){return r["a"].get("broadcast/room/apply/form/".concat(t))}function x(t){return r["a"].get("broadcast/room/detail/".concat(t))}function L(t,n){return r["a"].post("broadcast/room/feedsPublic/".concat(t),{status:n})}function C(t,n){return r["a"].post("broadcast/room/comment/".concat(t),{status:n})}function S(t,n){return r["a"].post("broadcast/room/closeKf/".concat(t),{status:n})}function F(t){return r["a"].get("broadcast/goods/lst",t)}function $(t){return r["a"].get("broadcast/goods/detail/".concat(t))}function z(t,n){return r["a"].post("broadcast/goods/status/".concat(t),n)}function D(t){return r["a"].get("broadcast/goods/apply/form/".concat(t))}function j(){return r["a"].get("seckill/config/create/form")}function O(t){return r["a"].get("seckill/config/lst",t)}function I(t){return r["a"].get("seckill/config/update/".concat(t,"/form"))}function V(t){return r["a"].delete("seckill/config/delete/".concat(t))}function E(t,n){return r["a"].post("seckill/config/status/".concat(t),{status:n})}function J(t,n){return r["a"].get("seckill/product/detail/".concat(t),n)}function P(t,n){return r["a"].get("broadcast/room/goods/".concat(t),n)}function W(t){return r["a"].delete("broadcast/goods/delete/".concat(t))}function B(t,n){return r["a"].post("broadcast/room/sort/".concat(t),n)}function K(t,n){return r["a"].post("broadcast/goods/sort/".concat(t),n)}function N(t){return r["a"].post("config/others/group_buying",t)}function T(){return r["a"].get("config/others/group_buying")}function U(t){return r["a"].get("store/product/group/lst",t)}function X(t){return r["a"].get("store/product/group/get/".concat(t))}function q(t){return r["a"].get("store/product/group/detail/".concat(t))}function A(t){return r["a"].post("store/product/group/status",t)}function H(t,n){return r["a"].post("store/product/group/is_show/".concat(t),{status:n})}function M(t){return r["a"].get("store/product/group/get/".concat(t))}function Q(t,n){return r["a"].post("store/product/group/update/".concat(t),n)}function R(t){return r["a"].get("store/product/group/buying/lst",t)}function Y(t,n){return r["a"].get("store/product/group/buying/detail/".concat(t),n)}function Z(t,n){return r["a"].get("store/coupon/product/".concat(t),n)}function G(){return r["a"].get("user/integral/title")}function tt(t){return r["a"].get("user/integral/lst",t)}function nt(t){return r["a"].get("user/integral/excel",t)}function et(){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 ut(t,n){return r["a"].post("discounts/status/".concat(t),{status:n})}function ct(t){return r["a"].get("discounts/detail/".concat(t))}function at(t){return r["a"].get("marketing/spu/lst",t)}function it(t){return r["a"].post("activity/atmosphere/create",t)}function st(t,n){return r["a"].post("activity/atmosphere/update/".concat(t),n)}function dt(t){return r["a"].get("activity/atmosphere/lst",t)}function ft(t){return r["a"].get("activity/atmosphere/detail/".concat(t))}function lt(t,n){return r["a"].post("activity/atmosphere/status/".concat(t),{status:n})}function pt(t){return r["a"].delete("activity/atmosphere/delete/".concat(t))}function gt(t){return r["a"].post("activity/border/create",t)}function bt(t,n){return r["a"].post("activity/border/update/".concat(t),n)}function mt(t){return r["a"].get("activity/border/lst",t)}function ht(t){return r["a"].get("activity/border/detail/".concat(t))}function vt(t,n){return r["a"].post("activity/border/status/".concat(t),{status:n})}function yt(t){return r["a"].delete("activity/border/delete/".concat(t))}function _t(){return r["a"].get("points/cate/lst")}function wt(){return r["a"].get("points/cate/create/form")}function kt(t){return r["a"].get("points/cate/update/form/".concat(t))}function xt(t){return r["a"].delete("points/cate/delete/".concat(t))}function Lt(t,n){return r["a"].post("points/cate/status/".concat(t),{status:n})}function Ct(t){return r["a"].post("points/product/create",t)}function St(t,n){return r["a"].post("points/product/update/".concat(t),n)}function Ft(t){return r["a"].get("points/product/lst",t)}function $t(t){return r["a"].delete("points/product/delete/".concat(t))}function zt(t,n){return r["a"].post("points/product/status/".concat(t),{status:n})}function Dt(t,n){return r["a"].post("points/product/get_attr_value/".concat(t),n)}function jt(){return r["a"].get("points/cate/select")}function Ot(t){return r["a"].get("points/product/detail/".concat(t))}function It(t){return r["a"].get("points/order/lst",t)}function Vt(t){return r["a"].get("points/order/detail/".concat(t))}function Et(t){return r["a"].get("points/order/express/".concat(t))}function Jt(t){return r["a"].get("points/order/excel",t)}function Pt(t,n){return r["a"].post("points/order/delivery/".concat(t),n)}function Wt(t){return r["a"].get("store/express/options",t)}function Bt(t){return r["a"].get("points/order/mark/".concat(t,"/form"))}function Kt(t,n){return r["a"].get("points/order/status/".concat(t),n)}function Nt(t){return r["a"].delete("points/order/delete/".concat(t))}function Tt(t){return r["a"].post("activity/form/create",t)}function Ut(){return r["a"].get("system/form/select")}function Xt(t){return r["a"].get("activity/form/lst",t)}function qt(t,n){return r["a"].post("activity/form/status/".concat(t),{status:n})}function At(t){return r["a"].get("activity/form/detail/".concat(t))}function Ht(t,n){return r["a"].get("system/form/info/".concat(t),n)}function Mt(t){return r["a"].delete("activity/form/delete/".concat(t))}function Qt(t,n){return r["a"].get("activity/form/user/lst/".concat(t),n)}function Rt(t,n){return r["a"].get("activity/form/excel/".concat(t),n)}function Yt(t,n){return r["a"].post("activity/form/update/".concat(t),n)}},f4b0:function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"divBox"},[e("div",{staticClass:"selCard"},[e("el-form",{attrs:{size:"small","label-width":"85px",inline:!0}},[e("el-form-item",{attrs:{label:"是否显示:"}},[e("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:t.getList},model:{value:t.tableFrom.status,callback:function(n){t.$set(t.tableFrom,"status",n)},expression:"tableFrom.status"}},[e("el-option",{attrs:{label:"显示",value:1}}),t._v(" "),e("el-option",{attrs:{label:"不显示",value:0}})],1)],1)],1)],1),t._v(" "),e("el-card",{staticClass:"mt14"},[e("div",{staticClass:"mb14"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.addSpike}},[t._v("添加配置")])],1),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[e("el-table-column",{attrs:{prop:"seckill_time_id",label:"编号","min-width":"100"}}),t._v(" "),e("el-table-column",{attrs:{prop:"title",label:"名称","min-width":"120"}}),t._v(" "),e("el-table-column",{attrs:{label:"开始时间(整数小时)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.start_time)+" :00")])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"结束时间(整点)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.end_time)+" :00")])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"图片","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("div",{staticClass:"demo-image__preview"},[e("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.pic,"preview-src-list":[t.row.pic]}})],1)]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"是否可用","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"启用","inactive-text":"禁用"},nativeOn:{click:function(e){return t.onchangeIsShow(n.row)}},model:{value:n.row.status,callback:function(e){t.$set(n.row,"status",e)},expression:"scope.row.status"}})]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"操作","min-width":"90",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleEdit(n.row.seckill_time_id)}}},[t._v("编辑")]),t._v(" "),e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleDelete(n.row.seckill_time_id,n.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),e("div",{staticClass:"block"},[e("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},o=[],u=e("b7be"),c=e("83d6"),a={name:"CouponList",data:function(){return{Loading:!1,dialogVisible:!1,roterPre:c["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,status:""},tableFromIssue:{page:1,limit:10,coupon_id:0},issueData:{data:[],total:0}}},mounted:function(){this.getList()},methods:{addSpike:function(){var t=this;this.$modalForm(Object(u["Xb"])().then()).then((function(){return t.getList()}))},handleEdit:function(t){var n=this;this.$modalForm(Object(u["Wb"])(t).then()).then((function(){return n.getList()}))},handleDelete:function(t,n){var e=this;this.$modalSure().then((function(){Object(u["Tb"])(t).then((function(t){var r=t.message;e.$message.success(r),e.tableData.data.splice(n,1)})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},handleClose:function(){this.dialogVisible=!1},getList:function(){var t=this;this.listLoading=!0,console.log(this.tableFrom),Object(u["Ub"])(this.tableFrom).then((function(n){t.tableData.data=n.data.list,t.tableData.total=n.data.count,t.listLoading=!1})).catch((function(n){t.listLoading=!1,t.$message.error(n.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},onchangeIsShow:function(t){var n=this;Object(u["Vb"])(t.seckill_time_id,t.status).then((function(t){var e=t.message;n.$message.success(e),n.getList()})).catch((function(t){var e=t.message;n.$message.error(e)}))}}},i=a,s=(e("445a"),e("2877")),d=Object(s["a"])(i,r,o,!1,null,"3f6e3122",null);n["default"]=d.exports}}]); |