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.
 
 
 
 
 
crmeb_php/public/system/js/chunk-59e52b70.60051d7f.js

1 lines
7.3 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59e52b70"],{"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+X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uMfpzh+OrQ3+ATCP31yf+OKCYE48Mfv/V/X+I3bFw9+P2BpJjFj2v+c1h6/DozB7ddHqP/uWmXulvYdoRA9ts+zhziKkL85yzxF5LiDMJCYF0BgbCu3I7Xi1PqVa4QxHvj+QOX9HbcMX/55gVChx0cXwHWmXQTBh125swOSSB01mERBL5bd9YphQ7HpGJnnS0MOuuQYocjEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMwF9dLtbhmksgE3CGkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCAiHTUUegmIBAKNbhmksgExAImY46AsUEBEKxDtdcApmAQMh01BEoJiAQinW45hLIBARCpqOOQDEBgVCswzWXQCYgEDIddQSKCQiEYh2uuQQyAYGQ6agjUExAIBTrcM0lkAkIhExHHYFiAgKhWIdrLoFMQCBkOuoIFBMQCMU6XHMJZAICIdNRR6CYgEAo1uGaSyATEAiZjjoCxQQEQrEO11wCmYBAyHTUESgmIBCKdbjmEsgEBEKmo45AMQGBUKzDNZdAJiAQMh11BIoJCIRiHa65BDIBgZDpqCNQTEAgFOtwzSWQCQiETEcdgWICAqFYh2sugUxAIGQ66ggUExAIxTpccwlkAgIh01FHoJiAQCjW4ZpLIBMQCJmOOgLFBARCsQ7XXAKZgEDIdNQRKCYgEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCPwEYef7DpS5s4AAAAABJRU5ErkJggg=="},"400e":function(t,e,A){"use strict";A.r(e);var a=function(){var t=this,e=t.$createElement,A=t._self._c||e;return A("div",{staticClass:"divBox"},[A("el-card",{staticClass:"box-card"},[A("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[A("el-button",{staticClass:"mb20",attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加商品分类")]),t._v(" "),A("el-alert",{attrs:{title:"平台商品的分类应添加至三级,否则商户添加商品时无分类可选",type:"warning"}})],1),t._v(" "),A("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"}}},[A("el-table-column",{attrs:{label:"分类名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[A("span",[t._v(t._s(e.row.cate_name+" [ "+e.row.store_category_id+" ]"))])]}}])}),t._v(" "),A("el-table-column",{attrs:{label:"分类图标","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[A("div",{staticClass:"demo-image__preview"},[A("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(" "),A("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"50"}}),t._v(" "),A("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[A("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(A){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_show,callback:function(A){t.$set(e.row,"is_show",A)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),A("el-table-column",{attrs:{prop:"status",label:"是否推荐","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[A("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"推荐","inactive-text":"不推荐"},on:{change:function(A){return t.onchangeIsRecommend(e.row)}},model:{value:e.row.is_hot,callback:function(A){t.$set(e.row,"is_hot",A)},expression:"scope.row.is_hot"}})]}}])}),t._v(" "),A("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),A("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[A("el-button",{attrs:{type:"text",size:"small"},on:{click:function(A){return t.onEdit(e.row.store_category_id)}}},[t._v("编辑")]),t._v(" "),A("el-button",{attrs:{type:"text",size:"small"},on:{click:function(A){return t.handleDelete(e.row.store_category_id,e.$index)}}},[t._v("删除")])]}}])})],1)],1)],1)},s=[],i=A("c4c8"),n={name:"ProductClassify",data:function(){return{moren:A("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(i["Ab"])(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(i["yb"])()).then((function(){return t.getList()}))},onEdit:function(t){var e=this;this.$modalForm(Object(i["Db"])(t)).then((function(){return e.getList()}))},handleDelete:function(t,e){var A=this;this.$modalSure().then((function(){Object(i["zb"])(t).then((function(t){var e=t.message;A.$message.success(e),A.getList()})).catch((function(t){var e=t.message;A.$message.error(e)}))}))},onchangeIsShow:function(t){var e=this;Object(i["Cb"])(t.store_category_id,t.is_show).then((function(t){var A=t.message;e.$message.success(A)})).catch((function(t){var A=t.message;e.$message.error(A)}))},onchangeIsRecommend:function(t){var e=this;Object(i["Bb"])(t.store_category_id,t.is_hot).then((function(t){var A=t.message;e.$message.success(A)})).catch((function(t){var A=t.message;e.$message.error(A)}))}}},o=n,l=A("2877"),c=Object(l["a"])(o,a,s,!1,null,"d854fb86",null);e["default"]=c.exports}}]);