(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{264:function(t,e,a){"use strict";a.r(e);var n=a(462),i=a(346);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a(424);var o=a(5),s=Object(o.a)(i.default,n.a,n.b,!1,null,"7fe43387",null);s.options.__file="src/pages/learn/reportActiveList.vue",e.default=s.exports},346:function(t,e,a){"use strict";a.r(e);var n=a(347),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e.default=i.a},347:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(a(112)),i=r(a(294));function r(t){return t&&t.__esModule?t:{default:t}}e.default={components:{mPage:i.default},data:function(){return{tableConfig:{border:"",size:"",selection:{has:!1,sels:[],width:"50px",fix:"left",align:""}},tableHead:[{prop:"index",label:"序号",minWidth:"80",fix:!1},{prop:"symposium_name",label:"活动名称",minWidth:"150",fix:!1},{prop:"symposium_time",label:"活动时间",minWidth:"120",fix:!1},{prop:"symposium_lecturer",label:"主讲人",minWidth:"120",fix:!1},{prop:"approve_status",label:"审核状态",minWidth:"80",fix:!1},{prop:"approve_time",label:"审核时间",minWidth:"120",fix:!1},{prop:"operate-x",label:"操作",width:"240px",fix:!1,commandArr:[{command:"activelist-show",name:"查看报告"},{command:"activereport-add",name:"上传报告"},{command:"activelist-edit",name:"编辑"},{command:"activelist-delete",name:"删除"}]}],tableData:[],params:{keywords:"",curPage:1,pageSize:100,total:""},objFn:{paramsFn:function(t){return{}},nameAPI:"getReportActiveList",actionClass:"Report",nameExcel:"getExportExcel3_4_14",callback:function(t,e){t.params.total=100,e.forEach((function(e,a){e.approve_status=1===e.approve_status?"通过":0===e.approve_status?"未通过":"未审核",e.index=a+1+(t.params.curPage-1)*t.params.pageSize,e.reportscount=Number(e.reportscount||"0"),t.tableData.push(e)}))}}}},mounted:function(){var t=this;this.VueEvent.$on("command-tablelist-x",(function(e){if("activelist-show"===e.command.command){var a=e.tableData[e.index-1].id;t.$router.push({path:"/app/learn/report-list-all/"+a})}if("activereport-add"===e.command.command){var i=e.tableData[e.index-1].id;t.$router.push({path:"/app/learn/report-submit/"+i+"/-1"})}if("activelist-edit"===e.command.command){var r=e.tableData[e.index-1].id;t.$router.push({path:"/app/learn/report-add/"+r})}if("activelist-delete"===e.command.command){var o=e.tableData[e.index-1].id,s=t.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});n.default.Report.deleteReportActive(o).then((function(e){e.flag&&t.$message({type:"success",message:"删除成功"}),t.params.pageSize+=1})).catch((function(e){t.$message.error(e.message)})).finally((function(){s.close()}))}}))},methods:{goReportAdd:function(){this.$router.push({path:"/app/learn/report-add/-1"})}}}},348:function(t,e,a){},424:function(t,e,a){"use strict";var n=a(348);a.n(n).a},462:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"con-title"},[t._v("学术活动列表")]),t._v(" "),a("div",{staticClass:"con-box"},[a("el-button",{attrs:{type:"primary"},on:{click:t.goReportAdd}},[t._v("申请新的活动")]),t._v(" "),a("div",{staticStyle:{width:"100%",height:"0.2rem"}}),t._v(" "),a("m-page",{attrs:{tableHead:t.tableHead,tableData:t.tableData,params:t.params,objFn:t.objFn,tableConfig:t.tableConfig}})],1)])},i=[];n._withStripped=!0}}]);