@since2006/pages 2025.12.0 → 2026.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/src/app/log/components/AccessLogList.vue.js +2 -2
- package/dist/es/src/app/log/components/AccessLogList.vue2.js +7 -8
- package/dist/es/src/app/log/components/AuditLogList.vue.js +1 -1
- package/dist/es/src/app/log/components/AuditLogList.vue2.js +1 -2
- package/dist/es/src/app/log/components/ErrorLogList.vue.js +2 -2
- package/dist/es/src/app/log/components/ErrorLogList.vue2.js +1 -2
- package/dist/es/src/app/log/components/LoginLogList.vue.js +1 -1
- package/dist/es/src/app/log/components/LoginLogList.vue2.js +7 -6
- package/dist/es/src/app/log/components/OperationLogList.vue.js +2 -2
- package/dist/es/src/app/log/components/OperationLogList.vue2.js +1 -2
- package/dist/es/src/app/module/ModuleAdd.vue.js +2 -2
- package/dist/es/src/app/module/ModuleAdd.vue2.js +50 -46
- package/dist/es/src/app/module/ModuleDetail.vue.js +30 -29
- package/dist/es/src/app/module/ModuleEdit.vue.js +2 -2
- package/dist/es/src/app/module/ModuleEdit.vue2.js +49 -45
- package/dist/es/src/app/module/ModuleIndex.vue.js +2 -2
- package/dist/es/src/app/module/ModuleIndex.vue2.js +76 -73
- package/dist/es/src/app/module/icon/AppIcon.vue.js +35 -0
- package/dist/es/src/app/system/StatusIndex.vue.js +1 -1
- package/dist/es/src/app/system/StatusIndex.vue2.js +33 -33
- package/dist/es/style.css +1 -1
- package/dist/lib/src/app/attachment/AttachmentIndex.vue.js +1 -1
- package/dist/lib/src/app/dict/DictIndex.vue2.js +1 -1
- package/dist/lib/src/app/dict/DictPanel.vue2.js +1 -1
- package/dist/lib/src/app/log/components/AccessLogList.vue.js +1 -1
- package/dist/lib/src/app/log/components/AccessLogList.vue2.js +1 -1
- package/dist/lib/src/app/log/components/AuditLogList.vue.js +1 -1
- package/dist/lib/src/app/log/components/AuditLogList.vue2.js +1 -1
- package/dist/lib/src/app/log/components/ErrorLogList.vue.js +1 -1
- package/dist/lib/src/app/log/components/ErrorLogList.vue2.js +1 -1
- package/dist/lib/src/app/log/components/LoginLogDetail.vue2.js +1 -1
- package/dist/lib/src/app/log/components/LoginLogList.vue.js +1 -1
- package/dist/lib/src/app/log/components/LoginLogList.vue2.js +1 -1
- package/dist/lib/src/app/log/components/OperationLogList.vue.js +1 -1
- package/dist/lib/src/app/log/components/OperationLogList.vue2.js +1 -1
- package/dist/lib/src/app/module/ModuleAdd.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleAdd.vue2.js +1 -1
- package/dist/lib/src/app/module/ModuleDetail.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleEdit.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleEdit.vue2.js +1 -1
- package/dist/lib/src/app/module/ModuleIndex.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleIndex.vue2.js +1 -1
- package/dist/lib/src/app/module/icon/AppIcon.vue.js +1 -0
- package/dist/lib/src/app/schedule/ScheduleIndex.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleLogList.vue.js +1 -1
- package/dist/lib/src/app/system/StatusIndex.vue.js +1 -1
- package/dist/lib/src/app/system/StatusIndex.vue2.js +1 -1
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),P=require("./icon/IconSelectorModal.vue.js"),R=require("ant-design-vue"),j=require("@ant-design/icons-vue"),m=require("./api.js"),E=require("@since2006/components"),$=e.defineComponent({__name:"ModuleAdd",props:{open:{type:Boolean,default:!1},parentId:{type:String,default:null}},emits:["update:open","success","cancel"],setup(
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),P=require("./icon/IconSelectorModal.vue.js"),R=require("ant-design-vue"),j=require("@ant-design/icons-vue"),m=require("./api.js"),E=require("@since2006/components"),$=require("./icon/AppIcon.vue.js"),z=e.defineComponent({__name:"ModuleAdd",props:{open:{type:Boolean,default:!1},parentId:{type:String,default:null}},emits:["update:open","success","cancel"],setup(f,{emit:x}){const c=f,v=e.ref(),s=e.ref([]),i=e.ref(!1),C=e.ref([]),N=e.ref([]),u=e.ref({icon:!1}),_={id:"",cateId:"",parentId:"",name:"",icon:"",path:"",component:"",seqNo:"",remark:"",status:0,target:!1,permissionSummary:""},o=e.reactive({..._}),b={name:[{required:!0,message:"请填写模块名称"}],seqNo:[{required:!0,type:"number",message:"请填写数字类型顺序号"}],status:[{required:!0,message:"请选择是否显示"}]},p=x;e.watch(()=>c.open,n=>{n&&(g(),I())});const g=()=>{Object.assign(o,_),s.value=[]},q=(n,t)=>t.componentOptions.children[0].text.toLowerCase().indexOf(n.toLowerCase())>=0,I=()=>{m.getModules().then(n=>{const t=[];V(t,n.data,[]),C.value=t,c.parentId&&(o.parentId=c.parentId)}),m.getDocs().then(n=>{N.value=D(n.data)})},S=()=>{u.value.icon=!0},k=n=>{u.value.icon=!1,o.icon=n},U=()=>{v.value.validateFields().then(()=>{i.value=!0;const n={...o,openTarget:o.target?1:0,permIds:s.value,seqNo:parseInt(o.seqNo)};m.createModule(n).then(t=>{R.message.success("添加模块成功"),p("update:open",!1),p("success",t.data.parentId)})}).finally(n=>{i.value=!1})},y=()=>{p("update:open",!1)},V=(n,t,d)=>{t&&t.forEach(l=>{if(!d.includes(l.id)){const r={value:l.id,title:l.name,children:[]};V(r.children,l.children,d),n.push(r)}})},D=n=>n.map(t=>({value:t.id,label:t.name}));return(n,t)=>{const d=e.resolveComponent("a-tree-select"),l=e.resolveComponent("a-form-item"),r=e.resolveComponent("a-input"),O=e.resolveComponent("a-select"),A=e.resolveComponent("a-input-number"),w=e.resolveComponent("a-radio"),L=e.resolveComponent("a-radio-group"),M=e.resolveComponent("a-switch"),h=e.resolveComponent("a-col"),T=e.resolveComponent("a-row"),B=e.resolveComponent("a-form"),F=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(F,{title:"添加系统模块",width:800,visible:f.open,"mask-closable":!1,"confirm-loading":i.value,"destroy-on-close":"",onOk:U,onCancel:y},{default:e.withCtx(()=>[e.createVNode(B,{ref_key:"formRef",ref:v,model:o,rules:b,"label-col":{span:5},"wrapper-col":{span:15}},{default:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(h,{span:15},{default:e.withCtx(()=>[e.createVNode(l,{label:"上级模块"},{default:e.withCtx(()=>[e.createVNode(d,{value:o.parentId,"onUpdate:value":t[0]||(t[0]=a=>o.parentId=a),treeData:C.value,treeDefaultExpandAll:"",allowClear:""},null,8,["value","treeData"])]),_:1}),e.createVNode(l,{label:"模块名称",name:"name"},{default:e.withCtx(()=>[e.createVNode(r,{value:o.name,"onUpdate:value":t[1]||(t[1]=a=>o.name=a),placeholder:"模块名称"},null,8,["value"])]),_:1}),e.createVNode(l,{label:"文档类别"},{default:e.withCtx(()=>[e.createVNode(O,{value:o.cateId,"onUpdate:value":t[2]||(t[2]=a=>o.cateId=a),"show-search":"","option-filter-prop":"children","filter-option":q,options:N.value,allowClear:""},null,8,["value","options"])]),_:1}),e.createVNode(l,{label:"模块图标"},{default:e.withCtx(()=>[e.createVNode(r,{value:o.icon,"onUpdate:value":t[3]||(t[3]=a=>o.icon=a),placeholder:"点击右侧按钮选择图标"},{prefix:e.withCtx(()=>[e.createVNode($.default,{icon:o.icon,style:{color:"#108b16"}},null,8,["icon"])]),addonAfter:e.withCtx(()=>[e.createVNode(e.unref(j.SearchOutlined),{onClick:S})]),_:1},8,["value"])]),_:1}),e.createVNode(l,{label:"顺序号",name:"seqNo"},{default:e.withCtx(()=>[e.createVNode(A,{value:o.seqNo,"onUpdate:value":t[4]||(t[4]=a=>o.seqNo=a),placeholder:"顺序号"},null,8,["value"])]),_:1}),e.createVNode(l,{label:"访问路径"},{default:e.withCtx(()=>[e.createVNode(r,{value:o.path,"onUpdate:value":t[5]||(t[5]=a=>o.path=a),placeholder:"访问路径"},null,8,["value"])]),_:1}),e.createVNode(l,{label:"模板文件"},{default:e.withCtx(()=>[e.createVNode(r,{value:o.component,"onUpdate:value":t[6]||(t[6]=a=>o.component=a),placeholder:"@/epp/module/viewName"},null,8,["value"])]),_:1}),e.createVNode(l,{label:"是否显示",name:"status"},{default:e.withCtx(()=>[e.createVNode(L,{value:o.status,"onUpdate:value":t[7]||(t[7]=a=>o.status=a)},{default:e.withCtx(()=>[e.createVNode(w,{value:1},{default:e.withCtx(()=>t[12]||(t[12]=[e.createTextVNode("显示")])),_:1}),e.createVNode(w,{value:0},{default:e.withCtx(()=>t[13]||(t[13]=[e.createTextVNode("隐藏")])),_:1})]),_:1},8,["value"])]),_:1}),e.createVNode(l,{label:"打开方式"},{default:e.withCtx(()=>[e.createVNode(M,{checked:o.target,"onUpdate:checked":t[8]||(t[8]=a=>o.target=a),"checked-children":"新开窗口","un-checked-children":"内部窗口"},null,8,["checked"])]),_:1}),e.createVNode(l,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(r,{value:o.remark,"onUpdate:value":t[9]||(t[9]=a=>o.remark=a),placeholder:"描述"},null,8,["value"])]),_:1})]),_:1}),e.createVNode(h,{span:9},{default:e.withCtx(()=>[e.createVNode(e.unref(E.PermPanel),{modelValue:s.value,"onUpdate:modelValue":t[10]||(t[10]=a=>s.value=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"]),e.createVNode(P.default,{visible:u.value.icon,onSuccess:k,onCancel:t[11]||(t[11]=a=>u.value.icon=!1)},null,8,["visible"])]),_:1},8,["visible","confirm-loading"])}}});exports.default=z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i={style:{color:"#a6a6a6","margin-left":"4px"}},
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("./icon/AppIcon.vue.js"),p={style:{color:"#a6a6a6","margin-left":"4px"}},c=e.defineComponent({__name:"ModuleDetail",props:{module:{}},setup(u){return(t,l)=>{const o=e.resolveComponent("a-descriptions-item"),r=e.resolveComponent("a-typography-paragraph"),a=e.resolveComponent("a-tag"),d=e.resolveComponent("a-descriptions");return e.openBlock(),e.createBlock(d,{bordered:"",column:1,labelStyle:{width:"140px",textAlign:"center"}},{default:e.withCtx(()=>[e.createVNode(o,{label:"模块名称"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.module.name),1)]),_:1}),e.createVNode(o,{label:"文档类别"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=t.module.cate)==null?void 0:n.name),1)]}),_:1}),e.createVNode(o,{label:"模块图标"},{default:e.withCtx(()=>[e.createVNode(i.default,{icon:t.module.icon,size:"16px"},null,8,["icon"]),e.createElementVNode("span",p,e.toDisplayString(t.module.icon),1)]),_:1}),e.createVNode(o,{label:"访问路径"},{default:e.withCtx(()=>[e.createVNode(r,{copyable:!!t.module.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.module.path),1)]),_:1},8,["copyable"])]),_:1}),e.createVNode(o,{label:"模板文件"},{default:e.withCtx(()=>[e.createVNode(r,{copyable:!!t.module.component},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.module.component),1)]),_:1},8,["copyable"])]),_:1}),e.createVNode(o,{label:"打开方式"},{default:e.withCtx(()=>[t.module.openTarget!=null?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.module.openTarget===1?(e.openBlock(),e.createBlock(a,{key:0,color:"red"},{default:e.withCtx(()=>l[0]||(l[0]=[e.createTextVNode("新开窗口")])),_:1})):(e.openBlock(),e.createBlock(a,{key:1},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("默认")])),_:1}))],64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(o,{label:"排序"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.module.seqNo),1)]),_:1}),e.createVNode(o,{label:"是否显示"},{default:e.withCtx(()=>[t.module.status!=null?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.module.status===1?(e.openBlock(),e.createBlock(a,{key:0,color:"green"},{default:e.withCtx(()=>l[2]||(l[2]=[e.createTextVNode("显示")])),_:1})):(e.openBlock(),e.createBlock(a,{key:1,color:"red"},{default:e.withCtx(()=>l[3]||(l[3]=[e.createTextVNode("隐藏")])),_:1}))],64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(o,{label:"访问权限"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.module.permsSummary),1)]),_:1}),e.createVNode(o,{label:"描述"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.module.remark),1)]),_:1})]),_:1})}}});exports.default=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ModuleEdit.vue2.js");;/* empty css */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ModuleEdit.vue2.js");;/* empty css */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-50a6d9f1"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),j=require("./icon/IconSelectorModal.vue.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),j=require("./icon/IconSelectorModal.vue.js"),B=require("ant-design-vue"),F=require("@ant-design/icons-vue"),c=require("./api.js"),R=require("@since2006/components"),$=require("./icon/AppIcon.vue.js"),z=e.defineComponent({__name:"ModuleEdit",props:{open:{type:Boolean,default:!1},moduleId:{type:String,required:!0}},emits:["update:open","success","cancel"],setup(v,{emit:b}){const i=v,f=e.ref(),p=e.ref(!1),C=e.ref([]),N=e.ref([]),u=e.ref([]),s=e.ref({icon:!1}),_={id:"",cateId:"",parentId:"",name:"",icon:"",path:"",component:"",seqNo:"",remark:"",status:0,target:!1,permissionSummary:""},o=e.reactive({..._}),x={name:[{required:!0,message:"请填写模块名称"}],seqNo:[{required:!0,type:"number",message:"请填写数字类型顺序号"}],status:[{required:!0,message:"请选择是否显示"}]},m=b;e.watch(()=>i.open,n=>{n&&(g(),I())});const g=()=>{Object.assign(o,_),u.value=[]},q=(n,t)=>t.componentOptions.children[0].text.toLowerCase().indexOf(n.toLowerCase())>=0,I=()=>{c.getModule(i.moduleId).then(n=>{const t=n.data;t.target=t.openTarget===1,Object.assign(o,n.data),u.value=[...n.data.permissions.map(d=>d.id)]}),c.getModules().then(n=>{const t=[];V(t,n.data,[i.moduleId]),C.value=t}),c.getDocs().then(n=>{N.value=O(n.data)})},S=()=>{s.value.icon=!0},k=n=>{s.value.icon=!1,o.icon=n},U=()=>{f.value.validateFields().then(()=>{p.value=!0;const n={...o,openTarget:o.target?1:0,permIds:u.value,seqNo:parseInt(o.seqNo)};c.updateModule(n).then(t=>{t.code===200&&(B.message.success("编辑模块成功"),m("update:open",!1),m("success",t.data.id,t.data.parentId,t.data.srcParentId))})}).finally(()=>{p.value=!1})},y=()=>{m("update:open",!1)},O=n=>n.map(t=>({value:t.id,label:t.name})),V=(n,t,d)=>{t&&t.forEach(l=>{if(!d.includes(l.id)){const r={value:l.id,title:l.name,children:[]};V(r.children,l.children,d),n.push(r)}})};return(n,t)=>{const d=e.resolveComponent("a-tree-select"),l=e.resolveComponent("a-form-item"),r=e.resolveComponent("a-input"),D=e.resolveComponent("a-select"),M=e.resolveComponent("a-input-number"),w=e.resolveComponent("a-radio"),L=e.resolveComponent("a-radio-group"),T=e.resolveComponent("a-switch"),h=e.resolveComponent("a-col"),A=e.resolveComponent("a-row"),E=e.resolveComponent("a-form"),P=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(P,{title:"编辑系统模块",width:800,visible:v.open,"mask-closable":!1,"confirm-loading":p.value,"destroy-on-close":"",onOk:U,onCancel:y},{default:e.withCtx(()=>[e.createVNode(E,{ref_key:"formRef",ref:f,model:o,rules:x,"label-col":{span:5},"wrapper-col":{span:15}},{default:e.withCtx(()=>[e.createVNode(A,null,{default:e.withCtx(()=>[e.createVNode(h,{span:15},{default:e.withCtx(()=>[e.createVNode(l,{label:"上级模块"},{default:e.withCtx(()=>[e.createVNode(d,{value:o.parentId,"onUpdate:value":t[0]||(t[0]=a=>o.parentId=a),treeData:C.value,treeDefaultExpandAll:"",allowClear:""},null,8,["value","treeData"])]),_:1}),e.createVNode(l,{label:"模块名称",name:"name"},{default:e.withCtx(()=>[e.createVNode(r,{value:o.name,"onUpdate:value":t[1]||(t[1]=a=>o.name=a),placeholder:"模块名称"},null,8,["value"])]),_:1}),e.createVNode(l,{label:"文档类别"},{default:e.withCtx(()=>[e.createVNode(D,{value:o.cateId,"onUpdate:value":t[2]||(t[2]=a=>o.cateId=a),"show-search":"","option-filter-prop":"children","filter-option":q,options:N.value,allowClear:""},null,8,["value","options"])]),_:1}),e.createVNode(l,{label:"模块图标"},{default:e.withCtx(()=>[e.createVNode(r,{value:o.icon,"onUpdate:value":t[3]||(t[3]=a=>o.icon=a),placeholder:"点击右侧按钮选择图标"},{prefix:e.withCtx(()=>[e.createVNode($.default,{icon:o.icon,style:{color:"#108b16"}},null,8,["icon"])]),addonAfter:e.withCtx(()=>[e.createVNode(e.unref(F.SearchOutlined),{onClick:S})]),_:1},8,["value"])]),_:1}),e.createVNode(l,{label:"顺序号",name:"seqNo"},{default:e.withCtx(()=>[e.createVNode(M,{value:o.seqNo,"onUpdate:value":t[4]||(t[4]=a=>o.seqNo=a),placeholder:"顺序号"},null,8,["value"])]),_:1}),e.createVNode(l,{label:"访问路径"},{default:e.withCtx(()=>[e.createVNode(r,{value:o.path,"onUpdate:value":t[5]||(t[5]=a=>o.path=a),placeholder:"访问路径"},null,8,["value"])]),_:1}),e.createVNode(l,{label:"模板文件"},{default:e.withCtx(()=>[e.createVNode(r,{value:o.component,"onUpdate:value":t[6]||(t[6]=a=>o.component=a),placeholder:"@/epp/module/viewName"},null,8,["value"])]),_:1}),e.createVNode(l,{label:"是否显示",name:"status"},{default:e.withCtx(()=>[e.createVNode(L,{value:o.status,"onUpdate:value":t[7]||(t[7]=a=>o.status=a)},{default:e.withCtx(()=>[e.createVNode(w,{value:1},{default:e.withCtx(()=>t[12]||(t[12]=[e.createTextVNode("显示")])),_:1}),e.createVNode(w,{value:0},{default:e.withCtx(()=>t[13]||(t[13]=[e.createTextVNode("隐藏")])),_:1})]),_:1},8,["value"])]),_:1}),e.createVNode(l,{label:"打开方式"},{default:e.withCtx(()=>[e.createVNode(T,{checked:o.target,"onUpdate:checked":t[8]||(t[8]=a=>o.target=a),"checked-children":"新开窗口","un-checked-children":"内部窗口"},null,8,["checked"])]),_:1}),e.createVNode(l,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(r,{value:o.remark,"onUpdate:value":t[9]||(t[9]=a=>o.remark=a),placeholder:"描述"},null,8,["value"])]),_:1})]),_:1}),e.createVNode(h,{span:9},{default:e.withCtx(()=>[e.createVNode(e.unref(R.PermPanel),{modelValue:u.value,"onUpdate:modelValue":t[10]||(t[10]=a=>u.value=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"]),e.createVNode(j.default,{visible:s.value.icon,onSuccess:k,onCancel:t[11]||(t[11]=a=>s.value.icon=!1)},null,8,["visible"])]),_:1},8,["visible","confirm-loading"])}}});exports.default=z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ModuleIndex.vue2.js");;/* empty css */const u=require("../../../_virtual/_plugin-vue_export-helper.js"),t=u.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ModuleIndex.vue2.js");;/* empty css */const u=require("../../../_virtual/_plugin-vue_export-helper.js"),t=u.default(e.default,[["__scopeId","data-v-4dc423f0"]]);exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),P=require("ant-design-vue"),f=require("./api.js"),m=require("./utils.js"),_=require("@ant-design/icons-vue"),j=require("./ModuleDetail.vue.js"),B=require("./ModuleAdd.vue.js"),I=require("./ModuleEdit.vue.js"),U=require("./icon/AppIcon.vue.js"),z={class:"ant-pro-table-list-toolbar"},F={class:"ant-pro-table-list-toolbar-container"},G={class:"ant-pro-table-list-toolbar-left"},H={class:"ant-pro-table-list-toolbar-title"},J={class:"ant-pro-table-list-toolbar-right"},Q=e.defineComponent({__name:"ModuleIndex",setup(W){const w=e.ref(),d=e.ref([]),v=e.ref([]),r=e.ref([]),l=e.reactive({id:"",cateId:"",parentId:"",icon:"",component:"",path:"",seqNo:"",remark:"",permsSummary:""}),h=e.ref(!0),s=e.reactive({openAdd:!1,openEdit:!1}),N=e.ref(!1),y=()=>{f.getModulesNoCache().then(o=>{r.value=m.mapTreeData(o.data),V(r.value[0].key)})},M=o=>{d.value=o},E=o=>new Promise(t=>{if(o.dataRef.children){t("当前节点没有子模块");return}f.getModulesNoCache(o.dataRef.key).then(n=>{o.dataRef.children=m.mapTreeData(n.data),r.value=[...r.value],t("获取模块数据成功")})}),b=(o,t)=>{const n=t.node.dataRef,a=d.value.includes(n.key);if(n.isLeaf||(t.selected?a||d.value.push(n.key):a&&(d.value=d.value.filter(u=>u!==n.key))),o.length===0)return;const c=o[0];V(c)},V=o=>{h.value=!0,f.getModule(o).then(t=>{Object.assign(l,t.data),h.value=!1}).catch(t=>{console.log(t)})},T=()=>{N.value=!0,s.openAdd=!0},k=()=>{N.value=!1,s.openAdd=!0},D=o=>{i(o)},A=()=>{s.openEdit=!0},S=(o,t,n)=>{V(o),t===n||i(n),i(t)},q=()=>{f.deleteModule(l.id).then(o=>{P.message.success("删除成功"),i(o.data.parentId)})},i=o=>{f.getModulesNoCache(o).then(t=>{o?C(r.value,o,m.mapTreeData(t.data)):r.value=m.mapTreeData(t.data)})},C=(o,t,n)=>{o.forEach(a=>{if(a.key===t){a.isLeaf=n.length===0;const c=x([a],0);v.value=v.value.filter(u=>!c.includes(u)),d.value=d.value.filter(u=>!c.includes(u)),a.children=n}else a.children&&C(a.children,t,n)})},x=(o,t)=>{let n=[];return o.forEach(a=>{t>0&&n.push(a.key),a.children&&(n=n.concat(x(a.children,++t)))}),n};return y(),(o,t)=>{const n=e.resolveComponent("a-button"),a=e.resolveComponent("a-popconfirm"),c=e.resolveComponent("a-button-group"),u=e.resolveComponent("a-space"),R=e.resolveComponent("a-tree"),g=e.resolveComponent("a-col"),K=e.resolveComponent("a-skeleton"),O=e.resolveComponent("a-row"),L=e.resolveComponent("a-card");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(L,{"body-style":{padding:"0 20px 20px 10px"},ref_key:"fusRef",ref:w},{default:e.withCtx(()=>[e.createElementVNode("div",z,[e.createElementVNode("div",F,[e.createElementVNode("div",G,[e.createElementVNode("div",H,[e.createVNode(e.unref(_.LayoutTwoTone)),t[2]||(t[2]=e.createTextVNode(" 模块配置 "))])]),e.createElementVNode("div",J,[e.createVNode(u,{align:"center"},{default:e.withCtx(()=>[e.createVNode(c,null,{default:e.withCtx(()=>[e.createVNode(n,{onClick:T},{default:e.withCtx(()=>[e.createVNode(e.unref(_.PlusOutlined)),t[3]||(t[3]=e.createTextVNode(" 添加根模块 "))]),_:1}),e.withDirectives(e.createVNode(n,{onClick:k},{default:e.withCtx(()=>[e.createVNode(e.unref(_.PlusOutlined)),t[4]||(t[4]=e.createTextVNode(" 添加子模块 "))]),_:1},512),[[e.vShow,l.id]]),e.withDirectives(e.createVNode(n,{onClick:A},{default:e.withCtx(()=>[e.createVNode(e.unref(_.EditOutlined)),t[5]||(t[5]=e.createTextVNode(" 修改模块 "))]),_:1},512),[[e.vShow,l.id]]),e.createVNode(a,{title:"是否确认删除模块?",onConfirm:q},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(n,{danger:""},{default:e.withCtx(()=>[e.createVNode(e.unref(_.DeleteOutlined)),t[6]||(t[6]=e.createTextVNode(" 删除模块 "))]),_:1},512),[[e.vShow,l.id]])]),_:1})]),_:1})]),_:1})])])]),e.createVNode(O,null,{default:e.withCtx(()=>[e.createVNode(g,{sm:5,md:4},{default:e.withCtx(()=>[e.createVNode(R,{showIcon:!0,expandedKeys:d.value,loadedKeys:v.value,treeData:r.value,onExpand:M,loadData:E,onSelect:b},{icon:e.withCtx(p=>[e.createVNode(U.default,{icon:p.iconName},null,8,["icon"])]),_:1},8,["expandedKeys","loadedKeys","treeData"])]),_:1}),e.createVNode(g,{sm:19,md:20},{default:e.withCtx(()=>[e.createVNode(K,{loading:h.value},{default:e.withCtx(()=>[e.createVNode(j.default,{module:l},null,8,["module"])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},512),e.createVNode(B.default,{ref:"moduleAdd",open:s.openAdd,"onUpdate:open":t[0]||(t[0]=p=>s.openAdd=p),"parent-id":N.value?null:l.id,onSuccess:D},null,8,["open","parent-id"]),e.createVNode(I.default,{ref:"moduleEdit",open:s.openEdit,"onUpdate:open":t[1]||(t[1]=p=>s.openEdit=p),"module-id":l.id,onSuccess:S},null,8,["open","module-id"])])}}});exports.default=Q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),c=require("@ant-design/icons-vue");function u(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const l=u(c),i={__name:"AppIcon",props:{icon:{type:[String,Object,Function],default:null},size:{type:[Number,String],default:16},color:{type:String,default:""}},setup(e){const r=e,n=o.computed(()=>{const t=r.icon;return o.isVNode(t)?()=>t:typeof t=="function"||typeof t=="object"?t:typeof t=="string"&&l[t]||null});return(t,s)=>n.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.value),{key:0,style:o.normalizeStyle({fontSize:typeof e.size=="number"?e.size+"px":e.size,color:e.color})},null,8,["style"])):o.createCommentVNode("",!0)}};exports.default=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("ant-design-vue"),x=require("@ant-design/icons-vue"),R=require("./ScheduleAdd.vue.js"),F=require("./ScheduleEdit.vue.js"),D=require("./ScheduleLogList.vue.js"),C=require("./api.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("ant-design-vue"),x=require("@ant-design/icons-vue"),R=require("./ScheduleAdd.vue.js"),F=require("./ScheduleEdit.vue.js"),D=require("./ScheduleLogList.vue.js"),C=require("./api.js"),A=require("@since2006/components"),M={class:"ant-pro-table"},P={class:"ant-pro-table-search"},U=["onClick"],$=["onClick"],L=e.defineComponent({__name:"ScheduleIndex",setup(O){const i=e.ref(),N=[{title:"任务名称",dataIndex:"name",key:"name"},{title:"最后运行时间",dataIndex:"lastRunTime",sorter:!0,sortDirections:["descend","ascend"],sortField:"last_run_time"},{title:"最后运行结果",dataIndex:"lastRunResult",align:"center"},{title:"下次运行时间",dataIndex:"nextFireTime",sorter:!0,sortDirections:["descend","ascend"],sortField:"next_fire_time"},{title:"状态",dataIndex:"status",align:"center"},{title:"运行日志",dataIndex:"log",width:"100px",align:"center"},{title:"操作",dataIndex:"action",width:"150px",align:"center"}],c=e.reactive({query:void 0}),k=()=>{i.value.refresh()},y=()=>{c.query=void 0,i.value.refresh()},p=e.ref(!1),r=e.reactive({open:!1,scheduleId:""}),a=e.reactive({open:!1,scheduleId:""}),g=()=>{p.value=!0},w=n=>{a.open=!0,a.scheduleId=n.id},h=n=>{r.open=!0,r.scheduleId=n.id},B=n=>{C.executeSchedule(n.id).then(()=>{V.message.success("执行成功"),u()})},I=n=>{C.deleteSchedule(n.id).then(()=>{V.message.success("删除成功"),u()})},u=()=>{i.value.refresh()};return(n,t)=>{const S=e.resolveComponent("a-input"),T=e.resolveComponent("a-form-item"),_=e.resolveComponent("a-col"),m=e.resolveComponent("a-button"),q=e.resolveComponent("a-row"),E=e.resolveComponent("a-form"),l=e.resolveComponent("a-tag"),v=e.resolveComponent("a-popconfirm"),b=e.resolveComponent("a-divider");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",M,[e.createElementVNode("div",P,[e.createVNode(E,{layout:"horizontal"},{default:e.withCtx(()=>[e.createVNode(q,{gutter:16,type:"flex",justify:"start"},{default:e.withCtx(()=>[e.createVNode(_,{xs:24,sm:24,md:12,lg:7},{default:e.withCtx(()=>[e.createVNode(T,{label:"搜索"},{default:e.withCtx(()=>[e.createVNode(S,{value:c.query,"onUpdate:value":t[0]||(t[0]=o=>c.query=o),placeholder:"任务名称",onPressEnter:k},null,8,["value"])]),_:1})]),_:1}),e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(m,{onClick:k,type:"primary"},{default:e.withCtx(()=>t[4]||(t[4]=[e.createTextVNode("搜索")])),_:1}),e.createVNode(m,{onClick:y,style:{"margin-left":"16px"}},{default:e.withCtx(()=>t[5]||(t[5]=[e.createTextVNode("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref(A.FxCardTable),{columns:N,"load-data":e.unref(C.querySchedules),params:c,ref_key:"tableRef",ref:i},{title:e.withCtx(()=>[e.createVNode(e.unref(x.HourglassTwoTone)),t[6]||(t[6]=e.createTextVNode(" 定时任务 "))]),toolbar:e.withCtx(()=>[e.createVNode(m,{type:"primary",onClick:g},{default:e.withCtx(()=>[e.createVNode(e.unref(x.PlusOutlined)),t[7]||(t[7]=e.createTextVNode(" 新建 "))]),_:1})]),bodyCell:e.withCtx(({column:o,record:d,text:s})=>[o.dataIndex==="name"?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:f=>w(d)},e.toDisplayString(d.name),9,U)):o.dataIndex==="lastRunResult"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s==="S"?(e.openBlock(),e.createBlock(l,{key:0,color:"success"},{default:e.withCtx(()=>t[8]||(t[8]=[e.createTextVNode("成功")])),_:1})):s==="F"?(e.openBlock(),e.createBlock(l,{key:1,color:"error"},{default:e.withCtx(()=>t[9]||(t[9]=[e.createTextVNode("失败")])),_:1})):s==="R"?(e.openBlock(),e.createBlock(l,{key:2,color:"processing"},{icon:e.withCtx(()=>[e.createVNode(e.unref(x.SyncOutlined),{spin:!0})]),default:e.withCtx(()=>[t[10]||(t[10]=e.createTextVNode(" 运行中 "))]),_:1})):e.createCommentVNode("",!0)],64)):o.dataIndex==="status"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[s===1?(e.openBlock(),e.createBlock(l,{key:0,color:"success"},{default:e.withCtx(()=>t[11]||(t[11]=[e.createTextVNode("启用")])),_:1})):s===0?(e.openBlock(),e.createBlock(l,{key:1,color:"error"},{default:e.withCtx(()=>t[12]||(t[12]=[e.createTextVNode("停用")])),_:1})):(e.openBlock(),e.createBlock(l,{key:2,color:"processing"},{default:e.withCtx(()=>t[13]||(t[13]=[e.createTextVNode("未知")])),_:1}))],64)):o.dataIndex==="log"?(e.openBlock(),e.createElementBlock("a",{key:3,onClick:f=>h(d)},"查看",8,$)):o.dataIndex==="action"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(v,{title:"确定要执行吗?",onConfirm:f=>B(d)},{default:e.withCtx(()=>t[14]||(t[14]=[e.createElementVNode("a",null,"执行",-1)])),_:2},1032,["onConfirm"]),e.createVNode(b,{type:"vertical"}),e.createVNode(v,{title:"确定要删除吗?",onConfirm:f=>I(d)},{default:e.withCtx(()=>t[15]||(t[15]=[e.createElementVNode("a",null,"删除",-1)])),_:2},1032,["onConfirm"])],64)):e.createCommentVNode("",!0)]),_:1},8,["load-data","params"])]),e.createVNode(R.default,{open:p.value,"onUpdate:open":t[1]||(t[1]=o=>p.value=o),onSuccess:u},null,8,["open"]),e.createVNode(F.default,{open:a.open,"onUpdate:open":t[2]||(t[2]=o=>a.open=o),"schedule-id":a.scheduleId,onSuccess:u},null,8,["open","schedule-id"]),e.createVNode(D.default,{open:r.open,"onUpdate:open":t[3]||(t[3]=o=>r.open=o),"schedule-id":r.scheduleId},null,8,["open","schedule-id"])])}}});exports.default=L;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("./api.js"),C=require("./ScheduleLogView.vue.js"),_=require("@ant-design/icons-vue"),B=require("@since2006/components"),I={key:0,style:{"text-align":"right"}},
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("./api.js"),C=require("./ScheduleLogView.vue.js"),_=require("@ant-design/icons-vue"),B=require("@since2006/components"),I={key:0,style:{"text-align":"right"}},h=["onClick"],v=e.defineComponent({__name:"ScheduleLogList",props:{open:{type:Boolean,default:!1},scheduleId:{type:String,default:""}},emits:["update:open"],setup(s,{emit:u}){const c=e.ref(),r=s;e.watch(()=>r.open,a=>{var t;a&&(i.scheduleId=r.scheduleId,(t=c.value)==null||t.refresh())});const p=[{title:"启动时间",dataIndex:"startAt",sorter:!0,sortField:"start_at"},{title:"结束时间",dataIndex:"endAt",sorter:!0,sortField:"end_at",sortDirections:["descend","ascend"]},{title:"耗时(ms)",dataIndex:"duration",sorter:!0,sortField:"duration",sortDirections:["descend","ascend"]},{title:"日志过期时间",dataIndex:"expireAt"},{title:"运行结果",dataIndex:"result",className:"text-center",scopedSlots:{customRender:"result"}},{title:"运行详情",dataIndex:"action",className:"text-center",scopedSlots:{customRender:"action"}}],i=e.reactive({scheduleId:r.scheduleId}),m=u,n=e.ref({open:!1,detail:{}}),f=a=>{n.value={open:!0,detail:a}},k=()=>{m("update:open",!1)};return(a,t)=>{const d=e.resolveComponent("a-tag"),x=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(x,{title:"运行日志",width:820,open:s.open,"mask-closable":!1,footer:null,"destroy-on-close":"",onCancel:k},{default:e.withCtx(()=>[e.createVNode(e.unref(B.FxTable),{columns:p,"load-data":e.unref(g.queryScheduleLogs),params:i,ref_key:"tableRef",ref:c,size:"middle"},{bodyCell:e.withCtx(({column:o,text:l,record:y})=>[o.dataIndex==="duration"?(e.openBlock(),e.createElementBlock("div",I,e.toDisplayString(l),1)):e.createCommentVNode("",!0),o.dataIndex==="result"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l==="S"?(e.openBlock(),e.createBlock(d,{key:0,color:"success"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("成功")])),_:1})):l==="F"?(e.openBlock(),e.createBlock(d,{key:1,color:"error"},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("失败")])),_:1})):l==="R"?(e.openBlock(),e.createBlock(d,{key:2,color:"processing"},{icon:e.withCtx(()=>[e.createVNode(e.unref(_.SyncOutlined),{spin:!0})]),default:e.withCtx(()=>[t[3]||(t[3]=e.createTextVNode(" 运行中 "))]),_:1})):e.createCommentVNode("",!0)],64)):o.dataIndex==="action"?(e.openBlock(),e.createElementBlock("a",{key:2,onClick:V=>f(y)},"查看",8,h)):e.createCommentVNode("",!0)]),_:1},8,["load-data","params"]),e.createVNode(C.default,{ref:"logView",open:n.value.open,"onUpdate:open":t[0]||(t[0]=o=>n.value.open=o),detail:n.value.detail},null,8,["open","detail"])]),_:1},8,["open"])}}});exports.default=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./StatusIndex.vue2.js");;/* empty css */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./StatusIndex.vue2.js");;/* empty css */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-74bb63d3"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("./api.js"),f=require("ant-design-vue"),k=require("@ant-design/icons-vue"),_=require("@since2006/utils"),j={class:"large-text"},O={class:"float-right"},B={style:{"margin-right":"18px","margin-bottom":"14px"}},M={class:"large-text"},T={class:"float-right"},I={class:"large-text"},J={class:"float-right"},P={class:"large-text"},q={class:"float-right"},z={class:"large-text"},A={class:"float-right"},L={class:"large-text"},U={class:"float-right"},$={class:"large-text"},H={class:"float-right"},X={class:"large-text"},F={class:"float-right"},W={class:"large-text"},G={class:"float-right"},K={class:"large-text"},Q={class:"float-right"},R={class:"large-text"},Y={class:"float-right"},Z={class:"large-text"},ee={class:"float-right"},te={class:"large-text"},le={class:"float-right"},ne={class:"large-text"},oe={class:"float-right"},se={class:"large-text"},ae={class:"float-right"},re={class:"large-text"},ie={class:"float-right"},de={class:"large-text"},pe={class:"float-right"},me={class:"large-text"},ue={class:"float-right"},ce={class:"large-text"},Ve={class:"float-right"},Ne={class:"large-text"},ge={class:"float-right"},Ee={class:"large-text"},fe={class:"float-right"},xe={class:"large-text"},ve={class:"float-right"},_e={class:"large-text"},ye={class:"float-right"},be={class:"large-text"},Ce={class:"float-right"},Se={class:"large-text"},we={class:"float-right"},he={class:"large-text"},De={class:"float-right"},ke={class:"large-text"},je={class:"float-right"},Oe={class:"large-text"},Be={class:"float-right"},Me={class:"large-text"},Te={class:"float-right"},Ie={class:"large-text"},Je={class:"float-right"},Pe={class:"large-text",style:{color:"orangered","font-weight":"bold"}},qe={class:"float-right"},ze={class:"large-text"},Ae={class:"float-right"},Le={class:"large-text"},Ue={class:"float-right"},$e={class:"large-text"},He={class:"float-right"},Xe={class:"float-right"},Fe={key:1,class:"float-right"},We=e.defineComponent({__name:"StatusIndex",setup(Ge){const y=_.getContextPath(),b=_.getToken(),a=e.ref(!1),g=e.ref(),r=e.reactive({}),l=e.reactive({}),o=e.reactive({}),n=e.reactive({}),c=e.reactive({}),d=e.reactive({}),p=e.reactive({}),x=async()=>{var V;a.value=!0;const s=await v.getStatus();s.code===200&&(Object.assign(r,s.data),Object.assign(l,r.license),Object.assign(o,r.database),Object.assign(n,r.jvm),Object.assign(c,r.os),Object.assign(d,r.app),Object.assign(p,(V=r.jvm)==null?void 0:V.thread));const t=await v.getMachineCode();g.value=t.data,a.value=!1};x();const C=s=>{s.file.status==="done"?s.file.response.code===200?(f.notification.success({message:"License 更新成功",description:"将重新加载 License 信息,请确认是否正确"}),x()):f.notification.error({message:s.file.response.msg,description:"请检查 License 文件是否正确"}):s.file.status==="error"&&f.notification.error({message:"上传失败"})};return(s,t)=>{const V=e.resolveComponent("a-progress"),m=e.resolveComponent("a-skeleton"),u=e.resolveComponent("a-card"),i=e.resolveComponent("a-col"),N=e.resolveComponent("a-typography-text"),E=e.resolveComponent("a-row"),S=e.resolveComponent("a-button"),w=e.resolveComponent("a-upload"),h=e.resolveComponent("a-typography-paragraph"),D=e.resolveComponent("a-tooltip");return e.openBlock(),e.createBlock(E,{gutter:16},{default:e.withCtx(()=>[e.createVNode(i,{span:12},{default:e.withCtx(()=>[e.createVNode(E,{gutter:[16,16]},{default:e.withCtx(()=>[e.createVNode(i,{span:24},{default:e.withCtx(()=>[e.createVNode(u,{title:"内存线程信息"},{default:e.withCtx(()=>[e.createVNode(m,{loading:a.value},{default:e.withCtx(()=>[e.createElementVNode("div",j,[t[0]||(t[0]=e.createElementVNode("span",null,"当前用量",-1)),e.createElementVNode("span",O,e.toDisplayString(n.usedMemorySize)+" / "+e.toDisplayString(n.totalMemorySize),1),e.createElementVNode("div",B,[e.createVNode(V,{percent:n.memoryUsage,size:12},null,8,["percent"])])]),e.createElementVNode("div",M,[t[1]||(t[1]=e.createElementVNode("span",null,"当前可用",-1)),e.createElementVNode("span",T,e.toDisplayString(n.freeMemorySize),1)]),t[7]||(t[7]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",I,[t[2]||(t[2]=e.createElementVNode("span",null,"最大堆(-Xmx)",-1)),e.createElementVNode("span",J,e.toDisplayString(n.maxMemorySize),1)]),t[8]||(t[8]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",P,[t[3]||(t[3]=e.createElementVNode("span",null,"当前线程数",-1)),e.createElementVNode("span",q,e.toDisplayString(p.threadCount),1)]),t[9]||(t[9]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",z,[t[4]||(t[4]=e.createElementVNode("span",null,"守护线程数",-1)),e.createElementVNode("span",A,e.toDisplayString(p.daemonThreadCount),1)]),t[10]||(t[10]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",L,[t[5]||(t[5]=e.createElementVNode("span",null,"最大线程峰值",-1)),e.createElementVNode("span",U,e.toDisplayString(p.peakThreadCount),1)]),t[11]||(t[11]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",$,[t[6]||(t[6]=e.createElementVNode("span",null,"创建线程总数",-1)),e.createElementVNode("span",H,e.toDisplayString(p.totalStartedThreadCount),1)])]),_:1},8,["loading"])]),_:1})]),_:1}),e.createVNode(i,{span:24},{default:e.withCtx(()=>[e.createVNode(u,{title:"主数据库信息"},{default:e.withCtx(()=>[e.createVNode(m,{loading:a.value},{default:e.withCtx(()=>[e.createElementVNode("div",X,[t[12]||(t[12]=e.createElementVNode("span",null,"数据库名称",-1)),e.createElementVNode("span",F,e.toDisplayString(o.productName),1)]),t[19]||(t[19]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",W,[t[13]||(t[13]=e.createElementVNode("span",null,"数据库版本",-1)),e.createElementVNode("span",G,e.toDisplayString(o.productVersion),1)]),t[20]||(t[20]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",K,[t[14]||(t[14]=e.createElementVNode("span",null,"驱动名称",-1)),e.createElementVNode("span",Q,[e.createVNode(N,{style:{width:"300px"},class:"large-text",ellipsis:{tooltip:o.driverVersion},content:o.driverVersion},null,8,["ellipsis","content"])])]),t[21]||(t[21]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",R,[t[15]||(t[15]=e.createElementVNode("span",null,"数据库连接池",-1)),e.createElementVNode("span",Y,e.toDisplayString(o.poolName),1)]),t[22]||(t[22]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Z,[t[16]||(t[16]=e.createElementVNode("span",null,"最大活跃连接数",-1)),e.createElementVNode("span",ee,e.toDisplayString(o.maxActive),1)]),t[23]||(t[23]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",te,[t[17]||(t[17]=e.createElementVNode("span",null,"最小空闲连接数",-1)),e.createElementVNode("span",le,e.toDisplayString(o.minIdle),1)]),t[24]||(t[24]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",ne,[t[18]||(t[18]=e.createElementVNode("span",null,"获取连接等待时间",-1)),e.createElementVNode("span",oe,e.toDisplayString(o.maxWait)+"ms",1)]),t[25]||(t[25]=e.createElementVNode("br",null,null,-1))]),_:1},8,["loading"])]),_:1})]),_:1}),e.createVNode(i,{span:24},{default:e.withCtx(()=>[e.createVNode(u,{title:"系统信息"},{default:e.withCtx(()=>[e.createVNode(m,{loading:a.value},{default:e.withCtx(()=>[e.createElementVNode("div",se,[t[26]||(t[26]=e.createElementVNode("span",null,"应用服务器",-1)),e.createElementVNode("span",ae,e.toDisplayString(d.serverInfo),1)]),t[30]||(t[30]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",re,[t[27]||(t[27]=e.createElementVNode("span",null,"工作目录",-1)),e.createElementVNode("span",ie,[e.createVNode(N,{style:{width:"300px"},class:"large-text",ellipsis:{tooltip:d.appPath},content:d.appPath},null,8,["ellipsis","content"])])]),t[31]||(t[31]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",de,[t[28]||(t[28]=e.createElementVNode("span",null,"会话超时(Session Timeout)",-1)),e.createElementVNode("span",pe,e.toDisplayString(d.maxInactiveInterval/60)+"分钟",1)]),t[32]||(t[32]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",me,[t[29]||(t[29]=e.createElementVNode("span",null,"缓存管理",-1)),e.createElementVNode("span",ue,e.toDisplayString(d.cacheManager),1)]),t[33]||(t[33]=e.createElementVNode("br",null,null,-1))]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})]),_:1}),e.createVNode(i,{span:12},{default:e.withCtx(()=>[e.createVNode(E,{gutter:[16,16]},{default:e.withCtx(()=>[e.createVNode(i,{span:24},{default:e.withCtx(()=>[e.createVNode(u,{title:"JVM信息"},{default:e.withCtx(()=>[e.createVNode(m,{loading:a.value},{default:e.withCtx(()=>[e.createElementVNode("div",ce,[t[34]||(t[34]=e.createElementVNode("span",null,"系统启动时间",-1)),e.createElementVNode("span",Ve,e.toDisplayString(n.startTimeDisplay),1)]),t[41]||(t[41]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Ne,[t[35]||(t[35]=e.createElementVNode("span",null,"系统运行时长",-1)),e.createElementVNode("span",ge,e.toDisplayString(n.uptimeDisplay),1)]),t[42]||(t[42]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Ee,[t[36]||(t[36]=e.createElementVNode("span",null,"Java安装目录",-1)),e.createElementVNode("span",fe,[e.createVNode(N,{style:{width:"300px"},class:"large-text",ellipsis:{tooltip:n.javaHome},content:n.javaHome},null,8,["ellipsis","content"])])]),t[43]||(t[43]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",xe,[t[37]||(t[37]=e.createElementVNode("span",null,"Java版本",-1)),e.createElementVNode("span",ve,e.toDisplayString(n.javaVersion),1)]),t[44]||(t[44]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",_e,[t[38]||(t[38]=e.createElementVNode("span",null,"Java供应商",-1)),e.createElementVNode("span",ye,e.toDisplayString(n.javaVendor),1)]),t[45]||(t[45]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",be,[t[39]||(t[39]=e.createElementVNode("span",null,"操作系统",-1)),e.createElementVNode("span",Ce,e.toDisplayString(c.name)+" "+e.toDisplayString(c.version),1)]),t[46]||(t[46]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Se,[t[40]||(t[40]=e.createElementVNode("span",null,"系统核心数",-1)),e.createElementVNode("span",we,e.toDisplayString(c.availableProcessors),1)]),t[47]||(t[47]=e.createElementVNode("br",null,null,-1))]),_:1},8,["loading"])]),_:1})]),_:1}),e.createVNode(i,{span:24},{default:e.withCtx(()=>[e.createVNode(u,{title:"授权信息"},{extra:e.withCtx(()=>[e.createVNode(w,{name:"file",action:`${e.unref(y)}/api/v1/license/update_license`,headers:{"X-Auth-Token":e.unref(b)},showUploadList:!1,onChange:C},{default:e.withCtx(()=>[e.createVNode(S,{icon:e.h(e.unref(k.CloudUploadOutlined))},{default:e.withCtx(()=>t[48]||(t[48]=[e.createTextVNode("更新")])),_:1},8,["icon"])]),_:1},8,["action","headers"])]),default:e.withCtx(()=>[e.createVNode(m,{loading:a.value},{default:e.withCtx(()=>[e.createElementVNode("div",he,[t[49]||(t[49]=e.createElementVNode("span",null,"当前机器码",-1)),e.createElementVNode("span",De,[e.createVNode(h,{copyable:"",style:{width:"280px",color:"brown"},class:"large-text",ellipsis:{tooltip:g.value},content:g.value},null,8,["ellipsis","content"])])]),t[58]||(t[58]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",ke,[t[50]||(t[50]=e.createElementVNode("span",null,"授权使用",-1)),e.createElementVNode("span",je,e.toDisplayString(l.company),1)]),t[59]||(t[59]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Oe,[t[51]||(t[51]=e.createElementVNode("span",null,"授权IP",-1)),e.createElementVNode("span",Be,e.toDisplayString(l.ip?l.ip:"无限制"),1)]),t[60]||(t[60]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Me,[t[52]||(t[52]=e.createElementVNode("span",null,"授权机器码",-1)),e.createElementVNode("span",Te,[l.machineCode?(e.openBlock(),e.createBlock(N,{key:0,style:{width:"300px"},class:"large-text float-right",ellipsis:{tooltip:l.machineCode},content:l.machineCode},null,8,["ellipsis","content"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("无限制")],64))])]),t[61]||(t[61]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Ie,[t[53]||(t[53]=e.createElementVNode("span",null,"授权日期",-1)),e.createElementVNode("span",Je,e.toDisplayString(l.createdAt),1)]),t[62]||(t[62]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Pe,[t[54]||(t[54]=e.createElementVNode("span",null,"结束日期",-1)),e.createElementVNode("span",qe,e.toDisplayString(l.expiresAt?l.expiresAt:"无限制"),1)]),t[63]||(t[63]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",ze,[t[55]||(t[55]=e.createElementVNode("span",null,"最大用户数",-1)),e.createElementVNode("span",Ae,e.toDisplayString(l.users?`${l.users} 人`:"无限制"),1)]),t[64]||(t[64]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Le,[t[56]||(t[56]=e.createElementVNode("span",null,"最大流程实例数",-1)),e.createElementVNode("span",Ue,e.toDisplayString(l.workflowInstances?`${l.workflowInstances} 条`:"无限制"),1)]),t[65]||(t[65]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",$e,[t[57]||(t[57]=e.createElementVNode("span",null,"扩展信息",-1)),e.createElementVNode("span",He,[l.extras?(e.openBlock(),e.createBlock(D,{key:0,title:JSON.stringify(l.extras)},{default:e.withCtx(()=>[e.createElementVNode("span",Xe,e.toDisplayString(JSON.stringify(l.extras)),1)]),_:1},8,["title"])):(e.openBlock(),e.createElementBlock("span",Fe,"无"))])])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}});exports.default=We;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("./api.js"),x=require("ant-design-vue"),k=require("@ant-design/icons-vue"),_=require("@since2006/utils"),j={class:"large-text"},O={class:"float-right"},B={style:{"margin-right":"18px","margin-bottom":"14px"}},I={class:"large-text"},M={class:"float-right"},T={class:"large-text"},A={class:"float-right"},J={class:"large-text"},P={class:"float-right"},q={class:"large-text"},z={class:"float-right"},L={class:"large-text"},U={class:"float-right"},$={class:"large-text"},H={class:"float-right"},X={class:"large-text"},F={class:"float-right"},W={class:"large-text"},G={class:"float-right"},K={class:"large-text"},Q={class:"float-right"},R={class:"large-text"},Y={class:"float-right"},Z={class:"large-text"},ee={class:"float-right"},te={class:"large-text"},le={class:"float-right"},ne={class:"large-text"},oe={class:"float-right"},se={class:"large-text"},ae={class:"float-right"},re={class:"large-text"},ie={class:"float-right"},de={class:"large-text"},pe={class:"float-right"},me={class:"large-text"},ue={class:"float-right"},ce={class:"large-text"},Ve={class:"float-right"},Ne={class:"large-text"},ge={class:"float-right"},Ee={class:"large-text"},xe={class:"float-right"},fe={class:"large-text"},ve={class:"float-right"},_e={class:"large-text"},ye={class:"float-right"},be={class:"large-text"},Ce={class:"float-right"},Se={class:"large-text"},we={class:"float-right"},he={class:"large-text"},De={class:"float-right"},ke={class:"large-text"},je={class:"float-right"},Oe={class:"large-text"},Be={class:"float-right"},Ie={class:"large-text"},Me={class:"float-right"},Te={class:"large-text"},Ae={class:"float-right"},Je={class:"large-text",style:{color:"orangered","font-weight":"bold"}},Pe={class:"float-right"},qe={class:"large-text"},ze={class:"float-right"},Le={class:"large-text"},Ue={class:"float-right"},$e={class:"large-text"},He={class:"float-right"},Xe={class:"float-right"},Fe={key:1,class:"float-right"},We=e.defineComponent({__name:"StatusIndex",setup(Ge){const y=_.getContextPath(),b=_.getToken(),a=e.ref(!1),g=e.ref(),r=e.reactive({}),l=e.reactive({}),o=e.reactive({}),n=e.reactive({}),c=e.reactive({}),d=e.reactive({}),p=e.reactive({}),f=async()=>{var V;a.value=!0;const s=await v.getStatus();s.code===200&&(Object.assign(r,s.data),Object.assign(l,r.license),Object.assign(o,r.database),Object.assign(n,r.jvm),Object.assign(c,r.os),Object.assign(d,r.app),Object.assign(p,(V=r.jvm)==null?void 0:V.thread));const t=await v.getMachineCode();g.value=t.data,a.value=!1};f();const C=s=>{s.file.status==="done"?s.file.response.code===200?(x.notification.success({message:"License 更新成功",description:"将重新加载 License 信息,请确认是否正确"}),f()):x.notification.error({message:s.file.response.msg,description:"请检查 License 文件是否正确"}):s.file.status==="error"&&x.notification.error({message:"上传失败"})};return(s,t)=>{const V=e.resolveComponent("a-progress"),m=e.resolveComponent("a-skeleton"),u=e.resolveComponent("a-card"),i=e.resolveComponent("a-col"),N=e.resolveComponent("a-typography-text"),E=e.resolveComponent("a-row"),S=e.resolveComponent("a-button"),w=e.resolveComponent("a-upload"),h=e.resolveComponent("a-typography-paragraph"),D=e.resolveComponent("a-tooltip");return e.openBlock(),e.createBlock(E,{gutter:16},{default:e.withCtx(()=>[e.createVNode(i,{span:12},{default:e.withCtx(()=>[e.createVNode(E,{gutter:[16,16]},{default:e.withCtx(()=>[e.createVNode(i,{span:24},{default:e.withCtx(()=>[e.createVNode(u,{title:"内存线程信息"},{default:e.withCtx(()=>[e.createVNode(m,{loading:a.value},{default:e.withCtx(()=>[e.createElementVNode("div",j,[t[0]||(t[0]=e.createElementVNode("span",null,"当前用量",-1)),e.createElementVNode("span",O,e.toDisplayString(n.usedMemorySize)+" / "+e.toDisplayString(n.totalMemorySize),1),e.createElementVNode("div",B,[e.createVNode(V,{percent:n.memoryUsage,size:12},null,8,["percent"])])]),e.createElementVNode("div",I,[t[1]||(t[1]=e.createElementVNode("span",null,"当前可用",-1)),e.createElementVNode("span",M,e.toDisplayString(n.freeMemorySize),1)]),t[7]||(t[7]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",T,[t[2]||(t[2]=e.createElementVNode("span",null,"最大堆(-Xmx)",-1)),e.createElementVNode("span",A,e.toDisplayString(n.maxMemorySize),1)]),t[8]||(t[8]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",J,[t[3]||(t[3]=e.createElementVNode("span",null,"当前线程数",-1)),e.createElementVNode("span",P,e.toDisplayString(p.threadCount),1)]),t[9]||(t[9]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",q,[t[4]||(t[4]=e.createElementVNode("span",null,"守护线程数",-1)),e.createElementVNode("span",z,e.toDisplayString(p.daemonThreadCount),1)]),t[10]||(t[10]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",L,[t[5]||(t[5]=e.createElementVNode("span",null,"最大线程峰值",-1)),e.createElementVNode("span",U,e.toDisplayString(p.peakThreadCount),1)]),t[11]||(t[11]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",$,[t[6]||(t[6]=e.createElementVNode("span",null,"创建线程总数",-1)),e.createElementVNode("span",H,e.toDisplayString(p.totalStartedThreadCount),1)])]),_:1},8,["loading"])]),_:1})]),_:1}),e.createVNode(i,{span:24},{default:e.withCtx(()=>[e.createVNode(u,{title:"主数据库信息"},{default:e.withCtx(()=>[e.createVNode(m,{loading:a.value},{default:e.withCtx(()=>[e.createElementVNode("div",X,[t[12]||(t[12]=e.createElementVNode("span",null,"数据库名称",-1)),e.createElementVNode("span",F,e.toDisplayString(o.productName),1)]),t[19]||(t[19]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",W,[t[13]||(t[13]=e.createElementVNode("span",null,"数据库版本",-1)),e.createElementVNode("span",G,e.toDisplayString(o.productVersion),1)]),t[20]||(t[20]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",K,[t[14]||(t[14]=e.createElementVNode("span",null,"驱动名称",-1)),e.createElementVNode("span",Q,[e.createVNode(N,{style:{width:"300px"},class:"large-text",ellipsis:{tooltip:o.driverVersion},content:o.driverVersion},null,8,["ellipsis","content"])])]),t[21]||(t[21]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",R,[t[15]||(t[15]=e.createElementVNode("span",null,"数据库连接池",-1)),e.createElementVNode("span",Y,e.toDisplayString(o.poolName),1)]),t[22]||(t[22]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Z,[t[16]||(t[16]=e.createElementVNode("span",null,"最大活跃连接数",-1)),e.createElementVNode("span",ee,e.toDisplayString(o.maxActive),1)]),t[23]||(t[23]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",te,[t[17]||(t[17]=e.createElementVNode("span",null,"最小空闲连接数",-1)),e.createElementVNode("span",le,e.toDisplayString(o.minIdle),1)]),t[24]||(t[24]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",ne,[t[18]||(t[18]=e.createElementVNode("span",null,"获取连接等待时间",-1)),e.createElementVNode("span",oe,e.toDisplayString(o.maxWait)+"ms",1)]),t[25]||(t[25]=e.createElementVNode("br",null,null,-1))]),_:1},8,["loading"])]),_:1})]),_:1}),e.createVNode(i,{span:24},{default:e.withCtx(()=>[e.createVNode(u,{title:"系统信息"},{default:e.withCtx(()=>[e.createVNode(m,{loading:a.value},{default:e.withCtx(()=>[e.createElementVNode("div",se,[t[26]||(t[26]=e.createElementVNode("span",null,"应用服务器",-1)),e.createElementVNode("span",ae,e.toDisplayString(d.serverInfo),1)]),t[30]||(t[30]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",re,[t[27]||(t[27]=e.createElementVNode("span",null,"工作目录",-1)),e.createElementVNode("span",ie,[e.createVNode(N,{style:{width:"300px"},class:"large-text",ellipsis:{tooltip:d.appPath},content:d.appPath},null,8,["ellipsis","content"])])]),t[31]||(t[31]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",de,[t[28]||(t[28]=e.createElementVNode("span",null,"会话超时(Session Timeout)",-1)),e.createElementVNode("span",pe,e.toDisplayString(d.maxInactiveInterval/60)+"分钟",1)]),t[32]||(t[32]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",me,[t[29]||(t[29]=e.createElementVNode("span",null,"缓存管理",-1)),e.createElementVNode("span",ue,e.toDisplayString(d.cacheManager),1)]),t[33]||(t[33]=e.createElementVNode("br",null,null,-1))]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})]),_:1}),e.createVNode(i,{span:12},{default:e.withCtx(()=>[e.createVNode(E,{gutter:[16,16]},{default:e.withCtx(()=>[e.createVNode(i,{span:24},{default:e.withCtx(()=>[e.createVNode(u,{title:"JVM信息"},{default:e.withCtx(()=>[e.createVNode(m,{loading:a.value},{default:e.withCtx(()=>[e.createElementVNode("div",ce,[t[34]||(t[34]=e.createElementVNode("span",null,"系统启动时间",-1)),e.createElementVNode("span",Ve,e.toDisplayString(n.startTimeDisplay),1)]),t[41]||(t[41]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Ne,[t[35]||(t[35]=e.createElementVNode("span",null,"系统运行时长",-1)),e.createElementVNode("span",ge,e.toDisplayString(n.uptimeDisplay),1)]),t[42]||(t[42]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Ee,[t[36]||(t[36]=e.createElementVNode("span",null,"Java安装目录",-1)),e.createElementVNode("span",xe,[e.createVNode(N,{style:{width:"300px","text-align":"right"},class:"large-text",ellipsis:{tooltip:n.javaHome},content:n.javaHome},null,8,["ellipsis","content"])])]),t[43]||(t[43]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",fe,[t[37]||(t[37]=e.createElementVNode("span",null,"Java版本",-1)),e.createElementVNode("span",ve,e.toDisplayString(n.javaVersion),1)]),t[44]||(t[44]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",_e,[t[38]||(t[38]=e.createElementVNode("span",null,"Java供应商",-1)),e.createElementVNode("span",ye,e.toDisplayString(n.javaVendor),1)]),t[45]||(t[45]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",be,[t[39]||(t[39]=e.createElementVNode("span",null,"操作系统",-1)),e.createElementVNode("span",Ce,e.toDisplayString(c.name)+" "+e.toDisplayString(c.version),1)]),t[46]||(t[46]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Se,[t[40]||(t[40]=e.createElementVNode("span",null,"系统核心数",-1)),e.createElementVNode("span",we,e.toDisplayString(c.availableProcessors),1)]),t[47]||(t[47]=e.createElementVNode("br",null,null,-1))]),_:1},8,["loading"])]),_:1})]),_:1}),e.createVNode(i,{span:24},{default:e.withCtx(()=>[e.createVNode(u,{title:"授权信息"},{extra:e.withCtx(()=>[e.createVNode(w,{name:"file",action:`${e.unref(y)}/api/v1/license/update_license`,headers:{"X-Auth-Token":e.unref(b)},showUploadList:!1,onChange:C},{default:e.withCtx(()=>[e.createVNode(S,{icon:e.h(e.unref(k.CloudUploadOutlined))},{default:e.withCtx(()=>t[48]||(t[48]=[e.createTextVNode("更新")])),_:1},8,["icon"])]),_:1},8,["action","headers"])]),default:e.withCtx(()=>[e.createVNode(m,{loading:a.value},{default:e.withCtx(()=>[e.createElementVNode("div",he,[t[49]||(t[49]=e.createElementVNode("span",null,"当前机器码",-1)),e.createElementVNode("span",De,[e.createVNode(h,{copyable:"",style:{width:"280px",color:"brown"},class:"large-text",ellipsis:{tooltip:g.value},content:g.value},null,8,["ellipsis","content"])])]),t[58]||(t[58]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",ke,[t[50]||(t[50]=e.createElementVNode("span",null,"授权使用",-1)),e.createElementVNode("span",je,e.toDisplayString(l.company),1)]),t[59]||(t[59]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Oe,[t[51]||(t[51]=e.createElementVNode("span",null,"授权IP",-1)),e.createElementVNode("span",Be,e.toDisplayString(l.ip?l.ip:"无限制"),1)]),t[60]||(t[60]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Ie,[t[52]||(t[52]=e.createElementVNode("span",null,"授权机器码",-1)),e.createElementVNode("span",Me,[l.machineCode?(e.openBlock(),e.createBlock(N,{key:0,style:{width:"300px","text-align":"right"},class:"large-text float-right",ellipsis:{tooltip:l.machineCode},content:l.machineCode},null,8,["ellipsis","content"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("无限制")],64))])]),t[61]||(t[61]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Te,[t[53]||(t[53]=e.createElementVNode("span",null,"授权日期",-1)),e.createElementVNode("span",Ae,e.toDisplayString(l.createdAt),1)]),t[62]||(t[62]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Je,[t[54]||(t[54]=e.createElementVNode("span",null,"结束日期",-1)),e.createElementVNode("span",Pe,e.toDisplayString(l.expiresAt?l.expiresAt:"无限制"),1)]),t[63]||(t[63]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",qe,[t[55]||(t[55]=e.createElementVNode("span",null,"最大用户数",-1)),e.createElementVNode("span",ze,e.toDisplayString(l.users?`${l.users} 人`:"无限制"),1)]),t[64]||(t[64]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",Le,[t[56]||(t[56]=e.createElementVNode("span",null,"最大流程实例数",-1)),e.createElementVNode("span",Ue,e.toDisplayString(l.workflowInstances?`${l.workflowInstances} 条`:"无限制"),1)]),t[65]||(t[65]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("div",$e,[t[57]||(t[57]=e.createElementVNode("span",null,"扩展信息",-1)),e.createElementVNode("span",He,[l.extras?(e.openBlock(),e.createBlock(D,{key:0,title:JSON.stringify(l.extras)},{default:e.withCtx(()=>[e.createElementVNode("span",Xe,e.toDisplayString(JSON.stringify(l.extras)),1)]),_:1},8,["title"])):(e.openBlock(),e.createElementBlock("span",Fe,"无"))])])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}});exports.default=We;
|
package/dist/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.large-text[data-v-
|
|
1
|
+
.large-text[data-v-74bb63d3]{font-size:16px}.float-right[data-v-74bb63d3]{float:right}.margin-block[data-v-74bb63d3]{margin-top:14px}.icon-selector deep(ul) li.active[data-v-a47fcf40],.icon-selector deep(ul) li[data-v-a47fcf40]:hover{border-radius:2px;border-color:#4a4a48;background-color:#4a4a48;color:#fff;transition:all .3s;box-shadow:none}.icon-selector deep(ul) i[data-v-a47fcf40]{font-size:1.5rem;border:1px solid #f1f1f1;padding:.02rem;margin:.03rem;cursor:pointer}.ant-form[data-v-f8a348f6]{padding-top:20px}.permission-tree[data-v-f8a348f6],.permission-tree[data-v-50a6d9f1]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-4dc423f0] .ant-pro-table-list-toolbar-container{padding-left:6px}.cron-detail[data-v-dd4b2211]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-dd4b2211]{width:70px}.cron-detail .ant-input[data-v-dd4b2211]{width:280px}.cron-detail[data-v-3b943880]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-3b943880]{width:70px}.cron-detail .ant-input[data-v-3b943880]{width:280px}[data-v-418f353d] .ant-descriptions-item-label{width:140px}.text-ellipsis[data-v-c407c636]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-c407c636] .ant-descriptions-item-label{width:120px}.ua-icon[data-v-f846ecbb]{width:1.2em;height:1.2em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.login-log-list .text-ellipsis[data-v-e0685b29]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.method-text[data-v-8d1c9637]{background:#f5f5f5;padding:2px 6px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px}.json-container[data-v-8d1c9637]{max-height:300px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-8d1c9637]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}[data-v-8d1c9637] .ant-descriptions-item-label{width:120px}.operation-log-list .text-ellipsis[data-v-d74ea79a]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-bdeeb034] .ant-descriptions-item-label{width:120px}.audit-log-list .text-ellipsis[data-v-2505b1db]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.text-ellipsis[data-v-7436a600]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.performance-analysis[data-v-7436a600]{padding:16px;background:#fafafa;border-radius:6px}.performance-analysis[data-v-7436a600] .ant-statistic{text-align:center}[data-v-7436a600] .ant-descriptions-item-label{width:120px}.access-log-list .text-ellipsis[data-v-f67f4d15]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.json-container[data-v-793d348e]{max-height:200px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}.stack-container[data-v-793d348e]{max-height:400px;overflow:auto;background:#fff2f0;border:1px solid #ffccc7;padding:12px;border-radius:4px}.stack-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:11px;line-height:1.4;color:#a8071a}[data-v-793d348e] .ant-descriptions-item-label{width:120px}.error-log-list .text-ellipsis[data-v-47610902]{display:inline-block;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.notice[data-v-864b567f]{color:#ff4d4f;font-size:18px}.table-operator[data-v-1cbc3d31]{margin:10px 14px 20px 0}[data-v-1cbc3d31] .ant-descriptions-item-label{width:140px}.tree-container[data-v-1cbc3d31] .ant-tree{max-height:520px;overflow:auto}
|