canyin-project/ybcy/views/channel/index/static/js/chunk-2d53693d.81872ad8.js

1 line
9.2 KiB
JavaScript
Raw Permalink Normal View History

2024-11-01 16:07:54 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d53693d"],{"381a":function(e,t,a){"use strict";var r=a("3a4e"),n=a.n(r);n.a},"3a4e":function(e,t,a){},"57af":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"outmain ba_f"},[a("div",{staticClass:"ba_f outmain"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"排队取号",name:"storequeuingdetails"}}),a("el-tab-pane",{attrs:{label:"桌位类型",name:"storequeuingtype"}}),a("el-tab-pane",{attrs:{label:"排队设置",name:"storequeuingset"}})],1)],1),e._m(0),a("div",[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.handleEdit}},[e._v("新增桌位类型")]),a("el-button",{attrs:{size:"medium"},on:{click:e.handleDelete}},[e._v("批量删除")])],1),a("div",{staticClass:"tabledata mar_t20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.list,"element-loading-text":e.elementLoadingText,stripe:"","row-key":"id"},on:{"selection-change":e.setSelectRows}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"sort",label:"排序"}}),a("el-table-column",{attrs:{prop:"name",label:"桌位类型"}}),a("el-table-column",{attrs:{prop:"num",label:"就餐人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("div",[e._v(e._s(t.row.min)+"~"+e._s(t.row.max)+"人")])])]}}])}),a("el-table-column",{attrs:{prop:"minute",label:"等待时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("div",[e._v(e._s(t.row.minute)+"分钟")])])]}}])}),a("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":"1","inactive-value":"2"},on:{change:function(a){return e.changeSwitch(t.row)}},model:{value:t.row.display,callback:function(a){e.$set(t.row,"display",a)},expression:"scope.row.display"}})]}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleEdit(t.row)}}},[e._v("编辑")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleDelete(t.row)}}},[e._v("删除")])],1)]}}])})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.size,"current-page":e.page.currentPage},on:{"update:currentPage":function(t){return e.$set(e.page,"currentPage",t)},"update:current-page":function(t){return e.$set(e.page,"currentPage",t)},"current-change":e.handleCurrentChange}}),a("edit",{ref:"edit",on:{fetchData:e.fetchData}})],1)])},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("桌位类型")])])])}],s=(a("d81d"),a("96cf"),a("1da1")),i=a("5530"),o=a("d4c7"),l=a("7cb7"),c=a("2f62"),u={components:{Edit:o["a"]},created:function(){this.fetchData()},computed:Object(i["a"])({},Object(c["d"])(["storeId"])),data:function(){return{activeName:"storequeuingtype",list:[],listLoading:!0,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1}}},methods:{handleClick:function(){"storequeuingdetails"==this.activeName?this.$router.push({path:"storequeuingdetails"}):"storequeuingtype"==this.activeName?this.$router.push({path:"storequeuingtype"}):"storequeuingset"==this.activeName&&this.$router.push({path:"storequeuingset"})},fetchData:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["Cc"])({page:e.page.currentPage,storeId:e.storeId});case 2:a=t.sent,r=a.data,n=a.count,e.list=r,e.pag