1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-75b0f584"],{"9c9f":function(t,n,e){"use strict";var o=e("ddbc"),a=e.n(o);a.a},b7be:function(t,n,e){"use strict";e.d(n,"y",(function(){return a})),e.d(n,"z",(function(){return r})),e.d(n,"A",(function(){return i})),e.d(n,"B",(function(){return c})),e.d(n,"x",(function(){return s})),e.d(n,"e",(function(){return u})),e.d(n,"k",(function(){return l})),e.d(n,"c",(function(){return d})),e.d(n,"b",(function(){return f})),e.d(n,"d",(function(){return g})),e.d(n,"h",(function(){return p})),e.d(n,"g",(function(){return m})),e.d(n,"l",(function(){return b})),e.d(n,"a",(function(){return h})),e.d(n,"H",(function(){return v})),e.d(n,"E",(function(){return _})),e.d(n,"G",(function(){return w})),e.d(n,"D",(function(){return k})),e.d(n,"F",(function(){return C})),e.d(n,"C",(function(){return x})),e.d(n,"I",(function(){return y})),e.d(n,"f",(function(){return L})),e.d(n,"j",(function(){return F})),e.d(n,"i",(function(){return S})),e.d(n,"v",(function(){return $})),e.d(n,"n",(function(){return z})),e.d(n,"q",(function(){return D})),e.d(n,"r",(function(){return j})),e.d(n,"p",(function(){return O})),e.d(n,"s",(function(){return E})),e.d(n,"w",(function(){return I})),e.d(n,"u",(function(){return B})),e.d(n,"t",(function(){return G})),e.d(n,"m",(function(){return H})),e.d(n,"o",(function(){return J}));var o=e("0c6d");function a(t){return o["a"].get("store/coupon/detail/".concat(t))}function r(t){return o["a"].get("store/coupon/lst",t)}function i(t,n){return o["a"].post("store/coupon/status/".concat(t),{status:n})}function c(t){return o["a"].get("store/coupon/issue",t)}function s(t){return o["a"].delete("store/coupon/delete/".concat(t))}function u(t){return o["a"].get("broadcast/room/lst",t)}function l(t,n){return o["a"].post("broadcast/room/status/".concat(t),n)}function d(t){return o["a"].delete("broadcast/room/delete/".concat(t))}function f(t){return o["a"].get("broadcast/room/apply/form/".concat(t))}function g(t){return o["a"].get("broadcast/room/detail/".concat(t))}function p(t){return o["a"].get("broadcast/goods/lst",t)}function m(t){return o["a"].get("broadcast/goods/detail/".concat(t))}function b(t,n){return o["a"].post("broadcast/goods/status/".concat(t),n)}function h(t){return o["a"].get("broadcast/goods/apply/form/".concat(t))}function v(){return o["a"].get("seckill/config/create/form")}function _(t){return o["a"].get("seckill/config/lst",t)}function w(t){return o["a"].get("seckill/config/update/".concat(t,"/form"))}function k(t){return o["a"].delete("seckill/config/delete/".concat(t))}function C(t,n){return o["a"].post("seckill/config/status/".concat(t),{status:n})}function x(t,n){return o["a"].get("seckill/product/detail/".concat(t),n)}function y(t,n){return o["a"].get("broadcast/room/goods/".concat(t),n)}function L(t){return o["a"].delete("broadcast/goods/delete/".concat(t))}function F(t,n){return o["a"].post("broadcast/room/sort/".concat(t),n)}function S(t,n){return o["a"].post("broadcast/goods/sort/".concat(t),n)}function $(t){return o["a"].post("config/others/group_buying",t)}function z(){return o["a"].get("config/others/group_buying")}function D(t){return o["a"].get("store/product/group/lst",t)}function j(t){return o["a"].get("store/product/group/get/".concat(t))}function O(t){return o["a"].get("store/product/group/detail/".concat(t))}function E(t){return o["a"].post("store/product/group/status",t)}function I(t,n){return o["a"].post("store/product/group/is_show/".concat(t),{status:n})}function B(t){return o["a"].get("store/product/group/get/".concat(t))}function G(t,n){return o["a"].post("store/product/group/update/".concat(t),n)}function H(t){return o["a"].get("store/product/group/buying/lst",t)}function J(t,n){return o["a"].get("store/product/group/buying/detail/".concat(t),n)}},ddbc:function(t,n,e){},f4b0:function(t,n,e){"use strict";e.r(n);var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"filter-container"},[e("div",{staticClass:"demo-input-suffix acea-row"},[e("span",{staticClass:"seachTiele"},[t._v("是否显示:")]),t._v(" "),e("el-select",{staticClass:"filter-item selWidth mr20",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)]),t._v(" "),e("el-button",{staticClass:"ivu-btn",attrs:{size:"small",type:"primary"},on:{click:t.addSpike}},[e("i",{staticClass:"ivu-icon ivu-icon-md-add"},[t._v("+")]),t._v(" "),e("span",{staticClass:"text"},[t._v("添加数据")])])],1),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[e("el-table-column",{attrs:{prop:"seckill_time_id",label:"编号","min-width":"90"}}),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":"90"},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":"90"},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":"100"},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":"150",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:{"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)},a=[],r=e("b7be"),i=e("83d6"),c={name:"CouponList",data:function(){return{Loading:!1,dialogVisible:!1,roterPre:i["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(r["H"])().then()).then((function(){return t.getList()}))},handleEdit:function(t){var n=this;this.$modalForm(Object(r["G"])(t).then()).then((function(){return n.getList()}))},handleDelete:function(t,n){var e=this;this.$modalSure().then((function(){Object(r["D"])(t).then((function(t){var o=t.message;e.$message.success(o),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(r["E"])(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(r["F"])(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)}))}}},s=c,u=(e("9c9f"),e("2877")),l=Object(u["a"])(s,o,a,!1,null,"3025e753",null);n["default"]=l.exports}}]);
|