chunk-5f298bb4.582ea41e.js 5.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5f298bb4"],{"7a66":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","highlight-current-row":""}},[e("el-table-column",{attrs:{prop:"merchant_category_id",label:"ID","min-width":"60"}}),t._v(" "),e("el-table-column",{attrs:{prop:"category_name",label:"分类名称","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{prop:"commission_rate",label:"手续费","min-width":"130"}}),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",align:"center"},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.merchant_category_id)}}},[t._v("编辑")]),t._v(" "),e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleDelete(n.row.merchant_category_id,n.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),e("div",{staticClass:"block"},[e("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},a=[],c=e("8492"),o={name:"MerchantClassify",data:function(){return{tableFrom:{page:1,limit:20},tableData:{data:[],total:0},listLoading:!0}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(c["d"])(this.tableFrom).then((function(n){t.tableData.data=n.data.list,t.tableData.total=n.data.count,t.listLoading=!1})).catch((function(n){t.listLoading=!1,t.$message.error(n.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},onAdd:function(){var t=this;this.$modalForm(Object(c["b"])()).then((function(){return t.getList()}))},onEdit:function(t){var n=this;this.$modalForm(Object(c["e"])(t)).then((function(){return n.getList()}))},handleDelete:function(t,n){var e=this;this.$modalSure().then((function(){Object(c["c"])(t).then((function(t){var r=t.message;e.$message.success(r),e.tableData.data.splice(n,1)})).catch((function(t){var n=t.message;e.$message.error(n)}))}))}}},i=o,u=e("2877"),s=Object(u["a"])(i,r,a,!1,null,"6791d77b",null);n["default"]=s.exports},8492:function(t,n,e){"use strict";e.d(n,"u",(function(){return a})),e.d(n,"s",(function(){return c})),e.d(n,"v",(function(){return o})),e.d(n,"t",(function(){return i})),e.d(n,"q",(function(){return u})),e.d(n,"n",(function(){return s})),e.d(n,"y",(function(){return l})),e.d(n,"o",(function(){return m})),e.d(n,"x",(function(){return d})),e.d(n,"w",(function(){return f})),e.d(n,"d",(function(){return h})),e.d(n,"b",(function(){return g})),e.d(n,"e",(function(){return p})),e.d(n,"c",(function(){return b})),e.d(n,"l",(function(){return y})),e.d(n,"z",(function(){return v})),e.d(n,"C",(function(){return _})),e.d(n,"B",(function(){return w})),e.d(n,"A",(function(){return k})),e.d(n,"r",(function(){return L})),e.d(n,"j",(function(){return x})),e.d(n,"a",(function(){return z})),e.d(n,"i",(function(){return C})),e.d(n,"k",(function(){return D})),e.d(n,"f",(function(){return F})),e.d(n,"g",(function(){return $})),e.d(n,"h",(function(){return j})),e.d(n,"p",(function(){return O})),e.d(n,"m",(function(){return S}));var r=e("0c6d");function a(t){return r["a"].get("merchant/menu/lst",t)}function c(){return r["a"].get("merchant/menu/create/form")}function o(t){return r["a"].get("merchant/menu/update/form/".concat(t))}function i(t){return r["a"].delete("merchant/menu/delete/".concat(t))}function u(t){return r["a"].get("system/merchant/lst",t)}function s(){return r["a"].get("system/merchant/create/form")}function l(t){return r["a"].get("system/merchant/update/form/".concat(t))}function m(t){return r["a"].delete("system/merchant/delete/".concat(t))}function d(t,n){return r["a"].post("system/merchant/status/".concat(t),{status:n})}function f(t){return r["a"].get("system/merchant/password/form/".concat(t))}function h(t){return r["a"].get("system/merchant/category/lst",t)}function g(){return r["a"].get("system/merchant/category/form")}function p(t){return r["a"].get("system/merchant/category/form/".concat(t))}function b(t){return r["a"].delete("system/merchant/category/".concat(t))}function y(t,n){return r["a"].get("merchant/order/lst/".concat(t),n)}function v(t){return r["a"].get("merchant/order/mark/".concat(t,"/form"))}function _(t,n){return r["a"].get("merchant/order/refund/lst/".concat(t),n)}function w(t){return r["a"].get("merchant/order/refund/mark/".concat(t,"/form"))}function k(t,n){return r["a"].post("merchant/order/reconciliation/create/".concat(t),n)}function L(t){return r["a"].post("system/merchant/login/".concat(t))}function x(t){return r["a"].get("merchant/intention/lst",t)}function z(t){return r["a"].get("merchant/intention/mark/".concat(t,"/form"))}function C(t){return r["a"].delete("merchant/intention/delete/".concat(t))}function D(t){return r["a"].get("merchant/intention/status/".concat(t,"/form"))}function F(t){return r["a"].get("system/merchant/changecopy/".concat(t,"/form"))}function $(){return r["a"].get("merchant/intention/agree")}function j(t){return r["a"].post("merchant/intention/agree",t)}function O(t,n){return r["a"].post("system/merchant/close/".concat(t),{status:n})}function S(){return r["a"].get("system/merchant/count")}}}]);