canyin-project/ybcy/views/channel/index/static/js/chunk-3c088076.b55322e4.js
2024-11-01 16:07:54 +08:00

1 line
11 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3c088076"],{"338c":function(t,n,e){"use strict";e.r(n);var a,r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"outmain ba_f heighthv pad_20 bor_rad5"},[t._m(0),e("div",{staticClass:"pad_20 flex-bet flex-y-top"},[e("el-form",{staticClass:"demo-form-inline searchform",attrs:{inline:!0,model:t.formInline}},[e("el-form-item",[e("el-button",{attrs:{type:"primary",size:"medium"},on:{click:function(n){return t.addEditActive("")}}},[t._v("新增活动")])],1)],1)],1),e("div",{staticClass:"tabledata mar_t20"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.datalist,"element-loading-text":t.elementLoadingText,stripe:""}},[e("el-table-column",{attrs:{prop:"name",label:"活动名称",align:"center"}}),e("el-table-column",{attrs:{prop:"time",label:"活动时间",align:"center"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("div",[t._v(t._s(n.row.startTime))]),e("div",[t._v(t._s(n.row.endTime))])]}}])}),e("el-table-column",{attrs:{prop:"name",label:"今日已售",align:"center"}}),e("el-table-column",{attrs:{prop:"display",label:"状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{attrs:{"active-value":"1","inactive-value":"2"},on:{change:function(e){return t.changeSwitch(n.row.id)}},model:{value:n.row.display,callback:function(e){t.$set(n.row,"display",e)},expression:"scope.row.display"}})]}}])}),e("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.addEditActive(n.row.id)}}},[t._v("编辑")]),e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleDelete(n.row.id)}}},[t._v("删除")])]}}])})],1),e("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.total,"page-size":10,"current-page":t.currentPage},on:{"update:currentPage":function(n){t.currentPage=n},"update:current-page":function(n){t.currentPage=n},"current-change":t.handleCurrentChange}})],1)])},o=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"shuju_title mar_b20"},[e("div",{staticClass:"shuju_title_text"},[e("span",[t._v("第二份折扣")])])])}],c=e("ade3"),u=e("5a4a"),i=(a={created:function(){this.fetchData()},data:function(){return{total:0,currentPage:1,formInline:{name:"",type:""},datalist:[],listLoading:!0,selectRows:"",elementLoadingText:"正在加载..."}}},Object(c["a"])(a,"created",(function(){this.getGoodsList()})),Object(c["a"])(a,"methods",{getGoodsList:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;Object(u["E"])({page:n,activityType:2}).then((function(n){1==n.code&&(t.total=n.count,t.datalist=n.data),t.listLoading=!1}))},addEditActive:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$router.push({path:"/halfpriceAdd",query:{id:t}})},handleDelete:function(t){var n=this;this.$baseConfirm("你确定要删除当前项吗",null,(function(){Object(u["T"])({id:t,type:2,activityType:2}).then((function(t){1==t.code&&(n.$baseMessage("删除成功!","success"),n.getGoodsList())}))}))},changeSwitch:function(t){var n=this;Object(u["T"])({id:t,type:1,display:2,activityType:2}).then((function(t){1==t.code&&n.$baseMessage("操作成功!","success")}))},handleCurrentChange:function(t){this.getGoodsList(t)}}),a),d=i,l=(e("afcd"),e("2877")),s=Object(l["a"])(d,r,o,!1,null,"3182e494",null);n["default"]=s.exports},"5a4a":function(t,n,e){"use strict";e.d(n,"B",(function(){return r})),e.d(n,"d",(function(){return o})),e.d(n,"G",(function(){return c})),e.d(n,"z",(function(){return u})),e.d(n,"r",(function(){return i})),e.d(n,"y",(function(){return d})),e.d(n,"W",(function(){return l})),e.d(n,"A",(function(){return s})),e.d(n,"F",(function(){return f})),e.d(n,"D",(function(){return h})),e.d(n,"f",(function(){return m})),e.d(n,"e",(function(){return p})),e.d(n,"g",(function(){return g})),e.d(n,"i",(function(){return b})),e.d(n,"w",(function(){return j})),e.d(n,"ab",(function(){return v})),e.d(n,"o",(function(){return O})),e.d(n,"Z",(function(){return y})),e.d(n,"C",(function(){return w})),e.d(n,"H",(function(){return _})),e.d(n,"q",(function(){return x})),e.d(n,"c",(function(){return k})),e.d(n,"h",(function(){return C})),e.d(n,"b",(function(){return L})),e.d(n,"u",(function(){return T})),e.d(n,"N",(function(){return E})),e.d(n,"m",(function(){return S})),e.d(n,"L",(function(){return $})),e.d(n,"x",(function(){return P})),e.d(n,"db",(function(){return A})),e.d(n,"j",(function(){return G})),e.d(n,"cb",(function(){return D})),e.d(n,"t",(function(){return z})),e.d(n,"J",(function(){return I})),e.d(n,"l",(function(){return J})),e.d(n,"I",(function(){return M})),e.d(n,"v",(function(){return q})),e.d(n,"S",(function(){return N})),e.d(n,"n",(function(){return R})),e.d(n,"R",(function(){return B})),e.d(n,"bb",(function(){return F})),e.d(n,"E",(function(){return H})),e.d(n,"s",(function(){return K})),e.d(n,"X",(function(){return Q})),e.d(n,"T",(function(){return U})),e.d(n,"Y",(function(){return V})),e.d(n,"V",(function(){return W})),e.d(n,"Q",(function(){return X})),e.d(n,"k",(function(){return Y})),e.d(n,"M",(function(){return Z})),e.d(n,"a",(function(){return tt})),e.d(n,"K",(function(){return nt})),e.d(n,"U",(function(){return et})),e.d(n,"P",(function(){return at})),e.d(n,"p",(function(){return rt})),e.d(n,"O",(function(){return ot}));var a=e("b775");function r(t){return Object(a["a"])({url:"channel/good/good-render",method:"get",params:t})}function o(t){return Object(a["a"])({url:"channel/good/attr-show",method:"get",params:t})}function c(t){return Object(a["a"])({url:"channel/good/goods-save",method:"post",data:t})}function u(t){return Object(a["a"])({url:"channel/good/good-detail",method:"get",params:t})}function i(t){return Object(a["a"])({url:"channel/good/get-good-list",method:"get",params:t})}function d(t){return Object(a["a"])({url:"channel/good/good-del",method:"post",data:t})}function l(t){return Object(a["a"])({url:"channel/good/set-good-num",method:"post",data:t})}function s(t){return Object(a["a"])({url:"channel/good/good-down",method:"post",data:t})}function f(t){return Object(a["a"])({url:"channel/good/goods-recovery",method:"post",data:t})}function h(t){return Object(a["a"])({url:"channel/good/good-usave",method:"post",data:t})}function m(t){return Object(a["a"])({url:"channel/category/get-category-list",method:"get",params:t})}function p(t){return Object(a["a"])({url:"channel/category/category-del",method:"post",data:t})}function g(t){return Object(a["a"])({url:"channel/category/category-save",method:"post",data:t})}function b(t){return Object(a["a"])({url:"channel/category/change-switch",method:"post",data:t})}function j(t){return Object(a["a"])({url:"channel/specs/get-specs-list",method:"get",params:t})}function v(t){return Object(a["a"])({url:"channel/specs/specs-save",method:"post",data:t})}function O(t){return Object(a["a"])({url:"channel/specs/change-specs",method:"post",data:t})}function y(t){return Object(a["a"])({url:"channel/specs/specs-del",method:"post",data:t})}function w(t){return Object(a["a"])({url:"channel/good/specs-list",method:"post",data:t})}function _(t){return Object(a["a"])({url:"channel/good/specs-save",method:"post",data:t})}function x(t){return Object(a["a"])({url:"channel/attribute/get-attr-list",method:"get",params:t})}function k(t){return Object(a["a"])({url:"channel/attribute/attr-save",method:"post",data:t})}function C(t){return Object(a["a"])({url:"channel/attribute/change-attr",method:"post",data:t})}function L(t){return Object(a["a"])({url:"channel/attribute/attr-del",method:"post",data:t})}function T(t){return Object(a["a"])({url:"channel/material/get-materia-list",method:"get",params:t})}function E(t){return Object(a["a"])({url:"channel/material/meteria-save",method:"post",data:t})}function S(t){return Object(a["a"])({url:"channel/material/change-materia",method:"post",data:t})}function $(t){return Object(a["a"])({url:"channel/material/materia-del",method:"post",data:t})}function P(t){return Object(a["a"])({url:"channel/unit/get-unit-list",method:"get",params:t})}function A(t){return Object(a["a"])({url:"channel/unit/unit-save",method:"post",data:t})}function G(t){return Object(a["a"])({url:"channel/unit/change-display",method:"post",data:t})}function D(t){return Object(a["a"])({url:"channel/unit/unit-del",method:"post",data:t})}function z(t){return Object(a["a"])({url:"channel/good-label/get-label-list",method:"get",params:t})}function I(t){return Object(a["a"])({url:"channel/good-label/label-save",method:"post",data:t})}function J(t){return Object(a["a"])({url:"channel/good-label/change-label",method:"post",data:t})}function M(t){return Object(a["a"])({url:"channel/good-label/label-del",method:"post",data:t})}function q(t){return Object(a["a"])({url:"channel/print/get-print-list",method:"get",params:t})}function N(t){return Object(a["a"])({url:"channel/print/print-save",method:"post",data:t})}function R(t){return Object(a["a"])({url:"channel/print/change-print",method:"post",data:t})}function B(t){return Object(a["a"])({url:"channel/print/print-del",method:"post",data:t})}function F(t){return Object(a["a"])({url:"channel/good/synchro-goods",method:"post",data:t})}function H(t){return Object(a["a"])({url:"channel/activity/goods-activity-list",method:"get",params:t})}function K(t){return Object(a["a"])({url:"channel/activity/save-goods-activity",method:"get",params:t})}function Q(t){return Object(a["a"])({url:"channel/activity/save-goods-activity",method:"post",data:t})}function U(t){return Object(a["a"])({url:"channel/activity/modify-goods-activity",method:"post",data:t})}function V(t){return Object(a["a"])({url:"channel/category/special-category",method:"get",params:t})}function W(t){return Object(a["a"])({url:"channel/category/save-special",method:"post",data:t})}function X(t){return Object(a["a"])({url:"channel/category/modify-special",method:"post",data:t})}function Y(t){return Object(a["a"])({url:"channel/good/change-goods",method:"post",data:t})}function Z(t){return Object(a["a"])({url:"channel/good/merge-goods",method:"post",data:t})}function tt(t){return Object(a["a"])({url:"channel/good/all-down",method:"post",data:t})}function nt(t){return Object(a["a"])({url:"channel/comment/label-list",method:"get",params:t})}function et(t){return Object(a["a"])({url:"channel/comment/save-label",method:"post",data:t})}function at(t){return Object(a["a"])({url:"channel/comment/modify-label",method:"post",data:t})}function rt(t){return Object(a["a"])({url:"channel/comment/comment-list",method:"get",params:t})}function ot(t){return Object(a["a"])({url:"channel/comment/modify-comment",method:"post",data:t})}},afcd:function(t,n,e){"use strict";var a=e("b028"),r=e.n(a);r.a},b028:function(t,n,e){}}]);