canyin-project/ybcy/views/channel/index/static/js/chunk-1c5fe87e.64fba041.js

1 line
18 KiB
JavaScript
Raw Permalink Normal View History

2024-11-01 16:07:54 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1c5fe87e"],{"31ca":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"outmain ba_f tablemange"},[e._m(0),a("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"桌位管理",name:"table"}},[a("div",{staticClass:"flex flex-y-top mar_t20"},[a("div",{staticClass:"mar_r40"},[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.handleEdit}},[e._v("新增桌位")]),a("el-button",{attrs:{size:"medium"},on:{click:e.batchEdit}},[e._v("批量新增桌位")]),a("el-button",{attrs:{size:"medium",type:"danger",plain:""},on:{click:e.handleDelete}},[e._v("批量删除")])],1),a("el-form",{staticClass:"demo-form-inline searchform",attrs:{inline:!0,model:e.formInline}},[a("div",{staticClass:"mar_b20"},[a("el-form-item",{staticClass:"mar_l10",attrs:{label:"所属区域:"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},on:{change:e.onSearch},model:{value:e.formInline.areaId,callback:function(t){e.$set(e.formInline,"areaId",t)},expression:"formInline.areaId"}},e._l(e.qyOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{staticClass:"mar_l10",attrs:{label:"桌位类型:"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},on:{change:e.onSearch},model:{value:e.formInline.typeId,callback:function(t){e.$set(e.formInline,"typeId",t)},expression:"formInline.typeId"}},e._l(e.typeOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:""}},[a("el-input",{staticStyle:{width:"180px"},attrs:{size:"medium",placeholder:"请输入桌位编号查询"},on:{input:e.onSearch},model:{value:e.formInline.keyword,callback:function(t){e.$set(e.formInline,"keyword",t)},expression:"formInline.keyword"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.onSearch}},[e._v("搜索")])],1)],1)])],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:""},on:{"selection-change":e.setSelectRows}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"areaName",label:"所属区域"}}),a("el-table-column",{attrs:{prop:"typeName",label:"桌位类型"}}),a("el-table-column",{attrs:{prop:"name",label:"桌位编号"}}),a("el-table-column",{attrs:{prop:"createdAt",label:"人数区间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.minNum)+"-"+e._s(t.row.maxNum)+"人 ")]}}])}),a("el-table-column",{attrs:{prop:"display",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:{prop:"display",label:"小程序链接",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("yb_wm/shop/in/goods?scene="+e._s(t.row.id))])]}}])}),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.seeCode(t.row)}}},[e._v("查看小程序码")]),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.pagesize,"current-page":e.page.currentPage},on:{"update:currentPage":function(t){r