webpackJsonp([75],{"0Yam":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={data:function(){return{dataForm:{instanceId:"",definitionKey:""},dataList:[],pageIndex:1,pageSize:10,totalPage:0,dataListLoading:!1}},activated:function(){this.getDataList()},methods:{getDataList:function(){var e=this;this.dataListLoading=!0,this.$http.get(window.SITE_CONFIG.baseURL+"/act/process/running",{params:{page:this.pageIndex,limit:this.pageSize,instanceId:this.dataForm.instanceId,definitionKey:this.dataForm.definitionKey}}).then(function(t){t&&0===t.code?(e.dataList=t.data,e.totalPage=t.count):(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()},deleteHandle:function(e){var t=this;this.$confirm("确定对[流程实例id="+e+"]进行[删除]操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$http.post(window.SITE_CONFIG.baseURL+"/act/process/deleteInstance",{instanceId:e},{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(e){e&&0===e.code&&t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.getDataList()}})})}).catch(function(){})}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mod-activiti__running"},[a("el-form",{attrs:{inline:!0,model:e.dataForm},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.getDataList()}}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"流程实例ID",clearable:""},model:{value:e.dataForm.instanceId,callback:function(t){e.$set(e.dataForm,"instanceId",t)},expression:"dataForm.instanceId"}})],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{placeholder:"流程定义Key",clearable:""},model:{value:e.dataForm.definitionKey,callback:function(t){e.$set(e.dataForm,"definitionKey",t)},expression:"dataForm.definitionKey"}})],1),e._v(" "),a("el-form-item",[a("el-button",{on:{click:function(t){e.getDataList()}}},[e._v("查询")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList,border:""}},[a("el-table-column",{attrs:{type:"selection","header-align":"center",align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"id","header-align":"center",align:"center",width:"80",label:"ID"}}),e._v(" "),a("el-table-column",{attrs:{prop:"processInstanceId","header-align":"center",align:"center",label:"流程实例ID"}}),e._v(" "),a("el-table-column",{attrs:{prop:"processDefinitionKey","header-align":"center",align:"center",label:"流程定义Key"}}),e._v(" "),a("el-table-column",{attrs:{prop:"processDefinitionId","header-align":"center",align:"center",label:"流程定义ID"}}),e._v(" "),a("el-table-column",{attrs:{prop:"processDefinitionName","header-align":"center",align:"center",label:"流程定义名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"activityId","header-align":"center",align:"center",label:"当前环节"}}),e._v(" "),a("el-table-column",{attrs:{prop:"suspended","header-align":"center",align:"center",label:"是否挂起"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.suspended?a("el-tag",{attrs:{size:"small"}},[e._v("是")]):a("el-tag",{attrs:{size:"small",type:"danger"}},[e._v("否")])]}}])}),e._v(" "),a("el-table-column",{attrs:{fixed:"right","header-align":"center",align:"center",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.deleteHandle(t.row.processInstanceId)}}},[e._v("删除")])]}}])})],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}})],1)},staticRenderFns:[]},l=a("C7Lr")(n,i,!1,null,null,null);t.default=l.exports}});