gds-plus-design-vue 1.1.4 → 1.1.8

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.
Files changed (72) hide show
  1. package/lib/chartbi.48631362.mjs +44076 -0
  2. package/lib/chartbi.afd83839.js +80 -0
  3. package/lib/element-theme-chalk.ae828c17.js +2 -0
  4. package/lib/gd-initial.js +33 -0
  5. package/lib/gd-initial.mjs +80932 -99
  6. package/lib/main.2eb05c0d.js +1 -0
  7. package/lib/main.85f07438.mjs +68 -0
  8. package/lib/main.9bdd200f.mjs +87 -0
  9. package/lib/main.e62fbc84.mjs +939 -0
  10. package/lib/main.ef020e08.js +1 -0
  11. package/lib/main.f13b92a2.js +1 -0
  12. package/lib/messages.083c4ede.js +9 -0
  13. package/lib/messages.7e85146d.mjs +5802 -0
  14. package/lib/style.css +2 -2
  15. package/lib/system.account.25a9471c.mjs +2552 -0
  16. package/lib/system.account.88600238.js +216 -0
  17. package/lib/system.config.327aded6.js +1 -0
  18. package/lib/system.config.9c46f279.mjs +373 -0
  19. package/lib/system.datasource.4b0951ba.mjs +511 -0
  20. package/lib/system.datasource.8a0c7e0f.js +1 -0
  21. package/lib/system.dict.65f25e4e.mjs +996 -0
  22. package/lib/system.dict.72594c98.js +1 -0
  23. package/lib/system.duplicatechecking.2e9b8df8.js +1 -0
  24. package/lib/system.duplicatechecking.b05f1617.mjs +2130 -0
  25. package/lib/system.email.15594778.js +41 -0
  26. package/lib/system.email.6369f5b4.mjs +7432 -0
  27. package/lib/system.fieldsecurity.7de4ee1d.mjs +1745 -0
  28. package/lib/system.fieldsecurity.d57edb47.js +1 -0
  29. package/lib/system.file.b3558a8b.js +1 -0
  30. package/lib/system.file.f152d4fe.mjs +489 -0
  31. package/lib/system.log.30e5157c.mjs +1450 -0
  32. package/lib/system.log.f243e7d0.js +1 -0
  33. package/lib/system.machine.325b256e.mjs +94 -0
  34. package/lib/system.machine.332fb31c.js +1 -0
  35. package/lib/system.notice.662195f6.js +1 -0
  36. package/lib/system.notice.e2fe81dc.mjs +636 -0
  37. package/lib/system.noticereceived.15cf2fce.js +1 -0
  38. package/lib/system.noticereceived.20f38964.mjs +158 -0
  39. package/lib/system.onlineuser.90c08aef.mjs +184 -0
  40. package/lib/system.onlineuser.e0c261ed.js +1 -0
  41. package/lib/system.org.65452f67.js +1 -0
  42. package/lib/system.org.b8d59e5d.mjs +421 -0
  43. package/lib/system.permissions.5524b210.mjs +212 -0
  44. package/lib/system.permissions.a45b5b80.js +9 -0
  45. package/lib/system.plugin.07b3c38e.js +1 -0
  46. package/lib/system.plugin.4911a33d.mjs +946 -0
  47. package/lib/system.pos.6ed35c39.js +1 -0
  48. package/lib/system.pos.c274f13c.mjs +312 -0
  49. package/lib/system.promptmanagement.67475aac.js +1 -0
  50. package/lib/system.promptmanagement.e9976712.mjs +805 -0
  51. package/lib/system.role.0a1f11ad.js +1 -0
  52. package/lib/system.role.e5d08307.mjs +1543 -0
  53. package/lib/system.timers.69f1792a.mjs +3160 -0
  54. package/lib/system.timers.ef6b6796.js +38 -0
  55. package/lib/system.translation.48ff0b03.mjs +665 -0
  56. package/lib/system.translation.8f7e4144.js +1 -0
  57. package/lib/system.user.30451246.mjs +1432 -0
  58. package/lib/system.user.e0e4ac12.js +14 -0
  59. package/lib/system.useraffiliation.1e74fa9e.mjs +1025 -0
  60. package/lib/system.useraffiliation.f3c88a51.js +1 -0
  61. package/lib/system.webresource.5049d97b.js +1 -0
  62. package/lib/system.webresource.e9518d87.mjs +723 -0
  63. package/lib/system.welcome.3f1cce96.mjs +45 -0
  64. package/lib/system.welcome.b109df88.js +1 -0
  65. package/locale/en_US.js +249 -18
  66. package/locale/id_ID.js +250 -19
  67. package/locale/vi_VN.js +250 -19
  68. package/locale/zh_CN.js +258 -25
  69. package/package.json +105 -104
  70. package/lib/gd-initial.umd.js +0 -433
  71. package/lib/index.a0c53741.mjs +0 -146905
  72. package/lib/main.06db53a0.mjs +0 -919
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./chartbi.afd83839.js"),n=require("./messages.083c4ede.js");function m(t){return window.axios({url:"/sysVisLog/page",method:"get",params:t})}function f(t){return window.axios({url:"/sysOpLog/page",method:"get",params:t})}function y(t){return window.axios({url:"/sysExLog/page",method:"get",params:t})}function h(t){return window.axios({url:"/sysEvtLog/page",method:"get",params:t})}function b(t){return window.axios({url:"/sysVisLog/delete",method:"post",data:t})}function w(t){return window.axios({url:"/sysOpLog/delete",method:"post",data:t})}function T(t){return window.axios({url:"/sysExLog/delete",method:"post",data:t})}function K(t){return window.axios({url:"/sysEvtLog/delete",method:"post",data:t})}function v(t){return window.axios({url:"/sysAuditLog/page",method:"get",params:t})}function C(t){return window.axios({url:"/sysAuditLog/delete",method:"post",data:t})}const $={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.log.tableName",prop:"tableName",label:"\u8868\u540D",align:"left",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.log.fieldName",prop:"fieldName",label:"\u5B57\u6BB5\u540D",align:"left"},{transKey:"gd.log.operate",prop:"operate",label:"\u64CD\u4F5C",align:"left"},{transKey:"gd.log.operatorName",prop:"operateUserName",label:"\u64CD\u4F5C\u4EBA",align:"left"},{transKey:"gd.log.createdTime",prop:"createdTime",width:"200",label:"\u64CD\u4F5C\u65F6\u95F4",align:"center"},{transKey:"gd.log.oldValue",prop:"oldValue",label:"\u65E7\u503C",align:"left"},{transKey:"gd.log.newValue",prop:"newValue",label:"\u65B0\u503C",align:"left"}],formColumns:[],tableButtons:[{displayName:"\u6E05\u7A7A\u65E5\u5FD7",functionName:"clearLog",show:!0,transKey:"gd.btn.clearLog",icon:"el-icon-delete",name:"sysAuditLog:delete",btnType:"danger"}],tableQueries:[{transKey:"gd.log.tableName",prop:"tablename",label:"\u8868\u540D",effectType:"input",rules:[]},{transKey:"gd.log.fieldName",prop:"fieldname",label:"\u5B57\u6BB5\u540D",effectType:"input",rules:[]},{transKey:"gd.log.executionTime",prop:"dates",label:"\u6267\u884C\u65F6\u95F4",effectType:"datepicker",options:{displayStyle:0},rules:[]}]}}},x={name:"GdAuditlog",props:{height:{type:Number,default:100}},mixins:[n.tablesFilter,$],data(){return{transKey:"gd.btn.add",queryParam:{},selectedRowKeys:[],selectedRows:[],loadData:t=>v(Object.assign(t,this.switchingDate())).then(e=>e.data),eventStateDict:[],eventTypeDict:[]}},computed:{getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},saveQueries(t){this.queryParam={...t},this.refresh()},switchingDate(){let t=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&e==="dates"){if(this.queryParam[e].length>0){let a=this.queryParam[e],s=a[0].split(" ")[0],r=a[1].split(" ")[0];t.set(`${e}Start`,`${s} 00:00:00`),t.set(`${e}End`,`${r} 23:59:59`)}}else t.set(e,this.queryParam[e]);return Object.fromEntries(t)},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},clearLog(){let t=this;t.$confirm(t.$i18nt("gd.https.emptyContent","\u662F\u5426\u6E05\u7A7A\u6570\u636E?"),t.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:t.$i18nt("gd.https.emptyOk","\u786E\u8BA4\u6E05\u7A7A"),cancelButtonText:t.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,a,s)=>{if(e!=="confirm"){s();return}a.confirmButtonLoading=!0,a.cancelButtonLoading=!0,a.showCancelButton=!1,C().then(r=>{r.success?(t.$message.success(t.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),t.$refs.table.refresh(!0)):t.$message.error(t.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r.message),a.confirmButtonLoading=!1,a.cancelButtonLoading=!1,a.showCancelButton=!0,s()})}})}}};var k=function(){var e=this,a=e._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.log.tableName","\u8868\u540D"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.tablename,callback:function(s){e.$set(e.queryParam,"tablename",s)},expression:"queryParam.tablename"}}),a("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:r}){return[a("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:s,visible:r},on:{save:e.saveQueries}})]}}])})],1)])},_=[],P=o.normalizeComponent(x,k,_,!1,null,null,null,null);const i=P.exports;i.install=function(t){t.component(i.name,i)};const q={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.log.methodName",prop:"methodName",label:"\u65B9\u6CD5\u540D",type:"slot",slotType:"methodName",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.org.className",prop:"className",type:"slot",slotType:"className",label:"\u7C7B\u540D",align:"left"},{transKey:"gd.org.exceptionName",prop:"exceptionName",type:"slot",slotType:"exceptionName",label:"\u5F02\u5E38\u540D\u79F0",align:"left"},{transKey:"gd.org.exceptionMsg",prop:"exceptionMsg",type:"slot",slotType:"exceptionMsg",label:"\u5F02\u5E38\u4FE1\u606F",align:"left"},{transKey:"gd.org.exceptionTime",prop:"exceptionTime",type:"slot",slotType:"exceptionTime",label:"\u5F02\u5E38\u65F6\u95F4",align:"left"},{transKey:"gd.org.operatorName",prop:"name",label:"\u64CD\u4F5C\u4EBA",align:"left"}],formColumns:[{transKey:"gd.log.methodName",prop:"methodname",effectType:"input",label:"\u65B9\u6CD5\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!1,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.log.className",prop:"classname",effectType:"input",label:"\u7C7B\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!1,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.log.exceptionName",prop:"exceptionname",effectType:"input",label:"\u5F02\u5E38\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!1,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.log.exceptionMsg",prop:"exceptionmsg",effectType:"textarea",label:"\u5F02\u5E38\u4FE1\u606F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u6E05\u7A7A\u65E5\u5FD7",functionName:"clearLog",show:!0,transKey:"gd.btn.clearLog",icon:"el-icon-delete",name:"sysExLog:delete",btnType:"danger"}],tableQueries:[{transKey:"gd.log.methodName",prop:"methodName",label:"\u65B9\u6CD5\u540D",effectType:"input",rules:[]},{transKey:"gd.log.className",prop:"className",label:"\u7C7B\u540D",effectType:"input",rules:[]},{transKey:"gd.log.exceptionMsg",prop:"exceptionMsg",label:"\u5F02\u5E38\u4FE1\u606F",effectType:"textarea",rules:[]},{transKey:"gd.log.operatorName",prop:"name",label:"\u64CD\u4F5C\u4EBA",effectType:"input",rules:[]},{transKey:"gd.log.opTime",prop:"search",label:"\u5F02\u5E38\u65F6\u95F4",effectType:"datepicker",options:{displayStyle:0},rules:[]}]}}},N={name:"GdExlog",props:{height:{type:Number,default:100}},mixins:[n.tablesFilter,q],data(){return{transKey:"gd.btn.add",queryParam:{},selectedRowKeys:[],selectedRows:[],loadData:t=>y(Object.assign(t,this.switchingDate())).then(e=>e.data)}},computed:{getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},mounted(){},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},editForm(t){this.transKey="gd.log.detail",this.$refs.editForm.open(Object.assign({...t}))},saveQueries(t){console.log(t),this.queryParam={...t},this.refresh()},switchingDate(){let t=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&e==="createdTime"){if(this.queryParam[e].length>0){let a=this.queryParam[e],s=a[0].split(" ")[0],r=a[1].split(" ")[0];t.set(`${e}BeginTime`,`${s} 00:00:00`),t.set(`${e}EndTime`,`${r} 23:59:59`)}}else t.set(e,this.queryParam[e]);return Object.fromEntries(t)},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},clearLog(){let t=this;t.$confirm(t.$i18nt("gd.https.emptyContent","\u662F\u5426\u6E05\u7A7A\u6570\u636E?"),t.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:t.$i18nt("gd.https.emptyOk","\u786E\u8BA4\u6E05\u7A7A"),cancelButtonText:t.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,a,s)=>{if(e!=="confirm")s();else return new Promise((r,u)=>{T().then(l=>{l.success?(t.$message.success(t.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),t.$refs.table.refresh(!0)):t.$message.error(t.$i18nt("gd.https.operateFail")+l.message),r(),s()}).catch(l=>{t.$message.error(t.$i18nt("gd.error.error")+l.message)})}).catch(()=>console.log("Oops errors!"))}})}}};var S=function(){var e=this,a=e._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"methodName",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"methodname",row:r,highlight:""},on:{click:e.editForm}})]}},{key:"className",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"classname",row:r}})]}},{key:"exceptionName",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"exceptionname",row:r}})]}},{key:"exceptionMsg",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"exceptionmsg",row:r}})]}},{key:"exceptionTime",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"exceptiontime",row:r}})]}},{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.log.methodName","\u65B9\u6CD5\u540D"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.methodName,callback:function(s){e.$set(e.queryParam,"methodName",s)},expression:"queryParam.methodName"}}),a("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:r}){return[a("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:s,visible:r},on:{save:e.saveQueries}})]}}])})],1),a("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",transKey:e.transKey,columns:e.formColumns,labelPosition:e.labelPosition,formMode:e.formMode}})],1)},L=[],D=o.normalizeComponent(N,S,L,!1,null,null,null,null);const c=D.exports;c.install=function(t){t.component(c.name,c)};const O={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.log.logName",prop:"name",label:"\u65E5\u5FD7\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.org.accessType",prop:"visType",type:"slot",slotType:"visType",label:"\u8BBF\u95EE\u7C7B\u578B ",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.whether",prop:"success",type:"slot",slotType:"success",label:"\u662F\u5426\u6210\u529F",align:"left"},{transKey:"gd.org.ip",prop:"ip",label:"ip\u5730\u5740",align:"left"},{transKey:"gd.org.browser",prop:"browser",label:"\u6D4F\u89C8\u5668",align:"left"},{transKey:"gd.org.visTime",prop:"vistime",label:"\u8BBF\u95EE\u65F6\u95F4",align:"center"},{transKey:"gd.org.visitor",prop:"account",label:"\u8BBF\u95EE\u8005",align:"left"}],formColumns:[{transKey:"gd.log.concreteMessage",prop:"message",effectType:"input",label:"\u5177\u4F53\u6D88\u606F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!1,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],tableButtons:[{displayName:"\u6E05\u7A7A\u65E5\u5FD7",functionName:"clearLog",show:!0,transKey:"gd.btn.clearLog",icon:"el-icon-delete",name:"sysVisLog:delete",btnType:"danger"}],tableQueries:[{transKey:"gd.log.logName",prop:"name",label:"\u65E5\u5FD7\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.log.visType",prop:"visType",label:"\u8BBF\u95EE\u7C7B\u578B",effectType:"select",dictTypeCode:"visType",rules:[]},{transKey:"gd.log.whether",prop:"success",label:"\u662F\u5426\u6210\u529F",effectType:"select",dictTypeCode:"success",rules:[]},{transKey:"gd.log.visTime",prop:"visTime",label:"\u8BBF\u95EE\u65F6\u95F4",effectType:"datepicker",options:{displayStyle:0},rules:[]}]}}},B={name:"GdVislog",props:{height:{type:Number,default:100}},mixins:[n.tablesFilter,O],data(){return{transKey:"gd.btn.add",queryParam:{},selectedRowKeys:[],selectedRows:[],loadData:t=>m(Object.assign(t,this.switchingDate())).then(e=>e.data)}},computed:{visTypeDict(){return this.getDictionary("LoginType")},successDict(){return this.getDictionary("YesOrNot")},getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},mounted(){},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},editForm(t){this.transKey="gd.log.detail",this.$refs.editForm.open(Object.assign({...t}))},saveQueries(t){console.log(t),this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},clearLog(){let t=this;t.$confirm(t.$i18nt("gd.https.emptyContent","\u662F\u5426\u6E05\u7A7A\u6570\u636E?"),t.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:t.$i18nt("gd.https.emptyOk","\u786E\u8BA4\u6E05\u7A7A"),cancelButtonText:t.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,a,s)=>{if(e!=="confirm")s();else return new Promise((r,u)=>{b().then(l=>{l.success?(t.$message.success(t.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),t.$refs.table.refresh(!0)):t.$message.error(t.$i18nt("gd.https.operateFail")+l.message),r(),s()}).catch(l=>{t.$message.error(t.$i18nt("gd.error.error")+l.message)})}).catch(()=>console.log("Oops errors!"))}})},switchingDate(){let t=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&e==="visTime"){if(this.queryParam[e].length>0){let a=this.queryParam[e],s=a[0].split(" ")[0],r=a[1].split(" ")[0];t.set(`${e}Start`,`${s} 00:00:00`),t.set(`${e}End`,`${r} 23:59:59`)}}else t.set(e,this.queryParam[e]);return Object.fromEntries(t)},visTypeFilter(t){const e=this.visTypeDict.filter(a=>a.code==t);if(e.length>0)return e[0].value},successFilter(t){const e=this.successDict.filter(a=>a.code==t);if(e.length>0)return e[0].value},getDictionary(t){return this.$options.filters.dictData(t)}}};var R=function(){var e=this,a=e._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:r,highlight:""},on:{click:e.editForm}})]}},{key:"visType",fn:function(s){return[a("span",[e._v(e._s(e.visTypeFilter(s.row.vistype)))])]}},{key:"success",fn:function(s){return[a("span",[e._v(e._s(e.successFilter(s.row.success)))])]}},{key:"visTime",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"vistime",row:r}})]}},{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.log.logName","\u65E5\u5FD7\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(s){e.$set(e.queryParam,"name",s)},expression:"queryParam.name"}}),a("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:r}){return[a("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:s,visible:r},on:{save:e.saveQueries}})]}}])})],1),a("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",transKey:e.transKey,columns:e.formColumns,labelPosition:e.labelPosition,formMode:e.formMode}})],1)},M=[],z=o.normalizeComponent(B,R,M,!1,null,null,null,null);const d=z.exports;d.install=function(t){t.component(d.name,d)};const E={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.log.operatorName",prop:"name",label:"\u65E5\u5FD7\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.org.operatorAccount",prop:"account",type:"slot",slotType:"account",label:"\u64CD\u4F5C\u4EBA\u5E10\u53F7 ",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.requestMethod",prop:"reqMethod",type:"slot",slotType:"reqMethod",label:"\u8BF7\u6C42\u65B9\u5F0F",align:"left"},{transKey:"gd.org.resultsExecution",prop:"success",type:"slot",slotType:"success",label:"\u6267\u884C\u7ED3\u679C",align:"left"},{transKey:"gd.org.ip",prop:"ip",label:"ip",align:"left"},{transKey:"gd.org.requestAddress",prop:"url",label:"\u8BF7\u6C42\u5730\u5740",align:"center"},{transKey:"gd.org.operationTime",prop:"opTime",slotType:"opTime",label:"\u64CD\u4F5C\u65F6\u95F4",align:"center"}],formColumns:[{transKey:"gd.log.methodName",prop:"methodname",effectType:"input",label:"\u65B9\u6CD5\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!1,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.log.address",prop:"location",effectType:"input",label:"\u5730\u5740",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!1,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.log.browser",prop:"browser",effectType:"input",label:"\u6D4F\u89C8\u5668",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!1,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.log.operatingSystem",prop:"os",effectType:"input",label:"\u64CD\u4F5C\u7CFB\u7EDF",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!1,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.log.className",prop:"classname",effectType:"input",label:"\u7C7B\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!1,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.log.concreteMessage",prop:"message",effectType:"input",label:"\u5177\u4F53\u6D88\u606F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!1,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.log.requestParameters",prop:"param",effectType:"textarea",label:"\u8BF7\u6C42\u53C2\u6570",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}},{transKey:"gd.log.returnResults",prop:"result",effectType:"textarea",label:"\u8FD4\u56DE\u7ED3\u679C",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u6E05\u7A7A\u65E5\u5FD7",functionName:"clearLog",show:!0,transKey:"gd.btn.clearLog",icon:"el-icon-delete",name:"sysOpLog:delete",btnType:"danger"}],tableQueries:[{transKey:"gd.log.logName",prop:"name",label:"\u65E5\u5FD7\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.log.requestMethod",prop:"reqMethod",label:"\u8BF7\u6C42\u65B9\u5F0F",effectType:"select",dictTypeCode:"reqMethod",rules:[]},{transKey:"gd.log.whether",prop:"success",label:"\u6267\u884C\u7ED3\u679C",effectType:"select",dictTypeCode:"success",rules:[]},{transKey:"gd.log.opTime",prop:"search",label:"\u64CD\u4F5C\u65F6\u95F4",effectType:"datepicker",options:{displayStyle:0},rules:[]}]}}},F={name:"GdOplog",props:{height:{type:Number,default:100}},mixins:[n.tablesFilter,E],data(){return{transKey:"gd.btn.add",queryParam:{},selectedRowKeys:[],selectedRows:[],isShow:!1,loadData:t=>f(Object.assign(t,this.switchingDate())).then(e=>e.data)}},computed:{reqMethodDict(){return this.getDictionary("HttpMethod")},successDict(){return this.getDictionary("YesOrNot")},getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},editForm(t){this.transKey="gd.log.detail",this.$refs.editForm.open(Object.assign({...t}))},saveQueries(t){console.log(t),this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},clearLog(){let t=this;t.$confirm(t.$i18nt("gd.https.emptyContent","\u662F\u5426\u6E05\u7A7A\u6570\u636E?"),t.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:t.$i18nt("gd.https.emptyOk","\u786E\u8BA4\u6E05\u7A7A"),cancelButtonText:t.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,a,s)=>{if(e!=="confirm")s();else return new Promise((r,u)=>{w().then(l=>{l.success?(t.$message.success(t.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),t.$refs.table.refresh(!0)):t.$message.error(t.$i18nt("gd.https.operateFail")+l.message),r(),s()}).catch(l=>{t.$message.error(t.$i18nt("gd.error.error")+l.message)})}).catch(()=>console.log("Oops errors!"))}})},switchingDate(){let t=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&e==="createdTime"){if(this.queryParam[e].length>0){let a=this.queryParam[e],s=a[0].split(" ")[0],r=a[1].split(" ")[0];t.set(`${e}BeginTime`,`${s} 00:00:00`),t.set(`${e}EndTime`,`${r} 23:59:59`)}}else t.set(e,this.queryParam[e]);return Object.fromEntries(t)},successFilter(t){const e=this.successDict.filter(a=>a.code==t);if(e.length>0)return e[0].value},getDictionary(t){return this.$options.filters.dictData(t)}}};var H=function(){var e=this,a=e._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:r,highlight:""},on:{click:e.editForm}})]}},{key:"url",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"url",row:r}})]}},{key:"opTime",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"optime",row:r}})]}},{key:"success",fn:function(s){return[a("span",[e._v(e._s(e.successFilter(s.row.success)))])]}},{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},e.isShow?{key:"filtering",fn:function({colse:s,visible:r}){return[a("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:s,visible:r},on:{save:e.saveQueries}})]}}:null],null,!0)})],1),a("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",transKey:e.transKey,columns:e.formColumns,labelPosition:e.labelPosition,formMode:e.formMode}})],1)},j=[],G=o.normalizeComponent(F,H,j,!1,null,null,null,null);const p=G.exports;p.install=function(t){t.component(p.name,p)};const Q={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.log.eventid",prop:"eventid",label:"\u4E8B\u4EF6id",width:"240",align:"left",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.org.state",prop:"state",width:"120",type:"slot",slotType:"state",label:"\u72B6\u6001",align:"left"},{transKey:"gd.org.payload",prop:"payload",label:"\u8BF7\u6C42\u5185\u5BB9",type:"slot",slotType:"payload",align:"left",width:"300",showTooltip:!1},{transKey:"gd.org.message",prop:"message",type:"slot",slotType:"message",width:"200",label:"\u8FD4\u56DE\u6D88\u606F",align:"left",showTooltip:!1},{transKey:"gd.org.stackTrace",prop:"stacktrace",type:"slot",slotType:"stacktrace",width:"200",label:"\u9519\u8BEF\u8DDF\u8E2A",align:"left",showTooltip:!1},{transKey:"gd.org.createdTime",prop:"createdTime",width:"200",type:"slot",slotType:"createdTime",label:"\u521B\u5EFA\u65F6\u95F4",align:"left"},{transKey:"gd.org.endedTime",prop:"endedTime",width:"200",type:"slot",slotType:"endedTime",label:"\u7ED3\u675F\u65F6\u95F4",align:"left"}],formColumns:[{transKey:"gd.log.methodName",prop:"methodName",effectType:"input",label:"\u65B9\u6CD5\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!1,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.log.className",prop:"className",effectType:"input",label:"\u7C7B\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!1,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.log.exceptionName",prop:"exceptionName",effectType:"input",label:"\u5F02\u5E38\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!1,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.log.exceptionMsg",prop:"exceptionMsg",effectType:"textarea",label:"\u5F02\u5E38\u4FE1\u606F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u6E05\u7A7A\u65E5\u5FD7",functionName:"clearLog",show:!0,transKey:"gd.btn.clearLog",icon:"el-icon-delete",name:"sysEvtLog:delete",btnType:"danger"}],tableQueries:[{transKey:"gd.log.eventid",prop:"eventId",label:"\u4E8B\u4EF6id",effectType:"input",rules:[]},{transKey:"gd.log.state",prop:"state",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"event_status",rules:[]},{transKey:"gd.log.startTime",prop:"CreateTime",label:"\u5F00\u59CB\u65F6\u95F4",effectType:"datepicker",options:{displayStyle:0},rules:[]}]}}},V={name:"GdEvtlog",props:{height:{type:Number,default:100}},mixins:[n.tablesFilter,Q],data(){return{transKey:"gd.btn.add",queryParam:{},selectedRowKeys:[],selectedRows:[],loadData:t=>h(Object.assign(t,this.switchingDate())).then(e=>e.data)}},computed:{getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},editForm(t){this.transKey="gd.log.detail",this.$refs.editForm.open(Object.assign({...t}))},saveQueries(t){this.queryParam={...t},this.refresh()},switchingDate(){let t=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&e==="createdTime"){if(this.queryParam[e].length>0){let a=this.queryParam[e],s=a[0].split(" ")[0],r=a[1].split(" ")[0];t.set(`${e}Start`,`${s} 00:00:00`),t.set(`${e}End`,`${r} 23:59:59`)}}else t.set(e,this.queryParam[e]);return Object.fromEntries(t)},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},clearLog(){let t=this;t.$confirm(t.$i18nt("gd.https.emptyContent","\u662F\u5426\u6E05\u7A7A\u6570\u636E?"),t.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:t.$i18nt("gd.https.emptyOk","\u786E\u8BA4\u6E05\u7A7A"),cancelButtonText:t.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,a,s)=>{if(e!=="confirm")s();else return new Promise((r,u)=>{K().then(l=>{l.success?(t.$message.success(t.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),t.$refs.table.refresh(!0)):t.$message.error(t.$i18nt("gd.https.operateFail")+l.message),r(),s()}).catch(l=>{t.$message.error(t.$i18nt("gd.error.error")+l.message)})}).catch(()=>console.log("Oops errors!"))}})},getDictionary(t){return this.$options.filters.dictData(t)}}};var A=function(){var e=this,a=e._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"state",fn:function(s){return[a("span",[e._v(" "+e._s(e._f("dictType")("event_status",s.row.state))+" ")])]}},{key:"message",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"message",row:r,disabled:!1}})]}},{key:"payload",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"payload",align:"left",row:r,disabled:!1}})]}},{key:"stacktrace",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"stacktrace",row:r,disabled:!1}})]}},{key:"createdTime",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"createdtime",row:r}})]}},{key:"endedTime",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"endedtime",row:r}})]}},{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.log.eventId","\u4E8B\u4EF6id"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.eventid,callback:function(s){e.$set(e.queryParam,"eventid",s)},expression:"queryParam.eventid"}}),a("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:r}){return[a("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:s,visible:r},on:{save:e.saveQueries}})]}}])})],1)])},I=[],W=o.normalizeComponent(V,A,I,!1,null,null,null,null);const g=W.exports;g.install=function(t){t.component(g.name,g)};exports.GDpackage=i;exports.GDpackage$1=c;exports.GDpackage$2=d;exports.GDpackage$3=p;exports.GDpackage$4=g;
@@ -0,0 +1,94 @@
1
+ import { n } from "./chartbi.48631362.mjs";
2
+ function i(a) {
3
+ return window.axios({
4
+ url: "/sysMachine/use",
5
+ method: "get",
6
+ params: a
7
+ });
8
+ }
9
+ function o(a) {
10
+ return window.axios({
11
+ url: "/sysMachine/base",
12
+ method: "get",
13
+ params: a
14
+ });
15
+ }
16
+ function r(a) {
17
+ return window.axios({
18
+ url: "/sysMachine/network",
19
+ method: "get",
20
+ params: a
21
+ });
22
+ }
23
+ const l = {
24
+ name: "GdMachine",
25
+ data() {
26
+ return {
27
+ machineBaseInfo: {},
28
+ machineNetworkInfo: {},
29
+ machineUseInfo: {},
30
+ loading: !0,
31
+ size: "medium",
32
+ isShow: !1,
33
+ label_style: {
34
+ "font-weight": "600",
35
+ width: "18%",
36
+ "word-break": "keep-all"
37
+ },
38
+ content_style: {
39
+ "min-width": "200px",
40
+ "word-break": "break-all"
41
+ }
42
+ };
43
+ },
44
+ computed: {},
45
+ created() {
46
+ this.loadMachineBaseInfo(), this.loadMachineUseInfo();
47
+ },
48
+ mounted() {
49
+ this.timer = setInterval(this.refreshData, 5 * 60 * 1e3);
50
+ },
51
+ methods: {
52
+ loadMachineBaseInfo() {
53
+ o().then((a) => {
54
+ this.loading = !1, this.machineBaseInfo = a.data;
55
+ });
56
+ },
57
+ loadMachineUseInfo() {
58
+ i().then((a) => {
59
+ this.loading = !1, this.machineUseInfo = a.data;
60
+ });
61
+ },
62
+ loadMachineNetworkInfo() {
63
+ r().then((a) => {
64
+ this.loading = !1, this.machineNetworkInfo = a.data;
65
+ });
66
+ },
67
+ refreshData() {
68
+ this.loadMachineUseInfo(), this.loadMachineNetworkInfo();
69
+ }
70
+ },
71
+ beforeDestroy() {
72
+ clearInterval(this.timer);
73
+ }
74
+ };
75
+ var c = function() {
76
+ var e = this, t = e._self._c;
77
+ return t("div", { staticClass: "gd-page-viewq" }, [t("el-row", { attrs: { gutter: 12 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-card", { attrs: { shadow: "never", loading: e.loading } }, [t("div", { staticClass: "clearfix", attrs: { slot: "header" }, slot: "header" }, [t("span", [e._v(e._s(e.$i18nt("gd.machine.systemInformation", "\u7CFB\u7EDF\u4FE1\u606F")))])]), t("el-descriptions", { attrs: { title: "", column: 1, border: "", size: e.size, "label-style": e.label_style, contentStyle: e.content_style } }, [t("el-descriptions-item", { attrs: { label: e.$i18nt("gd.machine.host", "\u4E3B\u673A\u540D\u79F0") } }, [e._v(" " + e._s(e.machineBaseInfo.hostname) + " ")]), t("el-descriptions-item", { attrs: { label: e.$i18nt("gd.machine.operatingSystem", "\u64CD\u4F5C\u7CFB\u7EDF") } }, [e._v(" " + e._s(e.machineBaseInfo.systemos) + " ")]), t("el-descriptions-item", { attrs: { label: e.$i18nt("gd.machine.architecture", "\u7CFB\u7EDF\u67B6\u6784") } }, [e._v(" " + e._s(e.machineBaseInfo.osarchitecture) + " ")]), t("el-descriptions-item", { attrs: { label: e.$i18nt("gd.machine.framework", "\u8FD0\u884C\u6846\u67B6") } }, [e._v(" " + e._s(e.machineBaseInfo.frameworkdescription) + " ")]), t("el-descriptions-item", { attrs: { label: e.$i18nt("gd.machine.cpuCores", "\u7CFB\u7EDF\u4FE1\u606F") } }, [e._v(" " + e._s(e.machineBaseInfo.processorcount) + " ")])], 1)], 1)], 1), t("el-col", { attrs: { span: 12 } }, [t("el-card", { staticStyle: { "margin-bottom": "12px" }, attrs: { shadow: "never", loading: e.loading } }, [t("div", { staticClass: "clearfix", attrs: { slot: "header" }, slot: "header" }, [t("span", [e._v(e._s(e.$i18nt("gd.machine.networkInformation", "\u7F51\u7EDC\u4FE1\u606F")))])]), t("el-descriptions", { attrs: { title: "", column: 1, border: "", size: e.size, "label-style": e.label_style, contentStyle: e.content_style } }, [t("el-descriptions-item", { attrs: { label: e.$i18nt("gd.machine.externalNetwork", "\u5916\u7F51\u4FE1\u606F") } }, [e._v(" " + e._s(e.machineBaseInfo.wanip) + " ")]), t("el-descriptions-item", { attrs: { label: e.$i18nt("gd.machine.iPv4Address", "IPv4\u5730\u5740") } }, [e._v(" " + e._s(e.machineBaseInfo.lanip) + " ")]), t("el-descriptions-item", { attrs: { label: e.$i18nt("gd.machine.cardMAC", "\u7F51\u5361MAC") } }, [e._v(" " + e._s(e.machineBaseInfo.ipmac) + " ")]), t("el-descriptions-item", { attrs: { label: e.$i18nt("gd.machine.trafficStatistics", "\u6D41\u91CF\u7EDF\u8BA1") } }, [e._v(" " + e._s(e.machineNetworkInfo.sendandreceived) + " ")]), t("el-descriptions-item", { attrs: { label: e.$i18nt("gd.machine.networkSpeed", "\u7F51\u7EDC\u901F\u5EA6") } }, [e._v(" " + e._s(e.machineNetworkInfo.networkspeed) + " ")])], 1)], 1)], 1)], 1), t("el-row", { attrs: { gutter: 20 } }, [t("el-col", { attrs: { span: 24 } }, [t("el-card", { attrs: { shadow: "never", loading: e.loading } }, [t("div", { staticClass: "clearfix", attrs: { slot: "header" }, slot: "header" }, [t("span", [e._v(" " + e._s(e.$i18nt("gd.machine.otherInformation", "\u5176\u5B83\u4FE1\u606F")) + " ")])]), t("el-descriptions", { attrs: { title: "", column: 1, border: "", size: e.size, "label-style": e.label_style, contentStyle: e.content_style } }, [t("el-descriptions-item", { attrs: { label: e.$i18nt("gd.machine.runTime", "\u8FD0\u884C\u65F6\u95F4") } }, [e._v(" " + e._s(e.machineUseInfo.runtime) + " ")]), t("el-descriptions-item", { attrs: { label: e.$i18nt("gd.machine.cpu", "CPU\u4F7F\u7528\u7387") } }, [e._v(" " + e._s(e.machineUseInfo.cpurate) + "% ")]), t("el-descriptions-item", { attrs: { label: e.$i18nt("gd.machine.totalMemory", "\u603B\u5185\u5B58") } }, [e._v(" " + e._s(e.machineUseInfo.totalram) + " ")]), t("el-descriptions-item", { attrs: { label: e.$i18nt("gd.machine.memory", "\u5185\u5B58\u4F7F\u7528\u7387") } }, [e._v(" " + e._s(e.machineUseInfo.ramrate) + "% ")])], 1)], 1)], 1)], 1)], 1);
78
+ }, d = [], m = /* @__PURE__ */ n(
79
+ l,
80
+ c,
81
+ d,
82
+ !1,
83
+ null,
84
+ "63bf0c29",
85
+ null,
86
+ null
87
+ );
88
+ const s = m.exports;
89
+ s.install = function(a) {
90
+ a.component(s.name, s);
91
+ };
92
+ export {
93
+ s as G
94
+ };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./chartbi.afd83839.js");function i(a){return window.axios({url:"/sysMachine/use",method:"get",params:a})}function r(a){return window.axios({url:"/sysMachine/base",method:"get",params:a})}function o(a){return window.axios({url:"/sysMachine/network",method:"get",params:a})}const l={name:"GdMachine",data(){return{machineBaseInfo:{},machineNetworkInfo:{},machineUseInfo:{},loading:!0,size:"medium",isShow:!1,label_style:{"font-weight":"600",width:"18%","word-break":"keep-all"},content_style:{"min-width":"200px","word-break":"break-all"}}},computed:{},created(){this.loadMachineBaseInfo(),this.loadMachineUseInfo()},mounted(){this.timer=setInterval(this.refreshData,5*60*1e3)},methods:{loadMachineBaseInfo(){r().then(a=>{this.loading=!1,this.machineBaseInfo=a.data})},loadMachineUseInfo(){i().then(a=>{this.loading=!1,this.machineUseInfo=a.data})},loadMachineNetworkInfo(){o().then(a=>{this.loading=!1,this.machineNetworkInfo=a.data})},refreshData(){this.loadMachineUseInfo(),this.loadMachineNetworkInfo()}},beforeDestroy(){clearInterval(this.timer)}};var c=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-viewq"},[t("el-row",{attrs:{gutter:12}},[t("el-col",{attrs:{span:12}},[t("el-card",{attrs:{shadow:"never",loading:e.loading}},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("span",[e._v(e._s(e.$i18nt("gd.machine.systemInformation","\u7CFB\u7EDF\u4FE1\u606F")))])]),t("el-descriptions",{attrs:{title:"",column:1,border:"",size:e.size,"label-style":e.label_style,contentStyle:e.content_style}},[t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.machine.host","\u4E3B\u673A\u540D\u79F0")}},[e._v(" "+e._s(e.machineBaseInfo.hostname)+" ")]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.machine.operatingSystem","\u64CD\u4F5C\u7CFB\u7EDF")}},[e._v(" "+e._s(e.machineBaseInfo.systemos)+" ")]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.machine.architecture","\u7CFB\u7EDF\u67B6\u6784")}},[e._v(" "+e._s(e.machineBaseInfo.osarchitecture)+" ")]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.machine.framework","\u8FD0\u884C\u6846\u67B6")}},[e._v(" "+e._s(e.machineBaseInfo.frameworkdescription)+" ")]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.machine.cpuCores","\u7CFB\u7EDF\u4FE1\u606F")}},[e._v(" "+e._s(e.machineBaseInfo.processorcount)+" ")])],1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-card",{staticStyle:{"margin-bottom":"12px"},attrs:{shadow:"never",loading:e.loading}},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("span",[e._v(e._s(e.$i18nt("gd.machine.networkInformation","\u7F51\u7EDC\u4FE1\u606F")))])]),t("el-descriptions",{attrs:{title:"",column:1,border:"",size:e.size,"label-style":e.label_style,contentStyle:e.content_style}},[t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.machine.externalNetwork","\u5916\u7F51\u4FE1\u606F")}},[e._v(" "+e._s(e.machineBaseInfo.wanip)+" ")]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.machine.iPv4Address","IPv4\u5730\u5740")}},[e._v(" "+e._s(e.machineBaseInfo.lanip)+" ")]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.machine.cardMAC","\u7F51\u5361MAC")}},[e._v(" "+e._s(e.machineBaseInfo.ipmac)+" ")]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.machine.trafficStatistics","\u6D41\u91CF\u7EDF\u8BA1")}},[e._v(" "+e._s(e.machineNetworkInfo.sendandreceived)+" ")]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.machine.networkSpeed","\u7F51\u7EDC\u901F\u5EA6")}},[e._v(" "+e._s(e.machineNetworkInfo.networkspeed)+" ")])],1)],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:24}},[t("el-card",{attrs:{shadow:"never",loading:e.loading}},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("span",[e._v(" "+e._s(e.$i18nt("gd.machine.otherInformation","\u5176\u5B83\u4FE1\u606F"))+" ")])]),t("el-descriptions",{attrs:{title:"",column:1,border:"",size:e.size,"label-style":e.label_style,contentStyle:e.content_style}},[t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.machine.runTime","\u8FD0\u884C\u65F6\u95F4")}},[e._v(" "+e._s(e.machineUseInfo.runtime)+" ")]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.machine.cpu","CPU\u4F7F\u7528\u7387")}},[e._v(" "+e._s(e.machineUseInfo.cpurate)+"% ")]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.machine.totalMemory","\u603B\u5185\u5B58")}},[e._v(" "+e._s(e.machineUseInfo.totalram)+" ")]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.machine.memory","\u5185\u5B58\u4F7F\u7528\u7387")}},[e._v(" "+e._s(e.machineUseInfo.ramrate)+"% ")])],1)],1)],1)],1)],1)},d=[],m=n.normalizeComponent(l,c,d,!1,null,"63bf0c29",null,null);const s=m.exports;s.install=function(a){a.component(s.name,s)};exports.GDpackage=s;
@@ -0,0 +1 @@
1
+ "use strict";const c=require("./chartbi.afd83839.js"),g=require("./system.account.88600238.js"),f=require("./messages.083c4ede.js");function p(t){return window.axios({url:"/sysNotice/page",method:"get",params:t})}function m(t){return window.axios({url:"/sysNotice/add",method:"post",data:t})}function y(t){return window.axios({url:"/sysNotice/edit",method:"post",data:t})}function b(t){return window.axios({url:"/sysNotice/delete",method:"post",data:t})}function h(t){return window.axios({url:"/sysNotice/detail",method:"get",params:t})}function d(t){return window.axios({url:"/sysNotice/changeStatus",method:"post",data:t})}const w={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.notice.title",prop:"title",label:"\u6807\u9898",type:"slot",slotType:"title",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.notice.type",prop:"type",label:"\u7C7B\u578B",align:"left",type:"slot",slotType:"type",align:"center",showOverflowTooltip:!0},{transKey:"gd.notice.status",prop:"status",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status"},{transKey:"gd.notice.createdTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicTime",prop:"publictime",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",label:"\u53D1\u5E03\u4EBA",align:"left"}],formColumns:[{transKey:"gd.notice.title",effectType:"input",prop:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.type",prop:"type",label:"\u7C7B\u578B",effectType:"radio",dictTypeCode:"notice_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.notice.noticeBucket",effectType:"editor",prop:"editorcontent",label:"\u5185\u5BB9",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.notifyTo",effectType:"transfer",prop:"targetkeys",label:"\u6536\u5230\u901A\u77E5\u4EBA",type:"slot",slotType:"targetKeys",rules:[{required:!1,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysNotice:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysNotice:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysNotice:delete"},{displayName:"\u53D1\u5E03",functionName:"release",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",name:"sysNotice:changeStatus"},{displayName:"\u64A4\u56DE",functionName:"rollback",show:!0,transKey:"gd.btn.withdraw",icon:"el-icon-refresh-left",btnType:"danger",name:"sysNotice:changeStatus"},{displayName:"\u67E5\u770B",functionName:"read",show:!0,transKey:"gd.btn.view",icon:"el-icon-reading",name:"sysNotice:detail"}],formButtons:[{displayName:"\u53D1\u5E03",functionName:"releaseTip",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",validate:!0},{displayName:"\u5B58\u4E3A\u8349\u7A3F",functionName:"saveDraft",show:!0,transKey:"gd.btn.saveDraft",icon:"el-icon-tickets",validate:!0}],tableQueries:[{transKey:"gd.notice.noticeOriginName",prop:"searchValue",label:"\u5173\u952E\u8BCD",effectType:"input",rules:[]},{transKey:"gd.sysConfig.type",prop:"type",label:"\u7C7B\u578B",effectType:"select",dictTypeCode:"notice_type",rules:[]}]}}};const _={data(){return{transKey:"gd.notice.detail",fullscreen:!1,visible:!1,width:"900",confirmLoading:!1,contentRecord:{}}},computed:{height(){return this.screenHeight-24-40-36},headTitle(){return this.$i18nt(this.transKey,this.title)},...c.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{open(t){console.log(t),this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.sysNoticeDetail(t.id)},sysNoticeDetail(t){this.fullscreen=!1,h({id:t}).then(e=>{this.confirmLoading=!1,this.contentRecord=e.data})},handleCancel(){this.visible=!1,this.contentRecord={}},closed(){this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen}}};var $=function(){var e=this,s=e._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{formMode:e.formMode,fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px",transKey:e.transKey,labelPosition:e.labelPosition,"show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("gd-modal-title",{attrs:{slot:"title",title:e.headTitle,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent},slot:"title"}),s("div",{class:e.fullscreen?"modal-bodyq":"modal-body"},[s("div",{staticStyle:{"text-align":"center","font-size":"30px"}},[e._v(e._s(this.contentRecord.title))]),s("br"),s("div",{staticStyle:{"text-align":"right","font-size":"10px"}},[s("span",[e._v(" "+e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername)+" ")]),s("span",[e._v(" "+e._s(e.$i18nt("gd.notice.releaseTime","\u53D1\u5E03\u65F6\u95F4"))+": "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),s("el-divider",{staticStyle:{"margin-top":"5px"}}),s("div",[s("label",{domProps:{innerHTML:e._s(this.contentRecord.content)}})])],1)],1)],1)},K=[],v=c.normalizeComponent(_,$,K,!1,null,"5c8b9b69",null,null);const u=v.exports;const C={name:"GdNotice",props:{height:{type:Number,default:100}},mixins:[f.tablesFilter,w],data(){return{transKey:"gd.btn.add",loadData:t=>p(Object.assign(t,this.queryParam)).then(e=>e.data),selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1,mockData:[],targetKeys:[],noticeUserIdList:[],mockData:[],status:0}},components:{detailForm:u},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(e=>!0)},...c.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},mounted(){},methods:{onSelectChange(t,e){if(this.selectedRowKeys=t,this.selectedRows=e,e.length==0){this.baseHideBtns([],2);return}if(e.length>1){this.baseHideBtns(["\u5220\u9664","\u53D1\u5E03","\u64A4\u56DE","\u7F16\u8F91"],2);return}let s=[],i=e.filter(a=>a.status==0),o=e.filter(a=>a.status==1),n=e.filter(a=>a.status==2);i.length==e.length?s=["\u64A4\u56DE"]:o.length==e.length?s=["\u5220\u9664","\u53D1\u5E03","\u7F16\u8F91"]:n.length==e.length&&(s=["\u64A4\u56DE","\u53D1\u5E03","\u7F16\u8F91"]),this.baseHideBtns(s,2)},baseHideBtns(t,e=1){let s=[...this.tableButtons];s.map(i=>(e===1?i.show=!t.includes(i.id):i.show=!t.includes(i.displayName),i)),this.tableButtons=[...s]},add(){this.transKey="gd.btn.add",this.getMock(),this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("Locals.common.https.editTip"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("Locals.common.https.editTipOne"));return}this.sysNoticeDetail(this.selectedRows[0].id),this.$refs.editForm.open(Object.assign({...this.selectedRows[0]},{type:String(this.selectedRows[0].type),editorContent:this.selectedRows[0].content}))},editForm(t){this.transKey="gd.notice.detail",this.$refs.detailForm.open(t)},sbumit({data:t,record:e,btn:s},i,o){if(this.status=s.item.functionName=="releaseTip"?1:0,e!=null){let n={id:t.id,content:t.editorcontent,status:this.status,title:t.title,type:t.type,noticeuseridlist:this.targetKeys};if(this.targetKeys.length==0){this.$message.error(this.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+this.$i18nt("gd.notice.user","\u63A5\u6536\u4EBA"));return}this.formLoading=!0,y(Object.assign(this.noticeDetail,n)).then(a=>{a.success?(o(),this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+a.message),this.formLoading=!1,this.refresh()})}else{let n={content:t.editorcontent,status:this.status,title:t.title,type:t.type,noticeuseridlist:this.targetKeys};if(this.targetKeys.length==0){this.$message.error(this.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+this.$i18nt("gd.notice.user","\u63A5\u6536\u4EBA"));return}this.formLoading=!0,m(n).then(a=>{a.success?(o(),this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+a.message),this.refresh(),this.formLoading=!1})}},saveQueries(t){this.queryParam=t,this.refresh()},read(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.readTip","\u8BF7\u9009\u62E9\u9700\u8981\u67E5\u770B\u7684\u6570\u636E"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));return}this.$refs.detailForm.open(this.selectedRows[0])},rollback(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));return}this.$confirm(this.$i18nt("gd.https.withdrawContent","\u786E\u8BA4\u64A4\u56DE?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.withdrawOk","\u7ACB\u5373\u64A4\u56DE!"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.rollbackHand(t,e,s)}})},rollbackHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(o=>{let n=d({id:o.id,status:2}).then(a=>a);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(o=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const n=o.filter(a=>!a.success);n.length===0?this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n[0].message),this.refresh()})},release(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));return}this.$confirm(this.$i18nt("gd.https.releaseContent","\u786E\u8BA4\u53D1\u5E03?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.releaseOk","\u7ACB\u5373\u53D1\u5E03!"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.releaseHand(t,e,s)}})},releaseHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(o=>{let n=d({id:o.id,status:1}).then(a=>a);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(o=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const n=o.filter(a=>!a.success);n.length===0?this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n[0].message),this.refresh()})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(o=>{let n=b(o).then(a=>a);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(o=>{s();const n=o.filter(a=>!a.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},sysNoticeDetail(t){h({id:t}).then(e=>{this.noticeDetail=e.data,this.getMock(this.noticeDetail)})},getMock(t){const e=[],s=[];g.sysUserSelector().then(i=>{this.confirmLoading=!1;for(let o=0;o<i.data.length;o++){const n=i.data[o],a={key:n.id.toString(),label:n.name,description:`description of ${n.name}`};if(t)for(let r=0;r<t.noticeuseridlist.length;r++)a.key===t.noticeuseridlist[r]&&e.push(t.noticeuseridlist[r]);s.push(a)}this.mockData=s,this.targetKeys=e})},handleChange(t){this.targetKeys=t},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var T=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.notice.title","\u6807\u9898"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.title,callback:function(i){e.$set(e.queryParam,"title",i)},expression:"queryParam.title"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"title",fn:function({column:i,row:o}){return[s("gd-tooltip",{attrs:{rowKey:"title",row:o,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_type",i.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_type",i.row.type))+" ")])]}},{key:"status",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_status",i.row.status),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_status",i.row.status))+" ")])]}},{key:"filtering",fn:function({colse:i,visible:o}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:o},on:{save:e.saveQueries}})]}}])})],1),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"100%",transKey:e.transKey,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,buttons:e.formButtons,loading:e.formLoading},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"targetKeys",fn:function({data:i,column:o}){return[s("el-transfer",{attrs:{data:e.mockData,titles:["\u672A\u9009","\u5DF2\u9009"],filterable:""},on:{change:e.handleChange},model:{value:e.targetKeys,callback:function(n){e.targetKeys=n},expression:"targetKeys"}})]}}])}),s("detailForm",{ref:"detailForm"})],1)},B=[],N=c.normalizeComponent(C,T,B,!1,null,"8998e463",null,null);const l=N.exports;l.install=function(t){t.component(l.name,l)};exports.GDpackage=l;exports.detailForm=u;