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-fa897098"],{"0107":function(t,n,e){},"2f5d":function(t,n,e){"use strict";e("0107")},"306d":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("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"container"},[e("el-form",{attrs:{size:"small","label-width":"110px"}},[e("el-form-item",{attrs:{label:"是否显示:"}},[e("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(n){return t.getList(1)}},model:{value:t.tableFrom.is_show,callback:function(n){t.$set(t.tableFrom,"is_show",n)},expression:"tableFrom.is_show"}},[e("el-option",{attrs:{label:"显示",value:"1"}}),t._v(" "),e("el-option",{attrs:{label:"不显示",value:"0"}})],1)],1),t._v(" "),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.add}},[t._v("添加数据")])],1)],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:"mini"}},[e("el-table-column",{attrs:{prop:"product_presell_id",label:"编号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.$index+(t.tableFrom.page-1)*t.tableFrom.limit+1))])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"第几天","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.merchant?n.row.merchant.mer_name:""))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"store_name",label:"获取积分","min-width":"120"}}),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.is_show,callback:function(e){t.$set(n.row,"is_show",e)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"rank",label:"排序","min-width":"90"}}),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.broadcast_room_id)}}},[t._v("编辑")]),t._v(" "),e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleDelete(n.row,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)},o=[],u=e("f8b7"),c=(e("2801"),e("b7be"),e("30dc")),a=e("0f56"),i={name:"preSaleProductList",components:{fileList:c["a"],cardsData:a["a"]},data:function(){return{timeVal:[],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,is_show:""},loading:!1}},watch:{},mounted:function(){this.getList("")},methods:{selectChange:function(t){this.tableFrom.date=t,this.tableFrom.page=1,this.timeVal=[],this.getList("")},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList()},add:function(){},handleEdit:function(t){},handleDelete:function(t,n){var e=this;this.$modalSure().then((function(){productDeleteApi(t).then((function(t){var n=t.message;e.$message.success(n),e.getList()})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},onchangeIsShow:function(t){var n=this;changeDisplayApi(t.broadcast_room_id,{is_show:t.is_show}).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 n=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(u["w"])(this.tableFrom).then((function(t){n.tableData.data=t.data.list,n.tableData.total=t.data.count,n.listLoading=!1})).catch((function(t){n.listLoading=!1,n.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")}}},s=i,d=(e("2f5d"),e("2877")),f=Object(d["a"])(s,r,o,!1,null,"7215899d",null);n["default"]=f.exports},b7be:function(t,n,e){"use strict";e.d(n,"gb",(function(){return o})),e.d(n,"fb",(function(){return u})),e.d(n,"bb",(function(){return c})),e.d(n,"ab",(function(){return a})),e.d(n,"Z",(function(){return i})),e.d(n,"cb",(function(){return s})),e.d(n,"db",(function(){return d})),e.d(n,"eb",(function(){return f})),e.d(n,"N",(function(){return l})),e.d(n,"I",(function(){return g})),e.d(n,"J",(function(){return p})),e.d(n,"L",(function(){return m})),e.d(n,"K",(function(){return b})),e.d(n,"W",(function(){return h})),e.d(n,"H",(function(){return v})),e.d(n,"o",(function(){return _})),e.d(n,"u",(function(){return w})),e.d(n,"m",(function(){return y})),e.d(n,"l",(function(){return k})),e.d(n,"n",(function(){return x})),e.d(n,"X",(function(){return L})),e.d(n,"Y",(function(){return F})),e.d(n,"pb",(function(){return C})),e.d(n,"r",(function(){return z})),e.d(n,"q",(function(){return S})),e.d(n,"v",(function(){return D})),e.d(n,"a",(function(){return $})),e.d(n,"ob",(function(){return j})),e.d(n,"lb",(function(){return V})),e.d(n,"nb",(function(){return E})),e.d(n,"kb",(function(){return O})),e.d(n,"mb",(function(){return q})),e.d(n,"hb",(function(){return A})),e.d(n,"qb",(function(){return I})),e.d(n,"p",(function(){return J})),e.d(n,"t",(function(){return P})),e.d(n,"s",(function(){return B})),e.d(n,"F",(function(){return K})),e.d(n,"x",(function(){return N})),e.d(n,"A",(function(){return T})),e.d(n,"B",(function(){return W})),e.d(n,"z",(function(){return G})),e.d(n,"C",(function(){return H})),e.d(n,"G",(function(){return M})),e.d(n,"E",(function(){return Q})),e.d(n,"D",(function(){return R})),e.d(n,"w",(function(){return U})),e.d(n,"y",(function(){return X})),e.d(n,"M",(function(){return Y})),e.d(n,"V",(function(){return Z})),e.d(n,"U",(function(){return tt})),e.d(n,"jb",(function(){return nt})),e.d(n,"T",(function(){return et})),e.d(n,"rb",(function(){return rt})),e.d(n,"S",(function(){return ot})),e.d(n,"Q",(function(){return ut})),e.d(n,"R",(function(){return ct})),e.d(n,"ib",(function(){return at})),e.d(n,"O",(function(){return it})),e.d(n,"f",(function(){return st})),e.d(n,"e",(function(){return dt})),e.d(n,"d",(function(){return ft})),e.d(n,"c",(function(){return lt})),e.d(n,"b",(function(){return gt})),e.d(n,"P",(function(){return pt})),e.d(n,"k",(function(){return mt})),e.d(n,"i",(function(){return bt})),e.d(n,"h",(function(){return ht})),e.d(n,"j",(function(){return vt})),e.d(n,"g",(function(){return _t}));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 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,n){return r["a"].post("store/coupon/status/".concat(t),{status:n})}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 _(t){return r["a"].get("broadcast/room/lst",t)}function w(t,n){return r["a"].post("broadcast/room/status/".concat(t),n)}function y(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 F(t,n){return r["a"].post("broadcast/room/comment/".concat(t),{status:n})}function C(t,n){return r["a"].post("broadcast/room/closeKf/".concat(t),{status:n})}function z(t){return r["a"].get("broadcast/goods/lst",t)}function S(t){return r["a"].get("broadcast/goods/detail/".concat(t))}function D(t,n){return r["a"].post("broadcast/goods/status/".concat(t),n)}function $(t){return r["a"].get("broadcast/goods/apply/form/".concat(t))}function j(){return r["a"].get("seckill/config/create/form")}function V(t){return r["a"].get("seckill/config/lst",t)}function E(t){return r["a"].get("seckill/config/update/".concat(t,"/form"))}function O(t){return r["a"].delete("seckill/config/delete/".concat(t))}function q(t,n){return r["a"].post("seckill/config/status/".concat(t),{status:n})}function A(t,n){return r["a"].get("seckill/product/detail/".concat(t),n)}function I(t,n){return r["a"].get("broadcast/room/goods/".concat(t),n)}function J(t){return r["a"].delete("broadcast/goods/delete/".concat(t))}function P(t,n){return r["a"].post("broadcast/room/sort/".concat(t),n)}function B(t,n){return r["a"].post("broadcast/goods/sort/".concat(t),n)}function K(t){return r["a"].post("config/others/group_buying",t)}function N(){return r["a"].get("config/others/group_buying")}function T(t){return r["a"].get("store/product/group/lst",t)}function W(t){return r["a"].get("store/product/group/get/".concat(t))}function G(t){return r["a"].get("store/product/group/detail/".concat(t))}function H(t){return r["a"].post("store/product/group/status",t)}function M(t,n){return r["a"].post("store/product/group/is_show/".concat(t),{status:n})}function Q(t){return r["a"].get("store/product/group/get/".concat(t))}function R(t,n){return r["a"].post("store/product/group/update/".concat(t),n)}function U(t){return r["a"].get("store/product/group/buying/lst",t)}function X(t,n){return r["a"].get("store/product/group/buying/detail/".concat(t),n)}function Y(t,n){return r["a"].get("store/coupon/product/".concat(t),n)}function Z(){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 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,n){return r["a"].post("activity/border/update/".concat(t),n)}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,n){return r["a"].post("activity/border/status/".concat(t),{status:n})}function _t(t){return r["a"].delete("activity/border/delete/".concat(t))}},f8b7:function(t,n,e){"use strict";e.d(n,"n",(function(){return o})),e.d(n,"b",(function(){return u})),e.d(n,"a",(function(){return c})),e.d(n,"p",(function(){return a})),e.d(n,"l",(function(){return i})),e.d(n,"m",(function(){return s})),e.d(n,"o",(function(){return d})),e.d(n,"t",(function(){return f})),e.d(n,"i",(function(){return l})),e.d(n,"j",(function(){return g})),e.d(n,"g",(function(){return p})),e.d(n,"h",(function(){return m})),e.d(n,"f",(function(){return b})),e.d(n,"v",(function(){return h})),e.d(n,"w",(function(){return v})),e.d(n,"u",(function(){return _})),e.d(n,"e",(function(){return w})),e.d(n,"d",(function(){return y})),e.d(n,"c",(function(){return k})),e.d(n,"s",(function(){return x})),e.d(n,"r",(function(){return L})),e.d(n,"q",(function(){return F}));var r=e("0c6d");function o(t){return r["a"].get("order/lst",t)}function u(){return r["a"].get("order/chart")}function c(t){return r["a"].get("order/title",t)}function a(t){return r["a"].get("store/order/update/".concat(t,"/form"))}function i(t){return r["a"].get("store/order/delivery/".concat(t,"/form"))}function s(t){return r["a"].get("order/detail/".concat(t))}function d(t,n){return r["a"].get("order/status/".concat(t),n)}function f(t){return r["a"].get("order/refund/lst",t)}function l(t){return r["a"].get("order/children/".concat(t))}function g(t){return r["a"].get("order/express/".concat(t))}function p(t){return r["a"].get("order/excel",t)}function m(t){return r["a"].get("order/refund/excel",t)}function b(t){return r["a"].get("excel/lst",t)}function h(){return r["a"].get("order/takechart")}function v(t){return r["a"].get("order/takelst",t)}function _(t){return r["a"].get("order/take_title",t)}function w(){return r["a"].get("excel/type")}function y(t){return r["a"].get("delivery/order/lst",t)}function k(t){return r["a"].get("delivery/order/cancel/".concat(t,"/form"))}function x(t){return r["a"].get("delivery/station/payLst",t)}function L(){return r["a"].get("delivery/title")}function F(){return r["a"].get("delivery/belence")}}}]); |