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.
1 line
15 KiB
1 line
15 KiB
{"version":3,"sources":["webpack:///./src/views/operation/page/votingManagement.vue","webpack:///src/views/operation/page/votingManagement.vue","webpack:///./src/views/operation/page/votingManagement.vue?78b4","webpack:///./src/views/operation/page/votingManagement.vue?edda","webpack:///./src/views/operation/page/votingManagement.vue?24e1"],"names":["render","_vm","this","_c","_self","staticClass","_m","staticStyle","_v","_s","count","on","$event","addvoting","ref","attrs","config","tableCheck","slot","edit","table_row","del","voteDetails","release","addEidtDrawerTitle","addEidt_vrisible","submitSuccess","addEidtHandleClose","details_vrisible","detailId","getClose","details_obj","details_details","detailsDetailsId","detailsDetailsData","goBack","staticRenderFns","components","addEidt","detailsVrisible","detailsDetails","data","thead","label","type","width","prop","url","table_data","search_item","pageNum","size","activeName","mounted","methods","getTipsData","voteCountVoteExpectedStart","arr","confirmButtonText","cancelButtonText","confirmButtonClass","cancelButtonClass","then","catch","action","console","ids","voteRelease","message","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACJ,EAAIK,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,IAAI,CAACA,EAAG,OAAO,CAACE,YAAY,0BAA0BE,YAAY,CAAC,OAAS,YAAYN,EAAIO,GAAG,YAAYL,EAAG,OAAO,CAACI,YAAY,CAAC,MAAQ,wBAAwB,CAACN,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIS,UAAUT,EAAIO,GAAG,iBAAiBL,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,GAAG,CAACA,EAAG,SAAS,CAACE,YAAY,aAAaE,YAAY,CAAC,OAAS,QAAQI,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOX,EAAIY,eAAe,CAACZ,EAAIK,GAAG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,YAAY,cAAc,CAACF,EAAG,OAAO,CAACF,EAAIO,GAAG,aAC5H,WAAY,IAAIP,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,iBAAiBJ,EAAIO,GAAG,Y,iDCmE1F,GACf6B,YACAC,eACAC,uBACAC,uBAEAC,OACA,OACAZ,cACAI,sBACAC,wBACAV,0BAEAI,oBAEAI,mBACAP,oBAEAL,aACAJ,QACA0B,OACA,CAAAC,WAAAC,aAAAC,YACA,CAAAF,aAAAG,aAAAD,cACA,CAAAF,eAAAG,iBAAAD,cACA,CAAAF,eAAAG,eAAAD,cACA,CAAAF,aAAAG,cAAAD,cACA,CAAAF,aAAAG,kBAAAD,eAEAE,eACAC,cACAC,eACAR,MACAS,UACAC,UAIAC,aAEA1C,aAGA2C,UACA,oBAEAC,SAEAC,cACAC,0BAEA,sBAIA9B,gBACA,4BACA,oBAGAb,YACA,0BAGAc,qBACA,0BAGAV,cACA,kBAEAK,eACA,WACA,mCAGA,UAIA,mCACA,0BAJA,4BAOAD,OACA,aACA,SACA,wCACAoC,6BAEA,oCACAC,uBACAC,sBACAC,mCACAC,mCACAC,KAAA,KACA,kCACAC,MAAAC,YAEA,mCAIAlC,YACA,wBACA,yBACA,yBAGAC,eACA,yBACA,wBACA,2BACA,0BACAkC,gBAGA9B,SACA,yBACA,yBAGAhB,QACA,WACA,mCAGA,UAIA,iCACA,0BAJA,4BAOAI,WACA,aACA,SACA,wCACAkC,6BAEA,+BACAC,uBACAC,sBACAC,mCACAC,mCACAC,KAAA,KACA,OACAI,OAEAC,4BACA,WACA,eACAC,kBACAxB,iBAEA,iCAGAmB,MAAAC,YAEA,qCCtOwX,I,wBCQpXK,EAAY,eACd,EACArE,EACAoC,GACA,EACA,KACA,WACA,MAIa,aAAAiC,E,oECnBf","file":"js/chunk-25c0b81b.52e929b0.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"main-content\"},[_vm._m(0),_c('div',{staticClass:\"tips\"},[_c('p',[_c('span',{staticClass:\"el-icon-warning-outline\",staticStyle:{\"margin\":\"0 12px\"}}),_vm._v(\" 温馨提示:有 \"),_c('span',{staticStyle:{\"color\":\"rgba(251, 71, 2, 1)\"}},[_vm._v(_vm._s(_vm.count))]),_vm._v(\" 个投票即将开始 \")])]),_c('div',{staticClass:\"content\"},[_c('div',{},[_c('button',{staticClass:\"btn-orange\",staticStyle:{\"height\":\"32px\"},on:{\"click\":function($event){return _vm.addvoting()}}},[_vm._m(1)]),_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\":function($event){return _vm.edit(_vm.table_row)}}},[_vm._v(\"编辑\")]),_c('button',{on:{\"click\":function($event){return _vm.del(_vm.table_row)}}},[_vm._v(\"删除\")]),_c('button',{on:{\"click\":function($event){return _vm.voteDetails(_vm.table_row)}}},[_vm._v(\"详情\")]),_c('button',{on:{\"click\":function($event){return _vm.release(_vm.table_row)}}},[_vm._v(\"发布\")])])])],2)],1)]),_c('addEidt',{ref:\"addEdit\",attrs:{\"drawerTitle\":_vm.addEidtDrawerTitle,\"drawerVrisible\":_vm.addEidt_vrisible},on:{\"submitSuccess\":_vm.submitSuccess,\"handleClose\":_vm.addEidtHandleClose}}),_c('detailsVrisible',{attrs:{\"drawerVrisible\":_vm.details_vrisible,\"voteId\":_vm.detailId},on:{\"handleClose\":_vm.getClose,\"details_obj\":_vm.details_obj}}),_c('detailsDetails',{attrs:{\"drawerVrisible\":_vm.details_details,\"voteId\":_vm.detailsDetailsId,\"detailsData\":_vm.detailsDetailsData},on:{\"handleClose\":_vm.getClose,\"goBack\":_vm.goBack}})],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"main-titel\"},[_c('span',[_vm._v(\"投票管理\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('span',[_c('i',{staticClass:\"el-icon-plus\"}),_vm._v(\"新增投票\")])\n}]\n\nexport { render, staticRenderFns }","<style scoped>\n.tips {\n margin: 20px;\n height: 38px;\n line-height: 38px;\n background: #fafafa;\n border-radius: 4px;\n opacity: 0.8;\n border: 1px solid #e8e8e8;\n}\n</style>\n<template>\n <div class=\"main-content\">\n <div class=\"main-titel\">\n <span>投票管理</span>\n </div>\n <div class=\"tips\">\n <p>\n <span class=\"el-icon-warning-outline\"\n style=\"margin:0 12px\"></span>\n 温馨提示:有\n <span style=\"color:rgba(251, 71, 2, 1)\">{{count}}</span>\n 个投票即将开始\n </p>\n </div>\n <div class=\"content\">\n <!-- 查询重制 -->\n <div class=\"\">\n <button class=\"btn-orange\"\n style=\"height:32px\"\n @click=\"addvoting()\"><span> <i class=\"el-icon-plus\"></i>新增投票</span></button>\n <VueTable ref=\"table\"\n :config='config'\n @tableCheck=\"tableCheck\">\n <template slot=\"footer\">\n <div class=\"table-footer\">\n <button @click=\"edit(table_row)\">编辑</button>\n <button @click=\"del(table_row)\">删除</button>\n <button @click=\"voteDetails(table_row)\">详情</button>\n <button @click=\"release(table_row)\">发布</button>\n <!-- <button @click=\"del(table_row)\">删除</button> -->\n </div>\n </template>\n </VueTable>\n </div>\n </div>\n <addEidt :drawerTitle=\"addEidtDrawerTitle\"\n ref=\"addEdit\"\n @submitSuccess='submitSuccess'\n @handleClose=\"addEidtHandleClose\"\n :drawerVrisible='addEidt_vrisible'></addEidt>\n <!-- 详情 -->\n <detailsVrisible :drawerVrisible='details_vrisible'\n @handleClose='getClose'\n :voteId=\"detailId\"\n @details_obj=\"details_obj\"></detailsVrisible>\n <!-- 详情详情 -->\n <detailsDetails :drawerVrisible='details_details'\n :voteId=\"detailsDetailsId\"\n :detailsData='detailsDetailsData'\n @handleClose='getClose'\n @goBack='goBack'></detailsDetails>\n </div>\n</template>\n\n<script>\nimport addEidt from '@/views/butler/components/votingManagement/add.vue'\nimport detailsVrisible from '@/views/butler/components/votingManagement/details.vue'\nimport detailsDetails from '@/views/butler/components/votingManagement/details/index.vue'\nimport { voteCountVoteExpectedStart, voteFindById, voteRelease } from '@/api/butler'\nexport default {\n components: {\n addEidt,\n detailsVrisible,\n detailsDetails,\n },\n data () {\n return {\n detailId: null,\n detailsDetailsId: null,\n detailsDetailsData: null,\n addEidtDrawerTitle: '新增投票',\n // 详情\n details_vrisible: false,\n // 详情——详情\n details_details: false,\n addEidt_vrisible: false,\n // 选中表格数据\n table_row: [],\n config: {\n thead: [\n { label: '序号', type: 'index', width: '80' },\n { label: '投票标题', prop: 'title', width: 'auto' },\n { label: '投票开始时间', prop: 'beginDate', width: 'auto' },\n { label: '投票结束时间', prop: 'endDate', width: 'auto' },\n { label: '活动状态', prop: 'status', width: 'auto' },\n { label: '投票结果', prop: 'voteResult', width: 'auto' },\n ],\n url: 'voteList',\n table_data: [],\n search_item: [],\n data: {\n pageNum: 1,\n size: 10,\n },\n },\n // tab默认绑定\n activeName: 0,\n // 投票数量\n count: null\n }\n },\n mounted () {\n this.getTipsData()\n },\n methods: {\n // 即将开始投票活动\n getTipsData () {\n voteCountVoteExpectedStart().then(result => {\n // 投票数量\n this.count = result.count\n })\n },\n // 添加修改成功\n submitSuccess () {\n this.$refs.table.loadData()\n this.getTipsData()\n },\n // 添加\n addvoting () {\n this.addEidt_vrisible = true;\n },\n // 添加修改关闭\n addEidtHandleClose () {\n this.addEidt_vrisible = false;\n },\n // 表格选中\n tableCheck (arr) {\n this.table_row = arr\n },\n voteDetails (data) {\n if (data.length > 1) {\n this.$message.error('只能查看一条数据的详情');\n return\n }\n if (!data.length) {\n this.$message.error('请选择');\n return\n }\n this.detailId = this.table_row[0].id\n this.details_vrisible = true\n },\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 }).then(() => {\n this.$refs.table.tableDelete(arr)\n }).catch(action => { });\n } else {\n this.$message.error('请选中需要删除的数据');\n }\n },\n // 关闭抽屉\n getClose (data) {\n this.drawer_vrisible = false;\n this.details_vrisible = false;\n this.details_details = false;\n },\n // 详情抽屉 详情\n details_obj (data) {\n this.details_vrisible = false;\n this.details_details = true;\n this.detailsDetailsId = data.id;\n this.detailsDetailsData = data\n console.log(data)\n },\n // 详情抽屉 详情 返回\n goBack () {\n this.details_vrisible = true;\n this.details_details = false;\n },\n // 编辑\n edit (data) {\n if (data.length > 1) {\n this.$message.error('只能查看一条数据的详情');\n return\n }\n if (!data.length) {\n this.$message.error('请选择');\n return\n }\n this.$refs.addEdit.edit(data[0].id)\n this.addEidt_vrisible = true;\n },\n // 发布\n release (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 }).then(() => {\n let resData = {\n ids: arr\n }\n voteRelease(resData).then(result => {\n if (result.status) {\n this.$message({\n message: result.message,\n type: 'success'\n })\n this.$refs.table.loadData()\n }\n })\n }).catch(action => { });\n } else {\n this.$message.error('请选中需要发布的数据');\n }\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!./votingManagement.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!./votingManagement.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./votingManagement.vue?vue&type=template&id=03bb1583&scoped=true&\"\nimport script from \"./votingManagement.vue?vue&type=script&lang=js&\"\nexport * from \"./votingManagement.vue?vue&type=script&lang=js&\"\nimport style0 from \"./votingManagement.vue?vue&type=style&index=0&id=03bb1583&prod&scoped=true&lang=css&\"\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 \"03bb1583\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./votingManagement.vue?vue&type=style&index=0&id=03bb1583&prod&scoped=true&lang=css&\""],"sourceRoot":""} |