chunk-54abf398.8d071544.js 8.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-54abf398"],{c4c8:function(t,n,e){"use strict";e.d(n,"Z",(function(){return o})),e.d(n,"X",(function(){return u})),e.d(n,"bb",(function(){return c})),e.d(n,"Y",(function(){return a})),e.d(n,"ab",(function(){return s})),e.d(n,"l",(function(){return i})),e.d(n,"j",(function(){return d})),e.d(n,"n",(function(){return l})),e.d(n,"k",(function(){return f})),e.d(n,"m",(function(){return p})),e.d(n,"q",(function(){return g})),e.d(n,"o",(function(){return h})),e.d(n,"s",(function(){return m})),e.d(n,"p",(function(){return b})),e.d(n,"r",(function(){return _})),e.d(n,"I",(function(){return v})),e.d(n,"T",(function(){return w})),e.d(n,"t",(function(){return y})),e.d(n,"x",(function(){return k})),e.d(n,"H",(function(){return x})),e.d(n,"S",(function(){return L})),e.d(n,"K",(function(){return $})),e.d(n,"V",(function(){return C})),e.d(n,"w",(function(){return D})),e.d(n,"Q",(function(){return S})),e.d(n,"O",(function(){return j})),e.d(n,"M",(function(){return O})),e.d(n,"N",(function(){return z})),e.d(n,"v",(function(){return F})),e.d(n,"y",(function(){return E})),e.d(n,"R",(function(){return A})),e.d(n,"J",(function(){return B})),e.d(n,"U",(function(){return I})),e.d(n,"L",(function(){return J})),e.d(n,"W",(function(){return N})),e.d(n,"u",(function(){return q})),e.d(n,"P",(function(){return G})),e.d(n,"cb",(function(){return H})),e.d(n,"A",(function(){return K})),e.d(n,"z",(function(){return M})),e.d(n,"D",(function(){return P})),e.d(n,"G",(function(){return Q})),e.d(n,"E",(function(){return R})),e.d(n,"F",(function(){return T})),e.d(n,"B",(function(){return U})),e.d(n,"C",(function(){return V})),e.d(n,"d",(function(){return W})),e.d(n,"e",(function(){return X})),e.d(n,"c",(function(){return Y})),e.d(n,"f",(function(){return Z})),e.d(n,"i",(function(){return tt})),e.d(n,"b",(function(){return nt})),e.d(n,"a",(function(){return et})),e.d(n,"h",(function(){return rt})),e.d(n,"g",(function(){return ot}));var r=e("0c6d");function o(){return r["a"].get("store/category/lst")}function u(){return r["a"].get("store/category/create/form")}function c(t){return r["a"].get("store/category/update/form/".concat(t))}function a(t){return r["a"].delete("store/category/delete/".concat(t))}function s(t,n){return r["a"].post("store/category/status/".concat(t),{status:n})}function i(t){return r["a"].get("store/brand/category/lst",t)}function d(){return r["a"].get("store/brand/category/create/form")}function l(t){return r["a"].get("store/brand/category/update/form/".concat(t))}function f(t){return r["a"].delete("store/brand/category/delete/".concat(t))}function p(t,n){return r["a"].post("store/brand/category/status/".concat(t),{status:n})}function g(t){return r["a"].get("store/brand/lst",t)}function h(){return r["a"].get("store/brand/create/form")}function m(t){return r["a"].get("store/brand/update/form/".concat(t))}function b(t){return r["a"].delete("store/brand/delete/".concat(t))}function _(t,n){return r["a"].post("store/brand/status/".concat(t),{status:n})}function v(t){return r["a"].get("store/product/lst",t)}function w(t){return r["a"].get("seckill/product/lst",t)}function y(){return r["a"].get("store/category/list")}function k(){return r["a"].get("system/merchant/category_lst")}function x(t){return r["a"].get("store/product/detail/".concat(t))}function L(t){return r["a"].get("seckill/product/detail/".concat(t))}function $(t){return r["a"].post("store/product/status",t)}function C(t){return r["a"].post("seckill/product/status",t)}function D(){return r["a"].get("store/product/lst_filter")}function S(){return r["a"].get("seckill/product/lst_filter")}function j(t){return r["a"].get("store/reply/lst",t)}function O(t){return r["a"].get(t?"store/reply/create/form/".concat(t):"store/reply/create/form")}function z(t){return r["a"].delete("store/reply/delete/".concat(t))}function F(t){return r["a"].get("store/product/list",t)}function E(){return r["a"].get("store/product/mer_select")}function A(){return r["a"].get("seckill/product/mer_select")}function B(t){return r["a"].post("store/product/status",t)}function I(t){return r["a"].post("seckill/product/status",t)}function J(t,n){return r["a"].post("store/product/update/".concat(t),n)}function N(t,n){return r["a"].post("seckill/product/update/".concat(t),n)}function q(t,n){return r["a"].post("store/product/change/".concat(t),{status:n})}function G(t,n){return r["a"].post("seckill/product/change/".concat(t),{status:n})}function H(t){return r["a"].get("store/product/ficti/form/".concat(t))}function K(t){return r["a"].get("store/product/presell/lst",t)}function M(t){return r["a"].get("store/product/presell/get/".concat(t))}function P(t){return r["a"].get("store/product/presell/detail/".concat(t))}function Q(t,n){return r["a"].post("store/product/presell/update/".concat(t),n)}function R(t){return r["a"].post("store/product/presell/status",t)}function T(t,n){return r["a"].post("store/product/presell/is_show/".concat(t),{status:n})}function U(){return r["a"].get("store/product/presell/agree")}function V(t){return r["a"].post("store/product/presell/agree",t)}function W(t){return r["a"].get("store/product/assist/lst",t)}function X(t){return r["a"].get("store/product/assist/get/".concat(t))}function Y(t){return r["a"].get("store/product/assist/detail/".concat(t))}function Z(t){return r["a"].post("store/product/assist/status",t)}function tt(t,n){return r["a"].post("store/product/assist/is_show/".concat(t),{status:n})}function nt(t){return r["a"].get("store/product/assist/set/lst",t)}function et(t,n){return r["a"].get("store/product/assist/set/detail/".concat(t),n)}function rt(t){return r["a"].get("store/product/assist/get/".concat(t))}function ot(t,n){return r["a"].post("store/product/assist/update/".concat(t),n)}},f26e: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("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[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","row-key":"store_brand_category_id","default-expand-all":!1,"tree-props":{children:"children",hasChildren:"hasChildren"}}},[e("el-table-column",{attrs:{label:"分类名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.cate_name+" [ "+n.row.store_brand_category_id+" ]"))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"80"}}),t._v(" "),e("el-table-column",{attrs:{prop:"is_show",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":"隐藏"},on:{change: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:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.onEdit(n.row.store_brand_category_id)}}},[t._v("编辑")]),t._v(" "),e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleDelete(n.row.store_brand_category_id,n.$index)}}},[t._v("删除")])]}}])})],1)],1)],1)},o=[],u=e("c4c8"),c={name:"BrandClassify",data:function(){return{isChecked:!1,listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20}}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(u["l"])(this.tableFrom).then((function(n){t.tableData.data=n.data,t.tableData.total=n.data.count,t.listLoading=!1})).catch((function(n){t.listLoading=!1,t.$message.error(n.message)}))},pageChange:function(t){this.tableData.page=t,this.getList()},handleSizeChange:function(t){this.tableData.limit=t,this.getList()},onAdd:function(){var t=this;this.$modalForm(Object(u["j"])()).then((function(){return t.getList()}))},onEdit:function(t){var n=this;this.$modalForm(Object(u["n"])(t)).then((function(){return n.getList()}))},handleDelete:function(t,n){var e=this;this.$modalSure().then((function(){Object(u["k"])(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;Object(u["m"])(t.store_brand_category_id,t.is_show).then((function(t){var e=t.message;n.$message.success(e)})).catch((function(t){var e=t.message;n.$message.error(e)}))}}},a=c,s=e("2877"),i=Object(s["a"])(a,r,o,!1,null,null,null);n["default"]=i.exports}}]);