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,MACAC,EAAAA,EAAAA,aAIAA,EAAAA,SAAAA,IACA,cACAD,EAAAA,EAAAA,IAAAA,EAAAA,MACAE,EAAAA,EAAAA,aAIAA,EAAAA,SAAAA,IACA,cACAF,EAAAA,EAAAA,IAAAA,EAAAA,UAIA,IAGAG,UACA,uBCplBsQ,I,UCOlQC,GAAY,OACd,EACAlF,EACAgE,GACA,EACA,KACA,KACA,MAIF,EAAekB,EAAiB","sources":["webpack://eatwhat-admin/./src/views/Ingredient.vue?2a21","webpack://eatwhat-admin/src/views/Ingredient.vue","webpack://eatwhat-admin/./src/views/Ingredient.vue?c672","webpack://eatwhat-admin/./src/views/Ingredient.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:\"ingredient\"},[_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\":function($event){_vm.addIngredientDialogVisible = true}}},[_vm._v(\"添加新食材\")])],1),_c('div',{staticClass:\"table\"},[_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.ingredient.filter(\n function (data) { return !_vm.ingredientSearch ||\n data.ingreName\n .toLowerCase()\n .includes(_vm.ingredientSearch.toLowerCase()); }\n ),\"fit\":\"\",\"lazy\":\"\",\"stripe\":true,\"border\":true,\"highlight-current-row\":true,\"empty-text\":\"🥶正在努力加载中...\"}},[_c('el-table-column',{attrs:{\"label\":\"食材名称\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\" \"+_vm._s(scope.row.ingreName || \"未知\")+\" \")]}}])}),_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.ingrePut,\"preview-src-list\":_vm.ingredientImgs}},[_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.ingreAdd || \"未知\")+\" \")]}}])}),_c('el-table-column',{attrs:{\"label\":\"属性\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\" \"+_vm._s(scope.row.ingreAttr || \"未知\")+\" \")]}}])}),_c('el-table-column',{attrs:{\"label\":\"价格\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\" \"+_vm._s(scope.row.ingrePrice || \"0\")+\" 元 \")]}}])}),_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.ingredientSearch),callback:function ($$v) {_vm.ingredientSearch=$$v},expression:\"ingredientSearch\"}})]}},{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\",\"plain\":\"\"},on:{\"click\":function($event){return _vm.showUpdateIngredient(scope.row.ingreId)}}},[_vm._v(\"编辑\")]),_c('el-popconfirm',{staticStyle:{\"margin-left\":\"5px\"},attrs:{\"title\":\"确定删除该食材?此操作不可逆\"},on:{\"confirm\":function($event){return _vm.deleteIngredient(scope.row.ingreId)}}},[_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.addIngredientDialogVisible,\"width\":\"40%\",\"center\":true},on:{\"update:visible\":function($event){_vm.addIngredientDialogVisible=$event},\"close\":_vm.addIngredientDialogClosed}},[_c('el-form',{ref:\"addIngredientFormRef\",attrs:{\"model\":_vm.addIngredientForm,\"label-width\":\"80px\",\"size\":\"small\",\"rules\":_vm.addIngredientFormRules}},[_c('el-form-item',{attrs:{\"label\":\"食材名称\",\"prop\":\"ingreName\"}},[_c('el-input',{attrs:{\"prefix-icon\":\"el-icon-watermelon\",\"autocomplete\":\"off\",\"maxlength\":\"50\",\"clearable\":true},model:{value:(_vm.addIngredientForm.ingreName),callback:function ($$v) {_vm.$set(_vm.addIngredientForm, \"ingreName\", $$v)},expression:\"addIngredientForm.ingreName\"}})],1),_c('el-form-item',{attrs:{\"label\":\"食材产地\",\"prop\":\"ingreAdd\"}},[_c('el-cascader',{staticStyle:{\"width\":\"100%\"},attrs:{\"options\":_vm.citys,\"filterable\":\"\",\"clearable\":\"\",\"props\":{ expandTrigger: 'hover' }},model:{value:(_vm.addIngredientForm.ingreAdd),callback:function ($$v) {_vm.$set(_vm.addIngredientForm, \"ingreAdd\", $$v)},expression:\"addIngredientForm.ingreAdd\"}})],1),_c('el-form-item',{attrs:{\"label\":\"食材属性\",\"prop\":\"ingreAttr\"}},[_c('el-select',{attrs:{\"filterable\":\"\",\"clearable\":\"\",\"placeholder\":\"请选择食材属性\"},model:{value:(_vm.addIngredientForm.ingreAttr),callback:function ($$v) {_vm.$set(_vm.addIngredientForm, \"ingreAttr\", $$v)},expression:\"addIngredientForm.ingreAttr\"}},_vm._l((_vm.ingreAttrs),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/ingredient/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\":\"ingrePrice\"}},[_c('el-input',{attrs:{\"autocomplete\":\"off\",\"prefix-icon\":\"el-icon-coin\",\"clearable\":true,\"minlength\":\"1\",\"maxlength\":\"10\"},model:{value:(_vm.addIngredientForm.ingrePrice),callback:function ($$v) {_vm.$set(_vm.addIngredientForm, \"ingrePrice\", _vm._n($$v))},expression:\"addIngredientForm.ingrePrice\"}},[_c('i',{attrs:{\"slot\":\"suffix\"},slot:\"suffix\"},[_vm._v(\"元\")])])],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.addIngredientDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"round\":\"\",\"plain\":\"\",\"size\":\"small\"},on:{\"click\":_vm.addIngredient}},[_vm._v(\"确 定\")])],1)],1),_c('el-dialog',{attrs:{\"title\":\"更新食材信息\",\"visible\":_vm.updateIngredientDialogVisible,\"width\":\"40%\",\"center\":true},on:{\"update:visible\":function($event){_vm.updateIngredientDialogVisible=$event}}},[_c('el-form',{ref:\"updateIngredientFormRef\",attrs:{\"model\":_vm.updateIngredientForm,\"label-width\":\"80px\",\"size\":\"small\",\"rules\":_vm.addIngredientFormRules}},[_c('el-form-item',{attrs:{\"label\":\"食材名称\",\"prop\":\"ingreName\"}},[_c('el-input',{attrs:{\"prefix-icon\":\"el-icon-watermelon\",\"autocomplete\":\"off\",\"maxlength\":\"50\",\"clearable\":true},model:{value:(_vm.updateIngredientForm.ingreName),callback:function ($$v) {_vm.$set(_vm.updateIngredientForm, \"ingreName\", $$v)},expression:\"updateIngredientForm.ingreName\"}})],1),_c('el-form-item',{attrs:{\"label\":\"食材产地\",\"prop\":\"ingreAdd\"}},[_c('el-cascader',{staticStyle:{\"width\":\"100%\"},attrs:{\"options\":_vm.citys,\"filterable\":\"\",\"clearable\":\"\",\"props\":{ expandTrigger: 'hover' }},model:{value:(_vm.updateIngredientForm.ingreAdd),callback:function ($$v) {_vm.$set(_vm.updateIngredientForm, \"ingreAdd\", $$v)},expression:\"updateIngredientForm.ingreAdd\"}})],1),_c('el-form-item',{attrs:{\"label\":\"食材属性\",\"prop\":\"ingreAttr\"}},[_c('el-select',{attrs:{\"filterable\":\"\",\"clearable\":\"\",\"placeholder\":\"请选择食材属性\"},model:{value:(_vm.updateIngredientForm.ingreAttr),callback:function ($$v) {_vm.$set(_vm.updateIngredientForm, \"ingreAttr\", $$v)},expression:\"updateIngredientForm.ingreAttr\"}},_vm._l((_vm.ingreAttrs),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/ingredient/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\":\"ingrePrice\"}},[_c('el-input',{attrs:{\"autocomplete\":\"off\",\"prefix-icon\":\"el-icon-coin\",\"clearable\":true,\"minlength\":\"1\",\"maxlength\":\"10\"},model:{value:(_vm.updateIngredientForm.ingrePrice),callback:function ($$v) {_vm.$set(_vm.updateIngredientForm, \"ingrePrice\", _vm._n($$v))},expression:\"updateIngredientForm.ingrePrice\"}},[_c('i',{attrs:{\"slot\":\"suffix\"},slot:\"suffix\"},[_vm._v(\"元\")])])],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.updateIngredientDialogVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"round\":\"\",\"plain\":\"\",\"size\":\"small\"},on:{\"click\":_vm.updateIngredient}},[_vm._v(\"确 定\")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\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!./Ingredient.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!./Ingredient.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Ingredient.vue?vue&type=template&id=6d1117a3&\"\nimport script from \"./Ingredient.vue?vue&type=script&lang=js&\"\nexport * from \"./Ingredient.vue?vue&type=script&lang=js&\"\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 null,\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","on","$event","addIngredientDialogVisible","_v","staticStyle","ingredient","filter","data","ingredientSearch","ingreName","toLowerCase","includes","scopedSlots","_u","key","fn","scope","_s","row","ingrePut","ingredientImgs","slot","ingreAdd","ingreAttr","ingrePrice","model","value","callback","$$v","expression","showUpdateIngredient","ingreId","deleteIngredient","addIngredientDialogClosed","ref","addIngredientForm","addIngredientFormRules","$set","citys","expandTrigger","_l","item","label","uploadImg","uploadImgSuccess","uploadImgBtnVisible","directives","name","rawName","_n","addIngredient","updateIngredientDialogVisible","updateIngredientForm","updateImgSuccess","updateIngredient","staticRenderFns","required","message","trigger","min","max","type","ingreAttrs","methods","ingredientRes","fileList","guid","v","getLocationTransform","tansformLocation","provinceArr","cityArr","created","component"],"sourceRoot":""}