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.
2 lines
16 KiB
2 lines
16 KiB
2 years ago
|
"use strict";(self["webpackChunkeatwhat_admin"]=self["webpackChunkeatwhat_admin"]||[]).push([[339],{7339:function(e,t,a){a.r(t),a.d(t,{default:function(){return o}});var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",[a("div",{staticClass:"menu"},[a("div",{staticClass:"title"},[a("el-alert",{attrs:{title:"菜谱管理界面",type:"success",center:"",closable:!1}})],1),a("div",{staticClass:"btn"},[a("el-button",{attrs:{type:"primary",size:"small",round:"",icon:"el-icon-plus"},on:{click:e.addMenuClick}},[e._v("添加新菜谱")])],1),a("div",{staticClass:"table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.menu.filter((function(t){return!e.menuSearch||t.menuName.toLowerCase().includes(e.menuSearch.toLowerCase())})),fit:"",lazy:"",stripe:!0,border:!0,"highlight-current-row":!0,"empty-text":"🥶正在努力加载中..."}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"desc"},[a("div",{staticClass:"desc-title"},[a("span",[e._v("描述信息:")])]),a("div",{staticClass:"brief"},[e._v(e._s(t.row.menuBrief||"暂无"))])])]}}])}),a("el-table-column",{attrs:{label:"菜谱名称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.menuName||"未知")+" ")]}}])}),a("el-table-column",{attrs:{label:"图片",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.row.menuPut,"preview-src-list":e.menuImgs}},[a("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[a("i",{staticClass:"el-icon-picture-outline"})])])]}}])}),a("el-table-column",{attrs:{label:"组成",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.menuEle||"未知")+" ")]}}])}),a("el-table-column",{attrs:{label:"口味",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.menuTaste||"未知")+" ")]}}])}),a("el-table-column",{attrs:{label:"菜系",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.menuCuis||"未知")+" ")]}}])}),a("el-table-column",{attrs:{label:"难度",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-rate",{attrs:{disabled:"","text-color":"#ff9900"},model:{value:t.row.menuLevel,callback:function(a){e.$set(t.row,"menuLevel",a)},expression:"scope.row.menuLevel"}})]}}])}),a("el-table-column",{attrs:{label:"价格",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.menuPrice)+" 元 ")]}}])}),a("el-table-column",{attrs:{align:"center"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-input",{attrs:{size:"mini",placeholder:"输入菜谱名称搜索"},model:{value:e.menuSearch,callback:function(t){e.menuSearch=t},expression:"menuSearch"}})]}},{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"primary",size:"mini",plain:""},on:{click:function(a){return e.showUpdateMenu(t.row.menuId)}}},[e._v("编辑")]),a("el-popconfirm",{staticStyle:{"margin-left":"5px"},attrs:{title:"确定删除该菜谱?此操作不可逆"},on:{confirm:function(a){return e.deleteMenu(t.row.menuId)}}},[a("el-button",{attrs:{slot:"reference",type:"danger",size:"mini",plain:""},slot:"reference"},[e._v("删除")])],1)]}}])})],1)],1)]),a("el-dialog",{attrs:{title:"添加菜谱",visible:e.addMenuDialogVisible,width:"40%",center:!0},on:{"update:visible":function(t){e.addMenuDialogVisible=t},close:e.addMenuDialogClosed}},[a("el-form",{ref:"addMenuFormRef",attrs:{model:e.addMenuForm,"label-width":"80px",size:"small",rules:e.addMenuFormRules}},[a("el-form-item",{attrs:{label:"菜谱名称",prop:"menuName"}},[a("el-input",{attrs:{"prefix-icon":"el-icon-food",autocomplete:"off",maxlength:"50",clearable:!0},model:{value:e.addMenuForm.menuName,callback:function(t){e.$set(e.addMenuForm,"menuName",t)},expression:"addMenuForm.menuName"}})],1),a("el-form-item",{attrs:{label:"菜谱组成"}},[e._l(e.dynamicIngredientTags,(funct
|
||
|
//# sourceMappingURL=339.f2522571.js.map
|