(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{269:function(t,e,a){"use strict";a.r(e);var i=a(581),r=a(368);for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a(509);var s=a(7),o=Object(s.a)(r.default,i.a,i.b,!1,null,"7fe43387",null);o.options.__file="src/pages/learn/reportActiveList.vue",e.default=o.exports},368:function(t,e,a){"use strict";a.r(e);var i=a(369),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},369:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(a(113)),r=n(a(308));function n(t){return t&&t.__esModule?t:{default:t}}e.default={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:this.$t("pages.learn.reportActiveList.serialNumber"),minWidth:"80",fix:!1},{prop:"symposium_name",label:this.$t("pages.learn.reportActiveList.activityName"),minWidth:"150",fix:!1},{prop:"symposium_time",label:this.$t("pages.learn.reportActiveList.activitytime"),minWidth:"120",fix:!1},{prop:"symposium_lecturer",label:this.$t("pages.learn.reportActiveList.lecturer"),minWidth:"120",fix:!1},{prop:"approve_status",label:this.$t("pages.learn.reportActiveList.approvalStatus"),minWidth:"80",fix:!1},{prop:"approve_time",label:this.$t("pages.learn.reportActiveList.approvalTime"),minWidth:"120",fix:!1},{prop:"operate-x",label:this.$t("pages.learn.reportActiveList.operate"),width:"240px",fix:!1,commandArr:[{command:"activelist-show",name:this.$t("pages.learn.reportActiveList.viewReport")},{command:"activereport-add",name:this.$t("pages.learn.reportActiveList.uploadReport")},{command:"activelist-edit",name:this.$t("pages.learn.reportActiveList.edit")},{command:"activelist-delete",name:this.$t("pages.learn.reportActiveList.delete")}]}],tableData:[],params:{keywords:"",curPage:1,pageSize:100,total:""},objFn:{paramsFn:function(t){return{}},nameAPI:"getReportActiveList",actionClass:"Report",nameExcel:"getExportExcel3_4_14",callback:function(e,a){e.params.total=100,a.forEach((function(a,i){a.approve_status=1===a.approve_status?t.$t("pages.learn.reportActiveList.passed"):0===a.approve_status?t.$t("pages.learn.reportActiveList.failed"):t.$t("pages.learn.reportActiveList.unreviewed"),a.index=i+1+(e.params.curPage-1)*e.params.pageSize,a.reportscount=Number(a.reportscount||"0"),e.tableData.push(a)}))}}}},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 r=e.tableData[e.index-1].id;t.$router.push({path:"/app/learn/report-submit/"+r+"/-1"})}if("activelist-edit"===e.command.command){var n=e.tableData[e.index-1].id;t.$router.push({path:"/app/learn/report-add/"+n})}if("activelist-delete"===e.command.command){var s=e.tableData[e.index-1].id,o=t.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});i.default.Report.deleteReportActive(s).then((function(e){e.flag&&t.$message({type:"success",message:t.$t("pages.learn.reportActiveList.deleteSuccessTips")}),t.params.pageSize+=1})).catch((function(e){t.$message.error(e.message)})).finally((function(){o.close()}))}}))},methods:{goReportAdd:function(){this.$router.push({path:"/app/learn/report-add/-1"})}}}},370:function(t,e,a){},509:function(t,e,a){"use strict";var i=a(370);a.n(i).a},581: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._s(t.$t("pages.learn.reportActiveList.title")))]),t._v(" "),a("div",{staticClass:"con-box"},[a("el-button",{attrs:{type:"primary"},on:{click:t.goReportAdd}},[t._v(t._s(t.$t("pages.learn.reportActiveList.newEvent")))]),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}}]);