1 line
6.3 KiB
JavaScript
1 line
6.3 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4172bb78"],{"056a":function(A,t){A.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAACUCAYAAAB1GVf9AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABBKADAAQAAAABAAAAlAAAAAD7OG/zAAAH8ElEQVR4Ae3dWXPUOBQGUGcYoKCAByi2///f2LewE5bAzVSXIBPfdu8y9/gFpdVedKT+4pbtcHRycnI6WAgQIPBL4B8KBAgQWAgIhIWEfwkQcIZgDBAg0AScITQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBP5tRaW5CLx//374+PHjcHJyMnz//n24dOnScOXKleH69evDjRs35tIMx9mhwNGvQXXa4XE5pAsEvn79Orx8+XL48uXLBbX/vXT16tXhzp07w+XLl0ffo4LAmIBAGJPp7PUIgadPnw6np8vz++joaLh///4Q4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ddHqP/uWmXulvYdoRA9ts+zhziKkL85yzxF5LiDMJCYF0BgbCu3I7Xi1PqVa4QxHvj+QOX9HbcMX/55gVChx0cXwHWmXQTBh125swOSSB01mERBL5bd9YphQ7HpGJnnS0MOuuQYocjEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMwF9dLtbhmksgE3CGkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCAiHTUUegmIBAKNbhmksgExAImY46AsUEBEKxDtdcApmAQMh01BEoJiAQinW45hLIBARCpqOOQDEBgVCswzWXQCYgEDIddQSKCQiEYh2uuQQyAYGQ6agjUExAIBTrcM0lkAkIhExHHYFiAgKhWIdrLoFMQCBkOuoIFBMQCMU6XHMJZAICIdNRR6CYgEAo1uGaSyATEAiZjjoCxQQEQrEO11wCmYBAyHTUESgmIBCKdbjmEsgEBEKmo45AMQGBUKzDNZdAJiAQMh11BIoJCIRiHa65BDIBgZDpqCNQTEAgFOtwzSWQCQiETEcdgWICAqFYh2sugUxAIGQ66ggUExAIxTpccwlkAgIh01FHoJiAQCjW4ZpLIBMQCJmOOgLFBARCsQ7XXAKZgEDIdNQRKCYgEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCPwEYef7DpS5s4AAAAABJRU5ErkJggg=="},"400e":function(A,t,e){"use strict";e.r(t);var s=function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card dataBox"},[e("div",{staticClass:"mb20"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:A.onAdd}},[A._v("添加商品分类")])],1),A._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:A.listLoading,expression:"listLoading"}],attrs:{data:A.tableData.data,size:"small","highlight-current-row":"","row-key":"store_category_id","default-expand-all":!1,"tree-props":{children:"children",hasChildren:"hasChildren"}}},[e("el-table-column",{attrs:{label:"分类名称","min-width":"200"},scopedSlots:A._u([{key:"default",fn:function(t){return[e("span",[A._v(A._s(t.row.cate_name+" [ "+t.row.store_category_id+" ]"))])]}}])}),A._v(" "),e("el-table-column",{attrs:{label:"分类图标","min-width":"80"},scopedSlots:A._u([{key:"default",fn:function(t){return[e("div",{staticClass:"demo-image__preview"},[e("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.pic?t.row.pic:A.moren,"preview-src-list":[t.row.pic?t.row.pic:A.moren]}})],1)]}}])}),A._v(" "),e("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"50"}}),A._v(" "),e("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:A._u([{key:"default",fn:function(t){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,width:55,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(e){return A.onchangeIsShow(t.row)}},model:{value:t.row.is_show,callback:function(e){A.$set(t.row,"is_show",e)},expression:"scope.row.is_show"}})]}}])}),A._v(" "),e("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),A._v(" "),e("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:A._u([{key:"default",fn:function(t){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return A.onEdit(t.row.store_category_id)}}},[A._v("编辑")]),A._v(" "),e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return A.handleDelete(t.row.store_category_id,t.$index)}}},[A._v("删除")])]}}])})],1)],1)],1)},a=[],i=e("c4c8"),n={name:"ProductClassify",data:function(){return{moren:e("056a"),isChecked:!1,listLoading:!0,tableData:{data:[],total:0}}},mounted:function(){this.getList()},methods:{getList:function(){var A=this;this.listLoading=!0,Object(i["Fb"])().then((function(t){A.tableData.data=t.data,A.listLoading=!1})).catch((function(t){A.listLoading=!1,A.$message.error(t.message)}))},onAdd:function(){var A=this;this.$modalForm(Object(i["Db"])()).then((function(){return A.getList()}))},onEdit:function(A){var t=this;this.$modalForm(Object(i["Hb"])(A)).then((function(){return t.getList()}))},handleDelete:function(A,t){var e=this;this.$modalSure("删除该分类").then((function(){Object(i["Eb"])(A).then((function(A){var t=A.message;e.$message.success(t),e.getList()})).catch((function(A){var t=A.message;e.$message.error(t)}))}))},onchangeIsShow:function(A){var t=this;Object(i["Gb"])(A.store_category_id,A.is_show).then((function(A){var e=A.message;t.$message.success(e)})).catch((function(A){var e=A.message;t.$message.error(e)}))}}},o=n,l=(e("e5c3"),e("2877")),r=Object(l["a"])(o,s,a,!1,null,"5947f765",null);t["default"]=r.exports},be5e:function(A,t,e){},e5c3:function(A,t,e){"use strict";e("be5e")}}]); |