chunk-11fd501a.023eb565.js.map 7.9 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/content/addContent.vue?d48f","webpack:///./src/views/content/addContent.vue?4a82","webpack:///src/views/content/addContent.vue","webpack:///./src/views/content/addContent.vue?2ed9","webpack:///./src/views/content/addContent.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","attrs","model","value","form","callback","$$v","$set","expression","on","save","staticRenderFns","components","data","methods","getData","$api","getContentById","parm","id","editContent","then","res","code","addContent","created","$route","query","component"],"mappings":"kHAAA,yBAAqrB,EAAG,G,gECAxrB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACE,YAAY,YAAY,CAACF,EAAG,IAAI,CAACJ,EAAIO,GAAG,wBAAwBH,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,UAAU,CAACI,MAAM,CAAC,cAAc,SAAS,CAACJ,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,SAAS,CAACJ,EAAG,WAAW,CAACI,MAAM,CAAC,YAAc,QAAQC,MAAM,CAACC,MAAOV,EAAIW,KAAS,KAAEC,SAAS,SAAUC,GAAMb,EAAIc,KAAKd,EAAIW,KAAM,OAAQE,IAAME,WAAW,gBAAgB,GAAGX,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,SAAS,CAACJ,EAAG,WAAW,CAACI,MAAM,CAAC,YAAc,QAAQC,MAAM,CAACC,MAAOV,EAAIW,KAAU,MAAEC,SAAS,SAAUC,GAAMb,EAAIc,KAAKd,EAAIW,KAAM,QAASE,IAAME,WAAW,iBAAiB,GAAGX,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,MAAM,CAACJ,EAAG,YAAY,CAACI,MAAM,CAAC,KAAO,WAAWQ,GAAG,CAAC,MAAQhB,EAAIiB,OAAO,CAACjB,EAAIO,GAAG,SAAS,IAAI,IAAI,MACxxBW,EAAkB,GC0BtB,GACEC,WAAY,GACZC,KAFF,WAGI,MAAO,CACLT,KAAM,CAAZ,WAGEU,QAAS,CACPC,QADJ,WACA,WACMrB,KAAKsB,KAAKC,eAAe,CAA/B,oCACQ,EAAR,qBAGIP,KANJ,WAMA,WACUQ,EAAOxB,KAAKU,KACZc,EAAKC,GAEPzB,KAAKsB,KAAKI,YAAYF,GAAMG,MAAK,SAAzC,GAC+B,GAAjBC,EAAIT,KAAKU,MACX,EAAZ,2CACY,EAAZ,iCAEY,EAAZ,kCAIQ7B,KAAKsB,KAAKQ,WAAWN,GAAMG,MAAK,SAAxC,GAC+B,GAAjBC,EAAIT,KAAKU,MACX,EAAZ,2CACY,EAAZ,iCAEY,EAAZ,oCAMEE,QArCF,WAsCQ/B,KAAKgC,OAAOC,MAAMR,KACpBzB,KAAKU,KAAKe,GAAKzB,KAAKgC,OAAOC,MAAMR,GACjCzB,KAAKyB,GAAKzB,KAAKgC,OAAOC,MAAMR,GAC5BzB,KAAKqB,aCpE4b,I,wBCQnca,EAAY,eACd,EACApC,EACAmB,GACA,EACA,KACA,KACA,MAIa,aAAAiB,E","file":"js/chunk-11fd501a.023eb565.js","sourcesContent":["import mod from \"-!../../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/_vue-loader@15.9.2@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.2@vue-loader/lib/index.js??vue-loader-options!./addContent.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/_vue-loader@15.9.2@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.2@vue-loader/lib/index.js??vue-loader-options!./addContent.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:\"addclass\"},[_c('p',[_vm._v(\"内容管理 > 栏目管理 > 新增栏目\")]),_c('div',{staticClass:\"content\"},[_c('el-form',{attrs:{\"label-width\":\"80px\"}},[_c('el-form-item',{attrs:{\"label\":\"栏目名称\"}},[_c('el-input',{attrs:{\"placeholder\":\"栏目名称\"},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1),_c('el-form-item',{attrs:{\"label\":\"排序字段\"}},[_c('el-input',{attrs:{\"placeholder\":\"排序字段\"},model:{value:(_vm.form.order),callback:function ($$v) {_vm.$set(_vm.form, \"order\", $$v)},expression:\"form.order\"}})],1),_c('el-form-item',{attrs:{\"label\":\" \"}},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保存\")])],1)],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<style lang=\"scss\">\r\n.addclass {\r\n .el-input,\r\n button {\r\n width: 500px;\r\n }\r\n}\r\n</style>\r\n<template>\r\n <section class=\"addclass\">\r\n <p>内容管理 > 栏目管理 > 新增栏目</p>\r\n <div class=\"content\">\r\n <el-form label-width=\"80px\">\r\n <el-form-item label=\"栏目名称\">\r\n <el-input placeholder=\"栏目名称\" v-model=\"form.name\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"排序字段\">\r\n <el-input placeholder=\"排序字段\" v-model=\"form.order\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\" \">\r\n <el-button @click=\"save\" type=\"primary\">保存</el-button>\r\n </el-form-item>\r\n </el-form>\r\n </div>\r\n </section>\r\n</template>\r\n<script>\r\nexport default {\r\n components: {},\r\n data() {\r\n return {\r\n form: { name: \"\" }\r\n };\r\n },\r\n methods: {\r\n getData() {\r\n this.$api.getContentById({ id: this.form.id }).then(res => {\r\n this.form = res.data.data;\r\n });\r\n },\r\n save() {\r\n var parm = this.form;\r\n if (parm.id) {\r\n debugger;\r\n this.$api.editContent(parm).then(res => {\r\n if (res.data.code == 0) {\r\n this.$message({ message: \"修改成功!\", type: \"success\" });\r\n this.$router.push({ path: \"/content\" });\r\n } else {\r\n this.$message.error(res.data.message);\r\n }\r\n });\r\n } else {\r\n this.$api.addContent(parm).then(res => {\r\n if (res.data.code == 0) {\r\n this.$message({ message: \"添加成功!\", type: \"success\" });\r\n this.$router.push({ path: \"/content\" });\r\n } else {\r\n this.$message.error(res.data.message);\r\n }\r\n });\r\n }\r\n }\r\n },\r\n created() {\r\n if (this.$route.query.id) {\r\n this.form.id = this.$route.query.id;\r\n this.id = this.$route.query.id;\r\n this.getData();\r\n }\r\n }\r\n};\r\n</script>\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.1.0@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.2@vue-loader/lib/index.js??vue-loader-options!./addContent.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.1.0@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.2@vue-loader/lib/index.js??vue-loader-options!./addContent.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./addContent.vue?vue&type=template&id=11b6f0ac&\"\nimport script from \"./addContent.vue?vue&type=script&lang=js&\"\nexport * from \"./addContent.vue?vue&type=script&lang=js&\"\nimport style0 from \"./addContent.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/_vue-loader@15.9.2@vue-loader/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"],"sourceRoot":""}