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 line
54 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"version":3,"file":"js/339.f2522571.js","mappings":"sKAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACA,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,WAAW,CAACG,MAAM,CAAC,MAAQ,SAAS,KAAO,UAAU,OAAS,GAAG,UAAW,MAAU,GAAGH,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,YAAY,CAACG,MAAM,CAAC,KAAO,UAAU,KAAO,QAAQ,MAAQ,GAAG,KAAO,gBAAgBC,GAAG,CAAC,MAAQR,EAAIS,eAAe,CAACT,EAAIU,GAAG,YAAY,GAAGN,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,WAAW,CAACO,YAAY,CAAC,MAAQ,QAAQJ,MAAM,CAAC,KAAOP,EAAIY,KAAKC,QAC7gB,SAAUC,GAAQ,OAAQd,EAAIe,YAC5BD,EAAKE,SAASC,cAAcC,SAASlB,EAAIe,WAAWE,kBACtD,IAAM,GAAG,KAAO,GAAG,QAAS,EAAK,QAAS,EAAK,yBAAwB,EAAK,aAAa,iBAAiB,CAACb,EAAG,kBAAkB,CAACG,MAAM,CAAC,KAAO,UAAUY,YAAYnB,EAAIoB,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAASC,GAAO,MAAO,CAACnB,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,OAAO,CAACJ,EAAIU,GAAG,aAAaN,EAAG,MAAM,CAACE,YAAY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AAA,EAAAA,EACA,0BAKAjF,eACA,6BACA,gCAGAkF,UACA,iBCryBgQ,I,UCQ5PC,GAAY,OACd,EACA7F,EACA6E,GACA,EACA,KACA,WACA,MAIF,EAAegB,EAAiB","sources":["webpack://eatwhat-admin/./src/views/Menu.vue?c02b","webpack://eatwhat-admin/src/views/Menu.vue","webpack://eatwhat-admin/./src/views/Menu.vue?517a","webpack://eatwhat-admin/./src/views/Menu.vue"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',[_c('div',{staticClass:\"menu\"},[_c('div',{staticClass:\"title\"},[_c('el-alert',{attrs:{\"title\":\"菜谱管理界面\",\"type\":\"success\",\"center\":\"\",\"closable\":false}})],1),_c('div',{staticClass:\"btn\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"small\",\"round\":\"\",\"icon\":\"el-icon-plus\"},on:{\"click\":_vm.addMenuClick}},[_vm._v(\"添加新菜谱\")])],1),_c('div',{staticClass:\"table\"},[_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.menu.filter(\n function (data) { return !_vm.menuSearch ||\n data.menuName.toLowerCase().includes(_vm.menuSearch.toLowerCase()); }\n ),\"fit\":\"\",\"lazy\":\"\",\"stripe\":true,\"border\":true,\"highlight-current-row\":true,\"empty-text\":\"🥶正在努力加载中...\"}},[_c('el-table-column',{attrs:{\"type\":\"expand\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',{staticClass:\"desc\"},[_c('div',{staticClass:\"desc-title\"},[_c('span',[_vm._v(\"描述信息:\")])]),_c('div',{staticClass:\"brief\"},[_vm._v(_vm._s(scope.row.menuBrief || \"暂无\"))])])]}}])}),_c('el-table-column',{attrs:{\"label\":\"菜谱名称\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\" \"+_vm._s(scope.row.menuName || \"未知\")+\" \")]}}])}),_c('el-table-column',{attrs:{\"label\":\"图片\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-image',{staticStyle:{\"width\":\"100px\",\"height\":\"100px\"},attrs:{\"src\":scope.row.menuPut,\"preview-src-list\":_vm.menuImgs}},[_c('div',{staticClass:\"image-slot\",attrs:{\"slot\":\"error\"},slot:\"error\"},[_c('i',{staticClass:\"el-icon-picture-outline\"})])])]}}])}),_c('el-table-column',{attrs:{\"label\":\"组成\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\" \"+_vm._s(scope.row.menuEle || \"未知\")+\" \")]}}])}),_c('el-table-column',{attrs:{\"label\":\"口味\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\" \"+_vm._s(scope.row.menuTaste || \"未知\")+\" \")]}}])}),_c('el-table-column',{attrs:{\"label\":\"菜系\",\"align\":\"center\",\"width\":\"100\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\" \"+_vm._s(scope.row.menuCuis || \"未知\")+\" \")]}}])}),_c('el-table-column',{attrs:{\"label\":\"难度\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-rate',{attrs:{\"disabled\":\"\",\"text-color\":\"#ff9900\"},model:{value:(scope.row.menuLevel),callback:function ($$v) {_vm.$set(scope.row, \"menuLevel\", $$v)},expression:\"scope.row.menuLevel\"}})]}}])}),_c('el-table-column',{attrs:{\"label\":\"价格\",\"align\":\"center\",\"width\":\"100\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\" \"+_vm._s(scope.row.menuPrice)+\" 元 \")]}}])}),_c('el-table-column',{attrs:{\"align\":\"center\"},scopedSlots:_vm._u([{key:\"header\",fn:function(scope){return [_c('el-input',{attrs:{\"size\":\"mini\",\"placeholder\":\"输入菜谱名称搜索\"},model:{value:(_vm.menuSearch),callback:function ($$v) {_vm.menuSearch=$$v},expression:\"menuSearch\"}})]}},{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\",\"plain\":\"\"},on:{\"click\":function($event){return _vm.showUpdateMenu(scope.row.menuId)}}},[_vm._v(\"编辑\")]),_c('el-popconfirm',{staticStyle:{\"margin-left\":\"5px\"},attrs:{\"title\":\"确定删除该菜谱?此操作不可逆\"},on:{\"confirm\":function($event){return _vm.deleteMenu(scope.row.menuId)}}},[_c('el-button',{attrs:{\"slot\":\"reference\",\"type\":\"danger\",\"size\":\"mini\",\"plain\":\"\"},slot:\"reference\"},[_vm._v(\"删除\")])],1)]}}])})],1)],1)]),_c('el-dialog',{attrs:{\"title\":\"添加菜谱\",\"visible\":_vm.addMenuDialogVisible,\"width\":\"40%\",\"center\":true},on:{\"update:visible\":function($event){_vm.addMenuDialogVisible=$event},\"close\":_vm.addMenuDialogClosed}},[_c('el-form',{ref:\"addMenuFormRef\",attrs:{\"model\":_vm.addMenuForm,\"label-width\":\"80px\",\"size\":\"small\",\"rules\":_vm.addMenuFormRules}},[_c('el-form-item',{attrs:{\"label\":\"菜谱名称\",\"prop\":\"menuName\"}},[_c('el-input',{attrs:{\"prefix-icon\":\"el-icon-food\",\"autocomplete\":\"off\",\"maxlength\":\"50\",\"clearable\":true},model:{value:(_vm.addMenuForm.menuName),callback:function ($$v) {_vm.$set(_vm.addMenuForm, \"menuName\", $$v)},expression:\"addMenuForm.menuName\"}})],1),_c('el-form-item',{attrs:{\"label\":\"菜谱组成\"}},[_vm._l((_vm.dynamicIngredientTags),function(tag){return _c('el-tag',{key:tag,staticStyle:{\"margin\":\"5px\"},attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleIngredientClose(tag)}}},[_vm._v(\" \"+_vm._s(tag)+\" \")])}),(_vm.inputIngredientVisible)?_c('el-input',{ref:\"saveTagInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm.apply(null, arguments)}},model:{value:(_vm.inputIngredientValue),callback:function ($$v) {_vm.inputIngredientValue=$$v},expression:\"inputIngredientValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":_vm.showInput}},[_vm._v(\"+ 原料\")])],2),_c('el-form-item',{attrs:{\"label\":\"预估价格\",\"prop\":\"menuPrice\"}},[_c('el-input',{attrs:{\"autocomplete\":\"off\",\"prefix-icon\":\"el-icon-wallet\",\"clearable\":true,\"maxlength\":\"5\"},model:{value:(_vm.addMenuForm.menuPrice),callback:function ($$v) {_vm.$set(_vm.addMenuForm, \"menuPrice\", _vm._n($$v))},expression:\"addMenuForm.menuPrice\"}},[_c('i',{attrs:{\"slot\":\"suffix\"},slot:\"suffix\"},[_vm._v(\"元\")])])],1),_c('el-form-item',{attrs:{\"label\":\"菜谱口味\",\"prop\":\"menuTaste\"}},[_c('el-select',{attrs:{\"filterable\":\"\",\"clearable\":\"\",\"placeholder\":\"请选择菜谱口味\"},model:{value:(_vm.addMenuForm.menuTaste),callback:function ($$v) {_vm.$set(_vm.addMenuForm, \"menuTaste\", $$v)},expression:\"addMenuForm.menuTaste\"}},_vm._l((_vm.menuTastes),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"菜谱图片\"}},[_c('el-upload',{ref:\"upload\",attrs:{\"action\":\"http://121.37.102.50:3006/menu/upload\",\"on-change\":_vm.uploadImg,\"on-success\":_vm.uploadImgSuccess,\"accept\":\".jpeg,.png,.jpg,.bmp,.gif\",\"list-type\":\"picture\",\"limit\":1,\"disabled\":_vm.uploadImgBtnVisible}},[_c('el-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.uploadImgBtnVisible),expression:\"!uploadImgBtnVisible\"}],attrs:{\"size\":\"small\",\"type\":\"primary\",\"plain\":\"\",\"round\":\"\"}},[_vm._v(\"选择图片\")])],1)],1),_c('el-form-item',{attrs:{\"label\":\"菜谱菜系\",\"prop\":\"menuCuis\"}},[_c('el-select',{attrs:{\"filterable\":\"\",\"clearable\":\"\",\"placeholder\":\"请选择菜谱菜系\"},model:{value:(_vm.addMenuForm.menuCuis),callback:function ($$v) {_vm.$set(_vm.addMenuForm, \"menuCuis\", $$v)},expression:\"addMenuForm.menuCuis\"}},_vm._l((_vm.menuCuis),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"上手难度\",\"prop\":\"menuLevel\"}},[_c('el-input',{attrs:{\"autocomplete\":\"off\",\"prefix-icon\":\"el-icon-star-off\",\"clearable\":true,\"maxlength\":\"1\"},model:{value:(_vm.addMenuForm.menuLevel),callback:function ($$v) {_vm.$set(_vm.addMenuForm, \"menuLevel\", _vm._n($$v))},expression:\"addMenuForm.menuLevel\"}})],1),_c('el-form-item',{attrs:{\"label\":\"菜谱简介\"}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":4,\"autocomplete\":\"off\",\"prefix-icon\":\"el-icon-star-off\",\"clearable\":true,\"minlength\":\"1\",\"maxlength\":\"255\",\"show-word-limit\":\"\"},model:{value:(_vm.addMenuForm.menuBrief),callback:function ($$v) {_vm.$set(_vm.addMenuForm, \"menuBrief\", _vm._n($$v))},expression:\"addMenuForm.menuBrief\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"round\":\"\",\"plain\":\"\",\"size\":\"small\",\"type\":\"info\"},on:{\"click\":function($event){_vm.addMenuDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"round\":\"\",\"plain\":\"\",\"size\":\"small\"},on:{\"click\":_vm.addMenu}},[_vm._v(\"确 定\")])],1)],1),_c('el-dialog',{attrs:{\"title\":\"添加菜谱\",\"visible\":_vm.updateMenuDialogVisible,\"width\":\"40%\",\"center\":true},on:{\"update:visible\":function($event){_vm.updateMenuDialogVisible=$event}}},[_c('el-form',{ref:\"updateMenuFormRef\",attrs:{\"model\":_vm.updateMenuForm,\"label-width\":\"80px\",\"size\":\"small\",\"rules\":_vm.addMenuFormRules}},[_c('el-form-item',{attrs:{\"label\":\"菜谱名称\",\"prop\":\"menuName\"}},[_c('el-input',{attrs:{\"prefix-icon\":\"el-icon-food\",\"autocomplete\":\"off\",\"maxlength\":\"50\",\"clearable\":true},model:{value:(_vm.updateMenuForm.menuName),callback:function ($$v) {_vm.$set(_vm.updateMenuForm, \"menuName\", $$v)},expression:\"updateMenuForm.menuName\"}})],1),_c('el-form-item',{attrs:{\"label\":\"菜谱组成\"}},[_vm._l((_vm.dynamicIngredientTags),function(tag){return _c('el-tag',{key:tag,staticStyle:{\"margin\":\"5px\"},attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleIngredientClose(tag)}}},[_vm._v(\" \"+_vm._s(tag)+\" \")])}),(_vm.inputIngredientVisible)?_c('el-input',{ref:\"saveTagInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm.apply(null, arguments)}},model:{value:(_vm.inputIngredientValue),callback:function ($$v) {_vm.inputIngredientValue=$$v},expression:\"inputIngredientValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":_vm.showInput}},[_vm._v(\"+ 原料\")])],2),_c('el-form-item',{attrs:{\"label\":\"预估价格\",\"prop\":\"menuPrice\"}},[_c('el-input',{attrs:{\"autocomplete\":\"off\",\"prefix-icon\":\"el-icon-wallet\",\"clearable\":true,\"maxlength\":\"5\"},model:{value:(_vm.updateMenuForm.menuPrice),callback:function ($$v) {_vm.$set(_vm.updateMenuForm, \"menuPrice\", _vm._n($$v))},expression:\"updateMenuForm.menuPrice\"}},[_c('i',{attrs:{\"slot\":\"suffix\"},slot:\"suffix\"},[_vm._v(\"元\")])])],1),_c('el-form-item',{attrs:{\"label\":\"菜谱口味\",\"prop\":\"menuTaste\"}},[_c('el-select',{attrs:{\"filterable\":\"\",\"clearable\":\"\",\"placeholder\":\"请选择菜谱口味\"},model:{value:(_vm.updateMenuForm.menuTaste),callback:function ($$v) {_vm.$set(_vm.updateMenuForm, \"menuTaste\", $$v)},expression:\"updateMenuForm.menuTaste\"}},_vm._l((_vm.menuTastes),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"菜谱图片\"}},[_c('el-upload',{ref:\"updateUpload\",attrs:{\"action\":\"http://121.37.102.50:3006/menu/upload\",\"on-change\":_vm.uploadImg,\"on-success\":_vm.updateImgSuccess,\"accept\":\".jpeg,.png,.jpg,.bmp,.gif\",\"list-type\":\"picture\",\"limit\":1,\"disabled\":_vm.uploadImgBtnVisible}},[_c('el-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.uploadImgBtnVisible),expression:\"!uploadImgBtnVisible\"}],attrs:{\"size\":\"small\",\"type\":\"primary\",\"plain\":\"\",\"round\":\"\"}},[_vm._v(\"选择图片\")])],1)],1),_c('el-form-item',{attrs:{\"label\":\"菜谱菜系\",\"prop\":\"menuCuis\"}},[_c('el-select',{attrs:{\"filterable\":\"\",\"clearable\":\"\",\"placeholder\":\"请选择菜谱菜系\"},model:{value:(_vm.updateMenuForm.menuCuis),callback:function ($$v) {_vm.$set(_vm.updateMenuForm, \"menuCuis\", $$v)},expression:\"updateMenuForm.menuCuis\"}},_vm._l((_vm.menuCuis),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"上手难度\",\"prop\":\"menuLevel\"}},[_c('el-input',{attrs:{\"autocomplete\":\"off\",\"prefix-icon\":\"el-icon-star-off\",\"clearable\":true,\"maxlength\":\"1\"},model:{value:(_vm.updateMenuForm.menuLevel),callback:function ($$v) {_vm.$set(_vm.updateMenuForm, \"menuLevel\", _vm._n($$v))},expression:\"updateMenuForm.menuLevel\"}})],1),_c('el-form-item',{attrs:{\"label\":\"菜谱简介\"}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":4,\"autocomplete\":\"off\",\"prefix-icon\":\"el-icon-star-off\",\"clearable\":true,\"minlength\":\"1\",\"maxlength\":\"255\",\"show-word-limit\":\"\"},model:{value:(_vm.updateMenuForm.menuBrief),callback:function ($$v) {_vm.$set(_vm.updateMenuForm, \"menuBrief\", _vm._n($$v))},expression:\"updateMenuForm.menuBrief\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"round\":\"\",\"plain\":\"\",\"size\":\"small\",\"type\":\"info\"},on:{\"click\":function($event){_vm.updateMenuDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"round\":\"\",\"plain\":\"\",\"size\":\"small\"},on:{\"click\":_vm.updateMenu}},[_vm._v(\"确 定\")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <el-card>\r\n <div class=\"menu\">\r\n <div class=\"title\">\r\n <el-alert title=\"菜谱管理界面\" type=\"success\" center :closable=\"false\">\r\n </el-alert>\r\n </div>\r\n <div class=\"btn\">\r\n <el-button\r\n type=\"primary\"\r\n size=\"small\"\r\n round\r\n icon=\"el-icon-plus\"\r\n @click=\"addMenuClick\"\r\n >添加新菜谱</el-button\r\n >\r\n </div>\r\n <div class=\"table\">\r\n <el-table\r\n :data=\"\r\n menu.filter(\r\n (data) =>\r\n !menuSearch ||\r\n data.menuName.toLowerCase().includes(menuSearch.toLowerCase())\r\n )\r\n \"\r\n style=\"width: 100%\"\r\n fit\r\n lazy\r\n :stripe=\"true\"\r\n :border=\"true\"\r\n :highlight-current-row=\"true\"\r\n empty-text=\"🥶正在努力加载中...\"\r\n >\r\n <el-table-column type=\"expand\">\r\n <template slot-scope=\"scope\">\r\n <div class=\"desc\">\r\n <div class=\"desc-title\">\r\n <span>描述信息:</span>\r\n </div>\r\n <div class=\"brief\">{{ scope.row.menuBrief || \"暂无\" }}</div>\r\n </div>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column label=\"菜谱名称\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n {{ scope.row.menuName || \"未知\" }}\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column label=\"图片\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <el-image\r\n style=\"width: 100px; height: 100px\"\r\n :src=\"scope.row.menuPut\"\r\n :preview-src-list=\"menuImgs\"\r\n >\r\n <div slot=\"error\" class=\"image-slot\">\r\n <i class=\"el-icon-picture-outline\"></i>\r\n </div>\r\n </el-image>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column label=\"组成\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n {{ scope.row.menuEle || \"未知\" }}\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column label=\"口味\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n {{ scope.row.menuTaste || \"未知\" }}\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column label=\"菜系\" align=\"center\" width=\"100\">\r\n <template slot-scope=\"scope\">\r\n {{ scope.row.menuCuis || \"未知\" }}\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column label=\"难度\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <el-rate\r\n v-model=\"scope.row.menuLevel\"\r\n disabled\r\n text-color=\"#ff9900\"\r\n >\r\n </el-rate>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column label=\"价格\" align=\"center\" width=\"100\">\r\n <template slot-scope=\"scope\">\r\n {{ scope.row.menuPrice }} 元\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column align=\"center\">\r\n <template slot=\"header\" slot-scope=\"scope\">\r\n <el-input\r\n v-model=\"menuSearch\"\r\n size=\"mini\"\r\n placeholder=\"输入菜谱名称搜索\"\r\n />\r\n </template>\r\n <template slot-scope=\"scope\">\r\n <el-button\r\n type=\"primary\"\r\n size=\"mini\"\r\n plain\r\n @click=\"showUpdateMenu(scope.row.menuId)\"\r\n >编辑</el-button\r\n >\r\n <el-popconfirm\r\n title=\"确定删除该菜谱?此操作不可逆\"\r\n style=\"margin-left: 5px\"\r\n @confirm=\"deleteMenu(scope.row.menuId)\"\r\n >\r\n <el-button slot=\"reference\" type=\"danger\" size=\"mini\" plain\r\n >删除</el-button\r\n >\r\n </el-popconfirm>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n </div>\r\n </div>\r\n\r\n <!-- 添加菜谱的dialog -->\r\n <el-dialog\r\n title=\"添加菜谱\"\r\n :visible.sync=\"addMenuDialogVisible\"\r\n width=\"40%\"\r\n :center=\"true\"\r\n @close=\"addMenuDialogClosed\"\r\n >\r\n <el-form\r\n :model=\"addMenuForm\"\r\n label-width=\"80px\"\r\n size=\"small\"\r\n ref=\"addMenuFormRef\"\r\n :rules=\"addMenuFormRules\"\r\n >\r\n <el-form-item label=\"菜谱名称\" prop=\"menuName\">\r\n <el-input\r\n prefix-icon=\"el-icon-food\"\r\n v-model=\"addMenuForm.menuName\"\r\n autocomplete=\"off\"\r\n maxlength=\"50\"\r\n :clearable=\"true\"\r\n ></el-input>\r\n </el-form-item>\r\n\r\n <el-form-item label=\"菜谱组成\">\r\n <el-tag\r\n style=\"margin: 5px\"\r\n :key=\"tag\"\r\n v-for=\"tag in dynamicIngredientTags\"\r\n closable\r\n :disable-transitions=\"false\"\r\n @close=\"handleIngredientClose(tag)\"\r\n >\r\n {{ tag }}\r\n </el-tag>\r\n <el-input\r\n class=\"input-new-tag\"\r\n v-if=\"inputIngredientVisible\"\r\n v-model=\"inputIngredientValue\"\r\n ref=\"saveTagInput\"\r\n size=\"small\"\r\n @keyup.enter.native=\"handleInputConfirm\"\r\n @blur=\"handleInputConfirm\"\r\n >\r\n </el-input>\r\n <el-button\r\n v-else\r\n class=\"button-new-tag\"\r\n size=\"small\"\r\n @click=\"showInput\"\r\n >+ 原料</el-button\r\n >\r\n </el-form-item>\r\n\r\n <el-form-item label=\"预估价格\" prop=\"menuPrice\">\r\n <el-input\r\n v-model.number=\"addMenuForm.menuPrice\"\r\n autocomplete=\"off\"\r\n prefix-icon=\"el-icon-wallet\"\r\n :clearable=\"true\"\r\n maxlength=\"5\"\r\n >\r\n <i slot=\"suffix\">元</i>\r\n </el-input>\r\n </el-form-item>\r\n\r\n <el-form-item label=\"菜谱口味\" prop=\"menuTaste\">\r\n <el-select\r\n v-model=\"addMenuForm.menuTaste\"\r\n filterable\r\n clearable\r\n placeholder=\"请选择菜谱口味\"\r\n >\r\n <el-option\r\n v-for=\"item in menuTastes\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n >\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n\r\n <el-form-item label=\"菜谱图片\">\r\n <el-upload\r\n action=\"http://121.37.102.50:3006/menu/upload\"\r\n ref=\"upload\"\r\n :on-change=\"uploadImg\"\r\n :on-success=\"uploadImgSuccess\"\r\n accept=\".jpeg,.png,.jpg,.bmp,.gif\"\r\n list-type=\"picture\"\r\n :limit=\"1\"\r\n :disabled=\"uploadImgBtnVisible\"\r\n >\r\n <el-button\r\n v-show=\"!uploadImgBtnVisible\"\r\n size=\"small\"\r\n type=\"primary\"\r\n plain\r\n round\r\n >选择图片</el-button\r\n >\r\n </el-upload>\r\n </el-form-item>\r\n\r\n <el-form-item label=\"菜谱菜系\" prop=\"menuCuis\">\r\n <el-select\r\n v-model=\"addMenuForm.menuCuis\"\r\n filterable\r\n clearable\r\n placeholder=\"请选择菜谱菜系\"\r\n >\r\n <el-option\r\n v-for=\"item in menuCuis\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n >\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n\r\n <el-form-item label=\"上手难度\" prop=\"menuLevel\">\r\n <el-input\r\n v-model.number=\"addMenuForm.menuLevel\"\r\n autocomplete=\"off\"\r\n prefix-icon=\"el-icon-star-off\"\r\n :clearable=\"true\"\r\n maxlength=\"1\"\r\n >\r\n </el-input>\r\n </el-form-item>\r\n\r\n <el-form-item label=\"菜谱简介\">\r\n <el-input\r\n type=\"textarea\"\r\n :rows=\"4\"\r\n v-model.number=\"addMenuForm.menuBrief\"\r\n autocomplete=\"off\"\r\n prefix-icon=\"el-icon-star-off\"\r\n :clearable=\"true\"\r\n minlength=\"1\"\r\n maxlength=\"255\"\r\n show-word-limit\r\n >\r\n </el-input>\r\n </el-form-item>\r\n </el-form>\r\n <div slot=\"footer\" class=\"dialog-footer\">\r\n <el-button\r\n @click=\"addMenuDialogVisible = false\"\r\n round\r\n plain\r\n size=\"small\"\r\n type=\"info\"\r\n >取 消</el-button\r\n >\r\n <el-button type=\"primary\" @click=\"addMenu\" round plain size=\"small\"\r\n >确 定</el-button\r\n >\r\n </div>\r\n </el-dialog>\r\n\r\n <!-- 更新菜谱信息的dialog -->\r\n <el-dialog\r\n title=\"添加菜谱\"\r\n :visible.sync=\"updateMenuDialogVisible\"\r\n width=\"40%\"\r\n :center=\"true\"\r\n >\r\n <el-form\r\n :model=\"updateMenuForm\"\r\n label-width=\"80px\"\r\n size=\"small\"\r\n ref=\"updateMenuFormRef\"\r\n :rules=\"addMenuFormRules\"\r\n >\r\n <el-form-item label=\"菜谱名称\" prop=\"menuName\">\r\n <el-input\r\n prefix-icon=\"el-icon-food\"\r\n v-model=\"updateMenuForm.menuName\"\r\n autocomplete=\"off\"\r\n maxlength=\"50\"\r\n :clearable=\"true\"\r\n ></el-input>\r\n </el-form-item>\r\n\r\n <el-form-item label=\"菜谱组成\">\r\n <el-tag\r\n style=\"margin: 5px\"\r\n :key=\"tag\"\r\n v-for=\"tag in dynamicIngredientTags\"\r\n closable\r\n :disable-transitions=\"false\"\r\n @close=\"handleIngredientClose(tag)\"\r\n >\r\n {{ tag }}\r\n </el-tag>\r\n <el-input\r\n class=\"input-new-tag\"\r\n v-if=\"inputIngredientVisible\"\r\n v-model=\"inputIngredientValue\"\r\n ref=\"saveTagInput\"\r\n size=\"small\"\r\n @keyup.enter.native=\"handleInputConfirm\"\r\n @blur=\"handleInputConfirm\"\r\n >\r\n </el-input>\r\n <el-button\r\n v-else\r\n class=\"button-new-tag\"\r\n size=\"small\"\r\n @click=\"showInput\"\r\n >+ 原料</el-button\r\n >\r\n </el-form-item>\r\n\r\n <el-form-item label=\"预估价格\" prop=\"menuPrice\">\r\n <el-input\r\n v-model.number=\"updateMenuForm.menuPrice\"\r\n autocomplete=\"off\"\r\n prefix-icon=\"el-icon-wallet\"\r\n :clearable=\"true\"\r\n maxlength=\"5\"\r\n >\r\n <i slot=\"suffix\">元</i>\r\n </el-input>\r\n </el-form-item>\r\n\r\n <el-form-item label=\"菜谱口味\" prop=\"menuTaste\">\r\n <el-select\r\n v-model=\"updateMenuForm.menuTaste\"\r\n filterable\r\n clearable\r\n placeholder=\"请选择菜谱口味\"\r\n >\r\n <el-option\r\n v-for=\"item in menuTastes\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n >\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n\r\n <el-form-item label=\"菜谱图片\">\r\n <el-upload\r\n action=\"http://121.37.102.50:3006/menu/upload\"\r\n ref=\"updateUpload\"\r\n :on-change=\"uploadImg\"\r\n :on-success=\"updateImgSuccess\"\r\n accept=\".jpeg,.png,.jpg,.bmp,.gif\"\r\n list-type=\"picture\"\r\n :limit=\"1\"\r\n :disabled=\"uploadImgBtnVisible\"\r\n >\r\n <el-button\r\n v-show=\"!uploadImgBtnVisible\"\r\n size=\"small\"\r\n type=\"primary\"\r\n plain\r\n round\r\n >选择图片</el-button\r\n >\r\n </el-upload>\r\n </el-form-item>\r\n\r\n <el-form-item label=\"菜谱菜系\" prop=\"menuCuis\">\r\n <el-select\r\n v-model=\"updateMenuForm.menuCuis\"\r\n filterable\r\n clearable\r\n placeholder=\"请选择菜谱菜系\"\r\n >\r\n <el-option\r\n v-for=\"item in menuCuis\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n >\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n\r\n <el-form-item label=\"上手难度\" prop=\"menuLevel\">\r\n <el-input\r\n v-model.number=\"updateMenuForm.menuLevel\"\r\n autocomplete=\"off\"\r\n prefix-icon=\"el-icon-star-off\"\r\n :clearable=\"true\"\r\n maxlength=\"1\"\r\n >\r\n </el-input>\r\n </el-form-item>\r\n\r\n <el-form-item label=\"菜谱简介\">\r\n <el-input\r\n type=\"textarea\"\r\n :rows=\"4\"\r\n v-model.number=\"updateMenuForm.menuBrief\"\r\n autocomplete=\"off\"\r\n prefix-icon=\"el-icon-star-off\"\r\n :clearable=\"true\"\r\n minlength=\"1\"\r\n maxlength=\"255\"\r\n show-word-limit\r\n >\r\n </el-input>\r\n </el-form-item>\r\n </el-form>\r\n <div slot=\"footer\" class=\"dialog-footer\">\r\n <el-button\r\n @click=\"updateMenuDialogVisible = false\"\r\n round\r\n plain\r\n size=\"small\"\r\n type=\"info\"\r\n >取 消</el-button\r\n >\r\n <el-button type=\"primary\" @click=\"updateMenu\" round plain size=\"small\"\r\n >确 定</el-button\r\n >\r\n </div>\r\n </el-dialog>\r\n </el-card>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"Menu\",\r\n data() {\r\n return {\r\n menu: [],\r\n menuSearch: \"\",\r\n menuImgs: [],\r\n\r\n //添加新菜谱的dialog对话框可见性\r\n addMenuDialogVisible: false,\r\n //更新菜谱信息的dialog对话框可见性\r\n updateMenuDialogVisible: false,\r\n inputIngredientVisible: false,\r\n //添加图片按钮的可见性\r\n uploadImgBtnVisible: false,\r\n\r\n //添加新菜谱的对象\r\n addMenuForm: {\r\n menuName: \"\",\r\n menuId: \"\",\r\n menuEle: \"\",\r\n menuTaste: \"\",\r\n menuCuis: \"\",\r\n menuBrief: \"\",\r\n menuLevel: \"\",\r\n menuPut: \"\",\r\n menuPrice: \"\",\r\n },\r\n\r\n //更新菜谱的对象\r\n updateMenuForm: {\r\n menuName: \"\",\r\n menuId: \"\",\r\n menuEle: \"\",\r\n menuTaste: \"\",\r\n menuCuis: \"\",\r\n menuBrief: \"\",\r\n menuLevel: \"\",\r\n menuPut: \"\",\r\n menuPrice: \"\",\r\n },\r\n\r\n //添加菜谱表单验证规则\r\n addMenuFormRules: {\r\n menuName: [\r\n { required: true, message: \"请输入菜谱名称\", trigger: \"blur\" },\r\n {\r\n min: 1,\r\n max: 50,\r\n message: \"长度在 1 到 50 个字符\",\r\n trigger: \"blur\",\r\n },\r\n ],\r\n menuTaste: [\r\n { required: true, message: \"请输入菜谱口味\", trigger: \"blur\" },\r\n {\r\n min: 1,\r\n max: 50,\r\n message: \"长度在 1 到 50 个字符\",\r\n trigger: \"blur\",\r\n },\r\n ],\r\n menuCuis: [\r\n { required: true, message: \"请输入菜谱菜系\", trigger: \"blur\" },\r\n {\r\n min: 1,\r\n max: 10,\r\n message: \"长度在 1 到 10 个字符\",\r\n trigger: \"blur\",\r\n },\r\n ],\r\n menuLevel: [\r\n { required: true, message: \"请填写上手难度\", trigger: \"blur\" },\r\n {\r\n min: 1,\r\n max: 5,\r\n type: \"number\",\r\n message: \"难度在1-5颗⭐\",\r\n trigger: \"blur\",\r\n },\r\n ],\r\n menuPrice: [\r\n { required: true, message: \"请填写菜谱预估价格\", trigger: \"blur\" },\r\n {\r\n min: 1,\r\n max: 10000,\r\n type: \"number\",\r\n message: \"价格在1万元以下\",\r\n trigger: \"blur\",\r\n },\r\n ],\r\n },\r\n\r\n //菜谱组成原料数组\r\n dynamicIngredientTags: [],\r\n //新的tag名字\r\n inputIngredientValue: \"\",\r\n //菜谱口味数组\r\n menuTastes: [\r\n {\r\n label: \"甜\",\r\n value: \"甜\",\r\n },\r\n {\r\n label: \"酸\",\r\n value: \"酸\",\r\n },\r\n {\r\n label: \"辣\",\r\n value: \"辣\",\r\n },\r\n {\r\n label: \"咸\",\r\n value: \"咸\",\r\n },\r\n {\r\n label: \"酸\",\r\n value: \"酸\",\r\n },\r\n {\r\n label: \"酸辣\",\r\n value: \"酸辣\",\r\n },\r\n {\r\n label: \"酸甜\",\r\n value: \"酸甜\",\r\n },\r\n {\r\n label: \"清淡\",\r\n value: \"清淡\",\r\n },\r\n {\r\n label: \"苦涩\",\r\n value: \"苦涩\",\r\n },\r\n {\r\n label: \"鲜香\",\r\n value: \"鲜香\",\r\n },\r\n ],\r\n //菜谱菜系数组\r\n menuCuis: [\r\n {\r\n label: \"川湘菜\",\r\n value: \"川湘菜\",\r\n },\r\n {\r\n label: \"鲁菜\",\r\n value: \"鲁菜\",\r\n },\r\n {\r\n label: \"东北菜\",\r\n value: \"东北菜\",\r\n },\r\n {\r\n label: \"西北菜\",\r\n value: \"西北菜\",\r\n },\r\n {\r\n label: \"粤菜\",\r\n value: \"粤菜\",\r\n },\r\n {\r\n label: \"徽菜\",\r\n value: \"徽菜\",\r\n },\r\n {\r\n label: \"西餐\",\r\n value: \"西餐\",\r\n },\r\n {\r\n label: \"主食\",\r\n value: \"主食\",\r\n },\r\n ],\r\n };\r\n },\r\n methods: {\r\n //获取所有菜谱\r\n async getMenu() {\r\n const { data: menuRes } = await this.$http.get(\"menu\");\r\n this.menu = menuRes;\r\n //存入数组图片,用于查看大图\r\n menuRes.forEach((item) => {\r\n this.menuImgs.push(item.ingrePut);\r\n });\r\n },\r\n\r\n //关闭新加菜谱的dialog对话框时触发\r\n addMenuDialogClosed() {\r\n this.$refs.addMenuFormRef.resetFields();\r\n this.addMenuForm.menuPut = \"\";\r\n this.uploadImgBtnVisible = false;\r\n },\r\n\r\n //处理原料tag关闭事件\r\n handleIngredientClose(tag) {\r\n this.dynamicIngredientTags.splice(\r\n this.dynamicIngredientTags.indexOf(tag),\r\n 1\r\n );\r\n },\r\n\r\n //处理对于tag回车事件或失去焦点的方法添加新的菜谱原料\r\n handleInputConfirm() {\r\n let inputValue = this.inputIngredientValue;\r\n if (inputValue) {\r\n this.dynamicIngredientTags.push(inputValue);\r\n }\r\n this.inputIngredientVisible = false;\r\n this.inputIngredientValue = \"\";\r\n },\r\n\r\n //点击新+原料事件触发方法\r\n showInput() {\r\n this.inputIngredientVisible = true;\r\n this.$nextTick((_) => {\r\n this.$refs.saveTagInput.$refs.input.focus();\r\n });\r\n },\r\n\r\n //上传图片前验证方法\r\n uploadImg(file, fileList) {\r\n if (file.status === \"ready\") {\r\n //文件类型,只能上传图片\r\n const isIMAGE = file.raw.type === \"jpeg\" || \"png\" || \"jpg\";\r\n //文件大小小于2M\r\n const isLt1M = file.size / 1024 / 1024 < 2;\r\n if (!isIMAGE) {\r\n this.$message.warning(\"上传文件只能是图片格式!\");\r\n fileList.pop();\r\n return;\r\n }\r\n if (!isLt1M) {\r\n this.$message.warning(\"上传文件大小不能超过 2MB!\");\r\n fileList.pop();\r\n return;\r\n }\r\n this.uploadImgBtnVisible = true;\r\n }\r\n },\r\n\r\n //添加菜谱图片上传成功的回调\r\n uploadImgSuccess(response, file, fileList) {\r\n //将图片路径存储至对象中\r\n this.addMenuForm.menuPut = response.data;\r\n this.$message.success(\"图片上传成功,请填写完成后点击确定按钮\");\r\n },\r\n\r\n //更新食材图片上传成功的回调\r\n updateImgSuccess(response, file, fileList) {\r\n //将图片路径存储至对象中\r\n this.updateMenuForm.menuPut = response.data;\r\n this.$message.success(\"图片上传成功,请填写完成后点击确定按钮\");\r\n },\r\n\r\n //添加菜谱方法\r\n addMenu() {\r\n //表单验证开始\r\n this.$refs.addMenuFormRef.validate(async (valid) => {\r\n //表单验证失败\r\n if (!valid) {\r\n this.$message.error(\"添加新菜谱验证失败\");\r\n return;\r\n }\r\n //添加菜谱编号\r\n this.addMenuForm.menuId = this.guid().slice(1, 10);\r\n //添加菜谱组成,以|分隔\r\n //菜谱组成字符串\r\n this.addMenuForm.menuEle = this.dynamicIngredientTags.join(\"|\");\r\n const { data: addMenuRes } = await this.$http.post(\r\n \"menu\",\r\n this.addMenuForm\r\n );\r\n if (addMenuRes.status !== 1) {\r\n this.$message.error(\"添加菜谱失败\");\r\n return;\r\n }\r\n this.getMenu();\r\n this.$message.success(\"添加菜谱成功!\");\r\n this.dynamicIngredientTags = [];\r\n });\r\n this.addMenuDialogVisible = false;\r\n this.$refs.upload.uploadFiles = [];\r\n this.uploadImgBtnVisible = false;\r\n },\r\n\r\n //删除菜谱的方法\r\n async deleteMenu(menuId) {\r\n const { data: deleteMenuRes } = await this.$http.delete(\"menu/\" + menuId);\r\n if (deleteMenuRes.status !== 1) {\r\n this.$message.error(\"删除菜谱失败\");\r\n return;\r\n }\r\n this.getMenu();\r\n this.$message.success(\"删除菜谱成功\");\r\n },\r\n\r\n //点击编辑按钮\r\n async showUpdateMenu(menuId) {\r\n const { data: MenuRes } = await this.$http.get(\"menu/\" + menuId);\r\n this.updateMenuForm = MenuRes[0];\r\n this.dynamicIngredientTags = MenuRes[0].menuEle.split(\"|\");\r\n this.updateMenuDialogVisible = true;\r\n },\r\n\r\n //更新菜谱信息的方法\r\n updateMenu() {\r\n this.$refs.updateMenuFormRef.validate(async (valid) => {\r\n //表单验证失败\r\n if (!valid) {\r\n this.$message.error(\"更新菜谱信息验证失败\");\r\n return;\r\n }\r\n //表单验证通过\r\n //将菜谱组成变为字符串并赋值\r\n this.updateMenuForm.menuEle = this.dynamicIngredientTags.join(\"|\");\r\n await this.$http.put(\"menu\", this.updateMenuForm);\r\n this.getMenu();\r\n this.$message.success(\"更新菜谱信息成功\");\r\n });\r\n this.updateMenuDialogVisible = false;\r\n this.$refs.updateUpload.uploadFiles = [];\r\n this.uploadImgBtnVisible = false;\r\n },\r\n\r\n //获取唯一id的方法\r\n guid() {\r\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(\r\n /[xy]/g,\r\n function (c) {\r\n var r = (Math.random() * 16) | 0,\r\n v = c == \"x\" ? r : (r & 0x3) | 0x8;\r\n return v.toString(16);\r\n }\r\n );\r\n },\r\n\r\n addMenuClick() {\r\n this.addMenuDialogVisible = true;\r\n this.dynamicIngredientTags = [];\r\n },\r\n },\r\n created() {\r\n this.getMenu();\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.el-tag + .el-tag {\r\n margin-left: 10px;\r\n}\r\n.button-new-tag {\r\n margin-left: 10px;\r\n height: 32px;\r\n line-height: 30px;\r\n padding-top: 0;\r\n padding-bottom: 0;\r\n}\r\n.input-new-tag {\r\n width: 90px;\r\n margin-left: 10px;\r\n vertical-align: bottom;\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Menu.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Menu.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Menu.vue?vue&type=template&id=9610d47e&scoped=true&\"\nimport script from \"./Menu.vue?vue&type=script&lang=js&\"\nexport * from \"./Menu.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Menu.vue?vue&type=style&index=0&id=9610d47e&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"9610d47e\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","on","addMenuClick","_v","staticStyle","menu","filter","data","menuSearch","menuName","toLowerCase","includes","scopedSlots","_u","key","fn","scope","_s","row","menuBrief","menuPut","menuImgs","slot","menuEle","menuTaste","menuCuis","model","value","callback","$$v","$set","expression","menuPrice","$event","showUpdateMenu","menuId","deleteMenu","addMenuDialogVisible","addMenuDialogClosed","ref","addMenuForm","addMenuFormRules","_l","tag","handleIngredientClose","handleInputConfirm","nativeOn","type","indexOf","_k","keyCode","apply","arguments","inputIngredientValue","showInput","_n","item","label","uploadImg","uploadImgSuccess","uploadImgBtnVisible","directives","name","rawName","addMenu","updateMenuDialogVisible","updateMenuForm","updateImgSuccess","updateMenu","staticRenderFns","inputIngredientVisible","menuLevel","required","message","trigger","min","max","dynamicIngredientTags","menuTastes","methods","menuRes","fileList","guid","v","created","component"],"sourceRoot":""}