(("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 i=a("b82d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("499e").default;n("1b36ee24",i,!0,{sourceMap:!1,shadowMode:!1})},dfed:function(e,t,a){"use strict";a.r(t);var i=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()])])},n=[],o=a("c14f"),c=a("3835"),l=a("1da1"),r=(a("99af"),a("a9e3"),a("779f")),s=new r["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(l["a"])(Object(o["a"])().m((function t(){var a,i,n,l;return Object(o["a"])().w((function(t){while(1)switch(t.n){case 0:return t.n=1,s.getProcess();case 1:a=t.v,i=Object(c["a"])(a,2),n=i[0],l=i[1],n||(e.flowSrc="".concat(l.apiUrl,"/index.html?loadurl=").concat(encodeURIComponent("/flow/run/process?flowid=".concat(e.flowid,"&groupid=").concat(e.groupid,"&status=-1")),"&nroadflow-token=").concat(l.token,"&isiframe=1"));case 2:return t.a(2)}}),t)})))()},init:function(){var e=this;return Object(l["a"])(Object(o["a"])().m((function t(){var a,i,n,l;return Object(o["a"])().w((function(t){while(1)switch(t.n){case 0:return e.loading=!0,t.n=1,s.getFlowTaskInfo({flowTaskId:e.id});case 1:return a=t.v,i=Object(c["a"])(a,2),n=i[0],l=i[1],n||(e.flowid=l.flowId,e.groupid=l.groupId),t.n=2,e.getProcessDetail();case 2:e.loading=!1;case 3:return t.a(2)}}),t)})))()}},created:function(){this.init()}},u=d,f=(a("5518"),a("2877")),p=Object(f["a"])(u,i,n,!1,null,"1d991ce2",null);t["default"]=p.exports}}]);