(("undefined"!==typeof self?self:this)["webpackJsonpcontractor_management_sm"]=("undefined"!==typeof self?self:this)["webpackJsonpcontractor_management_sm"]||[]).push([[44],{1310:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{title:e.dialogTitle,visible:e.dialogVisible,"close-on-click-modal":!1,width:"1100px","custom-class":"set-middle-dialog"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("iframe",{staticClass:"w-full h-full",attrs:{src:e.flowSrc,frameborder:"0"}})])},o=[],n=i("c14f"),l=i("3835"),s=i("1da1"),r=(i("99af"),i("a9e3"),i("779f")),c=new r["PlanApi"],u={name:"ApprovalFlow",props:{visible:{type:Boolean,default:!1},flowid:{type:[String,Number],default:""},groupid:{type:[String,Number],default:""}},computed:{dialogVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},dialogTitle:function(){return this.$t("查看流程")}},data:function(){return{flowSrc:""}},methods:{getProcessDetail:function(){var e=this;return Object(s["a"])(Object(n["a"])().m((function t(){var i,a,o,s;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return t.n=1,c.getProcess();case 1:i=t.v,a=Object(l["a"])(i,2),o=a[0],s=a[1],o||(e.flowSrc="".concat(s.apiUrl,"/index.html?loadurl=").concat(encodeURIComponent("/flow/run/process?flowid=".concat(e.flowid,"&groupid=").concat(e.groupid,"&status=-1")),"&nroadflow-token=").concat(s.token,"&isiframe=1"));case 2:return t.a(2)}}),t)})))()}},created:function(){this.getProcessDetail()}},d=u,f=(i("24b5"),i("2877")),p=Object(f["a"])(d,a,o,!1,null,null,null);t["default"]=p.exports},"24b5":function(e,t,i){"use strict";i("336e")},"336e":function(e,t,i){var a=i("98a5");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=i("499e").default;o("3cf17db3",a,!0,{sourceMap:!1,shadowMode:!1})},"98a5":function(e,t,i){t=e.exports=i("2350")(!1),t.push([e.i,".set-middle-dialog .el-dialog__body{height:400px!important}",""])}}]);