Files
starRiverProperty/frontend/cwos_manager_frontend/static/js/3.fe8ae2f7945014b70091.js
T
反编译工作区 0c56a3e599 chore(frontend): add static frontend build artifacts (portal, front_acs, etc.)
Made-with: Cursor

Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
2026-04-27 13:40:23 +08:00

1 line
42 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
webpackJsonp([3],{"+iyI":function(t,e,n){var a=n("sFxq");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("547f964e",a,!0)},"473V":function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"",""])},"4C/i":function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"",""])},CpxL:function(t,e,n){var a=n("s0ug");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("65b61d8a",a,!0)},IfKK:function(t,e,n){var a=n("YHhH");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("1317288a",a,!0)},Qd6Y:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\n.app-container[data-v-6882ec9b] .el-form-item {\n margin-bottom: 16px;\n}\n.app-container[data-v-6882ec9b] .el-select,\n.app-container .el-cascader[data-v-6882ec9b],\n.app-container .el-date-editor[data-v-6882ec9b] {\n display: block;\n}\n.app-container[data-v-6882ec9b] .el-form-item__content .el-input__inner {\n width: 200px;\n}\n.app-container[data-v-6882ec9b] .el-col-8 {\n padding-right: 40px;\n}\n@media screen and (min-width: 1600px) {\n.app-container[data-v-6882ec9b] .el-col-8 {\n padding-right: 140px;\n}\n}\n.left[data-v-6882ec9b] {\n display: inline-block;\n margin-right: 20px;\n position: absolute;\n right: 110px;\n}\n",""])},SlvV:function(t,e,n){"use strict";var a={data:function(){var t=this;return{timeArr:[],startPickerOptions:{shortcuts:[{text:"最近30分钟",onClick:function(t){var e=new Date,n=new Date;n.setHours(0,0,0,0),n.setTime(e.getTime()-18e5),t.$emit("pick",[n,e])}},{text:"最近1小时",onClick:function(t){var e=new Date,n=new Date;n.setHours(0,0,0,0),n.setTime(e.getTime()-36e5),t.$emit("pick",[n,e])}},{text:"最近三小时",onClick:function(t){var e=new Date,n=new Date;n.setHours(0,0,0,0),n.setTime(e.getTime()-108e5),t.$emit("pick",[n,e])}},{text:"当天",onClick:function(t){var e=new Date,n=new Date;n.setHours(0,0,0,0),e.setHours(23,59,59,0),t.$emit("pick",[n,e])}},{text:"近三天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-1728e5),n.setHours(0,0,0,0),e.setHours(23,59,59,0),t.$emit("pick",[n,e])}},{text:"近七天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-5184e5),n.setHours(0,0,0,0),e.setHours(23,59,59,0),t.$emit("pick",[n,e])}},{text:"近三十天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-25056e5),n.setHours(0,0,0,0),e.setHours(23,59,59,0),t.$emit("pick",[n,e])}}],onPick:function(e){var n=e.maxDate,a=e.minDate;t.choiceDate=a.getTime(),n&&(t.choiceDate="")},disabledDate:function(e){var n=new Date;n.setHours(23),n.setMinutes(59),n.setSeconds(59);var a=t.timeRange.reference?n.getTime():t.choiceDate;if(a){var o=a+864e5*t.timeRange.min,i=a+864e5*t.timeRange.max;return e.getTime()<o||e.getTime()>i}}}}},props:{value:{type:Array,default:function(){return[]}},timeRange:{type:Array,default:{min:-365,max:365,reference:0}}},watch:{value:{immediate:!0,handler:function(t){this.timeArr=t}}},created:function(){this.out()},methods:{out:function(){this.$emit("input",this.timeArr)}},components:{}},o={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("el-date-picker",{staticStyle:{width:"380px","padding-right":"0"},attrs:{editable:!1,"picker-options":t.startPickerOptions,type:"datetimerange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm:ss","default-time":["00:00:00","23:59:59"]},on:{change:t.out},model:{value:t.timeArr,callback:function(e){t.timeArr=e},expression:"timeArr"}})},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(t){n("oJR3")},null,null);e.a=i.exports},SswA:function(t,e,n){var a=n("eZz2");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("bf229d00",a,!0)},W3Iv:function(t,e,n){t.exports={default:n("wEtr"),__esModule:!0}},X5vV:function(t,e,n){var a=n("473V");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("8beb31fa",a,!0)},YHhH:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\n.left[data-v-bfa50dd4] {\n display: inline-block;\n margin-right: 20px;\n position: absolute;\n right: 110px;\n}\n",""])},ad4j:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\n.app-container[data-v-b67cce24] .el-form-item {\n margin-bottom: 16px;\n}\n.app-container[data-v-b67cce24] .el-select,\n.app-container .el-cascader[data-v-b67cce24],\n.app-container .el-date-editor[data-v-b67cce24] {\n display: block;\n}\n.app-container[data-v-b67cce24] .el-form-item__content .el-input__inner {\n width: 200px;\n}\n.app-container[data-v-b67cce24] .el-col-8 {\n padding-right: 40px;\n}\n@media screen and (min-width: 1600px) {\n.app-container[data-v-b67cce24] .el-col-8 {\n padding-right: 140px;\n}\n}\n.left[data-v-b67cce24] {\n display: inline-block;\n margin-right: 20px;\n position: absolute;\n right: 110px;\n}\n",""])},eZz2:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\n.confirmBtn[disabled][data-v-22c3180e] {\n border-color: #ebeef5;\n background-color: #C0C4CC;\n color: white;\n}\n.el-tag[data-v-22c3180e] {\n margin: 5px 5px 5px 0;\n}\n.new-tag[data-v-22c3180e] {\n background-color: rgba(255, 0, 255, 0.1);\n color: #FF00FF;\n border-color: #FF99FF;\n}\n.fixedArea[data-v-22c3180e] {\n position: relative;\n z-index: 1;\n min-height: 80px;\n height: 80px;\n overflow: hidden;\n}\n.allArea[data-v-22c3180e] {\n height: auto;\n}\n.toggle-btn[data-v-22c3180e] {\n position: absolute;\n z-index: 10;\n top: -5px;\n right: 8px;\n color: #409EFF;\n font-size: 1.2em;\n}\n",""])},"gB+K":function(t,e,n){var a=n("Qd6Y");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("69c54c18",a,!0)},gSvA:function(t,e,n){var a=n("kM2E"),o=n("mbce")(!0);a(a.S,"Object",{entries:function(t){return o(t)}})},jqdM:function(t,e,n){var a=n("mWup");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("2e0d8ef7",a,!0)},mWup:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"",""])},mbce:function(t,e,n){var a=n("+E39"),o=n("lktj"),i=n("TcQ7"),s=n("NpIQ").f;t.exports=function(t){return function(e){for(var n,l=i(e),r=o(l),c=r.length,d=0,u=[];c>d;)n=r[d++],a&&!s.call(l,n)||u.push(t?[n,l[n]]:l[n]);return u}}},oJR3:function(t,e,n){var a=n("wwqe");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("c16a297c",a,!0)},paS3:function(t,e,n){var a=n("ad4j");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("14895306",a,!0)},pn3r:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\n.title[data-v-c3668258] {\n padding: 20px;\n font-size: 1em;\n font-weight: 700;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.content[data-v-c3668258] {\n padding: 20px;\n background: rgba(125, 125, 125, 0.1);\n}\n.content .node[data-v-c3668258] {\n padding-top: 10px;\n}\n.content .btn[data-v-c3668258] {\n padding-top: 30px;\n padding-bottom: 10px;\n}\n",""])},quV1:function(t,e,n){var a=n("pn3r");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("c00c35bc",a,!0)},s0ug:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\n.el-col[data-v-694d38de] {\n margin: 10px 0;\n}\n",""])},sFxq:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"",""])},"u+/3":function(t,e,n){var a=n("4C/i");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("4bb23472",a,!0)},v944:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("YwUV"),o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-table",{attrs:{data:t.detailVm.roleList}},[n("el-table-column",{attrs:{label:"角色名",prop:"name"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.goInstance(e.row)}}},[t._v(t._s(e.row.name))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"安装数量",prop:"installCount"}})],1)],1)},staticRenderFns:[]};var i=n("VU/8")({name:"statuList",inject:["detailVm"],components:{},data:function(){return{tableData:[]}},computed:{id:function(){return this.detailVm.id}},created:function(){},methods:{goInstance:function(t){this.$emit("go",t.id)}}},o,!1,function(t){n("+iyI")},"data-v-627e3b72",null).exports,s=n("Gu7T"),l=n.n(s),r=n("Xxa5"),c=n.n(r),d=n("exGp"),u=n.n(d),p={name:"AddInstance",props:{value:{type:Boolean,default:!1},list:{type:Object,default:{}},instanceType:{type:"",default:""}},data:function(){return{title:"",seletedState:null,canCancel:!0,confirmInstall:!1,tableData:[],selected:[],roleName:"",nodeIds:[],isCanClick:!0}},computed:{visible:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},watch:{value:function(t){}},methods:{fetchData:function(){var t=this;a.h.instanceGetByNode({roleId:this.list.id}).then(function(e){t.tableData=e.data,t.tableData.forEach(function(e){t.$set(e,"toggle",!1),t.$set(e,"hasSelected",e.checked)}),t.$nextTick(function(){t.tableData.forEach(function(e){e.hasSelected&&(t.selected.push(e),t.$refs.tableData.toggleRowSelection(e,!0))}),t.title="选择了"+t.selected.length+"台节点",t.selected.length===t.tableData.length?t.isCanClick=!1:t.isCanClick=!0})}).catch(function(t){})},selectable:function(t,e){return!t.checked},getProgressColor:function(t){return t<=60?"#67C23A":t<=80?"#E6A23C":"#F56C6C"},handleOpen:function(){var t=this;return u()(c.a.mark(function e(){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.confirmInstall=!1,t.roleName=t.list.name,e.next=5,t.fetchData();case 5:case"end":return e.stop()}},e,t)}))()},handleDialogClose:function(){this.canCancel=!0,this.selected=[]},handleSelecte:function(t,e){e.hasSelected=!e.hasSelected,this.selected=[].concat(l()(t)),this.title="选择了"+this.selected.length+"台节点"},handleSelecteAll:function(t){this.selected=[].concat(l()(t));var e=[];this.tableData.forEach(function(t){t.checked&&e.push(t.id)}),e.length?this.selected.length===e.length?this.tableData.forEach(function(t){e.includes(t.id)||(t.hasSelected=!1)}):this.tableData.forEach(function(t){t.hasSelected=!0}):this.selected.length?this.tableData.forEach(function(t){t.hasSelected=!0}):this.tableData.forEach(function(t){t.hasSelected=!1}),this.title="选择了"+this.selected.length+"台节点"},handleClose:function(){this.selected=[],this.visible=!1,this.$message({message:"已取消",type:"success",duration:2e3})},getParams:function(){var t=this;return this.nodeIds=[],this.tableData.forEach(function(e){e.hasSelected&&!e.checked&&t.nodeIds.push(e.id)}),{nodeIds:[].concat(l()(this.nodeIds)),roleId:this.list.id}},handleConfirm:function(){var t=this,e=this.getParams();this.nodeIds.length?(this.confirmInstall=!0,a.h.installInstance(e).then(function(e){e?setTimeout(function(){t.$emit("success",!0),t.visible=!1,t.$message({message:"安装中...",type:"success",duration:2e3})},1e3):setTimeout(function(){t.visible=!1,t.$message({message:"安装失败",type:"error",duration:2e3})},3e3)}).catch(function(e){t.confirmInstall=!0,setTimeout(function(){t.visible=!1},1e3)})):(this.visible=!1,this.$message.warning("未选择安装节点!"))},getAllInstance:function(t){t.toggle=!t.toggle}}},f={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{visible:t.visible,title:t.title,"show-close":!1,width:"90%"},on:{"update:visible":function(e){t.visible=e},open:t.handleOpen,close:t.handleDialogClose}},[n("div",[n("div",{staticStyle:{"font-size":"0.8em",padding:"0 0 20px",color:"#C0C4CC"}},[n("i",{staticClass:"el-icon-info"}),t._v(" "),n("span",{staticStyle:{"font-size":"0.8em",color:"#C0C4CC"}},[t._v("已安装该角色的节点,无法选择。如果想删除已安装节点上的角色,请先停用该角色实例,在实例列表删除")])]),t._v(" "),n("el-table",{ref:"tableData",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark","max-height":"400",border:""},on:{select:t.handleSelecte,"select-all":t.handleSelecteAll}},[n("el-table-column",{attrs:{selectable:t.selectable,type:"selection",align:"center",width:"50"}}),t._v(" "),n("el-table-column",{attrs:{label:"节点信息",prop:"name","show-overflow-tooltip":"",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticStyle:{"margin-top":"10px"}},[t._v("\n "+t._s(e.row.name)+"\n ")]),t._v(" "),n("div",{staticStyle:{margin:"10px auto"}},[n("span",{staticStyle:{"margin-right":"10px"}},[t._v("CPU:"+t._s(e.row.cpuCount)+"核")]),t._v(" "),n("span",[t._v("GPU:"+t._s(e.row.gpuCount)+"个")])])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"内存消耗",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[!1===e.row.hasSelected?n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(e.row.memUsedUnchecked)+"/"+t._s(e.row.memTotal)+"\n ")]):t._e(),t._v(" "),!0===e.row.hasSelected?n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(e.row.memUsedChecked)+"/"+t._s(e.row.memTotal)+"\n ")]):t._e(),t._v(" "),n("el-progress",{attrs:{"text-inside":!0,"stroke-width":20,percentage:e.row.hasSelected?e.row.memUsedPercentChecked:e.row.memUsedPercentUnchecked,color:t.getProgressColor(e.row.hasSelected?e.row.memUsedPercentChecked:e.row.memUsedPercentUnchecked)}})],1)],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"应用"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{class:e.row.toggle?"allArea":"fixedArea"},[e.row.hasSelected&&"app"===t.instanceType?n("span",[n("el-tag",{staticClass:"new-tag"},[t._v("\n "+t._s(t.roleName)+"\n ")])],1):t._e(),t._v(" "),t._l(e.row.instances,function(e,a){return n("sapn",{key:a},["app"===e.type?n("span",[n("el-tag",[t._v("\n "+t._s(e.name)+"\n ")])],1):t._e()])})],2)]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"引擎"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{class:e.row.toggle?"allArea":"fixedArea"},[e.row.hasSelected&&"engine"===t.instanceType?n("span",[n("el-tag",{staticClass:"new-tag"},[t._v("\n "+t._s(t.roleName)+"\n ")])],1):t._e(),t._v(" "),t._l(e.row.instances,function(e,a){return n("span",{key:a},["engine"===e.type?n("span",[n("el-tag",{attrs:{type:"warning"}},[t._v("\n "+t._s(e.name)+"\n ")])],1):t._e()])})],2)]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"CWOS"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{class:e.row.toggle?"allArea":"fixedArea"},[e.row.hasSelected&&"cwos"===t.instanceType?n("span",[n("el-tag",{staticClass:"new-tag"},[t._v("\n "+t._s(t.roleName)+"\n ")])],1):t._e(),t._v(" "),t._l(e.row.instances,function(e,a){return n("span",{key:a},["cwos"===e.type?n("span",[n("el-tag",{attrs:{type:"success"}},[t._v("\n "+t._s(e.name)+"\n ")])],1):t._e()])})],2)]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"中间件"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{class:e.row.toggle?"allArea":"fixedArea"},[e.row.hasSelected&&"middleware"===t.instanceType?n("span",[n("el-tag",{staticClass:"new-tag"},[t._v("\n "+t._s(t.roleName)+"\n ")])],1):t._e(),t._v(" "),t._l(e.row.instances,function(e,a){return n("span",{key:a},["middleware"===e.type?n("span",[n("el-tag",{attrs:{type:"danger"}},[t._v("\n "+t._s(e.name)+"\n ")])],1):t._e()])})],2),t._v(" "),n("i",{staticClass:"toggle-btn",class:{"el-icon-arrow-up":!e.row.toggle,"el-icon-arrow-down":e.row.toggle},on:{click:function(n){return t.getAllInstance(e.row)}}})]}}])})],1)],1),t._v(" "),n("div",{staticStyle:{},attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.handleClose}},[t._v("取 消")]),t._v(" "),t.confirmInstall?n("el-button",{staticClass:"confirmBtn",attrs:{disabled:"disabled",type:"info"}},[t._v("正在安装......")]):t._e(),t._v(" "),t.confirmInstall?t._e():n("el-button",{staticClass:"confirmBtn",attrs:{disabled:!t.isCanClick,type:"warning"},on:{click:t.handleConfirm}},[t._v("确 定")])],1)])},staticRenderFns:[]};var h={name:"InstanceList",inject:["detailVm"],components:{AddInstance:n("VU/8")(p,f,!1,function(t){n("SswA")},"data-v-22c3180e",null).exports},props:{instanceType:{type:"",default:""}},data:function(){return{timer:null,loading:!1,roleId:"",optType:"",optTypes:[],selected:[],preSelected:[],tableData:[],roleList:[],showAdd:!1,showEditDialog:!1,list:{},deleteArr:[],showDeleteDialog:!1}},computed:{id:function(){return this.detailVm.id}},created:function(){this.polling(),this.fetchOptions()},beforeDestroy:function(){clearInterval(this.timer)},methods:{selectInit:function(t,e){try{return!!this.detailVm.info.canOperate}catch(t){return!0}},goDetail:function(t){this.$router.push("/nodeManage/detail?id="+t.nodeId)},handleChange:function(t){var e=this;return u()(c.a.mark(function n(){var o,i,s;return c.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(4!==t){n.next=4;break}e.showDeleteDialog=!0,n.next=15;break;case 4:return o={softId:e.id,ids:e.selected.map(function(t){return t.id}),type:t},i={1:"启动",2:"停用",3:"重启"}[t]||"操作",n.next=8,a.h.batchOper(o);case 8:s=n.sent,e.optType="",e.$message.success(i+"中..."),e.selected.forEach(function(t){var n=e.tableData.find(function(e){return e.id===t.id});n&&(n.currentStateText="正在获取中",e.$refs.table.toggleRowSelection(n))}),e.preSelected=[],e.selected=[],s.data&&(clearInterval(e.timer),e.polling());case 15:case"end":return n.stop()}},n,e)}))()},canDelete:function(){var t=null;for(var e in this.selected){if("停用"!==this.selected[e].currentStateText){t=!1;break}t=!0}return t},handleDeleteClose:function(){var t=this;this.showDeleteDialog=!1,this.optType="",this.selected.forEach(function(e){var n=t.tableData.find(function(t){return t.id===e.id});n&&t.$refs.table.toggleRowSelection(n)}),this.selected=[]},handleDeleteConfirm:function(){var t=this;this.deleteArr=[],this.selected.forEach(function(e){t.deleteArr.push(e.id)});var e={softId:this.id,ids:[].concat(l()(this.deleteArr)),type:6};this.optType="",a.h.batchOper(e).then(function(e){e?(t.showDeleteDialog=!1,t.$message.success("删除中..."),clearInterval(t.timer),t.polling()):(t.showDeleteDialog=!1,t.$message.error("删除失败"),clearInterval(t.timer),t.polling())}).catch(function(e){t.showDeleteDialog=!1,clearInterval(t.timer),t.polling()}),this.selected=[]},chooseBeforeRows:function(){var t=this;this.$nextTick(function(){t.preSelected.forEach(function(e){var n=t.tableData.find(function(t){return t.id===e.id});n&&t.$refs.table.toggleRowSelection(n)})})},fetchOptions:function(){var t=this;a.h.optTypes().then(function(e){t.optTypes=e})},handleSelectionChange:function(t){t.length&&(this.optType=""),this.selected=t},search:function(t){this.roleId=t,clearInterval(this.timer),this.polling()},polling:function(){var t=this;this.getData(),this.timer=setInterval(function(){t.getData()},3e4)},getData:function(){var t=this;this.loading=!0,a.h.instanceList(this.id,this.roleId).then(function(e){t.loading=!1,t.selected.length&&(t.preSelected=[].concat(l()(t.selected))),t.tableData=e,t.chooseBeforeRows()}).catch(function(e){t.loading=!1})},installSuccess:function(t){var e=this;t&&a.h.statusList(this.id).then(function(t){e.roleList=t})},addInstance:function(){var t=this;a.h.statusList(this.id).then(function(e){t.roleList=e}),this.showAdd=!0},handleBack:function(){this.showAdd=!1},editInstance:function(t){this.list=t,this.showEditDialog=!0}}},m={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container"},[t.showAdd?t._e():n("div",[n("el-select",{directives:[{name:"permission",rawName:"v-permission",value:[t.$ecoAuth.softRestart],expression:"[$ecoAuth.softRestart]"}],staticStyle:{width:"180px","margin-bottom":"12px"},attrs:{disabled:!t.selected.length,placeholder:"请选择"},on:{change:t.handleChange},model:{value:t.optType,callback:function(e){t.optType=e},expression:"optType"}},[t._l(t.optTypes,function(t,e){return[n("el-option",{key:e,attrs:{label:t.label,value:t.value}})]})],2),t._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:[t.$ecoAuth.softAddInstance],expression:"[$ecoAuth.softAddInstance]"}],staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:t.addInstance}},[t._v("添加角色实例")]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",attrs:{data:t.tableData},on:{"selection-change":t.handleSelectionChange}},[n("el-table-column",{attrs:{selectable:t.selectInit,type:"selection"}}),t._v(" "),n("el-table-column",{attrs:{label:"角色类型",prop:"roleName"}}),t._v(" "),n("el-table-column",{attrs:{label:"运行状态",prop:"currentStateText"}}),t._v(" "),n("el-table-column",{attrs:{label:"安装节点名称",prop:"nodeName"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.goDetail(e.row)}}},[t._v(t._s(e.row.nodeName))])]}}],null,!1,1445785922)}),t._v(" "),n("el-table-column",{attrs:{label:"安装时间","show-overflow-tooltip":"",prop:"createTime"}}),t._v(" "),n("el-table-column",{attrs:{label:"启用时长","show-overflow-tooltip":"",prop:"run"}})],1)],1),t._v(" "),t.showAdd?n("div",[n("el-row",{attrs:{gutter:20}},t._l(t.roleList,function(e,a){return n("el-col",{key:a,attrs:{span:6}},[n("el-card",{attrs:{"body-style":{padding:"0px"}}},[n("div",{staticClass:"title"},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),n("div",{staticClass:"content"},[t._l(e.nodeNames,function(e,a){return n("div",{key:a,staticClass:"node"},[t._v(t._s(e))])}),t._v(" "),0===e.nodeNames.length?n("div",{staticClass:"node"},[t._v(" ")]):t._e()],2),t._v(" "),n("div",{staticClass:"content"},[n("div",{staticClass:"btn"},[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:[t.$ecoAuth.softInstanceEdit],expression:"[$ecoAuth.softInstanceEdit]"}],attrs:{type:"text"},on:{click:function(n){return t.editInstance(e)}}},[t._v("点击修改")])],1)])])],1)}),1),t._v(" "),n("AddInstance",{attrs:{list:t.list,"instance-type":t.instanceType},on:{success:t.installSuccess},model:{value:t.showEditDialog,callback:function(e){t.showEditDialog=e},expression:"showEditDialog"}}),t._v(" "),n("el-button",{staticStyle:{"margin-top":"20px"},on:{click:t.handleBack}},[n("i",{staticClass:"el-icon-arrow-left"}),t._v("返回")])],1):t._e(),t._v(" "),n("el-dialog",{staticStyle:{"margin-top":"10%"},attrs:{visible:t.showDeleteDialog,title:"确认删除",width:"30%"},on:{"update:visible":function(e){t.showDeleteDialog=e}}},[n("span",{staticStyle:{"font-size":"1.2em"}},[n("i",{staticClass:"el-icon-warning",staticStyle:{color:"#E6A23C","margin-right":"10px","margin-left":"50px"}}),t._v("\n 请确定是否删除?\n ")]),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:t.handleDeleteConfirm}},[t._v("确 定")]),t._v(" "),n("el-button",{on:{click:t.handleDeleteClose}},[t._v("取 消")])],1)])],1)},staticRenderFns:[]};var v=n("VU/8")(h,m,!1,function(t){n("quV1")},"data-v-c3668258",null).exports,g=n("pFYg"),b=n.n(g),_=n("mvHQ"),w=n.n(_),x=n("W3Iv"),y=n.n(x),k={name:"EditConfig",components:{},props:{roleId:String,config:{type:Array,default:function(){return[]}}},data:function(){return{dialogVisible:!1}},methods:{sureSave:function(){this.dialogVisible=!1,this.save()},checkSave:function(){this.dialogVisible=!0},save:function(){var t=this;return u()(c.a.mark(function e(){var n,o;return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,n={},t.config.forEach(function(t){n[t.key]=JSON.parse(t.value)}),o={roleId:t.roleId,settings:n},e.next=7,a.h.saveSettings(o);case 7:t.$message.success("修改成功"),t.$emit("success"),t.loading=!1,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),t.loading=!1;case 15:case"end":return e.stop()}},e,t,[[1,12]])}))()},reset:function(){this.$emit("reset")}}},D={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-table",{attrs:{data:t.config}},[n("el-table-column",{attrs:{label:"属性",prop:"key"}}),t._v(" "),n("el-table-column",{attrs:{label:"值"},scopedSlots:t._u([{key:"default",fn:function(e){return[[n("el-input",{model:{value:e.row.value,callback:function(n){t.$set(e.row,"value",n)},expression:"scope.row.value"}})]]}}])})],1),t._v(" "),n("el-alert",{staticStyle:{margin:"10px 0"},attrs:{closable:!1,title:"温馨提示:请谨慎操作配置修改,一旦确认修改,该软件将自动重新启动。",type:"warning"}}),t._v(" "),n("el-button",{attrs:{loading:t.loading,type:"primary"},on:{click:t.checkSave}},[t._v("保存")]),t._v(" "),n("el-button",{on:{click:t.reset}},[t._v("返回")]),t._v(" "),n("el-dialog",{attrs:{visible:t.dialogVisible,title:"提示",width:"600px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("span",[t._v("请确定是否,立即修改软件配置?")]),t._v(" "),n("el-alert",{staticStyle:{margin:"10px 0"},attrs:{closable:!1,title:"温馨提示:请谨慎操作配置修改,一旦确认修改,该软件将自动重新启动。",type:"warning"}}),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:t.sureSave}},[t._v("确 定")]),t._v(" "),n("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")])],1)],1)],1)},staticRenderFns:[]};var C={name:"ConfigList",inject:["detailVm"],components:{editConfig:n("VU/8")(k,D,!1,function(t){n("X5vV")},"data-v-79b94d50",null).exports},data:function(){return{tableData:[],current:[],showEdit:!1,settingObj:{}}},computed:{id:function(){return this.detailVm.id}},created:function(){},methods:{goEdit:function(t){var e=this;return u()(c.a.mark(function n(){var o;return c.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,a.h.getSettings(t.id);case 2:o=n.sent,e.settingObj=o.data,e.current=y()(e.settingObj.settings).map(function(t){return{key:t[0],value:w()(t[1]),type:b()(t[1])}}),e.showEdit=!0;case 6:case"end":return n.stop()}},n,e)}))()}}},S={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-table",{directives:[{name:"show",rawName:"v-show",value:!t.showEdit,expression:"!showEdit"}],attrs:{data:t.detailVm.roleList}},[n("el-table-column",{attrs:{label:"角色名",prop:"name"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作",prop:"installCount"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:[t.$ecoAuth.softConfigEdit],expression:"[$ecoAuth.softConfigEdit]"}],attrs:{disabled:!e.row.canOperate,type:"text"},on:{click:function(n){return t.goEdit(e.row)}}},[t._v("修改配置")])]}}])})],1),t._v(" "),n("editConfig",{directives:[{name:"show",rawName:"v-show",value:t.showEdit,expression:"showEdit"}],attrs:{config:t.current,"role-id":t.settingObj.roleId},on:{success:function(e){t.showEdit=!1},reset:function(e){t.showEdit=!1}}})],1)},staticRenderFns:[]};var T=n("VU/8")(C,S,!1,function(t){n("jqdM")},"data-v-8ee9d2a8",null).exports,$=n("Dd8w"),I=n.n($),N=n("CmjB"),E=n("SlvV"),L={name:"SoftLog",components:{searchPage:N.a,dates:E.a},data:function(){return{total:0,isShow:!1,tableData:[],tableLoading:!1,statusOptions:[],softTypes:[],statusTypes:[],optType:"",optTypes:[],selected:[],form:{updateTime:[],logName:null,pageSize:10,pageNum:1,softId:this.$route.query.id}}},computed:{},created:function(){this.fetchData()},methods:{fetchData:function(){var t=this;this.tableLoading=!0;var e=I()({},this.form);e.updateTimeStart=e.updateTime[0],e.updateTimeEnd=e.updateTime[1],delete e.updateTime,a.h.logList(e).then(function(e){t.tableData=e.data.list,t.total=e.data.total,t.tableLoading=!1}).catch(function(e){t.tableLoading=!1})},goDetail:function(t){var e=this.$router.resolve({path:"/soft/getLogById",query:{id:t.id}});window.open(e.href,"_blank")},reset:function(){this.$refs.queryForm.resetFields(),this.fetchData()},handleQuery:function(){this.form.pageNum=1,this.form.updateTime||(this.form.updateTime=[]),this.fetchData()}}},A={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{},[n("search-page",{attrs:{"page-size":t.form.pageSize,"page-num":t.form.pageNum,total:t.total},on:{"update:pageSize":function(e){return t.$set(t.form,"pageSize",e)},"update:page-size":function(e){return t.$set(t.form,"pageSize",e)},"update:pageNum":function(e){return t.$set(t.form,"pageNum",e)},"update:page-num":function(e){return t.$set(t.form,"pageNum",e)},change:t.fetchData}},[n("el-form",{ref:"queryForm",attrs:{model:t.form,inline:""}},[n("el-form-item",{attrs:{prop:"logName",label:"日志名称:"}},[n("el-input",{model:{value:t.form.logName,callback:function(e){t.$set(t.form,"logName",e)},expression:"form.logName"}})],1),t._v(" "),n("el-form-item",{attrs:{prop:"updateTime",label:"更新时间:"}},[n("dates",{model:{value:t.form.updateTime,callback:function(e){t.$set(t.form,"updateTime",e)},expression:"form.updateTime"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.handleQuery}},[t._v("查询")]),t._v(" "),n("el-button",{attrs:{type:""},on:{click:t.reset}},[t._v("重置")])],1)],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticClass:"table_expand",attrs:{data:t.tableData}},[n("el-table-column",{attrs:{prop:"logName","show-overflow-tooltip":"",label:"日志名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.goDetail(e.row)}}},[t._v(t._s(e.row.logName))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"logSize","show-overflow-tooltip":"",label:"文件大小(byte)"}}),t._v(" "),n("el-table-column",{attrs:{prop:"nodeName","show-overflow-tooltip":"",label:"节点名称"}}),t._v(" "),n("el-table-column",{attrs:{prop:"ipv4","show-overflow-tooltip":"",label:"IP地址"}}),t._v(" "),n("el-table-column",{attrs:{prop:"updateTime","show-overflow-tooltip":"",label:"更新时间"}})],1)],1)],1)},staticRenderFns:[]};var F=n("VU/8")(L,A,!1,function(t){n("IfKK")},"data-v-bfa50dd4",null).exports,j=n("KxOF"),R={name:"OptionLogDialog",components:{},props:{show:Boolean},data:function(){return{}},computed:{main:function(){return this.$attrs.row.main},current:function(){return this.$attrs.row.current||{}}},methods:{handleClose:function(){this.$emit("update:show",!1)},handleOpen:function(){}}},V={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{visible:t.show,"before-close":t.handleClose,title:"日志详情",width:"800px"},on:{"update:visible":function(e){t.show=e},open:t.handleOpen}},[n("el-row",[n("el-col",{attrs:{span:8}},[t._v("实例名称:"+t._s(t.current.softRoleName))]),t._v(" "),n("el-col",{attrs:{span:8}},[t._v("操作类型:"+t._s(t.main.operRecord))]),t._v(" "),n("el-col",{attrs:{span:8}},[t._v("执行结果:"+t._s(t.current.operResultText))]),t._v(" "),n("el-col",{attrs:{span:8}},[t._v("耗时:"+t._s(t.current.takeTime))]),t._v(" "),n("el-col",{attrs:{span:8}},[t._v("\n 操作人:"+t._s(t.main.operUser)+"\n ")]),t._v(" "),n("el-col",{attrs:{span:8}},[t._v("\n 开始时间:"+t._s(t.current.startTime)+"\n ")]),t._v(" "),n("el-col",{attrs:{span:24}},[n("pre",{staticStyle:{"font-size":"1em","white-space":"pre-wrap !important","word-wrap":"break-word !important","*white-space":"normal !important"}},[t._v(" "+t._s(t.current.operLog)+"\n ")])])],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.handleClose}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.handleClose}},[t._v("确 定")])],1)],1)},staticRenderFns:[]};var O=n("VU/8")(R,V,!1,function(t){n("CpxL")},"data-v-694d38de",null).exports,U={name:"OptLog",components:{searchPage:N.a,myPoint:j.a,detailDialog:O},data:function(){return{isShow:!1,showDialog:!1,selected:null,tableData:[],tableLoading:!1,staticTxt:"",form:{}}},computed:{row:function(){return this.$attrs.row}},created:function(){this.fetchData()},methods:{goBack:function(){this.$emit("back")},fetchData:function(){var t=this;this.tableLoading=!0,a.h.optionLogDetail(this.row.id).then(function(e){t.staticTxt=(e.data.countRoleList||[]).join(","),t.tableData=e.data.softOperInstanceRstList,t.row.operResultText=t.tableData[0].operResultText,t.row.takeTime=t.tableData[0].takeTime,t.tableLoading=!1}).catch(function(e){t.tableLoading=!1})},goAdd:function(){this.$router.push({path:"/nodeManage/add"})},goDetail:function(t){this.selected=t,this.showDialog=!0},handleReset:function(){this.$refs.queryForm.resetFields(),this.fetchData()},handleQuery:function(){this.form.pageNum=1,this.fetchData()}}},z={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{},[n("el-card",{staticStyle:{"font-size":"14px"}},[n("div",{attrs:{slot:"header"},slot:"header"},[n("svg-icon",{staticStyle:{cursor:"pointer"},attrs:{"icon-class":"icon_back"},nativeOn:{click:function(e){return t.goBack(e)}}})],1),t._v(" "),n("el-row",[n("el-col",{staticStyle:{"padding-right":"40px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},attrs:{span:24,title:t.staticTxt}},[t._v("\n 统计:"+t._s(t.staticTxt)+"\n ")])],1),t._v(" "),n("p",[t._v(" ")]),t._v(" "),n("el-row",[n("el-col",{attrs:{span:6}},[t._v("\n 操作类型:"+t._s(t.row.operRecord))]),t._v(" "),n("el-col",{attrs:{span:10}},[t._v("\n 执行结果:"+t._s(t.row.operResultText)+"\n ")]),t._v(" "),n("el-col",{attrs:{span:8}},[t._v("\n 耗时:"+t._s(t.row.takeTime)+"\n ")]),t._v(" "),n("p",[t._v(" ")]),t._v(" "),n("el-col",{attrs:{span:6}},[t._v("\n 操作人:"+t._s(t.row.operUser)+"\n ")]),t._v(" "),n("el-col",{attrs:{span:8}},[t._v("\n 发起时间:"+t._s(t.row.startTime)+"\n ")])],1),t._v(" "),n("p",[t._v(" ")])],1),t._v(" "),n("el-button",{staticStyle:{margin:"12px 0"},attrs:{type:"primary"},on:{click:t.fetchData}},[t._v("刷新")]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticClass:"table_expand",attrs:{data:t.tableData}},[n("el-table-column",{attrs:{prop:"softRoleName","show-overflow-tooltip":"",label:"角色实例"}}),t._v(" "),n("el-table-column",{attrs:{prop:"operResultText",label:"执行结果"}}),t._v(" "),n("el-table-column",{attrs:{prop:"startTime","show-overflow-tooltip":"",label:"开始时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"takeTime","show-overflow-tooltip":"",label:"耗时"}}),t._v(" "),n("el-table-column",{attrs:{prop:"createTime","show-overflow-tooltip":"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.goDetail(e.row)}}},[t._v("查看日志")])]}}])})],1),t._v(" "),n("detailDialog",{attrs:{show:t.showDialog,row:{main:t.row,current:t.selected}},on:{"update:show":function(e){t.showDialog=e}}})],1)},staticRenderFns:[]};var P=n("VU/8")(U,z,!1,function(t){n("paS3")},"data-v-b67cce24",null).exports,H={name:"OptLog",components:{searchPage:N.a,myPoint:j.a,optionLogDetail:P},data:function(){return{total:0,isShow:!1,tableData:[],tableLoading:!1,statusOptions:[],softTypes:[],statusTypes:[],optType:"",optTypes:[],selected:null,form:{pageSize:10,pageNum:1}}},computed:{},created:function(){this.fetchData()},methods:{back:function(){this.selected=null,this.fetchData()},fetchData:function(){var t=this;this.tableLoading=!0;var e=I()({},this.form,{softId:this.$route.query.id});this.tableData=[{}],a.h.optionLogList(e).then(function(e){setTimeout(function(){t.tableData=e.data.list,t.total=e.data.total,t.tableLoading=!1},500)}).catch(function(e){t.tableLoading=!1})},goAdd:function(){this.$router.push({path:"/nodeManage/add"})},goDetail:function(t){this.selected=t},handleReset:function(){this.$refs.queryForm.resetFields(),this.fetchData()},handleQuery:function(){this.form.pageNum=1,this.fetchData()}}},B={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{},[n("search-page",{directives:[{name:"show",rawName:"v-show",value:!t.selected,expression:"!selected"}],attrs:{"page-size":t.form.pageSize,"page-num":t.form.pageNum,total:t.total},on:{"update:pageSize":function(e){return t.$set(t.form,"pageSize",e)},"update:page-size":function(e){return t.$set(t.form,"pageSize",e)},"update:pageNum":function(e){return t.$set(t.form,"pageNum",e)},"update:page-num":function(e){return t.$set(t.form,"pageNum",e)},change:t.fetchData}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],staticClass:"table_expand",attrs:{data:t.tableData}},[n("el-table-column",{attrs:{prop:"operRecord","show-overflow-tooltip":"",label:"操作记录"}}),t._v(" "),n("el-table-column",{attrs:{prop:"operUser","show-overflow-tooltip":"",label:"操作人"}}),t._v(" "),n("el-table-column",{attrs:{prop:"startTime",label:"发起时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"operResultText",label:"执行结果"}}),t._v(" "),n("el-table-column",{attrs:{prop:"takeTime","show-overflow-tooltip":"",label:"耗时"}}),t._v(" "),n("el-table-column",{attrs:{prop:"createTime","show-overflow-tooltip":"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.goDetail(e.row)}}},[t._v("详情")])]}}])})],1)],1),t._v(" "),t.selected?n("optionLogDetail",{attrs:{row:t.selected},on:{back:t.back}}):t._e()],1)},staticRenderFns:[]};var q={name:"SoftDetail",components:{statusList:i,instance:v,configList:T,softLog:F,optLog:n("VU/8")(H,B,!1,function(t){n("gB+K")},"data-v-6882ec9b",null).exports},data:function(){return{id:this.$route.query.id,activeName:"first",before:"first",monitorUrl:"",info:{},instanceInited:!1,logInited:!1,configInited:!1,optInited:!1,roleList:[],instanceType:"",isCanEdit:!1}},provide:function(){return{detailVm:this}},mounted:function(){var t=this;a.h.detail(this.id).then(function(e){t.info=e,t.instanceType=t.info.typeCn}),this.getData()},methods:{goInstance:function(t){var e=this;this.activeName="second",this.instanceInited=!0,this.$nextTick(function(){e.$refs.instance.search(t)})},openMonitor:function(){window.open(this.monitorUrl,"_blank")},beforeClickChange:function(){var t=this;switch(this.activeName){case"first":this.getData();break;case"second":this.instanceInited=!0;break;case"third":this.logInited=!0;break;case"fourth":this.configInited=!0;break;case"fifth":this.optInited=!0}this.$nextTick(function(){t.handleClick()})},handleClick:function(){switch(this.activeName){case"third":this.$refs.log.fetchData();break;case"fifth":this.$refs.optLog.fetchData()}"sixth"!==this.activeName?(this.before=this.activeName,"second"===this.activeName&&this.$refs.instance.search("")):(this.activeName=this.before,this.$refs.elTab.currentName=this.activeName,this.openMonitor())},getData:function(){var t=this;a.h.statusList(this.id).then(function(e){t.roleList=e})},editName:function(){this.isCanEdit=!0},confirmEdit:function(){this.isCanEdit=!1}}},M={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-card",[n("el-form",{attrs:{inline:"","label-width":"120px","label-position":"left"}},[n("el-row",[n("el-col",{attrs:{span:8}},[t.info.appName.length<25?n("el-form-item",{attrs:{label:"软件名称:"}},[t._v(t._s(t.info.appName))]):t._e(),t._v(" "),t.info.appName.length>=25?n("el-form-item",{attrs:{label:"软件名称:"}},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"bottom"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.info.appName))]),t._v(" "),n("span",[t._v(t._s(t.info.appName.substring(0,24))+"...")])])],1):t._e()],1),t._v(" "),n("el-col",{attrs:{span:8}},[!t.isCanEdit&&t.info.name.length<25?n("el-form-item",{attrs:{label:"软件实例名称:"}},[t._v("\n "+t._s(t.info.name)+"\n ")]):t._e(),t._v(" "),!t.isCanEdit&&t.info.name.length>=25?n("el-form-item",{attrs:{label:"软件实例名称:"}},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"bottom"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.info.name))]),t._v(" "),n("span",[t._v(t._s(t.info.name.substring(0,24))+"...")])])],1):t._e(),t._v(" "),t.isCanEdit?n("el-form-item",{attrs:{label:"软件实例名称:"}},[n("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"请输入软件实例名称"},model:{value:t.info.name,callback:function(e){t.$set(t.info,"name",e)},expression:"info.name"}}),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:t.confirmEdit}},[t._v("确认更改")])],1):t._e()],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"软件类型:"}},[t._v(t._s(t.info.typeCn))])],1),t._v(" "),n("el-col",{attrs:{span:8}},[t.info.version.length<25?n("el-form-item",{attrs:{label:"软件版本:"}},[t._v(t._s(t.info.version))]):t._e(),t._v(" "),t.info.version.length>=25?n("el-form-item",{attrs:{label:"软件版本:"}},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"bottom"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.info.version))]),t._v(" "),n("span",[t._v(t._s(t.info.version.substring(0,24))+"...")])])],1):t._e()],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"供应商:"}},[t._v(t._s(t.info.supplier))])],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"安装时间:"}},[t._v(t._s(t.info.createTime))])],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"修改时间:"}},[t._v(t._s(t.info.updateTime))])],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"运行状态:"}},[t._v(t._s(t.info.currentStateText))])],1)],1)],1),t._v(" "),n("el-tabs",{ref:"elTab",on:{"tab-click":t.beforeClickChange},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"状态",name:"first"}},[n("statusList",{on:{go:t.goInstance}})],1),t._v(" "),n("el-tab-pane",{attrs:{label:"实例",name:"second"}},[t.instanceInited?n("instance",{ref:"instance",attrs:{"instance-type":t.instanceType}}):t._e()],1),t._v(" "),n("el-tab-pane",{attrs:{label:"日志",name:"third"}},[t.logInited?n("softLog",{ref:"log"}):t._e()],1),t._v(" "),n("el-tab-pane",{attrs:{label:"配置",name:"fourth"}},[t.configInited?n("configList"):t._e()],1),t._v(" "),n("el-tab-pane",{attrs:{label:"操作记录",name:"fifth"}},[t.optInited?n("optLog",{ref:"optLog"}):t._e()],1),t._v(" "),t.monitorUrl?n("el-tab-pane",{attrs:{label:"监控",name:"sixth"}}):t._e()],1)],1)],1)},staticRenderFns:[]};var Z=n("VU/8")(q,M,!1,function(t){n("u+/3")},"data-v-35ccdf8b",null);e.default=Z.exports},wEtr:function(t,e,n){n("gSvA"),t.exports=n("FeBl").Object.entries},wwqe:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\n.el-date-editor .el-range-separator,\n.el-date-editor .el-input__icon {\n line-height: 28px;\n}\n.el-date-editor .el-range__close-icon {\n margin-left: 16px;\n}\n",""])}});