chunk-d19476de.80cc07eb.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d19476de"],{"056a":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAACUCAYAAAB1GVf9AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABBKADAAQAAAABAAAAlAAAAAD7OG/zAAAH8ElEQVR4Ae3dWXPUOBQGUGcYoKCAByi2///f2LewE5bAzVSXIBPfdu8y9/gFpdVedKT+4pbtcHRycnI6WAgQIPBL4B8KBAgQWAgIhIWEfwkQcIZgDBAg0AScITQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBP5tRaW5CLx//374+PHjcHJyMnz//n24dOnScOXKleH69evDjRs35tIMx9mhwNGvQXXa4XE5pAsEvn79Orx8+XL48uXLBbX/vXT16tXhzp07w+XLl0ffo4LAmIBAGJPp7PUIgadPnw6np8vz++joaLh///4Q4WAhsIqAOY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XulvYdoRA9ts+zhziKkL85yzxF5LiDMJCYF0BgbCu3I7Xi1PqVa4QxHvj+QOX9HbcMX/55gVChx0cXwHWmXQTBh125swOSSB01mERBL5bd9YphQ7HpGJnnS0MOuuQYocjEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMwF9dLtbhmksgE3CGkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCAiHTUUegmIBAKNbhmksgExAImY46AsUEBEKxDtdcApmAQMh01BEoJiAQinW45hLIBARCpqOOQDEBgVCswzWXQCYgEDIddQSKCQiEYh2uuQQyAYGQ6agjUExAIBTrcM0lkAkIhExHHYFiAgKhWIdrLoFMQCBkOuoIFBMQCMU6XHMJZAICIdNRR6CYgEAo1uGaSyATEAiZjjoCxQQEQrEO11wCmYBAyHTUESgmIBCKdbjmEsgEBEKmo45AMQGBUKzDNZdAJiAQMh11BIoJCIRiHa65BDIBgZDpqCNQTEAgFOtwzSWQCQiETEcdgWICAqFYh2sugUxAIGQ66ggUExAIxTpccwlkAgIh01FHoJiAQCjW4ZpLIBMQCJmOOgLFBARCsQ7XXAKZgEDIdNQRKCYgEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCPwEYef7DpS5s4AAAAABJRU5ErkJggg=="},"400e":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("el-button",{staticClass:"mb20",attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加商品分类")]),t._v(" "),n("el-alert",{attrs:{title:"平台商品的分类应添加至三级,否则商户添加商品时无分类可选",type:"warning"}})],1),t._v(" "),n("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_category_id","default-expand-all":!1,"tree-props":{children:"children",hasChildren:"hasChildren"}}},[n("el-table-column",{attrs:{label:"分类名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.cate_name+" [ "+e.row.store_category_id+" ]"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"分类图标","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"demo-image__preview"},[n("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.pic?e.row.pic:t.moren,"preview-src-list":[e.row.pic?e.row.pic:t.moren]}})],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"50"}}),t._v(" "),n("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(n){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_show,callback:function(n){t.$set(e.row,"is_show",n)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onEdit(e.row.store_category_id)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleDelete(e.row.store_category_id,e.$index)}}},[t._v("删除")])]}}])})],1)],1)],1)},o=[],u=n("c4c8"),c={name:"ProductClassify",data:function(){return{moren:n("056a"),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["Z"])(this.tableFrom).then((function(e){t.tableData.data=e.data,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.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["X"])()).then((function(){return t.getList()}))},onEdit:function(t){var e=this;this.$modalForm(Object(u["bb"])(t)).then((function(){return e.getList()}))},handleDelete:function(t,e){var n=this;this.$modalSure().then((function(){Object(u["Y"])(t).then((function(t){var e=t.message;n.$message.success(e),n.getList()})).catch((function(t){var e=t.message;n.$message.error(e)}))}))},onchangeIsShow:function(t){var e=this;Object(u["ab"])(t.store_category_id,t.is_show).then((function(t){var n=t.message;e.$message.success(n)})).catch((function(t){var n=t.message;e.$message.error(n)}))}}},a=c,s=n("2877"),i=Object(s["a"])(a,r,o,!1,null,"788f0506",null);e["default"]=i.exports},c4c8:function(t,e,n){"use strict";n.d(e,"Z",(function(){return o})),n.d(e,"X",(function(){return u})),n.d(e,"bb",(function(){return c})),n.d(e,"Y",(function(){return a})),n.d(e,"ab",(function(){return s})),n.d(e,"l",(function(){return i})),n.d(e,"j",(function(){return A})),n.d(e,"n",(function(){return d})),n.d(e,"k",(function(){return l})),n.d(e,"m",(function(){return f})),n.d(e,"q",(function(){return g})),n.d(e,"o",(function(){return p})),n.d(e,"s",(function(){return Q})),n.d(e,"p",(function(){return h})),n.d(e,"r",(function(){return m})),n.d(e,"I",(function(){return B})),n.d(e,"T",(function(){return C})),n.d(e,"t",(function(){return E})),n.d(e,"x",(function(){return I})),n.d(e,"H",(function(){return b})),n.d(e,"S",(function(){return w})),n.d(e,"K",(function(){return v})),n.d(e,"V",(function(){return y})),n.d(e,"w",(function(){return x})),n.d(e,"Q",(function(){return j})),n.d(e,"O",(function(){return L})),n.d(e,"M",(function(){return D})),n.d(e,"N",(function(){return H})),n.d(e,"v",(function(){return O})),n.d(e,"y",(function(){return k})),n.d(e,"R",(function(){return J})),n.d(e,"J",(function(){return X})),n.d(e,"U",(function(){return U})),n.d(e,"L",(function(){return N})),n.d(e,"W",(function(){return R})),n.d(e,"u",(function(){return G})),n.d(e,"P",(function(){return _})),n.d(e,"cb",(function(){return M})),n.d(e,"A",(function(){return S})),n.d(e,"z",(function(){return Y})),n.d(e,"D",(function(){return z})),n.d(e,"G",(function(){return F})),n.d(e,"E",(function(){return T})),n.d(e,"F",(function(){return P})),n.d(e,"B",(function(){return K})),n.d(e,"C",(function(){return V})),n.d(e,"d",(function(){return W})),n.d(e,"e",(function(){return Z})),n.d(e,"c",(function(){return q})),n.d(e,"f",(function(){return $})),n.d(e,"i",(function(){return tt})),n.d(e,"b",(function(){return et})),n.d(e,"a",(function(){return nt})),n.d(e,"h",(function(){return rt})),n.d(e,"g",(function(){return ot}));var r=n("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,e){return r["a"].post("store/category/status/".concat(t),{status:e})}function i(t){return r["a"].get("store/brand/category/lst",t)}function A(){return r["a"].get("store/brand/category/create/form")}function d(t){return r["a"].get("store/brand/category/update/form/".concat(t))}function l(t){return r["a"].delete("store/brand/category/delete/".concat(t))}function f(t,e){return r["a"].post("store/brand/category/status/".concat(t),{status:e})}function g(t){return r["a"].get("store/brand/lst",t)}function p(){return r["a"].get("store/brand/create/form")}function Q(t){return r["a"].get("store/brand/update/form/".concat(t))}function h(t){return r["a"].delete("store/brand/delete/".concat(t))}function m(t,e){return r["a"].post("store/brand/status/".concat(t),{status:e})}function B(t){return r["a"].get("store/product/lst",t)}function C(t){return r["a"].get("seckill/product/lst",t)}function E(){return r["a"].get("store/category/list")}function I(){return r["a"].get("system/merchant/category_lst")}function b(t){return r["a"].get("store/product/detail/".concat(t))}function w(t){return r["a"].get("seckill/product/detail/".concat(t))}function v(t){return r["a"].post("store/product/status",t)}function y(t){return r["a"].post("seckill/product/status",t)}function x(){return r["a"].get("store/product/lst_filter")}function j(){return r["a"].get("seckill/product/lst_filter")}function L(t){return r["a"].get("store/reply/lst",t)}function D(t){return r["a"].get(t?"store/reply/create/form/".concat(t):"store/reply/create/form")}function H(t){return r["a"].delete("store/reply/delete/".concat(t))}function O(t){return r["a"].get("store/product/list",t)}function k(){return r["a"].get("store/product/mer_select")}function J(){return r["a"].get("seckill/product/mer_select")}function X(t){return r["a"].post("store/product/status",t)}function U(t){return r["a"].post("seckill/product/status",t)}function N(t,e){return r["a"].post("store/product/update/".concat(t),e)}function R(t,e){return r["a"].post("seckill/product/update/".concat(t),e)}function G(t,e){return r["a"].post("store/product/change/".concat(t),{status:e})}function _(t,e){return r["a"].post("seckill/product/change/".concat(t),{status:e})}function M(t){return r["a"].get("store/product/ficti/form/".concat(t))}function S(t){return r["a"].get("store/product/presell/lst",t)}function Y(t){return r["a"].get("store/product/presell/get/".concat(t))}function z(t){return r["a"].get("store/product/presell/detail/".concat(t))}function F(t,e){return r["a"].post("store/product/presell/update/".concat(t),e)}function T(t){return r["a"].post("store/product/presell/status",t)}function P(t,e){return r["a"].post("store/product/presell/is_show/".concat(t),{status:e})}function K(){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 Z(t){return r["a"].get("store/product/assist/get/".concat(t))}function q(t){return r["a"].get("store/product/assist/detail/".concat(t))}function $(t){return r["a"].post("store/product/assist/status",t)}function tt(t,e){return r["a"].post("store/product/assist/is_show/".concat(t),{status:e})}function et(t){return r["a"].get("store/product/assist/set/lst",t)}function nt(t,e){return r["a"].get("store/product/assist/set/detail/".concat(t),e)}function rt(t){return r["a"].get("store/product/assist/get/".concat(t))}function ot(t,e){return r["a"].post("store/product/assist/update/".concat(t),e)}}}]);