(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-75b0d138"],{"2fc1":function(e,n,t){"use strict";t.r(n);var o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("页面中可调用的方法")]),t("el-button",{staticStyle:{float:"right",padding:"3px 0"},attrs:{type:"text"},on:{click:e.save}},[e._v("保存")])],1),t("codemirror",{ref:"renderDoneEventCodeEditor",attrs:{height:e.windowHeight-150,id:e.progID,scode:e.scode},on:{onCodeChange:e.onCodeChange}})],1)},a=[],c=t("38ef"),s=t("4298"),i=t("c1df"),r=t.n(i),d=window.config,f={data:function(){return{scode:"",progID:"javascript + uuid",windowHeight:0}},components:{codemirror:c["a"]},mounted:function(){},created:function(){var e=this;this.windowHeight=window.innerHeight,s["a"].getCodeByPK(d.funPK?d.funPK:"1adeef5e-2fb5-4fb9-b022-ac691daa3105",(function(n){e.scode=n.SCODE,e.progID="javascript".concat(n.PK)})),document.addEventListener("keydown",this.keyDown,!1)},watch:{},methods:{keyDown:function(e){"s"==e.key&&e.ctrlKey&&(e.preventDefault(),this.save())},onCodeChange:function(e){this.scode=e},save:function(){var e=this;s["a"].getByPK(d.funPK?d.funPK:"1adeef5e-2fb5-4fb9-b022-ac691daa3105",(function(n){s["a"].save(n,e.scode,(function(n){e.$message.success("保存成功")}),(function(n){e.$message.error("保存失败:"+n.Message)}))}),(function(n){s["a"].getNew((function(n){n.PK=d.funPK?d.funPK:"1adeef5e-2fb5-4fb9-b022-ac691daa3105",n.SLASTTIME=r()().format(),n.SLASTUSER="admin",n.SPROGCODE="",s["a"].save(n,e.scode,(function(n){e.$message.success("保存成功")}),(function(n){e.$message.error("保存失败:"+n.Message)}))}),(function(n){e.$message.error("初始化模型失败"+n.Message)}))}))}}},u=f,l=t("2877"),g=Object(l["a"])(u,o,a,!1,null,null,null);n["default"]=g.exports},4298:function(e,n,t){"use strict";var o=t("51f3");n["a"]={getNew:function(e,n){o["a"].call("Prog","GetNew",{},e,n)},getByPK:function(e,n,t){o["a"].call("Prog","GetByPK",{pk:e},n,t)},getCodeByPK:function(e,n,t){o["a"].call("Prog","GetCodeByPK",{pk:e},n,t)},getModelForBuild:function(e,n,t){o["a"].call("Prog","GetModelForBuild",{pk:e},n,t)},save:function(e,n,t,a){o["a"].call("Prog","Save",{prog:e,scode:n},t,a)},delete:function(e,n,t){o["a"].call("Prog","Delete",{PK:e},n,t)}}}}]);