2 lines
43 KiB
JavaScript
2 lines
43 KiB
JavaScript
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-20f70ac1"],{"0109":function(e,t,r){},"0a57":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"box-content"},[t("div",{staticClass:"content-center"},[t("div",{staticClass:"center-top-box"},[t("div",{staticClass:"center-top-list"},e._l(e.scriptTypeList,(function(r,n){return t("div",{key:n,staticClass:"center-items",class:e.activeIndex===n?"active":"",on:{click:function(t){return e.scriptTypeClick(r,n)}}},[t("p",[e._v(e._s(r.scriptTypeName))])])})),0),e.scriptTypeList.length>0?t("span",{staticStyle:{"font-size":"14px",color:"#FFFFFF"}},[e._v(" "+e._s(e.scriptTypeList[e.activeIndex].scriptTypeName+" 文件夹地址: "+e.scriptTypeList[e.activeIndex].scriptDirectoryPath)+" ")]):e._e(),t("div",{staticClass:"top-btn"},[t("el-dropdown",{staticClass:"mr10",attrs:{trigger:"click"}},[t("el-button",{attrs:{type:"warning",size:"mini"}},[e._v("脚本示例")]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.scriptTypeList,(function(r,n){return t("el-dropdown-item",{key:n,nativeOn:{click:function(t){return e.scriptExampleDownload(r)}}},[e._v(e._s(r.scriptTypeName)+" ")])})),1)],1),t("el-dropdown",{staticClass:"mr10",attrs:{trigger:"click"}},[t("el-button",{attrs:{type:"success",size:"mini"}},[e._v("新增脚本")]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.scriptTypeList,(function(r,n){return t("el-dropdown-item",{key:n,nativeOn:{click:function(t){return e.addScriptClick(r)}}},[e._v(e._s(r.scriptTypeName)+" ")])})),1)],1),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.refreshClick}},[e._v("刷新")]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.compileAllScriptClick}},[e._v("编译所有脚本")])],1)]),e.scriptList&&e.scriptList.length>0?t("div",[t("el-table",{staticClass:"mt10",staticStyle:{width:"100%","border-radius":"10px"},attrs:{height:e.tableHeight,"header-cell-style":{fontWeight:400,background:"#F0F5FC",color:"#333333"},data:e.scriptList,border:""}},[t("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),t("el-table-column",{attrs:{prop:"fileName",label:"文件名称"}}),t("el-table-column",{attrs:{prop:"compileStatus",label:"编译状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(r){return[1===r.row.compileStatus?t("span",{staticClass:"greenColor"},[e._v("已编译")]):t("span",{staticClass:"yellowColor"},[e._v("未编译")])]}}],null,!1,1192195602)}),t("el-table-column",{attrs:{prop:"scriptName",label:"脚本名称(使用时用该名称)"}}),t("el-table-column",{attrs:{prop:"scriptComment",label:"脚本备注",width:"300","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"",label:"操作",width:"180"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",{staticClass:"blueColor pointer",on:{click:function(t){return e.editScriptClick(r.row)}}},[e._v("编辑")]),t("span",{staticClass:"greenColor pointer ml20",on:{click:function(t){return e.compileScriptClick(r.row)}}},[e._v(e._s(1===r.row.compileStatus?"重新编译":"编译"))]),t("span",{staticClass:"redColor pointer ml20",on:{click:function(t){return e.deleteScriptClick(r.row)}}},[e._v("删除")])]}}],null,!1,2040611962)})],1)],1):t("el-empty",{attrs:{description:"暂无数据"}})],1),t("el-dialog",{attrs:{title:"脚本编辑",visible:e.showCodeDialog,width:"60%"},on:{"update:visible":function(t){e.showCodeDialog=t}}},[t("div",[t("div",{staticStyle:{display:"flex","justify-content":"right","align-items":"center","margin-bottom":"10px"}},[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.saveScriptContent}},[e._v("保存")])],1),t("java-editor",{ref:"javaEditor",attrs:{content:e.editScriptForm.content}})],1)])],1)},i=[],o=(r("e9f5"),r("f665"),r("5b81"),r("91f5")),a=r("4bf2"),c=r("ec26"),s={components:{JavaEditor:a["a"]},data(){return{tableHeight:500,activeIndex:0,scriptTypeList:[],scriptList:[],templatePath:"/",showCodeDialog:!1,editScriptForm:{scriptType:"",filePath:"",content:""}}},mounted(){this.$nextT
|
||
|
|
//# sourceMappingURL=chunk-20f70ac1.b4473e94.js.map
|