1 |
- {"version":3,"sources":["webpack:///./src/components/Page.vue?35b0","webpack:///./src/views/content/Index.vue?56f9","webpack:///./src/views/content/Index.vue?9aad","webpack:///src/views/content/Index.vue","webpack:///./src/views/content/Index.vue?2a36","webpack:///./src/views/content/Index.vue","webpack:///./src/components/Page.vue?6178","webpack:///src/components/Page.vue","webpack:///./src/components/Page.vue?2cee","webpack:///./src/components/Page.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","attrs","on","$event","$router","push","path","directives","name","rawName","value","expression","staticStyle","list","scopedSlots","_u","key","fn","scope","query","id","row","del","ref","total","gopage","staticRenderFns","components","Page","data","loading","page","page_size","methods","getData","$api","getContentList","res","status","message","type","$confirm","created","component","handleSizeChange"],"mappings":"2IAAA,yBAA0pB,EAAG,G,oCCA7pB,yBAAgrB,EAAG,G,2CCAnrB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACE,YAAY,SAAS,CAACF,EAAG,IAAI,CAACJ,EAAIO,GAAG,iBAAiBH,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,YAAY,CAACI,MAAM,CAAC,KAAO,QAAQ,KAAO,WAAWC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,QAAQC,KAAK,CAACC,KAAK,mBAAmB,CAACb,EAAIO,GAAG,WAAW,GAAGH,EAAG,WAAW,CAACU,WAAW,CAAC,CAACC,KAAK,UAAUC,QAAQ,YAAYC,MAAOjB,EAAW,QAAEkB,WAAW,YAAYZ,YAAY,QAAQa,YAAY,CAAC,MAAQ,QAAQX,MAAM,CAAC,KAAOR,EAAIoB,KAAK,OAAS,KAAK,CAAChB,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,OAAO,MAAQ,UAAUJ,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,QAAQ,MAAQ,UAAUJ,E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,EACAkC,GACA,EACA,KACA,KACA,MAIa,aAAAiB,E,oECnBf,IAAInD,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,gBAAgB,CAACI,MAAM,CAAC,WAAa,GAAG,YAAY,GAAG,aAAa,CAAC,GAAI,GAAI,GAAI,GAAG,GAAG,GAAG,GAAG,GAAG,KAAK,OAAS,gCAAgC,MAAQR,EAAI+B,OAAOtB,GAAG,CAAC,iBAAiBT,EAAIyC,QAAQ,cAAczC,EAAImD,qBACnTlB,EAAkB,GCuBtB,GACE,KADF,WAEI,MAAJ,CACM,KAAN,IAGE,MAAF,CACI,MAAJ,IAEE,QAAF,CACI,QADJ,SACA,GAMM,KAAN,OACM,KAAN,qBAEI,iBAVJ,SAUA,GACM,KAAN,yBC5Ckb,I,wBCQ9aiB,EAAY,eACd,EACAnD,EACAkC,GACA,EACA,KACA,KACA,MAIa,OAAAiB,E","file":"js/chunk-21e0730a.9dbab1a5.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!./Page.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!./Page.vue?vue&type=style&index=0&lang=scss&\"","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!./Index.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!./Index.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:\"apply\"},[_c('p',[_vm._v(\"内容管理 > 栏目管理\")]),_c('div',{staticClass:\"filter\"},[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":function($event){return _vm.$router.push({path:'/addContent'})}}},[_vm._v(\"新增栏目\")])],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"table\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"name\",\"label\":\"栏目名称\"}}),_c('el-table-column',{attrs:{\"prop\":\"ctime\",\"label\":\"创建时间\"}}),_c('el-table-column',{attrs:{\"prop\":\"operation\",\"width\":\"200\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"warning\"},on:{\"click\":function($event){return _vm.$router.push({path:'/addContent',query:{id:scope.row.id}})}}},[_vm._v(\"编辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.del(scope.row.id)}}},[_vm._v(\"删除\")])]}}])})],1),_c('Page',{ref:\"pageButton\",attrs:{\"total\":_vm.total},on:{\"pageChange\":_vm.gopage}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<style lang=\"scss\">\r\n.apply {\r\n .filter {\r\n background: #fff;\r\n padding: 10px;\r\n margin: 10px 0;\r\n }\r\n}\r\n</style>\r\n<template>\r\n <section class=\"apply\">\r\n <p>内容管理 > 栏目管理</p>\r\n <div class=\"filter\">\r\n <el-button size=\"small\" @click=\"$router.push({path:'/addContent'})\" type=\"primary\">新增栏目</el-button>\r\n </div>\r\n <el-table class=\"table\" :data=\"list\" border style=\"width: 100%\" v-loading='loading'>\r\n <!-- <el-table-column type=\"selection\" width=\"55\"></el-table-column> -->\r\n <el-table-column prop=\"name\" label=\"栏目名称\"></el-table-column>\r\n <el-table-column prop=\"ctime\" label=\"创建时间\"></el-table-column>\r\n <el-table-column prop=\"operation\" width=\"200\" label=\"操作\">\r\n <template slot-scope=\"scope\">\r\n <el-button\r\n @click=\"$router.push({path:'/addContent',query:{id:scope.row.id}})\"\r\n size=\"mini\"\r\n type=\"warning\"\r\n >编辑</el-button>\r\n <el-button @click=\"del(scope.row.id)\" size=\"mini\" type=\"danger\">删除</el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <Page ref=\"pageButton\" :total=\"total\" @pageChange=\"gopage\" />\r\n </section>\r\n</template>\r\n<script>\r\nimport Page from \"../../components/Page\";\r\nexport default {\r\n name: \"contents\",\r\n components: {\r\n Page\r\n },\r\n data() {\r\n return {\r\n total: 1,\r\n list: [],\r\n loading:false,\r\n page:1,\r\n page_size:20\r\n };\r\n },\r\n methods: {\r\n gopage(size){\r\n if(size){\r\n this.page_size=size\r\n }\r\n this.page=this.$refs.pageButton.page\r\n this.getData()\r\n },\r\n getData() {\r\n this.loading=true\r\n this.$api.getContentList({page:this.page,page_size:this.page_size}).then(res => {\r\n this.loading=false\r\n if (res.status == 200) {\r\n this.list = res.data.data.list;\r\n this.total = res.data.data.total;\r\n } else {\r\n this.$message({\r\n message: res.message,\r\n type: \"error\"\r\n });\r\n }\r\n });\r\n },\r\n del(id) {\r\n this.$confirm(\"确定删除吗\", \"提示\", {\r\n type: \"warning\"\r\n }).then(() => {\r\n this.$api.delContent({ id: id }).then(res => {\r\n this.$message({\r\n message: \"删除成功\",\r\n type: \"success\"\r\n });\r\n this.getData();\r\n });\r\n });\r\n }\r\n },\r\n created() {\r\n this.getData();\r\n }\r\n};\r\n</script>\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!./Index.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!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=5a2fbe8c&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-pagination',{attrs:{\"background\":\"\",\"page-size\":20,\"page-sizes\":[20, 30, 40, 50,60,70,80,90,100],\"layout\":\"sizes,total,prev, pager, next\",\"total\":_vm.total},on:{\"current-change\":_vm.getData,\"size-change\":_vm.handleSizeChange}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<style lang=\"scss\">\r\n @import '../style/style.scss';\r\n .el-pagination{\r\n li,button{\r\n border: 1px solid #CACACA !important;\r\n background-color: #fff !important;\r\n }\r\n .active{\r\n border:none !important;\r\n background: $mainColor !important;\r\n }\r\n }\r\n</style>\r\n<template>\r\n <el-pagination\r\n @current-change=\"getData\"\r\n background :page-size='20'\r\n @size-change=\"handleSizeChange\"\r\n :page-sizes=\"[20, 30, 40, 50,60,70,80,90,100]\"\r\n layout=\"sizes,total,prev, pager, next\"\r\n :total=\"total\">\r\n </el-pagination>\r\n</template>\r\n<script>\r\nexport default {\r\n data(){\r\n return{\r\n page:1\r\n }\r\n },\r\n props: {\r\n total:'',\r\n },\r\n methods:{\r\n getData(type){\r\n // if(type == 1){\r\n // this.data.pageNumber=this.data.pageNumber-1\r\n // }else if(type == 2){\r\n // this.data.pageNumber=this.data.pageNumber+1\r\n // }\r\n this.page=type\r\n this.$emit('pageChange')\r\n },\r\n handleSizeChange(val){\r\n this.$emit('pageChange',val)\r\n }\r\n }\r\n}\r\n</script>","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!./Page.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!./Page.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Page.vue?vue&type=template&id=19b5a85e&\"\nimport script from \"./Page.vue?vue&type=script&lang=js&\"\nexport * from \"./Page.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Page.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":""}
|