webpackJsonp([90],{TDAO:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("MFU2"),r=a("0T4V"),i={data:function(){return{dataForm:{key:""},downloadAction:this.$http.adornUrl("/common/download/exportDoneTaskList"),dataList:[],pageIndex:1,pageSize:10,totalPage:0,dataListLoading:!1,dataListSelections:[],addOrUpdateVisible:!1,processImgVisible:!1}},components:{AddOrUpdate:n.default,ProcessImg:r.default},activated:function(){this.getDataList()},methods:{formatApproveType:function(e,t){return this.getDictValue("approve_type",e.tapprove.approveType.toString())},formatDevType:function(e,t){if(null!=e.tapprove.devType)return this.getDictValue("dev_type",e.tapprove.devType.toString())},getDataList:function(){var e=this;this.dataListLoading=!0,this.$http({url:this.$http.adornUrl("/approve/tapprove/doneTaskList"),method:"get",params:this.$http.adornParams({page:this.pageIndex,limit:this.pageSize,key:this.dataForm.key})}).then(function(t){var a=t.data;a&&0===a.code?(e.dataList=a.page.list,e.totalPage=a.page.totalCount):(e.dataList=[],e.totalPage=0),e.dataListLoading=!1})},sizeChangeHandle:function(e){this.pageSize=e,this.pageIndex=1,this.getDataList()},currentChangeHandle:function(e){this.pageIndex=e,this.getDataList()},selectionChangeHandle:function(e){this.dataListSelections=e},addOrUpdateHandle:function(e,t,a,n){var r=this;this.addOrUpdateVisible=!0,this.$nextTick(function(){r.$refs.addOrUpdate.init(e,t,a,n)})},processImg:function(e){var t=this;this.processImgVisible=!0,this.$nextTick(function(){t.$refs.processImg.init(e)})},downLoad:function(){this.$refs.downloadForm.submit()}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mod-config"},[a("el-form",{attrs:{inline:!0,model:e.dataForm}},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.downLoad()}}},[e._v(e._s(e.$t("export")))])],1)],1),e._v(" "),a("form",{ref:"downloadForm",attrs:{action:e.downloadAction,target:"FORMSUBMIT"}}),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList,border:""},on:{"selection-change":e.selectionChangeHandle}},[a("el-table-column",{attrs:{prop:"tapprove.apNo","header-align":"center",align:"center",label:e.$t("apNo")}}),e._v(" "),a("el-table-column",{attrs:{prop:"processName","header-align":"center",align:"center",label:e.$t("processName")}}),e._v(" "),a("el-table-column",{attrs:{prop:"tapprove.approveType","header-align":"center",align:"center",formatter:e.formatApproveType,label:e.$t("approveType")}}),e._v(" "),a("el-table-column",{attrs:{prop:"tapprove.devType","header-align":"center",align:"center",formatter:e.formatDevType,label:e.$t("devType")}}),e._v(" "),a("el-table-column",{attrs:{prop:"tapprove.userName","header-align":"center",align:"center",label:e.$t("applicant")}}),e._v(" "),a("el-table-column",{attrs:{prop:"processCreateTime","header-align":"center",align:"center",label:e.$t("processCreateTime")}}),e._v(" "),a("el-table-column",{attrs:{prop:"isEnd","header-align":"center",align:"center",label:e.$t("isEnd")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{type:t.row.end?"success":"danger","disable-transitions":""}},[e._v(e._s(t.row.end?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{fixed:"right","header-align":"center",align:"center",width:"150",label:e.$t("action")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.addOrUpdateHandle(t.row.businessKey,0,t.row.processId,"")}}},[e._v(e._s(e.$t("examine")))]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.processImg(t.row.processId)}}},[e._v(e._s(e.$t("flowChart")))])]}}])})],1),e._v(" "),a("el-pagination",{attrs:{"current-page":e.pageIndex,"page-sizes":[10,20,50,100],"page-size":e.pageSize,total:e.totalPage,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.sizeChangeHandle,"current-change":e.currentChangeHandle}}),e._v(" "),e.addOrUpdateVisible?a("add-or-update",{ref:"addOrUpdate",on:{refreshDataList:e.getDataList}}):e._e(),e._v(" "),e.processImgVisible?a("process-img",{ref:"processImg",on:{refreshDataList:e.getDataList}}):e._e()],1)},staticRenderFns:[]},s=a("VU/8")(i,o,!1,null,null,null);t.default=s.exports}});