You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rcgy_xmf_qrcode/js/chunk-2378f1bb.f1f08a51.js.map

1 line
48 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"version":3,"sources":["webpack:///./src/views/operation/page/consultationRelease.vue","webpack:///src/views/operation/page/consultationRelease.vue","webpack:///./src/views/operation/page/consultationRelease.vue?9676","webpack:///./src/views/operation/page/consultationRelease.vue?5081","webpack:///./src/api/operation.js"],"names":["render","_vm","this","_c","_self","staticClass","_m","attrs","on","$event","add","_v","ref","config","tableCheck","slot","getNews","edit","table_row","del","add_vrisible","addClose","staticStyle","addForm","addRuleSuccess","scopedSlots","_u","key","fn","remoteMethod","loading","change","sefocus","model","value","ruleForm","newsCategoryId","callback","$$v","$set","expression","_l","options","item","id","name","proxy","$baseUrl","ImgeSuccess","imglist","handleExceed","beforeAvatarUpload","addSubmit","edit_vrisible","editClose","editForm","editSubmit","staticRenderFns","data","addDate","title","content","imgUrls","rules","required","message","trigger","form_item","type","label","placeholder","width","prop","slotName","activeName","thead","table_data","url","search_item","startDate","endDate","pageNum","size","created","methods","newsManagementUpdateCrawling","getUserList","newsCategoryManagementList","console","newsManagementInsert","newsManagementFindById","newsId","res","newsManagementUpdate","dateTimeChange","files","handleClick","status","arr","confirmButtonText","cancelButtonText","confirmButtonClass","cancelButtonClass","then","catch","action","component","announcementManagementRelease","service","request","method","notificationManagementInsert","notificationManagementFindById","params","notificationManagementUpdate","activityManagementFindById","activityManagementUpdate","activityManagementInsert","activityManagementFindRegistrationById","announcementManagementFindById","sponsorManagementInsert","sponsorManagementUpdate","sponsorManagementFindById","announcementManagementInsert","announcementManagementUpdate","sponsorManagementList","newsCategoryManagementInsert","newsCategoryManagementUpdate","newsCategoryManagementFindById","electronicCommerceCategoryInsert","electronicCommerceInsert","electronicCommerceCategoryList"],"mappings":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A,CACAC,aACAC,aACAC,kBACAC,YACAC,cAEA,CACAJ,YACAC,aACAC,kBACAC,YACAC,sBACAC,2BAEA,CACAL,YACAC,aACAC,kBACAC,aACAC,eACAC,oBAEA,CACAL,gBACAC,aACAC,kBACAC,aACAC,kBAIAjB,UACApB,UACAyB,WACAC,aACAzB,oBACA0B,YAEAK,WACA,CACAC,aACAC,aACAC,kBACAC,YACAC,cAEA,CACAJ,YACAC,aACAC,kBACAC,YACAC,sBACAC,2BAEA,CACAL,YACAC,aACAC,kBACAC,aACAC,eACAC,oBAEA,CACAL,gBACAC,aACAC,kBACAC,aACAC,kBAIAtD,aAEA+B,WACAyB,eACA7D,QACA8D,OACA,CAAAN,WAAAD,aAAAG,YACA,CAAAF,aAAAG,YAAAD,cAMA,CAAAF,aAAAG,aAAAD,cACA,CACAF,eACAG,wBACAD,cAEA,CAAAF,YAAAG,kBAAAD,cACA,CAAAF,aAAAG,kBAAAD,cAEAK,cACAC,yBACAC,aACA,CACAV,aACAC,aACAC,kBACAE,aAEA,CACAJ,aACAC,aACAC,kBACAE,cAcA,CACAJ,aACAC,YACAC,kBACAE,mBAEA,CACAJ,cACAC,aACAC,kBACAE,YACAO,4BACAC,wBACAT,gBAIAb,MACAuB,UACAC,YAKAC,UACA,oBAEAC,SACApE,UACAqE,0BACA,WACA,eACApB,kBACAG,iBAEA,gCAMAkB,eACA,OACAL,UACAC,QACArC,QAEA,gBACA0C,2BAEA,yBACA,mBAGA1D,gBACA,qBAEAG,UACA,oBAEAD,UACAyD,gBAEA9E,MACA,sBAEAW,WACA,2BACA,qBACA,iBAEAG,iBACA,UACA,uBAOAiE,2BACA,WACA,eACAxB,kBACAG,iBAEA,4BACA,oBAIAhB,YACA,iCAEAnC,QACA,YACA,eACAgD,mBACAG,gBAGA,sBACAoB,eACA,kCACAE,gBAAAC,iBAAA,KACAC,IAEA,GADAJ,eACA,uBACA,OACA3C,2BACAgC,2BAEA,gCACAe,uBAEA,iCAEA,kCAEA,0CACA,8C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GP,SAASgC,EAAuBhC,GACnC,OAAOkD,OAAQC,QAAQ,CACnBC,OAAQ,MACRjC,IAAK,2BACLoC,OAAQvD,IAGT,SAAS6B,EAA2B7B,GACvC,OAAOkD,OAAQC,QAAQ,CACnBC,OAAQ,MACRjC,IAAK,+BACLoC,OAAQvD,IAGT,SAASuE,EAAiCvE,GAC7C,OAAOkD,OAAQC,QAAQ,CACnBC,OAAQ,OACRjC,IAAK,oCACLnB,KAAMA,IAIP,SAAS2B,EAA6B3B,GACzC,OAAOkD,OAAQC,QAAQ,CACnBC,OAAQ,MACRjC,IAAK,gCACLoC,OAAQvD,IAUT,SAASwE,EAAyBxE,GACrC,OAAOkD,OAAQC,QAAQ,CACnBC,OAAQ,OACRjC,IAAK,4BACLnB,KAAMA,IAWP,SAASyE,EAA+BzE,GAC3C,OAAOkD,OAAQC,QAAQ,CACnBC,OAAQ,MACRjC,IAAK,mCACLoC,OAAQvD","file":"js/chunk-2378f1bb.f1f08a51.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"main-content\"},[_vm._m(0),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"content-btn\"},[_c('el-button',{staticClass:\"init-button\",attrs:{\"icon\":\"el-icon-plus\"},on:{\"click\":function($event){return _vm.add()}}},[_vm._v(\"资讯发布\")])],1),_c('div',{},[_c('VueTable',{ref:\"table\",attrs:{\"config\":_vm.config},on:{\"tableCheck\":_vm.tableCheck}},[_c('template',{slot:\"footer\"},[_c('div',{staticClass:\"table-footer\"},[_c('button',{on:{\"click\":_vm.getNews}},[_vm._v(\"获取最新资讯\")]),_c('button',{on:{\"click\":function($event){return _vm.edit(_vm.table_row)}}},[_vm._v(\"编辑\")]),_c('button',{on:{\"click\":function($event){return _vm.del(_vm.table_row)}}},[_vm._v(\"删除\")])])])],2)],1),_c('Drawer',{attrs:{\"drawerTitle\":\"资讯发布\",\"drawerVrisible\":_vm.add_vrisible},on:{\"drawerClose\":_vm.addClose}},[_c('div',{staticStyle:{\"padding\":\"30px\"}},[_c('FromCard',[_c('template',{slot:\"title\"},[_vm._v(\"资讯内容\")]),[_c('VueForm',{ref:\"addForm\",attrs:{\"formObj\":_vm.addForm},on:{\"ruleSuccess\":_vm.addRuleSuccess},scopedSlots:_vm._u([{key:\"newsCategoryId\",fn:function(){return [_c('el-select',{staticStyle:{\"width\":\"240px\"},attrs:{\"remote-method\":_vm.remoteMethod,\"loading\":_vm.loading,\"remote\":\"\",\"filterable\":\"\",\"placeholder\":\"请选择\"},on:{\"change\":_vm.change,\"focus\":_vm.sefocus},model:{value:(\n _vm.addForm.ruleForm.newsCategoryId\n ),callback:function ($$v) {_vm.$set(_vm.addForm.ruleForm, \"newsCategoryId\", $$v)},expression:\"\\n addForm.ruleForm.newsCategoryId\\n \"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.name,\"value\":item.id}})}),1)]},proxy:true}])},[_c('template',{slot:\"imgUrls\"},[[_c('el-upload',{attrs:{\"action\":`${_vm.$baseUrl}upload/uploadNews`,\"on-success\":_vm.ImgeSuccess,\"file-list\":_vm.imglist,\"on-exceed\":_vm.handleExceed,\"limit\":1,\"accept\":\".jpg,.png,.JPG,.PNG\",\"before-upload\":_vm.beforeAvatarUpload}},[_c('el-button',{attrs:{\"icon\":\"el-icon-edit\",\"size\":\"small\"}},[_vm._v(\"上传图片\")]),_c('span',{staticStyle:{\"margin-left\":\"10px\",\"font-size\":\"12px\",\"color\":\"#444444\"}},[_vm._v(\"建议比例3:2\")]),_c('div',{staticClass:\"el-upload__tip\",attrs:{\"slot\":\"tip\"},slot:\"tip\"},[_c('span',[_vm._v(\"支持扩展名png,jpg\")])])],1)]],2)],2)]],2)],1),_c('div',{attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('button',{staticClass:\"btn-orange\",on:{\"click\":function($event){return _vm.addSubmit()}}},[_c('span',[_c('i',{staticClass:\"el-icon-circle-check\"}),_vm._v(\"提交\")])]),_c('button',{staticClass:\"btn-gray\",on:{\"click\":_vm.addClose}},[_c('span',[_vm._v(\"取消\")])])])]),_c('Drawer',{attrs:{\"drawerTitle\":\"修改资讯\",\"drawerVrisible\":_vm.edit_vrisible},on:{\"drawerClose\":_vm.editClose}},[_c('div',{staticStyle:{\"padding\":\"30px\"}},[_c('FromCard',[_c('template',{slot:\"title\"},[_vm._v(\"资讯内容\")]),[_c('VueForm',{ref:\"editForm\",attrs:{\"formObj\":_vm.editForm},scopedSlots:_vm._u([{key:\"newsCategoryId\",fn:function(){return [_c('el-select',{staticStyle:{\"width\":\"240px\"},attrs:{\"remote-method\":_vm.remoteMethod,\"loading\":_vm.loading,\"remote\":\"\",\"filterable\":\"\",\"placeholder\":\"请选择\"},on:{\"change\":_vm.change,\"focus\":_vm.sefocus},model:{value:(\n _vm.editForm.ruleForm.newsCategoryId\n ),callback:function ($$v) {_vm.$set(_vm.editForm.ruleForm, \"newsCategoryId\", $$v)},expression:\"\\n editForm.ruleForm.newsCategoryId\\n \"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.name,\"value\":item.id}})}),1)]},proxy:true}])},[_c('template',{slot:\"imgUrls\"},[[_c('el-upload',{attrs:{\"action\":`${_vm.$baseUrl}upload/uploadNews`,\"on-success\":_vm.ImgeSuccess,\"file-list\":_vm.imglist,\"on-exceed\":_vm.handleExceed,\"limit\":1,\"accept\":\".jpg,.png,.JPG,.PNG\",\"before-upload\":_vm.beforeAvatarUpload}},[_c('el-button',{attrs:{\"icon\":\"el-icon-edit\",\"size\":\"small\"}},[_vm._v(\"上传图片\")]),_c('span',{staticStyle:{\"margin-left\":\"10px\",\"font-size\":\"12px\",\"color\":\"#444444\"}},[_vm._v(\"建议比例3:2\")]),_c('div',{staticClass:\"el-upload__tip\",attrs:{\"slot\":\"tip\"},slot:\"tip\"},[_c('span',[_vm._v(\"支持扩展名png,jpg\")])])],1)]],2)],2)]],2)],1),_c('div',{attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('button',{staticClass:\"btn-orange\",on:{\"click\":function($event){return _vm.editSubmit()}}},[_c('span',[_c('i',{staticClass:\"el-icon-circle-check\"}),_vm._v(\"提交\")])]),_c('button',{staticClass:\"btn-gray\",on:{\"click\":_vm.editClose}},[_c('span',[_vm._v(\"取消\")])])])])],1)])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"main-titel\"},[_c('span',[_vm._v(\"资讯信息\")])])\n}]\n\nexport { render, staticRenderFns }","<template>\n <div>\n <div class=\"main-content\">\n <div class=\"main-titel\">\n <span>资讯信息</span>\n </div>\n <div class=\"content\">\n <div class=\"content-btn\">\n <el-button\n class=\"init-button\"\n @click=\"add()\"\n icon=\"el-icon-plus\"\n >资讯发布</el-button\n >\n </div>\n\n <div class=\"\">\n <VueTable\n ref=\"table\"\n :config=\"config\"\n @tableCheck=\"tableCheck\"\n >\n <!-- <template slot=\"tabs\">\n <el-tabs\n v-model=\"activeName\"\n @tab-click=\"handleClick\"\n >\n <el-tab-pane\n label=\"全部\"\n name=\"0\"\n ></el-tab-pane>\n <el-tab-pane\n label=\"空置中\"\n name=\"1\"\n ></el-tab-pane>\n <el-tab-pane\n label=\"使用中\"\n name=\"2\"\n ></el-tab-pane>\n <el-tab-pane\n label=\"已停用\"\n name=\"3\"\n ></el-tab-pane>\n </el-tabs>\n </template> -->\n <template slot=\"footer\">\n <div class=\"table-footer\">\n <button @click=\"getNews\">获取最新资讯</button>\n <button @click=\"edit(table_row)\">编辑</button>\n <button @click=\"del(table_row)\">删除</button>\n </div>\n </template>\n </VueTable>\n </div>\n <!-- 新增 -->\n <Drawer\n drawerTitle=\"资讯发布\"\n @drawerClose=\"addClose\"\n :drawerVrisible=\"add_vrisible\"\n >\n <div style=\"padding: 30px\">\n <FromCard>\n <template slot=\"title\">资讯内容</template>\n <template>\n <VueForm ref=\"addForm\" :formObj=\"addForm\" @ruleSuccess=\"addRuleSuccess\">\n <template slot=\"imgUrls\">\n <template>\n <el-upload\n :action=\"`${$baseUrl}upload/uploadNews`\"\n :on-success=\"ImgeSuccess\"\n :file-list=\"imglist\"\n :on-exceed=\"handleExceed\"\n :limit=\"1\"\n accept=\".jpg,.png,.JPG,.PNG\"\n :before-upload=\"\n beforeAvatarUpload\n \"\n >\n <el-button\n icon=\"el-icon-edit\"\n size=\"small\"\n >上传图片</el-button\n >\n <span\n style=\"\n margin-left: 10px;\n font-size: 12px;\n color: #444444;\n \"\n >建议比例3:2</span\n >\n <div\n slot=\"tip\"\n class=\"el-upload__tip\"\n >\n <span\n >支持扩展名png,jpg</span\n >\n </div>\n </el-upload>\n </template>\n </template>\n <template v-slot:newsCategoryId>\n <el-select\n v-model=\"\n addForm.ruleForm.newsCategoryId\n \"\n :remote-method=\"remoteMethod\"\n @change=\"change\"\n @focus=\"sefocus\"\n :loading=\"loading\"\n remote\n style=\"width: 240px\"\n filterable\n placeholder=\"请选择\"\n >\n <el-option\n v-for=\"item in options\"\n :key=\"item.id\"\n :label=\"item.name\"\n :value=\"item.id\"\n >\n </el-option>\n </el-select>\n </template>\n </VueForm>\n </template>\n </FromCard>\n </div>\n <div slot=\"footer\">\n <button class=\"btn-orange\" @click=\"addSubmit()\">\n <span>\n <i class=\"el-icon-circle-check\"></i>提交</span\n >\n </button>\n <button class=\"btn-gray\" @click=\"addClose\">\n <span>取消</span>\n </button>\n </div>\n </Drawer>\n <!-- edit -->\n <Drawer\n drawerTitle=\"修改资讯\"\n @drawerClose=\"editClose\"\n :drawerVrisible=\"edit_vrisible\"\n >\n <div style=\"padding: 30px\">\n <FromCard>\n <template slot=\"title\">资讯内容</template>\n <template>\n <VueForm ref=\"editForm\" :formObj=\"editForm\">\n <template slot=\"imgUrls\">\n <template>\n <el-upload\n :action=\"`${$baseUrl}upload/uploadNews`\"\n :on-success=\"ImgeSuccess\"\n :file-list=\"imglist\"\n :on-exceed=\"handleExceed\"\n :limit=\"1\"\n accept=\".jpg,.png,.JPG,.PNG\"\n :before-upload=\"\n beforeAvatarUpload\n \"\n >\n <el-button\n icon=\"el-icon-edit\"\n size=\"small\"\n >上传图片</el-button\n >\n <span\n style=\"\n margin-left: 10px;\n font-size: 12px;\n color: #444444;\n \"\n >建议比例3:2</span\n >\n <div\n slot=\"tip\"\n class=\"el-upload__tip\"\n >\n <span\n >支持扩展名png,jpg</span\n >\n </div>\n </el-upload>\n </template>\n </template>\n <template v-slot:newsCategoryId>\n <el-select\n v-model=\"\n editForm.ruleForm.newsCategoryId\n \"\n :remote-method=\"remoteMethod\"\n @change=\"change\"\n @focus=\"sefocus\"\n :loading=\"loading\"\n remote\n style=\"width: 240px\"\n filterable\n placeholder=\"请选择\"\n >\n <el-option\n v-for=\"item in options\"\n :key=\"item.id\"\n :label=\"item.name\"\n :value=\"item.id\"\n >\n </el-option>\n </el-select>\n </template>\n </VueForm>\n </template>\n </FromCard>\n </div>\n <div slot=\"footer\">\n <button class=\"btn-orange\" @click=\"editSubmit()\">\n <span>\n <i class=\"el-icon-circle-check\"></i>提交</span\n >\n </button>\n <button class=\"btn-gray\" @click=\"editClose\">\n <span>取消</span>\n </button>\n </div>\n </Drawer>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport {\n newsManagementInsert,\n newsCategoryManagementList,newsManagementFindById,newsManagementUpdate,newsManagementUpdateCrawling\n} from '@/api/operation'\nexport default {\n data() {\n return {\n add_vrisible: false,edit_vrisible: false,\n addDate: null,\n options: [],\n addForm: {\n ruleForm: {\n title: null,\n content: null,\n newsCategoryId: null,\n imgUrls: [],\n },\n rules: {\n // 表单必填\n title: [\n { required: true, message: '请输入', trigger: 'change' }\n ],\n newsCategoryId: [\n { required: true, message: '请输入', trigger: 'change' }\n ],\n content: [\n { required: true, message: '请选择', trigger: 'change' }\n ]\n },\n form_item: [\n {\n type: 'Input',\n label: '资讯标题',\n placeholder: '请输入',\n width: '50%',\n prop: 'title'\n },\n {\n type: 'Slot',\n label: '资讯类型',\n placeholder: '请输入',\n width: '50%',\n prop: 'newsCategoryId',\n slotName: 'newsCategoryId'\n },\n {\n type: 'Slot',\n label: '图片上传',\n placeholder: '请输入',\n width: '100%',\n prop: 'imgUrls',\n slotName: 'imgUrls'\n },\n {\n type: 'textarea',\n label: '资讯内容',\n placeholder: '请输入',\n width: '100%',\n prop: 'content'\n }\n ]\n },\n editForm: {\n ruleForm: {\n title: null,\n content: null,\n newsCategoryId: null,\n imgUrls: [],\n },\n form_item: [\n {\n type: 'Input',\n label: '资讯标题',\n placeholder: '请输入',\n width: '50%',\n prop: 'title'\n },\n {\n type: 'Slot',\n label: '资讯类型',\n placeholder: '请输入',\n width: '50%',\n prop: 'newsCategoryId',\n slotName: 'newsCategoryId'\n },\n {\n type: 'Slot',\n label: '图片上传',\n placeholder: '请输入',\n width: '100%',\n prop: 'imgUrls',\n slotName: 'imgUrls'\n },\n {\n type: 'textarea',\n label: '资讯内容',\n placeholder: '请输入',\n width: '100%',\n prop: 'content'\n }\n ]\n },\n table_row: [],\n // 上传img文件\n imglist: [],\n activeName: '0',\n config: {\n thead: [\n { label: '序号', type: 'index', width: '80' },\n { label: '资讯编号', prop: 'code', width: 'auto' },\n // {\n // label: '设施类型',\n // prop: 'facilitiesCategoryName',\n // width: 'auto'\n // },\n { label: '资讯标题', prop: 'title', width: 'auto' },\n {\n label: '资讯类型名称',\n prop: 'newsCategoryName',\n width: 'auto'\n },\n { label: '发布人', prop: 'createName', width: 'auto' },\n { label: '发布时间', prop: 'createDate', width: '220' }\n ],\n table_data: [],\n url: 'newsManagementList',\n search_item: [\n {\n type: 'Input',\n label: '资讯编号',\n placeholder: '请输入',\n prop: 'code'\n },\n {\n type: 'Input',\n label: '资讯标题',\n placeholder: '请输入',\n prop: 'title'\n },\n // {\n // type: 'select',\n // label: '设施状态',\n // placeholder: '请选择',\n // value: null,\n // options: [\n // { value: 1, label: '空置中' },\n // { value: 2, label: '使用中' },\n // { value: 3, label: '已停用' }\n // ],\n // prop: 'status'\n // },\n {\n type: 'Input',\n label: '发布人',\n placeholder: '请输入',\n prop: 'createName'\n },\n {\n type: 'picker',\n label: '发布时间',\n placeholder: '请输入',\n prop: 'date',\n startDate: 'createDateStart',\n endDate: 'createDateEnd',\n width: '280px'\n }\n // Slot\n ],\n data: {\n pageNum: 1,\n size: 10\n }\n }\n }\n },\n created() {\n this.getUserList()\n },\n methods: {\n getNews(){\n newsManagementUpdateCrawling().then(res=>{\n if(res.status){\n this.$message({\n message:res.message,\n type:'success'\n })\n this.$refs.table.loadData()\n }\n })\n },\n\n // 获取用户列表\n getUserList(val) {\n let reeData = {\n pageNum: 1,\n size: 20,\n name: val\n }\n this.loading = true\n newsCategoryManagementList(reeData).then((res) => {\n // console.log(res)\n this.options = res.tableList\n this.loading = false\n })\n },\n remoteMethod(val) {\n this.getUserList(val)\n },\n sefocus() {\n this.getUserList()\n },\n change(value) {\n console.log(value)\n },\n add() {\n this.add_vrisible = true\n },\n addClose() {\n this.$refs.addForm.reset()\n this.add_vrisible = false\n this.imglist = []\n },\n addRuleSuccess() {\n let resData = {\n ...this.addForm.ruleForm\n // code: this.addForm.ruleForm.code,\n // name: this.addForm.ruleForm.name,\n // openStartDate: this.openStartDate,\n // openEndDate: this.openEndDate,\n // imgUrls:this.addForm.ruleForm.imgUrls,\n }\n newsManagementInsert(resData).then((res) => {\n if (res.status) {\n this.$message({\n message: res.message,\n type: 'success'\n })\n this.$refs.table.loadData()\n this.addClose()\n }\n })\n },\n addSubmit() {\n this.$refs.addForm.submitForm()\n },\n edit(data) {\n if (data.length != 1) {\n this.$message({\n message: '只能编辑一条数据',\n type: 'error'\n })\n } else {\n this.edit_vrisible = true\n console.log(data)\n this.editForm.ruleForm.id = data[0].id\n newsManagementFindById({ newsId: data[0].id }).then(\n (res) => {\n console.log(res)\n if (res.data.imgList.length) {\n let obj = {\n name: res.data.imgList[0].url,\n url: res.data.imgList[0].url\n }\n this.editForm.ruleForm.imgUrls = [\n res.data.imgList[0].url\n ]\n this.$set(this.imglist, 0, obj)\n } else {\n this.editForm.ruleForm.imgUrls = []\n }\n this.editForm.ruleForm.title = res.data.title,\n this.editForm.ruleForm.content = res.data.content,\n this.editForm.ruleForm.newsCategoryId = res.data.newsCategoryId\n }\n )\n }\n },\n editClose() {\n this.$refs.editForm.reset()\n this.edit_vrisible = false\n this.imglist = []\n },\n editSubmit() {\n let resData = {\n ...this.editForm.ruleForm,\n id:this.editForm.ruleForm.id,\n imgUrls:this.editForm.ruleForm.imgUrls\n }\n newsManagementUpdate(resData).then((res) => {\n if (res.status) {\n this.$message({\n message: res.message,\n type: 'success'\n })\n this.$refs.table.loadData()\n this.editClose()\n }\n })\n },\n dateTimeChange(arr) {\n this.addForm.ruleForm.openStartDate = arr[0]\n this.addForm.ruleForm.openEndDate = arr[1]\n },\n // 图片上传成功\n ImgeSuccess(res, file) {\n this.addForm.ruleForm.imgUrls[0] = file.response.url\n this.editForm.ruleForm.imgUrls[0] = file.response.url\n },\n // 图片文件上传之前\n beforeAvatarUpload(file) {\n const isLt2M = file.size / 1024 / 1024 < 2\n const isJPG = file.type === 'image/png'\n const isPNG = file.type === 'image/jpeg'\n if (!isJPG && !isPNG) {\n this.$message.error('上传头像图片只能是 JPG/PNG 格式!')\n }\n if (!isLt2M) {\n this.$message.error('上传头像图片大小不能超过 2MB!')\n }\n return (isJPG || isPNG) && isLt2M\n },\n // 上传限制提示\n handleExceed(files, fileList) {\n this.$message.warning(\n `当前限制选择 1 个文件,本次选择了 ${\n files.length\n } 个文件,共选择了 ${files.length + fileList.length} 个文件`\n )\n },\n // tabs切换\n handleClick(tab, event) {\n let status = null\n if (this.activeName != 0) {\n status = this.activeName\n } else {\n status = null\n }\n const requestData = {\n pageNum: 1,\n size: 10,\n status: status\n }\n this.$refs.table.requestData(requestData)\n },\n\n // 表格选中\n tableCheck(data) {\n this.table_row = data\n },\n del(data) {\n if (data.length) {\n let arr = []\n for (let i = 0; i < this.table_row.length; i++) {\n arr.push(this.table_row[i].id)\n }\n this.$confirm('是否确认删除?删除不可恢复', '删除', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n confirmButtonClass: 'confirmButton',\n cancelButtonClass: 'cancelButton'\n })\n .then(() => {\n this.$refs.table.tableDelete(arr)\n })\n .catch((action) => {})\n } else {\n this.$message.error('请选中需要删除的数据')\n }\n }\n }\n}\n</script>\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./consultationRelease.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./consultationRelease.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./consultationRelease.vue?vue&type=template&id=439b0676&\"\nimport script from \"./consultationRelease.vue?vue&type=script&lang=js&\"\nexport * from \"./consultationRelease.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/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","import service from '../utils/request'\nimport requestUrl from './requestUrl'\n// 公告管理:发布公告管理\nexport function announcementManagementRelease(data) {\n return service.request({\n method: 'POST',\n url: '/announcementManagement/release',\n data: data\n })\n}\n// 通知管理:添加通知信息\nexport function notificationManagementInsert(data) {\n return service.request({\n method: 'POST',\n url: '/notificationManagement/insert',\n data: data\n })\n}\n//通知管理根据主键id查询公告信息\nexport function notificationManagementFindById(data) {\n return service.request({\n method: 'GET',\n url: '/notificationManagement/findById',\n params: data\n })\n}\n// 通知管理:修改通知信息\nexport function notificationManagementUpdate(data) {\n return service.request({\n method: 'POST',\n url: '/notificationManagement/update',\n data: data\n })\n}\n//活动管理根据主键id查询活动管理\nexport function activityManagementFindById(data) {\n return service.request({\n method: 'GET',\n url: '/activityManagement/findById',\n params: data\n })\n}\n//活动管理:修改活动信息\nexport function activityManagementUpdate(data) {\n return service.request({\n method: 'POST',\n url: '/activityManagement/update',\n data: data\n })\n}\n//活动管理:添加活动信息\nexport function activityManagementInsert(data) {\n return service.request({\n method: 'POST',\n url: '/activityManagement/insert',\n data: data\n })\n}\n//活动管理根据活动主键id查询报名记录信息\nexport function activityManagementFindRegistrationById(data) {\n return service.request({\n method: 'GET',\n url: '/activityManagement/findRegistrationById',\n params: data\n })\n}\n// 公告管理根据主键id查询公告信息\nexport function announcementManagementFindById(data) {\n return service.request({\n method: 'GET',\n url: '/announcementManagement/findById',\n params: data\n })\n}\n// 主办方管理:添加主办方信息\nexport function sponsorManagementInsert(data) {\n return service.request({\n method: 'POST',\n url: '/sponsorManagement/insert',\n data: data\n })\n}\n// 主办方管理:修改主办方信息\nexport function sponsorManagementUpdate(data) {\n return service.request({\n method: 'POST',\n url: '/sponsorManagement/update',\n data: data\n })\n}\n\n// 主办方信息根据主键id查询主办方信息\nexport function sponsorManagementFindById(data) {\n return service.request({\n method: 'GET',\n url: '/sponsorManagement/findById',\n params: data\n })\n}\n// 公告管理:添加公告信息\nexport function announcementManagementInsert(data) {\n return service.request({\n method: 'POST',\n url: '/announcementManagement/insert',\n data: data\n })\n}\nexport function announcementManagementUpdate(data) {\n return service.request({\n method: 'POST',\n url: '/announcementManagement/update',\n data: data\n })\n}\n// 主办方管理:查询所有的主办方信息(包含条件搜索)\nexport function sponsorManagementList(data) {\n return service.request({\n method: 'GET',\n url: '/sponsorManagement/list',\n params: data\n })\n}\n//资讯新增\nexport function newsCategoryManagementInsert(data) {\n return service.request({\n method: 'POST',\n url: '/newsCategoryManagement/insert',\n data: data\n })\n}\n//newsCategoryManagement/update\nexport function newsCategoryManagementUpdate(data) {\n return service.request({\n method: 'POST',\n url: '/newsCategoryManagement/update',\n data: data\n })\n}\n//newsCategoryManagement/findById\nexport function newsCategoryManagementFindById(data) {\n return service.request({\n method: 'GET',\n url: '/newsCategoryManagement/findById',\n params: data\n })\n}\nexport function newsManagementInsert(data) {\n return service.request({\n method: 'POST',\n url: '/newsManagement/insert',\n data: data\n })\n}\nexport function newsManagementUpdate(data) {\n return service.request({\n method: 'POST',\n url: '/newsManagement/update',\n data: data\n })\n}\nexport function newsManagementFindById(data) {\n return service.request({\n method: 'GET',\n url: '/newsManagement/findById',\n params: data\n })\n}\nexport function newsCategoryManagementList(data) {\n return service.request({\n method: 'GET',\n url: '/newsCategoryManagement/list',\n params: data\n })\n}\nexport function electronicCommerceCategoryInsert(data) {\n return service.request({\n method: 'POST',\n url: 'electronicCommerceCategory/insert',\n data: data\n })\n}\n//newsManagement/updateCrawling\nexport function newsManagementUpdateCrawling(data) {\n return service.request({\n method: 'GET',\n url: 'newsManagement/updateCrawling',\n params: data\n })\n}\nexport function electronicCommerceCategoryUpdate(data) {\n return service.request({\n method: 'POST',\n url: 'electronicCommerceCategory/update',\n data: data\n })\n}\nexport function electronicCommerceInsert(data) {\n return service.request({\n method: 'POST',\n url: 'electronicCommerce/insert',\n data: data\n })\n}\nexport function electronicCommerceUpdate(data) {\n return service.request({\n method: 'POST',\n url: 'electronicCommerce/update',\n data: data\n })\n}\n//electronicCommerceCategory/list\nexport function electronicCommerceCategoryList(data) {\n return service.request({\n method: 'GET',\n url: '/electronicCommerceCategory/list',\n params: data\n })\n}\nexport function electronicCommerceCategoryFindById(data) {\n return service.request({\n method: 'GET',\n url: '/electronicCommerceCategory/findById',\n params: data\n })\n}\nexport function electronicCommerceFindById(data) {\n return service.request({\n method: 'GET',\n url: '/electronicCommerce/findById',\n params: data\n })\n}"],"sourceRoot":""}