1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-728cabf6"],{"0edc":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{attrs:{bordered:!1,"dis-hover":""}},[n("Button",{staticClass:"mb15",attrs:{type:"primary"},on:{click:t.modalToggle}},[t._v("添加分类")]),n("Table",{attrs:{columns:t.columns,data:t.tableCateList,loading:t.loading},scopedSlots:t._u([{key:"action",fn:function(e){var a=e.row;return[n("a",{on:{click:function(e){return t.onEdit(a)}}},[t._v("编辑")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.onDelete(a.id)}}},[t._v("删除")])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,"page-size":t.limit,"show-total":""},on:{"on-change":t.onChange}})],1)],1),n("Modal",{attrs:{"mask-closable":!1,title:"桌码分类",width:"540","class-name":"add-modal-wrap","footer-hide":""},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[n("Form",{attrs:{"label-width":107}},[n("FormItem",{attrs:{label:"桌码分类:"}},[n("Input",{attrs:{placeholder:"请输入"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1)],1),n("div",{staticClass:"footer"},[n("Button",{staticClass:"mr10",on:{click:t.modalToggle}},[t._v("取消")]),n("Button",{attrs:{type:"primary"},on:{click:t.addTableCate}},[t._v("确认")])],1)],1)],1)},r=[],o=n("90e7"),c={data:function(){return{columns:[{title:"桌码分类",key:"name"},{title:"桌子数量",key:"sum"},{title:"创建时间",key:"add_time"},{title:"操作",slot:"action",align:"center"}],tableCateList:[],total:100,limit:10,page:1,modal:!1,id:0,name:"",loading:!1}},created:function(){this.getTableCateList()},methods:{getTableCateList:function(){var t=this;this.loading=!0,Object(o["o"])({page:this.page,limit:this.limit}).then((function(e){var n=e.data,a=n.data,r=n.count;t.tableCateList=a,t.total=r,t.loading=!1}))},onChange:function(t){this.page=t,this.getTableCateList()},modalToggle:function(){this.id=0,this.name="",this.modal=!this.modal},onEdit:function(t){this.modal=!0,this.id=t.id,this.name=t.name},onDelete:function(t){var e=this;this.$modalSure({title:"删除桌码分类",url:"/table/del/cate/".concat(t),method:"delete",ids:""}).then((function(t){e.$Message.success(t.msg),e.getTableCateList()}))},addTableCate:function(){var t=this;Object(o["b"])(this.id,{name:this.name}).then((function(e){t.$Message.success(e.msg),t.modal=!1,t.getTableCateList()}))}}},u=c,i=(n("d9ba"),n("2877")),s=Object(i["a"])(u,a,r,!1,null,"383b5c5c",null);e["default"]=s.exports},"71fd":function(t,e,n){},"90e7":function(t,e,n){"use strict";n.d(e,"B",(function(){return r})),n.d(e,"t",(function(){return o})),n.d(e,"u",(function(){return c})),n.d(e,"s",(function(){return u})),n.d(e,"z",(function(){return i})),n.d(e,"f",(function(){return s})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return l})),n.d(e,"r",(function(){return m})),n.d(e,"w",(function(){return f})),n.d(e,"x",(function(){return h})),n.d(e,"h",(function(){return b})),n.d(e,"C",(function(){return g})),n.d(e,"D",(function(){return p})),n.d(e,"v",(function(){return j})),n.d(e,"i",(function(){return O})),n.d(e,"k",(function(){return y})),n.d(e,"j",(function(){return v})),n.d(e,"l",(function(){return C})),n.d(e,"m",(function(){return _})),n.d(e,"y",(function(){return k})),n.d(e,"q",(function(){return w})),n.d(e,"a",(function(){return T})),n.d(e,"o",(function(){return L})),n.d(e,"b",(function(){return B})),n.d(e,"p",(function(){return x})),n.d(e,"c",(function(){return D})),n.d(e,"g",(function(){return E})),n.d(e,"E",(function(){return M})),n.d(e,"A",(function(){return $})),n.d(e,"n",(function(){return q}));var a=n("b6bd");function r(){return Object(a["a"])({url:"system/role",method:"get"})}function o(t){return Object(a["a"])({url:"system/role/".concat(t.id),method:"post",data:t})}function c(t){return Object(a["a"])({url:"system/role/".concat(t,"/edit"),method:"get"})}function u(){return Object(a["a"])({url:"system/menusList",method:"get"})}function i(t){return Object(a["a"])({url:"system/admin",method:"get",params:t})}function s(t,e){return Object(a["a"])({url:"system/admin/set_status/".concat(t,"/").concat(e),method:"put"})}function d(){return Object(a["a"])({url:"system/admin/create",method:"get"})}function l(t){return Object(a["a"])({url:"system/admin/".concat(t,"/edit"),method:"get"})}function m(){return Object(a["a"])({url:"config",method:"get"})}function f(){return Object(a["a"])({url:"system/store/info",method:"get"})}function h(t){return Object(a["a"])({url:"system/store/update",method:"put",data:t})}function b(t){return Object(a["a"])({url:"city",method:"get",params:t})}function g(t){return Object(a["a"])({url:"setting/shipping_templates/list",method:"get",params:t})}function p(t,e){return Object(a["a"])({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function j(t){return Object(a["a"])({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function O(t){return Object(a["a"])({url:"city",method:"get",params:t})}function y(t){return Object(a["a"])({url:"/order/delivery_order/list",method:"get",params:t})}function v(t){return Object(a["a"])({url:"/order/delivery_order/cancelForm/".concat(t),method:"get"})}function C(t){return Object(a["a"])({url:"/system/store/getBusiness/".concat(t),method:"get"})}function _(t){return Object(a["a"])({url:"/system/config/".concat(t),method:"get"})}function k(t,e){return Object(a["a"])({url:"/system/config/".concat(t),method:"post",data:e})}function w(){return Object(a["a"])({url:"/table/seats/list",method:"get"})}function T(t,e){return Object(a["a"])({url:"/table/add/seats/".concat(t),method:"get",params:e})}function L(t){return Object(a["a"])({url:"/table/cate/list",method:"get",params:t})}function B(t,e){return Object(a["a"])({url:"/table/add/cate/".concat(t),method:"get",params:e})}function x(t){return Object(a["a"])({url:"/table/qrcodes/list",method:"get",params:t})}function D(t,e){return Object(a["a"])({url:"/table/add/qrcode/".concat(t),method:"post",data:e})}function E(){return Object(a["a"])({url:"/system/cashierMenusList",method:"get"})}function M(t,e){return Object(a["a"])({url:"/table/update/using/".concat(t),method:"get",params:e})}function $(t,e){return Object(a["a"])({url:"/system/form/info/".concat(t),method:"get",params:e})}function q(t){return Object(a["a"])({url:"system/config/edit_new_build/"+t,method:"get"})}},d9ba:function(t,e,n){"use strict";var a=n("71fd"),r=n.n(a);r.a}}]);
|