All Downloads are FREE. Search and download functionalities are using the official Maven repository.

netty-server-ui.v1.js.778.8721a6aa.js Maven / Gradle / Ivy

The newest version!
"use strict";(self.webpackChunkwu_smart_agent_network=self.webpackChunkwu_smart_agent_network||[]).push([[778],{18449:(e,t,r)=>{r.d(t,{Ny:()=>a,XN:()=>o,ci:()=>l});var n=r(90106);r(63975),r(70560),r(34338),r(34284);var o=function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(!t)return[];var l,i=(0,n.Z)(t);try{for(i.s();!(l=i.n()).done;){var u=l.value;if(a.push(u[o]),r(u))return a;if(u.children){var s=e(u.children,r,o,a);if(s.length)return s}a.pop()}}catch(e){i.e(e)}finally{i.f()}return[]},a=function(e){return e&&(e.__v_raw||e.valueOf()||e)},l=function(){var e=r(98097);console.log("🚀 ~ file: index.js ~ line 107 ~ icons ~ e",e);var t=[];for(var n in e)t.push(e[n].name);return t}},16080:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var n=r(83986),o=r(35145),a=r(93540),l=(r(63975),r(9914));r(59749),r(86544),r(60228),r(84254),r(21694),r(76265),r(77049);var i=r(96726);r(21057),r(68932);function u(e){return function(e){if(Array.isArray(e))return(0,l.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r(34284),r(49693),r(47522);var s=r(66252),d=r(2262),c=r(3577),f=r(18449),m=r(11513),p=r(38478),v=["data-menuId"];const h={__name:"RoleEdit",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,l=e,i=r,h=(0,d.BK)(l),y=h.title,w=h.rowData,g=function(){i("closeDialog",!1)},b=(0,d.qj)({code:"",name:"",menuIds:[],status:!0}),_=(0,d.BK)(b),S=_.code,k=_.name,C=_.menuIds,x=_.status,R=(0,d.iH)(null),A={name:[{required:!0,message:"请输入名称",trigger:"blur"}],code:[{required:!0,message:"请输入角色编码",trigger:"blur"}],menuIds:[{validator:function(e,t,r){C.value=u(E.value.getCheckedKeys(!1)),C.value.length<1?r(new Error("请选择权限")):r()},required:!0}]},E=(0,d.iH)(null),Z=(0,d.iH)([]);w.value&&(k.value=w.value.name,S.value=w.value.code,x.value=w.value.status);var T=function(){var e=(0,a.Z)((0,n.Z)().mark((function e(){var t,r,o,a;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,VE_API.system.menuList({size:10,page:1,total:0},{Global:!1});case 2:t=e.sent,r=t.code,o=t.data,0===r&&(a=p.mapTree(p.toArrayTree(o,{sortKey:"sort",key:"code",parentKey:"parentCode"}),(function(e){return e.children&&e.children.length<=0&&delete e.children,e})),Z.value=a);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,s.bv)((0,a.Z)((0,n.Z)().mark((function e(){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:(0,s.Y3)((0,a.Z)((0,n.Z)().mark((function e(){var t,r,o,a;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=void 0,n=document.getElementsByClassName("ve_tree_item"),Array.from(n).forEach((function(e){var t=1*e.dataset.roleid,r=(0,f.XN)(Z.value,(function(e){return e.id===t})).length-1;e.parentNode.parentNode.parentNode.style.paddingLeft=18*r+"px";var n=e.parentNode.className;e.parentNode.className=n+" fl p0"})),"添加"!==y.value){e.next=5;break}E.value.setCheckedNodes(Z.value),e.next=11;break;case 5:return e.next=7,VE_API.system.roleOne({id:w.value.id});case 7:t=e.sent,r=t.code,o=t.data,0===r&&(a=p.mapTree(p.toArrayTree(o.menuList,{sortKey:"sort",key:"code",parentKey:"parentCode"}),(function(e){return e.children&&e.children.length<=0&&delete e.children,e})),console.log(a),a&&a.length>0&&E.value.setCheckedNodes(a));case 11:case"end":return e.stop()}var n}),e)}))));case 3:case"end":return e.stop()}}),e)})))),function(t,r){var l=(0,s.up)("el-input"),i=(0,s.up)("el-form-item"),u=(0,s.up)("el-scrollbar"),f=(0,s.up)("el-card"),p=(0,s.up)("el-radio-button"),h=(0,s.up)("el-radio-group"),_=(0,s.up)("el-form"),C=(0,s.up)("el-button"),T=(0,s.up)("el-dialog");return(0,s.wg)(),(0,s.j4)(T,{title:(0,d.SU)(y),"append-to-body":"","destroy-on-close":"","model-value":e.showDialog,onClose:r[5]||(r[5]=function(e){return g()})},{footer:(0,s.w5)((function(){return[(0,s._)("span",null,[(0,s.Wm)(C,{onClick:r[3]||(r[3]=function(e){return g()})},{default:(0,s.w5)((function(){return[(0,s.Uk)("取消")]})),_:1}),(0,s.Wm)(C,{type:"primary",onClick:r[4]||(r[4]=function(e){R.value.validate(function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t){var r;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=14;break}if("添加"!==y.value){e.next=7;break}return e.next=4,VE_API.system.roleAdd(b);case 4:r=e.sent,e.next=10;break;case 7:return e.next=9,VE_API.system.roleEdit((0,o.Z)({id:w.value.id},b));case 9:r=e.sent;case 10:0===r.code&&g(),e.next=16;break;case 14:return console.log("error submit!!"),e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})},{default:(0,s.w5)((function(){return[(0,s.Uk)("确定")]})),_:1})])]})),default:(0,s.w5)((function(){return[(0,s.Wm)(_,{model:b,ref_key:"formRef",ref:R,rules:A,inline:!1,"label-width":"120px"},{default:(0,s.w5)((function(){return[(0,s.Wm)(i,{label:"名称",prop:"name",class:"role_edit_item"},{default:(0,s.w5)((function(){return[(0,s.Wm)(l,{modelValue:(0,d.SU)(k),"onUpdate:modelValue":r[0]||(r[0]=function(e){return(0,d.dq)(k)?k.value=e:null}),placeholder:"",clearable:""},null,8,["modelValue"])]})),_:1}),(0,s.Wm)(i,{label:"角色编码",prop:"code",class:"role_edit_item"},{default:(0,s.w5)((function(){return[(0,s.Wm)(l,{modelValue:(0,d.SU)(S),"onUpdate:modelValue":r[1]||(r[1]=function(e){return(0,d.dq)(S)?S.value=e:null}),placeholder:"",clearable:""},null,8,["modelValue"])]})),_:1}),(0,s.Wm)(i,{label:"权限",prop:"menuIds",class:"role_edit_item"},{default:(0,s.w5)((function(){return[(0,s.Wm)(f,{shadow:"never","body-style":{padding:0,height:"200px",width:"100%"},class:"role_edit_item"},{default:(0,s.w5)((function(){return[(0,s.Wm)(u,{style:{width:"100%"}},{default:(0,s.w5)((function(){return[(0,s.Wm)((0,d.SU)(m.y),{ref_key:"tree",ref:E,data:Z.value,"node-key":"id","default-expand-all":"",props:{label:"name"},"empty-text":"暂无数据","show-checkbox":"","highlight-current":""},{default:(0,s.w5)((function(e){var t=e.data;return[(0,s._)("span",{"data-menuId":t.id,class:(0,c.C_)({ve_tree_item:2===t.type})},(0,c.zw)(t.name),11,v)]})),_:1},8,["data"])]})),_:1})]})),_:1})]})),_:1}),(0,s.Wm)(i,{label:"状态",prop:"status",class:"role_edit_item"},{default:(0,s.w5)((function(){return[(0,s.Wm)(h,{modelValue:(0,d.SU)(x),"onUpdate:modelValue":r[2]||(r[2]=function(e){return(0,d.dq)(x)?x.value=e:null})},{default:(0,s.w5)((function(){return[(0,s.Wm)(p,{label:!0},{default:(0,s.w5)((function(){return[(0,s.Uk)("启用")]})),_:1}),(0,s.Wm)(p,{label:!1},{default:(0,s.w5)((function(){return[(0,s.Uk)("停用")]})),_:1})]})),_:1},8,["modelValue"])]})),_:1})]})),_:1},8,["model"])]})),_:1},8,["title","model-value"])}}}},29812:(e,t,r)=>{r.r(t),r.d(t,{BaseTransition:()=>n.P$,BaseTransitionPropsValidators:()=>n.nJ,Comment:()=>n.sv,EffectScope:()=>n.Bj,Fragment:()=>n.HY,KeepAlive:()=>n.Ob,ReactiveEffect:()=>n.qq,Static:()=>n.qG,Suspense:()=>n.n4,Teleport:()=>n.lR,Text:()=>n.xv,Transition:()=>n.uT,TransitionGroup:()=>n.W3,VueElement:()=>n.a2,assertNumber:()=>n.Wu,callWithAsyncErrorHandling:()=>n.$d,callWithErrorHandling:()=>n.KU,camelize:()=>n._A,capitalize:()=>n.kC,cloneVNode:()=>n.Ho,compatUtils:()=>n.ry,compile:()=>o,computed:()=>n.Fl,createApp:()=>n.ri,createBlock:()=>n.j4,createCommentVNode:()=>n.kq,createElementBlock:()=>n.iD,createElementVNode:()=>n._,createHydrationRenderer:()=>n.Eo,createPropsRestProxy:()=>n.p1,createRenderer:()=>n.Us,createSSRApp:()=>n.vr,createSlots:()=>n.Nv,createStaticVNode:()=>n.uE,createTextVNode:()=>n.Uk,createVNode:()=>n.Wm,customRef:()=>n.ZM,defineAsyncComponent:()=>n.RC,defineComponent:()=>n.aZ,defineCustomElement:()=>n.MW,defineEmits:()=>n.Bz,defineExpose:()=>n.WY,defineModel:()=>n.Gn,defineOptions:()=>n.Yu,defineProps:()=>n.yb,defineSSRCustomElement:()=>n.Ah,defineSlots:()=>n.Wl,devtools:()=>n.mW,effect:()=>n.cE,effectScope:()=>n.B,getCurrentInstance:()=>n.FN,getCurrentScope:()=>n.nZ,getTransitionRawChildren:()=>n.Q6,guardReactiveProps:()=>n.F4,h:()=>n.h,handleError:()=>n.S3,hasInjectionContext:()=>n.EM,hydrate:()=>n.ZB,initCustomFormatter:()=>n.Mr,initDirectivesForSSR:()=>n.Nd,inject:()=>n.f3,isMemoSame:()=>n.nQ,isProxy:()=>n.X3,isReactive:()=>n.PG,isReadonly:()=>n.$y,isRef:()=>n.dq,isRuntimeOnly:()=>n.of,isShallow:()=>n.yT,isVNode:()=>n.lA,markRaw:()=>n.Xl,mergeDefaults:()=>n.u_,mergeModels:()=>n.Vf,mergeProps:()=>n.dG,nextTick:()=>n.Y3,normalizeClass:()=>n.C_,normalizeProps:()=>n.vs,normalizeStyle:()=>n.j5,onActivated:()=>n.dl,onBeforeMount:()=>n.wF,onBeforeUnmount:()=>n.Jd,onBeforeUpdate:()=>n.Xn,onDeactivated:()=>n.se,onErrorCaptured:()=>n.d1,onMounted:()=>n.bv,onRenderTracked:()=>n.bT,onRenderTriggered:()=>n.Yq,onScopeDispose:()=>n.EB,onServerPrefetch:()=>n.vl,onUnmounted:()=>n.SK,onUpdated:()=>n.ic,openBlock:()=>n.wg,popScopeId:()=>n.Cn,provide:()=>n.JJ,proxyRefs:()=>n.WL,pushScopeId:()=>n.dD,queuePostFlushCb:()=>n.qb,reactive:()=>n.qj,readonly:()=>n.OT,ref:()=>n.iH,registerRuntimeCompiler:()=>n.Y1,render:()=>n.sY,renderList:()=>n.Ko,renderSlot:()=>n.WI,resolveComponent:()=>n.up,resolveDirective:()=>n.Q2,resolveDynamicComponent:()=>n.LL,resolveFilter:()=>n.eq,resolveTransitionHooks:()=>n.U2,setBlockTracking:()=>n.qZ,setDevtoolsHook:()=>n.ec,setTransitionHooks:()=>n.nK,shallowReactive:()=>n.Um,shallowReadonly:()=>n.YS,shallowRef:()=>n.XI,ssrContextKey:()=>n.Uc,ssrUtils:()=>n.G,stop:()=>n.sT,toDisplayString:()=>n.zw,toHandlerKey:()=>n.hR,toHandlers:()=>n.mx,toRaw:()=>n.IU,toRef:()=>n.Vh,toRefs:()=>n.BK,toValue:()=>n.Tn,transformVNodeArgs:()=>n.C3,triggerRef:()=>n.oR,unref:()=>n.SU,useAttrs:()=>n.l1,useCssModule:()=>n.fb,useCssVars:()=>n.sj,useModel:()=>n.tT,useSSRContext:()=>n.Zq,useSlots:()=>n.Rr,useTransitionState:()=>n.Y8,vModelCheckbox:()=>n.e8,vModelDynamic:()=>n.YZ,vModelRadio:()=>n.G2,vModelSelect:()=>n.bM,vModelText:()=>n.nr,vShow:()=>n.F8,version:()=>n.i8,warn:()=>n.ZK,watch:()=>n.YP,watchEffect:()=>n.m0,watchPostEffect:()=>n.Rh,watchSyncEffect:()=>n.yX,withAsyncContext:()=>n.mv,withCtx:()=>n.w5,withDefaults:()=>n.b9,withDirectives:()=>n.wy,withKeys:()=>n.D2,withMemo:()=>n.MX,withModifiers:()=>n.iM,withScopeId:()=>n.HX});var n=r(49963);const o=()=>{0}},77049:(e,t,r)=>{var n=r(79989),o=r(21055);n({target:"Array",stat:!0,forced:!r(86431)((function(e){Array.from(e)}))},{from:o})},63975:(e,t,r)=>{r(79989)({target:"Array",stat:!0},{isArray:r(92297)})},9914:(e,t,r)=>{function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rn})},90106:(e,t,r)=>{r.d(t,{Z:()=>o});r(59749),r(86544),r(60228),r(84254),r(21694),r(76265),r(63975),r(21057),r(68932);var n=r(96726);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=(0,n.Z)(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,i=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,l=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw l}}}}},96726:(e,t,r)=>{r.d(t,{Z:()=>o});r(89730),r(68932),r(30024),r(60228),r(12826),r(34284),r(77049),r(21694),r(64043),r(7409);var n=r(9914);function o(e,t){if(e){if("string"==typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.Z)(e,t):void 0}}}}]);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy