1 |
- {"version":3,"sources":["webpack:///./src/components/Page.vue?61f7","webpack:///./src/components/Page.vue?5a44","webpack:///src/components/Page.vue","webpack:///./src/components/Page.vue?7e0d","webpack:///./src/components/Page.vue","webpack:///./src/views/activity/Activity.vue?2d03","webpack:///./src/views/activity/Activity.vue?5283","webpack:///src/views/activity/Activity.vue","webpack:///./src/views/activity/Activity.vue?6e08","webpack:///./src/views/activity/Activity.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","page_size","current","total","on","getData","handleSizeChange","staticRenderFns","component","_m","staticClass","model","value","form","callback","$$v","$set","expression","search","_v","staticStyle","addActivity","directives","name","rawName","list","scopedSlots","_u","key","fn","scope","row","img","$event","edit","del","id","ref","page","gopage","components","Page","fuEditor","data","loading","rules","methods","openDiag","form1","dialogVisible","dialogTitle","size","$refs","pageButton","$api","getActivityList","then","$confirm","type","message","$router","push","save","validate","valid","parm","receiver_id","JSON","stringify","res","code","created"],"mappings":"kHAAA,W,2DCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,gBAAgB,CAACE,MAAM,CAAC,WAAa,GAAG,YAAYN,EAAIO,UAAUP,EAAIO,UAAU,GAAG,eAAeP,EAAIQ,QAAQ,aAAa,CAAC,GAAG,GAAI,GAAI,GAAI,GAAG,GAAG,GAAG,GAAG,GAAG,KAAK,OAAS,gCAAgC,MAAQR,EAAIS,OAAOC,GAAG,CAAC,iBAAiBV,EAAIW,QAAQ,cAAcX,EAAIY,qBAC7WC,EAAkB,GCwBtB,GACE,KADF,WAEI,MAAJ,CACM,KAAN,IAGE,MAAF,CACI,MAAJ,GACI,UAAJ,GACI,QAAJ,IAEE,QAAF,CACI,QADJ,SACA,GAMM,KAAN,OACM,KAAN,qBAEI,iBAVJ,SAUA,GACM,KAAN,wBAGE,QAzBF,cCzBkb,I,wBCQ9aC,EAAY,eACd,EACAf,EACAc,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UACNC,QAAS,UAGX,EAAhB,wBAEc,EAAd,UACc,EAAd,oBAGY,EAAZ,qCACmC,GAAjBU,EAAI1B,KAAK2B,KACX,EAAhB,UACkBZ,KAAM,UACNC,QAAS,UAGX,EAAhB,wBAEc,EAAd,UACc,EAAd,0BAOEY,QAjGF,WAkGI5E,KAAKU,YCvP4b,I,wBCQjcG,EAAY,eACd,EACAf,EACAc,GACA,EACA,KACA,KACA,MAIa,aAAAC,E","file":"js/chunk-03d7540c.3cc392df.js","sourcesContent":["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.6@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.6@vue-loader/lib/index.js??vue-loader-options!./Page.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('el-pagination',{attrs:{\"background\":\"\",\"page-size\":_vm.page_size?_vm.page_size:20,\"current-page\":_vm.current,\"page-sizes\":[10,20, 30, 40, 50,60,70,80,90,100],\"layout\":\"total,sizes,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: #3895FE !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='page_size?page_size:20'\r\n @size-change=\"handleSizeChange\"\r\n :current-page=\"current\"\r\n :page-sizes=\"[10,20, 30, 40, 50,60,70,80,90,100]\"\r\n layout=\"total,sizes,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 page_size:'',\r\n current:''\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 created(){\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.2.2@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.6@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.2.2@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.6@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=df237d3a&\"\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.6@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","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.6@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.6@vue-loader/lib/index.js??vue-loader-options!./Activity.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',[_vm._m(0),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"filter\"},[_c('el-form',{attrs:{\"size\":\"small\",\"label-width\":\"70px\",\"inline\":true,\"label-position\":\"left\"}},[_c('el-form-item',{attrs:{\"label\":\"\"}},[_c('el-input',{attrs:{\"clearable\":\"\",\"placeholder\":\"请输入标题\"},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.search}},[_vm._v(\"搜索\")])],1),_c('el-form-item',{staticStyle:{\"float\":\"right\"}},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.addActivity}},[_vm._v(\"发布活动\")])],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"table\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"height\":\"50vh\",\"border\":\"\",\"default-expand-all\":\"\",\"row-key\":\"id\"}},[_c('el-table-column',{attrs:{\"prop\":\"img\",\"label\":\"活动海报\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('img',{attrs:{\"src\":scope.row.img,\"alt\":\"\",\"height\":\"80\",\"width\":\"60\"}})]}}])}),_c('el-table-column',{attrs:{\"prop\":\"name\",\"label\":\"活动名称\",\"width\":\"300px\"}}),_c('el-table-column',{attrs:{\"prop\":\"journal_name\",\"label\":\"发布单位\"}}),_c('el-table-column',{attrs:{\"prop\":\"publish_time\",\"label\":\"主办方\"}}),_c('el-table-column',{attrs:{\"prop\":\"\",\"label\":\"承办方\"}}),_c('el-table-column',{attrs:{\"prop\":\"begin_time\",\"label\":\"活动时间\"}}),_c('el-table-column',{attrs:{\"prop\":\"address\",\"label\":\"活动地址\"}}),_c('el-table-column',{attrs:{\"prop\":\"desc\",\"label\":\"活动简介\",\"width\":\"500\"}}),_c('el-table-column',{attrs:{\"prop\":\"zip\",\"width\":\"150\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{staticClass:\"edit\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编辑\")]),_c('el-button',{staticClass:\"del\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.del(scope.row.id)}}},[_vm._v(\"删除\")])]}}])})],1),_c('Page',{ref:\"pageButton\",attrs:{\"current\":_vm.form.page,\"page_size\":_vm.form.page_size,\"total\":_vm.total},on:{\"pageChange\":_vm.gopage}})],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_c('span',[_vm._v(\"信息管理>\")]),_vm._v(\"活动管理\")])}]\n\nexport { render, staticRenderFns }","<style lang=\"scss\">\r\n.preview {\r\n .el-form-item {\r\n margin-bottom: 15px;\r\n }\r\n label,\r\n p {\r\n line-height: 25px !important;\r\n }\r\n}\r\n.el-cascader {\r\n width: 100%;\r\n}\r\na {\r\n text-decoration: none;\r\n color: #409eff;\r\n cursor: pointer;\r\n}\r\n// 右边\r\n.item-main {\r\n // margin:34px;\r\n // height:600px;\r\n // background: #FFFFFF;\r\n border: 1px solid #dddddd;\r\n box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.13);\r\n border-radius: 20px;\r\n .el-form.over_y {\r\n max-height: calc(100vh - 340px);\r\n }\r\n /deep/.el-form-item__label {\r\n float: none;\r\n }\r\n}\r\n// label样式\r\n.edit_label {\r\n /deep/.el-input__inner {\r\n background: #f5faff;\r\n border: 0px;\r\n padding: 0px;\r\n }\r\n}\r\n/deep/.opicon {\r\n font-weight: bold;\r\n padding: 5px;\r\n color: #3895fe;\r\n}\r\n.tpl_title {\r\n font-size: 18px;\r\n margin: 20px 0;\r\n}\r\n.tpl_form {\r\n margin: 20px;\r\n border: 1px solid #ccc;\r\n border-radius: 20px;\r\n /deep/.el-form-item {\r\n background: none;\r\n }\r\n /deep/.el-form-item__content {\r\n width: 100%;\r\n }\r\n}\r\n.survey_logo {\r\n position: relative;\r\n top: 15px;\r\n left: 20px;\r\n}\r\n.result_dialog .el-dialog{\r\n width: 40%;\r\n margin-top:20vh!important;\r\n}\r\n.result-item{\r\n height: 35px;\r\n .label{\r\n font-weight: 600;\r\n }\r\n}\r\n</style>\r\n<template>\r\n <section>\r\n <p><span>信息管理></span>活动管理</p>\r\n <div class=\"content\">\r\n <div class=\"filter\">\r\n <el-form\r\n size=\"small\"\r\n label-width=\"70px\"\r\n :inline=\"true\"\r\n label-position=\"left\"\r\n >\r\n <el-form-item label=\"\">\r\n <el-input\r\n clearable\r\n placeholder=\"请输入标题\"\r\n v-model=\"form.name\"\r\n ></el-input>\r\n </el-form-item>\r\n <el-form-item>\r\n <el-button type=\"primary\" @click=\"search\">搜索</el-button>\r\n </el-form-item>\r\n <el-form-item style=\"float: right\">\r\n <el-button @click=\"addActivity\" type=\"primary\">发布活动</el-button>\r\n </el-form-item>\r\n </el-form>\r\n </div>\r\n <el-table\r\n class=\"table\"\r\n :data=\"list\"\r\n height=\"50vh\"\r\n border\r\n v-loading=\"loading\"\r\n default-expand-all\r\n row-key=\"id\"\r\n style=\"width: 100%\"\r\n >\r\n <el-table-column prop=\"img\" label=\"活动海报\">\r\n <template slot-scope=\"scope\">\r\n <img :src=\"scope.row.img\" alt=\"\" height=\"80\" width=\"60\">\r\n </template>\r\n </el-table-column>\r\n <el-table-column prop=\"name\" label=\"活动名称\" width=\"300px\"></el-table-column>\r\n <el-table-column prop=\"journal_name\" label=\"发布单位\"></el-table-column>\r\n <el-table-column prop=\"publish_time\" label=\"主办方\"></el-table-column>\r\n <el-table-column prop=\"\" label=\"承办方\"></el-table-column>\r\n <el-table-column prop=\"begin_time\" label=\"活动时间\"></el-table-column>\r\n <el-table-column prop=\"address\" label=\"活动地址\"></el-table-column>\r\n <el-table-column prop=\"desc\" label=\"活动简介\" width=\"500\"></el-table-column>\r\n <el-table-column prop=\"zip\" width=\"150\" label=\"操作\">\r\n <template slot-scope=\"scope\">\r\n <el-button class=\"edit\" type=\"text\" @click=\"edit(scope.row)\"\r\n >编辑</el-button\r\n >\r\n <el-button class=\"del\" @click=\"del(scope.row.id)\" type=\"text\"\r\n >删除</el-button\r\n >\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <Page\r\n ref=\"pageButton\"\r\n :current=\"form.page\"\r\n :page_size=\"form.page_size\"\r\n :total=\"total\"\r\n @pageChange=\"gopage\"\r\n />\r\n </div>\r\n </section>\r\n</template>\r\n<script>\r\nimport Page from \"../../components/Page\";\r\nimport fuEditor from '../../components/fuEditor'\r\nexport default {\r\n components: {\r\n Page,\r\n fuEditor\r\n },\r\n data() {\r\n return {\r\n form: { name: \"\", page: 1, page_size: 20 },\r\n total: 1,\r\n list: [{ name: \"2333\" }],\r\n loading: false,\r\n rules: {\r\n name: [{ required: true, message: \"请输入标题\", trigger: \"blur\" }],\r\n },\r\n };\r\n },\r\n methods: {\r\n search() {\r\n let parm = this.form;\r\n this.getData();\r\n },\r\n openDiag() {\r\n this.form1 = {};\r\n this.dialogVisible = true;\r\n this.dialogTitle = \"发送消息\";\r\n },\r\n addActivity(){\r\n this.$router.push({path:'/learning/activity/add'})\r\n },\r\n gopage(size) {\r\n if (size) {\r\n this.form.page_size = size;\r\n }\r\n this.form.page = this.$refs.pageButton.page;\r\n this.getData();\r\n },\r\n getData() {\r\n var parm = this.form;\r\n this.loading = true;\r\n this.$api.getActivityList().then((res) => {\r\n this.list = res.data.data.list;\r\n this.loading = false;\r\n });\r\n },\r\n del(id) {\r\n this.$confirm(\"确定删除吗\", \"提示\", {\r\n type: \"warning\",\r\n }).then(() => {\r\n this.$api.delArticle({ 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 edit(row) {\r\n this.$router.push({path:'/article/article/add',query:{id:row.id}})\r\n },\r\n save() {\r\n this.$refs[\"form1\"].validate((valid) => {\r\n if (valid) {\r\n let parm = this.form1;\r\n let id = this.form1.id;\r\n parm.receiver_id = JSON.stringify(parm.receiver_id);\r\n if (id) {\r\n this.$api.editMessage(parm).then((res) => {\r\n if (res.data.code == 0) {\r\n this.$message({\r\n type: \"success\",\r\n message: \"保存成功!\",\r\n });\r\n } else {\r\n this.$message.error(\"保存失败!\");\r\n }\r\n this.getData();\r\n this.dialogVisible = false;\r\n });\r\n } else {\r\n this.$api.addMessage(parm).then((res) => {\r\n if (res.data.code == 0) {\r\n this.$message({\r\n type: \"success\",\r\n message: \"保存成功!\",\r\n });\r\n } else {\r\n this.$message.error(\"保存失败!\");\r\n }\r\n this.getData();\r\n this.dialogVisible = false;\r\n });\r\n }\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.2.2@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.6@vue-loader/lib/index.js??vue-loader-options!./Activity.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.2.2@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.6@vue-loader/lib/index.js??vue-loader-options!./Activity.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Activity.vue?vue&type=template&id=5d239d23&\"\nimport script from \"./Activity.vue?vue&type=script&lang=js&\"\nexport * from \"./Activity.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Activity.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/_vue-loader@15.9.6@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":""}
|