(("undefined"!==typeof self?self:this)["webpackJsonpcontractor_management_sm"]=("undefined"!==typeof self?self:this)["webpackJsonpcontractor_management_sm"]||[]).push([[8],{5518:function(e,t,a){"use strict";a("c8e5")},b82d:function(e,t,a){t=e.exports=a("2350")(!1),t.push([e.i,"[data-v-1d991ce2] .el-form-item__label{text-align:right}[data-v-1d991ce2] .el-tabs__content{height:calc(100% - 55px);overflow-y:auto}",""])},c8e5:function(e,t,a){var n=a("b82d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("499e").default;i("1b36ee24",n,!0,{sourceMap:!1,shadowMode:!1})},dfed:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"mid-dialog",attrs:{title:e.dialogTitle,visible:e.visible,"close-on-click-modal":!1,"append-to-body":!0},on:{"update:visible":function(t){e.visible=t},close:function(t){return e.$emit("cancel")}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"w-full h-full"},[e.flowSrc?a("iframe",{staticClass:"w-full h-full",attrs:{src:e.flowSrc,frameborder:"0"}}):e._e()])])},i=[],o=a("c7eb"),c=a("3835"),r=a("1da1"),l=(a("99af"),a("a9e3"),a("779f")),s=new l["PlanApi"],d={name:"approval-flow-dialog",props:{id:{type:Number}},computed:{dialogTitle:function(){return this.$t("查看流程")}},watch:{visible:function(e){e||this.$emit("update:visible",e)}},data:function(){return{flowSrc:"",flowid:"",groupid:"",loading:!1,visible:!0}},methods:{getProcessDetail:function(){var e=this;return Object(r["a"])(Object(o["a"])().mark((function t(){var a,n,i,r;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s.getProcess();case 2:a=t.sent,n=Object(c["a"])(a,2),i=n[0],r=n[1],i||(e.flowSrc="".concat(r.apiUrl,"/index.html?loadurl=").concat(encodeURIComponent("/flow/run/process?flowid=".concat(e.flowid,"&groupid=").concat(e.groupid,"&status=-1")),"&nroadflow-token=").concat(r.token,"&isiframe=1"));case 7:case"end":return t.stop()}}),t)})))()},init:function(){var e=this;return Object(r["a"])(Object(o["a"])().mark((function t(){var a,n,i,r;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.getFlowTaskInfo({flowTaskId:e.id});case 3:return a=t.sent,n=Object(c["a"])(a,2),i=n[0],r=n[1],i||(e.flowid=r.flowId,e.groupid=r.groupId),t.next=10,e.getProcessDetail();case 10:e.loading=!1;case 11:case"end":return t.stop()}}),t)})))()}},created:function(){this.init()}},u=d,f=(a("5518"),a("2877")),p=Object(f["a"])(u,n,i,!1,null,"1d991ce2",null);t["default"]=p.exports}}]);