You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
4.0 KiB
1 lines
4.0 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e23773a0"],{"8cdf":function(t,e,a){},b47c:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"filter-container"},[a("div",{staticClass:"demo-input-suffix acea-row"},[a("el-form",{attrs:{inline:"",size:"small"}},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.createSetting}},[t._v("添加设置")])],1)],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{label:"序号","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.tableFrom.page-1)*t.tableFrom.limit+1))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"业务名称","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"类型","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(1==e.row.type?"复制商品":"电子面单"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"price",label:"价格(元)","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"num",label:"购买数量(次数)","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"添加时间","min-width":"180"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否显示","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏",width:55},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleEdit(e.row.meal_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.meal_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],s=a("90e7"),l={name:"serviceSetting",data:function(){return{props:{emitPath:!1},listLoading:!0,tableData:{data:[],total:0},fullscreenLoading:!1,tableFrom:{page:1,limit:20,store_name:"",keyword:"",date:""}}},mounted:function(){this.getList("")},methods:{getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["j"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(1)},createSetting:function(){var t=this;this.$modalForm(Object(s["b"])()).then((function(){return t.getList("")}))},onchangeIsShow:function(t){var e=this;Object(s["k"])(t.meal_id,{status:t.status}).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))},handleEdit:function(t){var e=this;this.$modalForm(Object(s["kb"])(t)).then((function(){return e.getList("")}))},handleDelete:function(t){var e=this;this.$modalSure().then((function(){Object(s["o"])(t).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))}))}}},o=l,r=(a("c9c5"),a("2877")),c=Object(r["a"])(o,n,i,!1,null,"4a1feafc",null);e["default"]=c.exports},c9c5:function(t,e,a){"use strict";a("8cdf")}}]); |