1 line
2.2 KiB
JavaScript
1 line
2.2 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a2914e04"],{"430f":function(e,t,n){"use strict";n("f8f4")},"71bc":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("80ab"),n("a98c"),n("3dec"),n("e73f"),n("0c40"),n("79da");function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}},"8f70":function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("iframe",{ref:"iframe",style:"width: 100%;height:calc(99vh - 60px)",attrs:{src:("production"===e.mode?e.baseUrl:"")+"/lib/index.html?id="+e.id+"&mode="+e.mode+"&x1c2Hdd6="+e.value,marginwidth:"0",frameborder:"no"}})},s=[],a=n("71bc"),i={name:"WorkFlow",components:{},props:{value:{type:String,default:""}},data:function(){return{id:"",mode:"production",baseUrl:"/easy-retry"}},mounted:function(){this.id=this.$route.query.id},created:function(){window.addEventListener("message",this.handleMessage,!1)},destroyed:function(){window.removeEventListener("message",this.handleMessage)},methods:{save:function(){window.removeEventListener("message",this.handleMessage),this.$message.info("工作流新增成功"),this.$router.push({path:"/job/workflow/list"})},cancel:function(){window.removeEventListener("message",this.handleMessage),this.$router.push({path:"/job/workflow/list"})},update:function(){this.$message.info("工作流修改成功"),this.$router.push({path:"/job/workflow/list"})},handleMessage:function(e){"object"===Object(a["a"])(e.data)&&("SV5ucvLBhvFkOftb"===e.data.code?this.save():"kb4DO9h6WIiqFhbp"===e.data.code?this.cancel():"8Rr3XPtVVAHfduQg"===e.data.code&&this.update())}}},r=i,c=(n("430f"),n("f7c6")),u=Object(c["a"])(r,o,s,!1,null,null,null);t["a"]=u.exports},af96:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("work-flow",{attrs:{value:"xkjIc2ZHZ0"}})},s=[],a=n("8f70"),i={name:"WorkFlowDetail",components:{WorkFlow:a["a"]}},r=i,c=n("f7c6"),u=Object(c["a"])(r,o,s,!1,null,null,null);t["default"]=u.exports},f8f4:function(e,t,n){}}]); |