netty-server-ui.v1.js.283.b78de815.js Maven / Gradle / Ivy
The newest version!
"use strict";(self.webpackChunkwu_smart_agent_network=self.webpackChunkwu_smart_agent_network||[]).push([[283],{72283:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var n=r(83986),l=r(93540),u=r(66252),a=r(2262);const o={__name:"CloudServerSendMessage2Clinet",props:{showDialog:{type:Boolean,default:!0},title:{type:String,default:"添加"},rowData:{type:Object,default:null}},emits:["closeDialog"],setup:function(e,t){var r=t.emit,o={clientId:[{required:!0,message:"请输入选择客户端",trigger:"blur"}],clientTargetIp:[{required:!0,message:"请输入客户端目标IP",trigger:"blur"}],clientTargetPort:[{required:!0,message:"请输入客户端目标端口",trigger:"blur"}],visitorPort:[{required:!0,message:"请选择访客端口",trigger:"blur"}]},i=e,s=r,c=(0,a.BK)(i),d=c.title,f=c.rowData,p=function(){s("closeDialog",!1)},m=(0,a.iH)(null),g=(0,a.qj)({message:"",clientId:""}),w=(0,a.BK)(g),b=w.clientId,v=w.message;f.value&&(b.value=f.value.clientId);return(0,u.bv)((0,l.Z)((0,n.Z)().mark((function e(){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))),function(t,r){var i=(0,u.up)("el-input"),s=(0,u.up)("el-form-item"),c=(0,u.up)("el-form"),f=(0,u.up)("el-button"),w=(0,u.up)("el-dialog");return(0,u.wg)(),(0,u.j4)(w,{title:(0,a.SU)(d),"append-to-body":"","destroy-on-close":"","model-value":e.showDialog,onClose:r[4]||(r[4]=function(e){return p()})},{footer:(0,u.w5)((function(){return[(0,u._)("span",null,[(0,u.Wm)(f,{onClick:r[2]||(r[2]=function(e){return p()})},{default:(0,u.w5)((function(){return[(0,u.Uk)("取消")]})),_:1}),(0,u.Wm)(f,{type:"primary",onClick:r[3]||(r[3]=function(e){m.value.validate(function(){var e=(0,l.Z)((0,n.Z)().mark((function e(t){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=8;break}return e.next=3,VE_API.cloudNetwork.sendMessage2HeartbeatClient(g);case 3:0===e.sent.code&&p(),e.next=10;break;case 8:return console.log("error submit!!"),e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})},{default:(0,u.w5)((function(){return[(0,u.Uk)("发送")]})),_:1})])]})),default:(0,u.w5)((function(){return[(0,u.Wm)(c,{model:g,ref_key:"formRef",ref:m,rules:o,"label-width":"80px",inline:!1},{default:(0,u.w5)((function(){return[(0,u.Wm)(s,{label:"客户端ID",prop:"clientId"},{default:(0,u.w5)((function(){return[(0,u.Wm)(i,{modelValue:(0,a.SU)(b),"onUpdate:modelValue":r[0]||(r[0]=function(e){return(0,a.dq)(b)?b.value=e:null}),placeholder:"",disabled:""},null,8,["modelValue"])]})),_:1}),(0,u.Wm)(s,{label:"发送的消息",prop:"describe"},{default:(0,u.w5)((function(){return[(0,u.Wm)(i,{modelValue:(0,a.SU)(v),"onUpdate:modelValue":r[1]||(r[1]=function(e){return(0,a.dq)(v)?v.value=e:null}),placeholder:"",clearable:""},null,8,["modelValue"])]})),_:1})]})),_:1},8,["model"])]})),_:1},8,["title","model-value"])}}}}}]);