7.afffab7d9189f4c28af5.js.map 17 KB

1
  1. {"version":3,"sources":["webpack:///src/views/ums/menu/components/MenuDetail.vue","webpack:///./src/views/ums/menu/components/MenuDetail.vue?8100","webpack:///./src/views/ums/menu/components/MenuDetail.vue","webpack:///src/views/ums/menu/update.vue","webpack:///./src/views/ums/menu/update.vue?6112","webpack:///./src/views/ums/menu/update.vue"],"names":["defaultMenu","title","parentId","name","icon","hidden","sort","MenuDetail","props","isEdit","type","Boolean","default","data","menu","assign_default","selectMenuList","rules","required","message","trigger","min","max","created","_this","this","Object","$route","query","id","then","response","getSelectMenuList","methods","_this2","pageSize","pageNum","list","unshift","onSubmit","formName","_this3","$refs","validate","valid","$message","duration","$confirm","confirmButtonText","cancelButtonText","$router","back","resetFields","resetForm","components_MenuDetail","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","ref","model","label-width","label","prop","value","callback","$$v","$set","expression","_v","placeholder","_l","item","key","staticStyle","width","margin-left","icon-class","on","click","$event","_e","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__","update","components","menu_update","is-edit"],"mappings":"yIA+CAA,GACAC,MAAA,GACAC,SAAA,EACAC,KAAA,GACAC,KAAA,GACAC,OAAA,EACAC,KAAA,GAEAC,GACAJ,KAAA,aACAK,OACAC,QACAC,KAAAC,QACAC,SAAA,IAGAC,KARA,WASA,OACAC,KAAAC,OAAAf,GACAgB,kBACAC,OACAhB,QACAiB,UAAA,EAAAC,QAAA,UAAAC,QAAA,SACAC,IAAA,EAAAC,IAAA,IAAAH,QAAA,kBAAAC,QAAA,SAEAjB,OACAe,UAAA,EAAAC,QAAA,UAAAC,QAAA,SACAC,IAAA,EAAAC,IAAA,IAAAH,QAAA,kBAAAC,QAAA,SAEAhB,OACAc,UAAA,EAAAC,QAAA,UAAAC,QAAA,SACAC,IAAA,EAAAC,IAAA,IAAAH,QAAA,kBAAAC,QAAA,YAKAG,QA5BA,WA4BA,IAAAC,EAAAC,KACAA,KAAAhB,OAC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MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/7.afffab7d9189f4c28af5.js","sourcesContent":["<template>\n <el-card class=\"form-container\" shadow=\"never\">\n <el-form :model=\"menu\"\n :rules=\"rules\"\n ref=\"menuFrom\"\n label-width=\"150px\">\n <el-form-item label=\"菜单名称:\" prop=\"title\">\n <el-input v-model=\"menu.title\"></el-input>\n </el-form-item>\n <el-form-item label=\"上级菜单:\">\n <el-select v-model=\"menu.parentId\"\n placeholder=\"请选择菜单\">\n <el-option\n v-for=\"item in selectMenuList\"\n :key=\"item.id\"\n :label=\"item.title\"\n :value=\"item.id\">\n </el-option>\n </el-select>\n </el-form-item>\n <el-form-item label=\"前端名称:\" prop=\"name\">\n <el-input v-model=\"menu.name\"></el-input>\n </el-form-item>\n <el-form-item label=\"前端图标:\" prop=\"icon\">\n <el-input v-model=\"menu.icon\" style=\"width: 80%\"></el-input>\n <svg-icon style=\"margin-left: 8px\" :icon-class=\"menu.icon\"></svg-icon>\n </el-form-item>\n <el-form-item label=\"是否显示:\">\n <el-radio-group v-model=\"menu.hidden\">\n <el-radio :label=\"0\">是</el-radio>\n <el-radio :label=\"1\">否</el-radio>\n </el-radio-group>\n </el-form-item>\n <el-form-item label=\"排序:\">\n <el-input v-model=\"menu.sort\"></el-input>\n </el-form-item>\n <el-form-item>\n <el-button type=\"primary\" @click=\"onSubmit('menuFrom')\">提交</el-button>\n <el-button v-if=\"!isEdit\" @click=\"resetForm('menuFrom')\">重置</el-button>\n </el-form-item>\n </el-form>\n </el-card>\n</template>\n\n<script>\n import {fetchList, createMenu, updateMenu, getMenu} from '@/api/menu';\n\n const defaultMenu = {\n title: '',\n parentId: 0,\n name: '',\n icon: '',\n hidden: 0,\n sort: 0\n };\n export default {\n name: \"MenuDetail\",\n props: {\n isEdit: {\n type: Boolean,\n default: false\n }\n },\n data() {\n return {\n menu: Object.assign({}, defaultMenu),\n selectMenuList: [],\n rules: {\n title: [\n {required: true, message: '请输入菜单名称', trigger: 'blur'},\n {min: 2, max: 140, message: '长度在 2 到 140 个字符', trigger: 'blur'}\n ],\n name: [\n {required: true, message: '请输入前端名称', trigger: 'blur'},\n {min: 2, max: 140, message: '长度在 2 到 140 个字符', trigger: 'blur'}\n ],\n icon: [\n {required: true, message: '请输入前端图标', trigger: 'blur'},\n {min: 2, max: 140, message: '长度在 2 到 140 个字符', trigger: 'blur'}\n ]\n }\n }\n },\n created() {\n if (this.isEdit) {\n getMenu(this.$route.query.id).then(response => {\n this.menu = response.data;\n });\n } else {\n this.menu = Object.assign({}, defaultMenu);\n }\n this.getSelectMenuList();\n },\n methods: {\n getSelectMenuList() {\n fetchList(0, {pageSize: 100, pageNum: 1}).then(response => {\n this.selectMenuList = response.data.list;\n this.selectMenuList.unshift({id: 0, title: '无上级菜单'});\n });\n },\n onSubmit(formName) {\n this.$refs[formName].validate((valid) => {\n if (valid) {\n this.$confirm('是否提交数据', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n if (this.isEdit) {\n updateMenu(this.$route.query.id, this.menu).then(response => {\n this.$message({\n message: '修改成功',\n type: 'success',\n duration: 1000\n });\n this.$router.back();\n });\n } else {\n createMenu(this.menu).then(response => {\n this.$refs[formName].resetFields();\n this.resetForm(formName);\n this.$message({\n message: '提交成功',\n type: 'success',\n duration: 1000\n });\n this.$router.back();\n });\n }\n });\n\n } else {\n this.$message({\n message: '验证失败',\n type: 'error',\n duration: 1000\n });\n return false;\n }\n });\n },\n resetForm(formName) {\n this.$refs[formName].resetFields();\n this.menu = Object.assign({}, defaultMenu);\n this.getSelectMenuList();\n },\n }\n }\n</script>\n\n<style scoped>\n\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/views/ums/menu/components/MenuDetail.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',{staticClass:\"form-container\",attrs:{\"shadow\":\"never\"}},[_c('el-form',{ref:\"menuFrom\",attrs:{\"model\":_vm.menu,\"rules\":_vm.rules,\"label-width\":\"150px\"}},[_c('el-form-item',{attrs:{\"label\":\"菜单名称:\",\"prop\":\"title\"}},[_c('el-input',{model:{value:(_vm.menu.title),callback:function ($$v) {_vm.$set(_vm.menu, \"title\", $$v)},expression:\"menu.title\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"上级菜单:\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择菜单\"},model:{value:(_vm.menu.parentId),callback:function ($$v) {_vm.$set(_vm.menu, \"parentId\", $$v)},expression:\"menu.parentId\"}},_vm._l((_vm.selectMenuList),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.title,\"value\":item.id}})}))],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"前端名称:\",\"prop\":\"name\"}},[_c('el-input',{model:{value:(_vm.menu.name),callback:function ($$v) {_vm.$set(_vm.menu, \"name\", $$v)},expression:\"menu.name\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"前端图标:\",\"prop\":\"icon\"}},[_c('el-input',{staticStyle:{\"width\":\"80%\"},model:{value:(_vm.menu.icon),callback:function ($$v) {_vm.$set(_vm.menu, \"icon\", $$v)},expression:\"menu.icon\"}}),_vm._v(\" \"),_c('svg-icon',{staticStyle:{\"margin-left\":\"8px\"},attrs:{\"icon-class\":_vm.menu.icon}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"是否显示:\"}},[_c('el-radio-group',{model:{value:(_vm.menu.hidden),callback:function ($$v) {_vm.$set(_vm.menu, \"hidden\", $$v)},expression:\"menu.hidden\"}},[_c('el-radio',{attrs:{\"label\":0}},[_vm._v(\"是\")]),_vm._v(\" \"),_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"否\")])],1)],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"排序:\"}},[_c('el-input',{model:{value:(_vm.menu.sort),callback:function ($$v) {_vm.$set(_vm.menu, \"sort\", $$v)},expression:\"menu.sort\"}})],1),_vm._v(\" \"),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){_vm.onSubmit('menuFrom')}}},[_vm._v(\"提交\")]),_vm._v(\" \"),(!_vm.isEdit)?_c('el-button',{on:{\"click\":function($event){_vm.resetForm('menuFrom')}}},[_vm._v(\"重置\")]):_vm._e()],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-6066a354\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/ums/menu/components/MenuDetail.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-6066a354\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./MenuDetail.vue\")\n}\nvar normalizeComponent = require(\"!../../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./MenuDetail.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./MenuDetail.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6066a354\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./MenuDetail.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-6066a354\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/ums/menu/components/MenuDetail.vue\n// module id = null\n// module chunks = ","<template> \n <menu-detail :is-edit='true'></menu-detail>\n</template>\n<script>\n import MenuDetail from './components/MenuDetail'\n export default {\n name: 'updateMenu',\n components: { MenuDetail }\n }\n</script>\n<style>\n</style>\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/views/ums/menu/update.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('menu-detail',{attrs:{\"is-edit\":true}})}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-94dc695c\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/ums/menu/update.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-94dc695c\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./update.vue\")\n}\nvar normalizeComponent = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./update.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./update.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-94dc695c\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./update.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/ums/menu/update.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}