(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{270:function(t,e,a){"use strict";a.r(e);var r=a(582),i=a(371);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);a(510);var s=a(7),l=Object(s.a)(i.default,r.a,r.b,!1,null,"5f953a20",null);l.options.__file="src/pages/learn/reportListAll.vue",e.default=l.exports},371:function(t,e,a){"use strict";a.r(e);var r=a(372),i=a.n(r);for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);e.default=i.a},372:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(a(113)),i=n(a(308));function n(t){return t&&t.__esModule?t:{default:t}}e.default={props:{rid:{type:String,required:!0}},components:{mPage:i.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.reportListAll.index"),minWidth:"80",fix:!1},{prop:"report_name",label:this.$t("pages.learn.reportListAll.reportName"),minWidth:"150",fix:!1},{prop:"report_description",label:this.$t("pages.learn.reportListAll.reportDescription"),minWidth:"120",fix:!1},{prop:"submit_time",label:this.$t("pages.learn.reportListAll.submitTime"),minWidth:"120",fix:!1},{prop:"approve_status",label:this.$t("pages.learn.reportListAll.approveStatus"),minWidth:"120",fix:!1},{prop:"file_url",label:this.$t("pages.learn.reportListAll.file"),minWidth:"120",fix:!1},{prop:"operate-x",label:this.$t("pages.learn.reportListAll.operate"),width:"140px",fix:!1,commandArr:[{command:"reportlist-",name:""},{command:"reportlist-edit",name:this.$t("pages.learn.reportListAll.edit")},{command:"reportlist-delete",name:this.$t("pages.learn.reportListAll.delete")}]}],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(e,a){e.params.total=100,a.forEach((function(a,r){a.approve_status=1===a.is_checked?t.$t("pages.learn.reportActiveList.passed"):0===a.is_checked?t.$t("pages.learn.reportActiveList.failed"):t.$t("pages.learn.reportActiveList.unreviewed"),a.file_url=JSON.parse(a.file_url)[0].url,a.index=r+1+(e.params.curPage-1)*e.params.pageSize,e.tableData.push(a)}))}}}},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 i=e.tableData[e.index-1].id,n=t.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});r.default.Report.deleteSubmitReport(t.rid,i).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(){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"})}}}},373:function(t,e,a){},510:function(t,e,a){"use strict";var r=a(373);a.n(r).a},582:function(t,e,a){"use strict";a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return i}));var r=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.reportListAll.title")))]),t._v(" "),a("div",{staticClass:"con-box"},[a("el-button",{attrs:{type:"text"},on:{click:t.gobackReportActiveList}},[t._v(t._s(t.$t("pages.learn.reportListAll.backButtonText")))]),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=[];r._withStripped=!0}}]);