分布式调度框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
248 KiB

webpackJsonp([26],{1014:function(e,t,n){"use strict";t.__esModule=!0;t.handlerSuffix={".txt":"textile",".log":"textile",".sh":"shell",".conf":"textile",".cfg":"textile",".py":"python",".java":"textile",".sql":"sql",".hql":"sql",".xml":"xml"}},1107:function(e,t,n){"use strict";t.__esModule=!0;var r=f(n(36)),i=n(123),o=n(925),a=n(1014),s=f(n(851)),l=f(n(224)),c=f(n(701)),u=f(n(750)),d=f(n(697));function f(e){return e&&e.__esModule?e:{default:e}}var h=void 0;t.default={name:"resource-list-create-FILE",data:function(){return{suffix:"sh",fileName:"",desc:"",fileTypeList:o.filtTypeArr,content:"",spinnerLoading:!1}},props:{},methods:Object.assign({},(0,i.mapActions)("resource",["createResourceFile"]),{ok:function(){var e=this;this._validation()&&(this.spinnerLoading=!0,this.createResourceFile({type:"FILE",fileName:this.fileName,suffix:this.suffix,desc:this.desc,content:h.getValue()}).then(function(t){e.$message.success(t.msg),setTimeout(function(){e.spinnerLoading=!1,e.$router.push({name:"file"})},800)}).catch(function(t){e.$message.error(t.msg||""),e.spinnerLoading=!1}))},_validation:function(){return this.fileName?!!h.getValue()||(this.$message.warning(""+r.default.$t("Please enter the resource content")),!1):(this.$message.warning(""+r.default.$t("Please enter resource name")),!1)},_handlerEditor:function(){h=(0,s.default)("code-create-mirror",{mode:"shell",readOnly:!1}),this.keypress=function(){h.getOption("readOnly")||h.showHint({completeSingle:!1})},h.on("keypress",this.keypress)},_onChange:function(e){h.setOption("mode",a.handlerSuffix["."+e.label])}}),watch:{},created:function(){},mounted:function(){this._handlerEditor()},destroyed:function(){h.toTextArea(),h.off($(".code-create-mirror"),"keypress",this.keypress)},computed:{},components:{mListConstruction:d.default,mConditions:u.default,mSpin:c.default,mListBoxF:l.default}}},1215:function(e,t,n){var r=n(1216);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(35)("50bbbf36",r,!0,{})},1216:function(e,t,n){(e.exports=n(34)(!1)).push([e.i,".resource-create-model{padding:30px}.CodeMirror{border:1px solid #dddedd;border-radius:3px}",""])},1217:function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("m-list-construction",{attrs:{title:e.$t("Create File")}},[n("template",{slot:"content"},[n("div",{staticClass:"resource-create-model"},[n("m-list-box-f",[n("template",{slot:"name"},[n("b",[e._v("*")]),e._v(e._s(e.$t("File Name")))]),e._v(" "),n("template",{slot:"content"},[n("x-input",{staticStyle:{width:"300px"},attrs:{type:"input",placeholder:e.$t("Please enter name"),autocomplete:"off"},model:{value:e.fileName,callback:function(t){e.fileName=t},expression:"fileName"}})],1)],2),e._v(" "),n("m-list-box-f",[n("template",{slot:"name"},[n("b",[e._v("*")]),e._v(e._s(e.$t("File Format")))]),e._v(" "),n("template",{slot:"content"},[n("x-select",{staticStyle:{width:"100px"},on:{"on-change":e._onChange},model:{value:e.suffix,callback:function(t){e.suffix=t},expression:"suffix"}},e._l(e.fileTypeList,function(e){return n("x-option",{key:e,attrs:{value:e,label:e}})}),1)],1)],2),e._v(" "),n("m-list-box-f",[n("template",{slot:"name"},[e._v(e._s(e.$t("Description")))]),e._v(" "),n("template",{slot:"content"},[n("x-input",{staticStyle:{width:"430px"},attrs:{type:"textarea",placeholder:e.$t("Please enter description"),autocomplete:"off"},model:{value:e.desc,callback:function(t){e.desc=t},expression:"desc"}})],1)],2),e._v(" "),n("m-list-box-f",[n("template",{slot:"name"},[n("b",[e._v("*")]),e._v(e._s(e.$t("File Content")))]),e._v(" "),n("template",{slot:"content"},[n("textarea",{attrs:{id:"code-create-mirror",name:"code-create-mirror"}})])],2),e._v(" "),n("m-list-box-f",[n("template",{slot:"name"},[e._v(" ")]),e._v(" "),n("template",{slot:"content"},[n("div",{staticClass:"submit"},[n("x-button",{directives:[{name:"ps",rawName:"v-ps",value:["GENERAL_USER"],expression:"['GENERAL_USER']"}],attrs:{type:"primary",shape:"circle",loading:e.spinnerLoading},on:{click:function(t){return e.ok()}}},[e._v(e._s(e.spinnerLoading?"Loading
//# sourceMappingURL=26.4fc30f8.js.map