(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{265:function(t,e,a){"use strict";a.r(e);var i=a(461),r=a(349);for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a(425);var o=a(5),l=Object(o.a)(r.default,i.a,i.b,!1,null,"5f953a20",null);l.options.__file="src/pages/learn/reportListAll.vue",e.default=l.exports},349:function(t,e,a){"use strict";a.r(e);var i=a(350),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e.default=r.a},350:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(a(112)),r=n(a(294));function n(t){return t&&t.__esModule?t:{default:t}}e.default={props:{rid:{type:String,required:!0}},components:{mPage:r.default},data:function(){var t=this;return{tableConfig:{border:"",size:"",selection:{has:!1,sels:[],width:"50px",fix:"left",align:""}},tableHead:[{prop:"index",label:"序号",minWidth:"80",fix:!1},{prop:"report_name",label:"报告名称",minWidth:"150",fix:!1},{prop:"report_description",label:"报告摘要",minWidth:"120",fix:!1},{prop:"submit_time",label:"提交时间",minWidth:"120",fix:!1},{prop:"approve_status",label:"审核状态",minWidth:"120",fix:!1},{prop:"file_url",label:"附件下载",minWidth:"120",fix:!1},{prop:"operate-x",label:"操作",width:"140px",fix:!1,commandArr:[{command:"reportlist-",name:""},{command:"reportlist-edit",name:"编辑"},{command:"reportlist-delete",name:"删除"}]}],tableData:[],params:{keywords:"",curPage:1,pageSize:100,total:""},objFn:{paramsFn:function(e){return{rid:t.rid}},nameAPI:"getReportListAll",actionClass:"Report",nameExcel:"getExportExcel3_4_14",callback:function(t,e){t.params.total=100,e.forEach((function(e,a){e.approve_status=1===e.is_checked?"通过":0===e.is_checked?"未通过":"未审核",e.file_url=JSON.parse(e.file_url)[0].url,e.index=a+1+(t.params.curPage-1)*t.params.pageSize,t.tableData.push(e)}))}}}},mounted:function(){var t=this;this.VueEvent.$on("command-tablelist-x",(function(e){if("reportlist-edit"===e.command.command){var a=e.tableData[e.index-1].id;t.$router.push({path:"/app/learn/report-submit/"+t.rid+"/"+a})}if("reportlist-delete"===e.command.command){var r=e.tableData[e.index-1].id,n=t.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});i.default.Report.deleteSubmitReport(t.rid,r).then((function(e){e.flag&&t.$message({type:"success",message:"删除成功"}),t.params.pageSize+=1})).catch((function(e){t.$message.error(e.message)})).finally((function(){n.close()}))}}))},methods:{goReportSubmit:function(){this.$router.push({path:"/app/learn/report-submit/"+this.rid+"/-1"})},gobackReportActiveList:function(){this.$router.push({path:"/app/learn/report-Active-list"})}}}},351:function(t,e,a){},425:function(t,e,a){"use strict";var i=a(351);a.n(i).a},461:function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return r}));var i=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:"text"},on:{click:t.gobackReportActiveList}},[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)])},r=[];i._withStripped=!0}}]);