(("undefined"!==typeof self?self:this)["webpackJsonpcontractor_management_sm"]=("undefined"!==typeof self?self:this)["webpackJsonpcontractor_management_sm"]||[]).push([[40],{1310: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"}],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}}},[a("iframe",{staticClass:"w-full h-full",attrs:{src:e.flowSrc,frameborder:"0"}})])},o=[],n=a("c7eb"),l=a("3835"),s=a("1da1"),r=(a("99af"),a("a9e3"),a("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"])().mark((function t(){var a,i,o,s;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,c.getProcess();case 2:a=t.sent,i=Object(l["a"])(a,2),o=i[0],s=i[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 7:case"end":return t.stop()}}),t)})))()}},created:function(){this.getProcessDetail()}},d=u,f=(a("24b5"),a("2877")),p=Object(f["a"])(d,i,o,!1,null,null,null);t["default"]=p.exports},"24b5":function(e,t,a){"use strict";a("336e")},"336e":function(e,t,a){var i=a("98a5");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=a("499e").default;o("3cf17db3",i,!0,{sourceMap:!1,shadowMode:!1})},"98a5":function(e,t,a){t=e.exports=a("2350")(!1),t.push([e.i,".set-middle-dialog .el-dialog__body{height:400px!important}",""])}}]);