gds-plus-design-vue 1.2.1 → 1.2.2
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/lib/{chartbi.78c30dce.js → chartbi.06e48153.js} +20 -20
- package/lib/{chartbi.ba6fe7fa.mjs → chartbi.cdd1e365.mjs} +12 -5
- package/lib/gd-initial.js +4 -4
- package/lib/gd-initial.mjs +508 -409
- package/lib/{main.cf1290f5.js → main.2415a49a.js} +1 -1
- package/lib/{main.cd0be45d.mjs → main.2cddfbbd.mjs} +3 -3
- package/lib/{main.543481f4.js → main.4c447fc3.js} +1 -1
- package/lib/{main.141f0215.mjs → main.86fe06d4.mjs} +3 -3
- package/lib/{main.7db485a4.mjs → main.b2d0a309.mjs} +3 -3
- package/lib/{main.30314690.js → main.d091d06d.js} +1 -1
- package/lib/{messages.2d31a14f.js → messages.2fff74f3.js} +1 -1
- package/lib/{messages.3363d67f.mjs → messages.d8abe18d.mjs} +1 -1
- package/lib/style.css +3 -3
- package/lib/{system.account.5ecb976a.js → system.account.8ea53681.js} +1 -1
- package/lib/{system.account.abd13073.mjs → system.account.9bc40d08.mjs} +2 -2
- package/lib/{system.config.c17d97d1.mjs → system.config.8223d495.mjs} +2 -2
- package/lib/{system.config.8b2c2452.js → system.config.c6e30213.js} +1 -1
- package/lib/{system.datasource.8afcb605.mjs → system.datasource.57233650.mjs} +2 -2
- package/lib/{system.datasource.bde1c190.js → system.datasource.fd6a4e76.js} +1 -1
- package/lib/{system.dict.41525bfb.mjs → system.dict.8f95218b.mjs} +9 -9
- package/lib/{system.dict.edd60192.js → system.dict.a24f33b0.js} +1 -1
- package/lib/{system.duplicatechecking.aa0b0f09.js → system.duplicatechecking.39293985.js} +1 -1
- package/lib/{system.duplicatechecking.0833c9b6.mjs → system.duplicatechecking.6b706948.mjs} +2 -2
- package/lib/{system.email.b5c2ca73.js → system.email.a2d9a307.js} +1 -1
- package/lib/{system.email.9436ae5a.mjs → system.email.dae988be.mjs} +2 -2
- package/lib/{system.fieldsecurity.e5714acf.mjs → system.fieldsecurity.02627a7a.mjs} +1 -1
- package/lib/{system.fieldsecurity.167c9243.js → system.fieldsecurity.a0cec24d.js} +1 -1
- package/lib/{system.file.9394e98a.mjs → system.file.0fa095a9.mjs} +2 -2
- package/lib/{system.file.1372dca9.js → system.file.d695ab37.js} +1 -1
- package/lib/{system.log.9d4eed4c.mjs → system.log.acb64505.mjs} +2 -2
- package/lib/{system.log.959eeaa7.js → system.log.c07ae5db.js} +1 -1
- package/lib/{system.machine.b41c8d9b.js → system.machine.7fa3e3d1.js} +1 -1
- package/lib/{system.machine.bcf7148f.mjs → system.machine.fc392d7f.mjs} +1 -1
- package/lib/{system.notice.40c505bb.mjs → system.notice.5ae50bd4.mjs} +3 -3
- package/lib/{system.notice.c4456add.js → system.notice.f18578ae.js} +1 -1
- package/lib/{system.noticereceived.003de2d0.mjs → system.noticereceived.1aa70b65.mjs} +3 -3
- package/lib/{system.noticereceived.45e2bc6c.js → system.noticereceived.bfa98a9b.js} +1 -1
- package/lib/{system.onlineuser.be89a865.js → system.onlineuser.1c428d05.js} +1 -1
- package/lib/{system.onlineuser.a0f94427.mjs → system.onlineuser.3d848a32.mjs} +2 -2
- package/lib/{system.org.01eab98f.js → system.org.5bb36f9c.js} +1 -1
- package/lib/{system.org.33de59c9.mjs → system.org.fcf96d1e.mjs} +2 -2
- package/lib/{system.permissions.9bcb9602.mjs → system.permissions.23f5b097.mjs} +3 -3
- package/lib/{system.permissions.a313d4a1.js → system.permissions.a1a9505c.js} +1 -1
- package/lib/{system.plugin.6b0e3fe5.js → system.plugin.b6de4673.js} +1 -1
- package/lib/{system.plugin.f119b583.mjs → system.plugin.e37f9dbc.mjs} +2 -2
- package/lib/{system.pos.2e6e2a5f.mjs → system.pos.1a01fc97.mjs} +2 -2
- package/lib/{system.pos.ec6ea8d0.js → system.pos.a4fb19b0.js} +1 -1
- package/lib/{system.promptmanagement.f47498f6.js → system.promptmanagement.290958b1.js} +1 -1
- package/lib/{system.promptmanagement.86052658.mjs → system.promptmanagement.36a65c51.mjs} +2 -2
- package/lib/{system.role.c812ad72.mjs → system.role.68de93ef.mjs} +5 -5
- package/lib/{system.role.ba18ffe0.js → system.role.88100f66.js} +1 -1
- package/lib/{system.sumberrules.09e3efaa.mjs → system.sumberrules.cdef9308.mjs} +2 -2
- package/lib/{system.sumberrules.3da249c2.js → system.sumberrules.dd6299e8.js} +1 -1
- package/lib/{system.team.62bd9cc2.js → system.team.53d64006.js} +1 -1
- package/lib/{system.team.c665e5a8.mjs → system.team.ee652fe4.mjs} +2 -2
- package/lib/{system.teammembers.376a248a.mjs → system.teammembers.26a2ba81.mjs} +3 -3
- package/lib/{system.teammembers.8273b71b.js → system.teammembers.4a3dc336.js} +1 -1
- package/lib/{system.timers.a98c5800.mjs → system.timers.4efa8a7d.mjs} +2 -2
- package/lib/{system.timers.0984adcd.js → system.timers.b9424204.js} +1 -1
- package/lib/{system.translation.f371225d.mjs → system.translation.0a9399b4.mjs} +3 -3
- package/lib/{system.translation.1e0c0eba.js → system.translation.21d2fd8b.js} +1 -1
- package/lib/{system.user.20f0e3fa.mjs → system.user.4fcfdf99.mjs} +5 -5
- package/lib/{system.user.8123edea.js → system.user.d48a08db.js} +1 -1
- package/lib/{system.useraffiliation.9dba06f7.js → system.useraffiliation.a59ce45b.js} +1 -1
- package/lib/{system.useraffiliation.7424aa9d.mjs → system.useraffiliation.fb002239.mjs} +3 -3
- package/lib/{system.webresource.3ce3eb71.js → system.webresource.3366cc29.js} +1 -1
- package/lib/{system.webresource.e270251b.mjs → system.webresource.4df01c92.mjs} +3 -3
- package/lib/{system.welcome.c2aaf120.mjs → system.welcome.120f4b50.mjs} +1 -1
- package/lib/{system.welcome.84bde03d.js → system.welcome.472f099b.js} +1 -1
- package/locale/en_US.js +13 -11
- package/locale/id_ID.js +13 -11
- package/locale/vi_VN.js +13 -11
- package/locale/zh_CN.js +13 -11
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./chartbi.78c30dce.js");function m(t){return window.axios({url:"/SysView/add",method:"post",data:t})}function g(t){return window.axios({url:"/SysView/List",method:"get",params:t})}function y(t){return window.axios({url:"/SysView/Edit",method:"post",data:t})}function p(t){return window.axios({url:"/SysView/Delete",method:"post",params:t})}function w(t){return window.axios({url:"/SysView/Details",method:"get",params:t})}function b(t){return window.axios({url:"/SysWebResource/GetList",method:"get",params:t})}function _(t){return window.axios({url:"/SysButton/List",method:"get",params:t})}function v(t){return window.axios({url:"/SysButton/Delete",method:"get",params:t})}function S(t){return window.axios({url:"/SysButton/add",method:"post",data:t})}function $(t){return window.axios({url:"/SysButton/Details",method:"get",params:t})}function C(t){return window.axios({url:"/SysButton/Edit",method:"post",data:t})}function R(t){return window.axios({url:"/sysForm/list",method:"get",params:t})}function x(t){return window.axios({url:"/sysForm/Add",method:"post",data:t})}function k(t){return window.axios({url:"/sysForm/Edit",method:"post",data:t})}function T(t){return window.axios({url:"/sysForm/Delete",method:"get",params:t})}function B(t){return window.axios({url:"/sysForm/Details",method:"get",params:t})}function K(t){return window.axios({url:"/develop/GetFindView",method:"get",params:t})}function N(t){return window.axios({url:"/develop/GetFindForm",method:"get",params:t})}function F(t){return window.axios({url:"/SysButton/Set",method:"post",data:t})}function L(t){return window.axios({url:"/sysRelationship/List",method:"get",params:t})}function D(t){return window.axios({url:"/sysRelationship/List2",method:"get",params:t})}function E(t){return window.axios({url:"/SysRelationship/Details",method:"get",params:t})}function z(t){return window.axios({url:"/sysRelationship/Edit",method:"post",data:t})}function I(t){return window.axios({url:"/SysEcharts/add",method:"post",data:t})}function P(t){return window.axios({url:"/SysEcharts/editEcharts",method:"post",data:t})}function O(t){return window.axios({url:"/SysEcharts/del",method:"get",params:t})}function V(t){return window.axios({url:"/SysEcharts/getEcharts",method:"post",data:t})}function G(t){return window.axios({url:"/SysEcharts/getPersonalEcharts",method:"post",data:t})}function q(t){return window.axios({url:"/SysEcharts/updatePersonalEcharts",method:"post",data:t})}function j(t){return window.axios({url:"/SysEcharts/delPersonalEcharts",method:"get",params:t})}function A(t){return window.axios({url:"/SysSavedQuery/add",method:"post",data:t})}function M(t){return window.axios({url:"/SysSavedQuery/edit",method:"post",data:t})}function Q(t){return window.axios({url:"/SysSavedQuery/delSavedQueries",method:"get",params:t})}function H(t){return window.axios({url:"/SysSavedQuery/getSavedQueries",method:"post",data:t})}function U(t){return window.axios({url:"/SysSavedQuery/setDefaultQuery",method:"get",params:t})}function W(t){return window.axios({url:"/FieldSecurityConfig/getFieldSecurityPermissions",method:"post",data:t})}function c(t){return window.axios({url:"/FieldSecurityConfig/getFieldSecurityMember",method:"post",data:t})}function J(t){return window.axios({url:"/FieldSecurityConfig/editFieldSecurityPermissions",method:"post",data:t})}function X(t){return window.axios({url:"/FieldSecurityConfig/page",method:"post",data:t})}function Y(t){return window.axios({url:"/FieldSecurityConfig/add",method:"post",data:t})}function Z(t){return window.axios({url:"/FieldSecurityConfig/edit",method:"post",data:t})}function ee(t){return window.axios({url:"/FieldSecurityConfig/del",method:"get",params:t})}function u(t){return window.axios({url:"/FieldSecurityMember/batchAdd",method:"post",data:t})}function f(t){return window.axios({url:"/FieldSecurityMember/del",method:"get",params:t})}function h(t){return window.axios({url:"/sysRole/page",method:"get",params:t})}function te(t){return window.axios({url:"/sysRole/v2/add",method:"post",data:t})}function se(t){return window.axios({url:"/sysRole/edit",method:"post",data:t})}function ie(t){return window.axios({url:"/sysRole/delete",method:"post",data:t})}function ne(t){return window.axios({url:"/sysRole/ownMenu",method:"get",params:t})}function oe(t){return window.axios({url:"/sysRole/grantMenu",method:"post",data:t})}function ae(t){return window.axios({url:"/role/ViewOnBtnList",method:"get",params:t})}function re(t){return window.axios({url:"/role/RoleBindViewOnBtn",method:"post",data:t})}function le(t){return window.axios({url:"/sysRole/copyRole",method:"post",data:t})}const de={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.fieldSecurity.name",prop:"name",label:"\u540D\u79F0",width:"240",type:"slot",slotType:"name",align:"left"},{transKey:"gd.fieldSecurity.createdTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"left"},{transKey:"gd.fieldSecurity.description",prop:"description",label:"\u8BF4\u660E",align:"left"}],formColumns:[{transKey:"gd.fieldSecurity.name",effectType:"input",prop:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.fieldSecurity.description",effectType:"textarea",prop:"description",label:"\u8BF4\u660E",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"fieldSecurity:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"fieldSecurity:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"fieldSecurity:del"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}]}}};const ce={props:{tableButtons:{type:Array,default:()=>{}},record:{type:Object,default:()=>({})},height:{type:Number,default:0}},data(){return{}},computed:{style(){return`max-height: calc(${this.height}px - 60px);`},...o.mapGetters(["tableSize"])},methods:{doEvent(t){this.$emit("functionName",t)}}};var ue=function(){var e=this,s=e._self._c;return s("div",{staticClass:"page-descriptions-item"},[s("div",{staticClass:"descriptionst"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1),s("div",{staticClass:"descriptionsb",style:e.style},[s("el-descriptions",{attrs:{column:1,size:e.tableSize,border:"",direction:"vertical"}},[s("el-descriptions-item",[s("template",{slot:"label"},[e._v(" "+e._s(e.$i18nt("gd.fieldSecurity.name","\u540D\u79F0"))+" ")]),e._v(" "+e._s(e.record.name)+" ")],2),s("el-descriptions-item",[s("template",{slot:"label"},[e._v(" "+e._s(e.$i18nt("gd.fieldSecurity.createdTime","\u521B\u5EFA\u65F6\u95F4"))+" ")]),e._v(" "+e._s(e.record.createdtime)+" ")],2),s("el-descriptions-item",[s("template",{slot:"label"},[e._v(" "+e._s(e.$i18nt("gd.fieldSecurity.description","\u8BF4\u660E"))+" ")]),e._v(" "+e._s(e.record.description?e.record.description:"--")+" ")],2)],1)],1)])},fe=[],he=o.normalizeComponent(ce,ue,fe,!1,null,"1fa4c435",null,null);const me=he.exports,ge={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.field.describe",prop:"name",label:"\u63CF\u8FF0",width:"200",type:"slot",slotType:"name",align:"left"},{transKey:"gd.field.field",prop:"syscodegenconfigid",width:"180",label:"\u5B57\u6BB5\u540D",align:"left",type:"slot",slotType:"syscodegenconfigid",showOverflowTooltip:!0},{transKey:"gd.field.effectType",prop:"effecttype",width:"140",type:"slot",slotType:"effecttype",label:"\u7C7B\u578B",align:"left"},{transKey:"gd.fieldSecurity.table",prop:"syscodegenid",width:"180",type:"slot",slotType:"syscodegenid",label:"\u8868",align:"left"},{transKey:"gd.fieldSecurity.read",prop:"isquery",width:"90",type:"slot",slotType:"isquery",label:"\u8BFB\u53D6",align:"center",fixed:"right"},{transKey:"gd.fieldSecurity.update",prop:"isedit",width:"90",type:"slot",slotType:"isedit",label:"\u66F4\u65B0",align:"center",fixed:"right"},{transKey:"gd.fieldSecurity.create",prop:"isadd",width:"90",type:"slot",slotType:"isadd",label:"\u521B\u5EFA",align:"center",fixed:"right"}],tableButtons:[{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"fieldSecurity:dispose"}]}}};const ye={name:"GdDataAssign",props:{id:{type:[String,Number],default:0}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"600px",ruleFormData:{ownerId:""}}},computed:{message(){return`${this.$i18nt("gd.fieldSecurity.editFieldTip","\u66F4\u6539\u9009\u5B9A\u5B57\u6BB5\u7684\u6743\u9650\u3002")}`},...o.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.confirmLoading=!0,J(Object.assign(this.record,{sysfieldsecurityconfigid:this.id})).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message),this.confirmLoading=!1})},open(t){this.record=Object.assign({...t},{isquery:String(t.isquery),isedit:String(t.isedit),isadd:String(t.isadd)}),this.visible=!0},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},getDictionary(t){return this.$options.filters.dictData(t)},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var pe=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:{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","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.fieldSecurity.editField","\u7F16\u8F91\u5B57\u6BB5\u5B89\u5168\u6027"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("el-alert",{attrs:{title:e.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),type:"warning",description:e.message,"show-icon":"",closable:!1}}),s("div",{staticClass:"cofig"},[s("div",{staticClass:"l"},[s("div",{staticClass:"title"},[e._v(e._s(e.$i18nt("gd.fieldSecurity.allowReading","\u5141\u8BB8\u8BFB\u53D6")))]),s("div",[e._v(e._s(e.$i18nt("gd.fieldSecurity.allowReadingTip","\u7528\u6237\u53EF\u4EE5\u67E5\u770B\u6B64\u5B57\u6BB5")))])]),s("div",{staticClass:"r"},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.record.isquery,callback:function(i){e.$set(e.record,"isquery",i)},expression:"record.isquery"}},[e._l(e.getDictionary("yes_or_no"),function(i){return[s("el-option",{attrs:{value:i.code,label:e.$i18nt(i.transKey,i.name)}})]})],2)],1)]),s("el-divider"),s("div",{staticClass:"cofig"},[s("div",{staticClass:"l"},[s("div",{staticClass:"title"},[e._v(e._s(e.$i18nt("gd.fieldSecurity.allowUpdate","\u5141\u8BB8\u66F4\u65B0")))]),s("div",[e._v(e._s(e.$i18nt("gd.fieldSecurity.allowUpdateTip","\u7528\u6237\u53EF\u4EE5\u66F4\u6539\u6B64\u5B57\u6BB5\u4E2D\u7684\u4FE1\u606F")))])]),s("div",{staticClass:"r"},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.record.isedit,callback:function(i){e.$set(e.record,"isedit",i)},expression:"record.isedit"}},[e._l(e.getDictionary("yes_or_no"),function(i){return[s("el-option",{attrs:{value:i.code,label:e.$i18nt(i.transKey,i.name)}})]})],2)],1)]),s("el-divider"),s("div",{staticClass:"cofig"},[s("div",{staticClass:"l"},[s("div",{staticClass:"title"},[e._v(e._s(e.$i18nt("gd.fieldSecurity.allowCreate","\u5141\u8BB8\u521B\u5EFA")))]),s("div",[e._v(e._s(e.$i18nt("gd.fieldSecurity.allowCreateTip","\u7528\u6237\u53EF\u4EE5\u5728\u521B\u5EFA\u8BB0\u5F55\u65F6\u5411\u6B64\u5B57\u6BB5\u4E2D\u6DFB\u52A0\u4FE1\u606F")))])]),s("div",{staticClass:"r"},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.record.isadd,callback:function(i){e.$set(e.record,"isadd",i)},expression:"record.isadd"}},[e._l(e.getDictionary("yes_or_no"),function(i){return[s("el-option",{attrs:{value:i.code,label:e.$i18nt(i.transKey,i.name)}})]})],2)],1)])],1)],2)],1)},we=[],be=o.normalizeComponent(ye,pe,we,!1,null,"f8a4f4a0",null,null);const _e=be.exports;const ve={props:{height:{type:Number,default:100},record:{type:Object,default:()=>({})}},mixins:[ge],components:{EditForm:_e},data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:t=>this.record.id===void 0?new Promise((e,s)=>{e({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):W(Object.assign(t,this.queryParam,{sysFieldSecurityConfigId:this.record.id})).then(e=>e.data)}},computed:{...o.mapGetters(["tablePageSize","tableSize","screenHeight","tableLists"])},methods:{edit(){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.editForm(this.selectedRows[0])},editForm(t){this.$refs.editForm.open(t)},refresh(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var Se=function(){var e=this,s=e._self._c;return s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"260px"}},[s("el-select",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.fieldSecurity.table","\u8868"),"reserve-keyword":"",filterable:"",remote:"",clearable:""},model:{value:e.queryParam.sysCodeGenId,callback:function(i){e.$set(e.queryParam,"sysCodeGenId",i)},expression:"queryParam.sysCodeGenId"}},e._l(e.tableLists,function(i){return s("el-option",{key:i.id,attrs:{label:e.$i18nt(`Dynamics.${i.transKey}`,i.busname),value:i.id}},[s("span",[e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.busname))+" "+e._s(i.tablename))])])}),1),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:"name",fn:function({column:i,row:n}){return[n.syscodegenconfig?s("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:function(a){return e.editForm(n)}}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.syscodegenconfig.transKey}`,n.syscodegenconfig.columncomment))+" ")]):e._e()]}},{key:"syscodegenconfigid",fn:function({column:i,row:n}){return[n.syscodegenconfig?s("span",[e._v(" "+e._s(n.syscodegenconfig.columnname)+" ")]):e._e()]}},{key:"effecttype",fn:function({column:i,row:n}){return[n.syscodegenconfig?s("span",[e._v(" "+e._s(e._f("dictType")("code_gen_effect_type",n.syscodegenconfig.effecttype))+" ")]):e._e()]}},{key:"syscodegenid",fn:function({column:i,row:n}){return[n.syscodegen?s("span",[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.syscodegen.transkey}`,n.syscodegen.busname))+" ")]):e._e()]}},{key:"isquery",fn:function({column:i,row:n}){return[n.isquery===1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})]}},{key:"isedit",fn:function({column:i,row:n}){return[n.isedit===1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})]}},{key:"isadd",fn:function({column:i,row:n}){return[n.isadd===1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})]}}])}),s("EditForm",{ref:"editForm",attrs:{ok:"refresh",id:e.record.id},on:{ok:e.refresh}})],1)},$e=[],Ce=o.normalizeComponent(ve,Se,$e,!1,null,"faee3814",null,null);const Re=Ce.exports,xe={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.roleType",prop:"roletype",label:"\u89D2\u8272\u7C7B\u578B",align:"left",type:"slot",slotType:"roletype",showOverflowTooltip:!0},{transKey:"gd.user.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",type:"slot",slotType:"code",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",label:"\u6392\u5E8F",align:"left",type:"slot",slotType:"sort",showOverflowTooltip:!0}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"fieldSecurity:memberadd"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"fieldSecurity:memberdel"}]}}};const ke={props:{record:{type:Object,default:()=>({})},columns:{type:Array,default:()=>[]},disabledRowId:{type:Array,default:()=>[]}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],selectedRowKeys:[],selectedRows:[],visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",queryParam:{},loadData:t=>h(Object.assign(t,this.queryParam,{sysAppsId:window.$systemInfo.id})).then(e=>(this.changeData(e.data),e.data)),dataList:[]}},computed:{height(){return this.screenHeight-(this.fullscreen?160:320)},...o.mapGetters(["screenHeight","tablePageSize","tableSize"])},methods:{changeData(t){let e=[];this.dataList.forEach(i=>{e.push(i.id)});const s=t.rows.filter(i=>!e.includes(i.id));this.dataList=this.dataList.concat(s)},handleSubmit(t){let e=[];this.dataList.filter(i=>this.selectedRowKeys.includes(i.id)).forEach(i=>{e.push({sysFieldSecurityConfigId:this.record.id,member_AboutId:i.id,member_AboutTable:"sys_role"})});let s={data:this.selectedRowKeys,fkData:e};e.length===0?this.closed():this.$emit("lookupSeled",s)},open(t){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{this.refresh()},0)})},closed(){this.fullscreen=!1,this.visible=!1,this.onSelectChange([],[])},toggleFullscreen(){this.fullscreen=!this.fullscreen},refresh(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var Te=function(){var e=this,s=e._self._c;return s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{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","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.menu.advancedFind","\u67E5\u627E"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.columns,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1,selectedKeep:!0,disabledRowId:e.disabledRowId},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){},proxy:!0},{key:"name",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.name)+" ")]}},{key:"code",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.code)+" ")]}},{key:"sort",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.sort)+" ")]}},{key:"roleType",fn:function({column:i,row:n}){return[e._v(" "+e._s(e._f("dictType")("role_type",n.roleType))+" ")]}}],null,!1,3083467277)}):e._e()],1)],2)},Be=[],Ke=o.normalizeComponent(ke,Te,Be,!1,null,"a2bced86",null,null);const Ne=Ke.exports;const Fe={props:{height:{type:Number,default:100},record:{type:Object,default:()=>({})}},mixins:[xe],data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{sysCodeGenName:"sys_role"},disabledRowId:[],loadData:t=>this.record.id===void 0?new Promise((e,s)=>{e({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):c(Object.assign(t,this.queryParam,{sysFieldSecurityConfigId:this.record.id})).then(e=>(this.getRowId(e.data),e.data))}},components:{RoleSearch:Ne},computed:{...o.mapGetters(["tablePageSize","tableSize","screenHeight"])},methods:{getRowId(t){let e=[];t.rows.filter(s=>!this.disabledRowId.includes(s.sysrole.id)).forEach(s=>{e.push(s.sysrole.id)}),this.disabledRowId=this.disabledRowId.concat(e)},lookupSeled(t){this.$refs.roleSearch.confirmLoading=!0,u(t.fkData).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.roleSearch.closed(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message),this.$refs.roleSearch.confirmLoading=!1})},add(){this.$refs.roleSearch.open()},del(){let t=this;if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\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:(e,s,i)=>{if(e!=="confirm"){i();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,f({ids:t.selectedRowKeys.join(",")}).then(n=>{n.success?(t.$message.success(t.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),t.disabledRowId=t.disabledRowId.filter(a=>!t.selectedRows.filter(l=>l.sysrole.id===a)[0]),t.refresh(),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i()):t.$message.error(t.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n.message)})}})},refresh(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var Le=function(){var e=this,s=e._self._c;return s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(n.sysrole?n.sysrole.name:"")+" ")])]}},{key:"code",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.sysrole?n.sysrole.code:"")+" ")]}},{key:"sort",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.sysrole?n.sysrole.sort:"")+" ")]}},{key:"roletype",fn:function({column:i,row:n}){return[n.sysrole?s("span",[e._v(e._s(e._f("dictType")("role_type",n.sysrole.roletype)))]):e._e()]}}])}),s("RoleSearch",{ref:"roleSearch",attrs:{record:e.record,columns:e.tableColumns,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)},De=[],Ee=o.normalizeComponent(Fe,Le,De,!1,null,"067995ba",null,null);const ze=Ee.exports,Ie={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.fieldSecurity.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.teamType",prop:"teamType",label:"\u56E2\u961F\u7C7B\u578B",align:"left",type:"slot",slotType:"teamType",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.description",prop:"description",label:"\u8BF4\u660E",type:"slot",slotType:"description",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"fieldSecurity:memberadd"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"fieldSecurity:memberdel"}]}}};const Pe={props:{height:{type:Number,default:100},record:{type:Object,default:()=>({})}},mixins:[Ie],data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],disabledRowId:[],queryParam:{sysCodeGenName:"sys_team"},loadData:t=>this.record.id===void 0?new Promise((e,s)=>{e({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):c(Object.assign(t,this.queryParam,{sysFieldSecurityConfigId:this.record.id})).then(e=>(this.getRowId(e.data),e.data))}},computed:{...o.mapGetters(["tablePageSize","tableSize","screenHeight"])},methods:{getRowId(t){let e=[];t.rows.filter(s=>!this.disabledRowId.includes(s.systeam.id)).forEach(s=>{e.push(s.systeam.id)}),this.disabledRowId=this.disabledRowId.concat(e)},lookupSeled(t){if(t.fkData.length===0){this.$refs.engineSearch.closed();return}let e=[];t.fkData.forEach(s=>{e.push({sysFieldSecurityConfigId:this.record.id,member_AboutId:s.id,member_AboutTable:s.tableName})}),this.$refs.engineSearch.confirmLoading=!0,u(e).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.engineSearch.closed(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+s.message),this.$refs.engineSearch.confirmLoading=!1})},add(){this.$refs.engineSearch.open({fkEntityName:this.queryParam.sysCodeGenName,val:[],effectType:"participants",isRelevance:!0})},del(){let t=this;if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\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:(e,s,i)=>{if(e!=="confirm"){i();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,f({ids:t.selectedRowKeys.join(",")}).then(n=>{n.success?(t.$message.success(t.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),t.disabledRowId=t.disabledRowId.filter(a=>!t.selectedRows.filter(l=>l.systeam.id===a)[0]),t.refresh(),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i()):t.$message.error(t.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n.message)})}})},refresh(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var Oe=function(){var e=this,s=e._self._c;return s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(n.systeam?n.systeam.name:"")+" ")])]}},{key:"teamType",fn:function({column:i,row:n}){return[n.systeam?s("span",[e._v(" "+e._s(e._f("dictType")("TeamType",n.systeam.teamtype))+" ")]):e._e()]}},{key:"description",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.systeam?n.systeam.description:"")+" ")]}}])}),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)},Ve=[],Ge=o.normalizeComponent(Pe,Oe,Ve,!1,null,"04a23570",null,null);const qe=Ge.exports,je={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.nickname",prop:"nickname",label:"\u6635\u79F0",align:"left",type:"slot",slotType:"nickname",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"sex",label:"\u6027\u522B",align:"left",type:"slot",slotType:"sex",showOverflowTooltip:!0},{transKey:"gd.user.organization",prop:"orgname",label:"\u6240\u5C5E\u673A\u6784",align:"left",type:"slot",slotType:"orgname",showOverflowTooltip:!0},{transKey:"gd.user.status",prop:"status",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status",showOverflowTooltip:!0}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"fieldSecurity:memberadd"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"fieldSecurity:memberdel"}]}}};const Ae={props:{height:{type:Number,default:100},record:{type:Object,default:()=>({})}},mixins:[je],data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{sysCodeGenName:"sys_user"},disabledRowId:[],loadData:t=>this.record.id===void 0?new Promise((e,s)=>{e({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):c(Object.assign(t,this.queryParam,{sysFieldSecurityConfigId:this.record.id})).then(e=>(this.getRowId(e.data),e.data))}},computed:{...o.mapGetters(["tablePageSize","tableSize","screenHeight"])},methods:{getRowId(t){let e=[];t.rows.filter(s=>!this.disabledRowId.includes(s.sysuser.id)).forEach(s=>{e.push(s.sysuser.id)}),this.disabledRowId=this.disabledRowId.concat(e)},lookupSeled(t){if(t.fkData.length===0){this.$refs.engineSearch.closed();return}let e=[];t.fkData.forEach(s=>{e.push({sysFieldSecurityConfigId:this.record.id,member_AboutId:s.id,member_AboutTable:s.tableName})}),this.$refs.engineSearch.confirmLoading=!0,u(e).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.engineSearch.closed(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+s.message),this.$refs.engineSearch.confirmLoading=!1})},add(){this.$refs.engineSearch.open({fkEntityName:this.queryParam.sysCodeGenName,val:[],effectType:"participants",isRelevance:!0})},del(){let t=this;if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\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:(e,s,i)=>{if(e!=="confirm"){i();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,f({ids:t.selectedRowKeys.join(",")}).then(n=>{n.success?(t.$message.success(t.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),t.disabledRowId=t.disabledRowId.filter(a=>!t.selectedRows.filter(l=>l.sysuser.id===a)[0]),t.refresh(),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i()):t.$message.error(t.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n.message)})}})},refresh(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var Me=function(){var e=this,s=e._self._c;return s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(n.sysuser?n.sysuser.name:"")+" ")])]}},{key:"nickname",fn:function({column:i,row:n}){return[s("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(n.sysuser?n.sysuser.nickname:"")+" ")])]}},{key:"orgname",fn:function({column:i,row:n}){return[s("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(n.sysuser?n.sysuser.orgname:"")+" ")])]}},{key:"sex",fn:function({column:i,row:n}){return[n.sysuser?s("span",[e._v(" "+e._s(e._f("dictType")("gender",n.sysuser.gender))+" ")]):e._e()]}},{key:"status",fn:function({column:i,row:n}){return[n.sysuser?s("span",[e._v(" "+e._s(e._f("dictType")("state_code",n.sysuser.statecodes))+" ")]):e._e()]}}])}),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)},Qe=[],He=o.normalizeComponent(Ae,Me,Qe,!1,null,"bff3a640",null,null);const Ue=He.exports;const We={props:{height:{type:Number,default:0}},components:{FieldDescriptions:me,FieldConfig:Re,RoleConfig:ze,TeamConfig:qe,UserConfig:Ue},data(){return{tableButtons:[{displayName:"\u8FD4\u56DE",functionName:"back",show:!0,transKey:"gd.btn.back",icon:"el-icon-arrow-left"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTableField:edit"}],activeName:"field",record:{},loading:!1,formLoading:!1}},computed:{getHeight(){return this.height-56},stylep(){return""}},methods:{tabChange(t){this.$nextTick(()=>{setTimeout(()=>{this.$refs[this.activeName+"Config"].refresh()},0)})},init(t){this.activeName="field",this.record=t,this.$nextTick(()=>{setTimeout(()=>{this.$refs[this.activeName+"Config"].refresh()},0)})},functionName(t){t.item.functionName==="back"&&(this.activeName=""),this.$emit("functionName",t)}}};var Je=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view",staticStyle:{position:"absolute",top:"0","z-index":"8",left:"0",right:"0",bottom:"0",background:"#fff"},style:e.stylep},[s("div",{staticStyle:{display:"flex",background:"#f5f5f5"}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"page-view-descriptions",attrs:{"element-loading-spinner":"el-icon-loading active-color"}},[s("FieldDescriptions",{attrs:{record:e.record,tableButtons:e.tableButtons,height:e.height},on:{functionName:e.functionName}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],staticClass:"page-view-list",attrs:{"element-loading-spinner":"el-icon-loading"}},[s("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.tabChange},model:{value:e.activeName,callback:function(i){e.activeName=i},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:e.$i18nt("gd.fieldSecurity.field","\u5B57\u6BB5\u6743\u9650"),name:"field",lazy:!0}},[e.activeName==="field"?s("FieldConfig",{ref:"fieldConfig",attrs:{height:e.getHeight,record:e.record}}):e._e()],1),s("el-tab-pane",{attrs:{label:e.$i18nt("gd.fieldSecurity.team","\u56E2\u961F"),name:"team",lazy:!0}},[e.activeName==="team"?s("TeamConfig",{ref:"teamConfig",attrs:{height:e.getHeight,record:e.record}}):e._e()],1),s("el-tab-pane",{attrs:{label:e.$i18nt("gd.fieldSecurity.user","\u7528\u6237"),name:"user",lazy:!0}},[e.activeName==="user"?s("UserConfig",{ref:"userConfig",attrs:{height:e.getHeight,record:e.record}}):e._e()],1),s("el-tab-pane",{attrs:{label:e.$i18nt("gd.fieldSecurity.role","\u89D2\u8272"),name:"role",lazy:!0}},[e.activeName==="role"?s("RoleConfig",{ref:"roleConfig",attrs:{height:e.getHeight,record:e.record}}):e._e()],1)],1)],1)])])},Xe=[],Ye=o.normalizeComponent(We,Je,Xe,!1,null,"5ca5605b",null,null);const Ze=Ye.exports;const et={name:"GdFieldSecurity",props:{height:{type:Number,default:0}},mixins:[de],data(){return{transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:t=>X(Object.assign(t,this.queryParam)).then(e=>e.data),selItemData:{},openManage:!1}},computed:{getFormColumns(){return this.formColumns},styled(){return this.openManage?"z-index:7;padding: 0px 0px 0px 0px;":"padding: 0px 0px 0px 0px;"},getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},components:{ListConfig:Ze},methods:{del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\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}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,ee({ids:this.selectedRowKeys.join(",")}).then(i=>{s(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,i.success?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+i.message),this.handleOk()})},editForm(t){this.openManage=!0,this.selItemData=t,this.$nextTick(()=>{setTimeout(()=>{this.$refs.listConfig.init(t)},0)})},add(){this.selItemData={},this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(t){if(t){this.selItemData=t,this.transKey="gd.btn.edit",this.$refs.editForm.open(t);return}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.selItemData=this.selectedRows[0],this.transKey="gd.btn.edit",this.$refs.editForm.open(this.selectedRows[0])},sbumit({data:t,record:e,btn:s},i,n){this.formLoading=!0,(e?Z:Y)(t).then(r=>{r.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),n(),Object.assign(this.selItemData,t),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r.message),this.formLoading=!1})},handleOk(){this.$refs.table.refresh(),this.openManage&&this.$refs.listConfig.init(this.selItemData)},refresh(){this.$refs.table.refresh()},back(){this.openManage=!1},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},functionNameFk(t){let e=t.item.functionName;this[e]&&this[e](this.selItemData)}}};var tt=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",style:e.styled},[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:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})]},proxy:!0},{key:"name",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""},on:{click:e.editForm}})]}}])})],1),s("ListConfig",{ref:"listConfig",attrs:{height:e.height},on:{functionName:e.functionNameFk}}),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,inline:!1,width:"700px"},on:{sbumit:e.sbumit}})],1)},st=[],it=o.normalizeComponent(et,tt,st,!1,null,"beb59471",null,null);const d=it.exports;d.install=function(t){t.component(d.name,d)};exports.GDpackage=d;exports.codeGenerateForm=N;exports.codeGenerateView=K;exports.getRolePage=h;exports.sysButtonAdd=S;exports.sysButtonDelete=v;exports.sysButtonDetails=$;exports.sysButtonEdit=C;exports.sysButtonList=_;exports.sysButtonSet=F;exports.sysEchartsAdd=I;exports.sysEchartsDel=O;exports.sysEchartsEdit=P;exports.sysEchartsPage=V;exports.sysEchartsPersonalDel=j;exports.sysEchartsPersonalEdit=q;exports.sysEchartsPersonalPage=G;exports.sysFormAdd=x;exports.sysFormDelete=T;exports.sysFormDetails=B;exports.sysFormEdit=k;exports.sysFormList=R;exports.sysRelationshipDetails=E;exports.sysRelationshipEdit=z;exports.sysRelationshipList=L;exports.sysRelationshipList2=D;exports.sysRoleAddV2=te;exports.sysRoleCopyRole=le;exports.sysRoleDelete=ie;exports.sysRoleEdit=se;exports.sysRoleGrantMenu=oe;exports.sysRoleOwnMenu=ne;exports.sysRoleRoleBindViewOnBtn=re;exports.sysRoleViewOnBtnList=ae;exports.sysSavedQueryAdd=A;exports.sysSavedQueryDefault=U;exports.sysSavedQueryDelQueries=Q;exports.sysSavedQueryEdit=M;exports.sysSavedQueryPage=H;exports.sysViewAdd=m;exports.sysViewDelete=p;exports.sysViewDetails=w;exports.sysViewEdit=y;exports.sysViewList=g;exports.sysWebResourceGetList=b;
|
|
1
|
+
"use strict";const o=require("./chartbi.06e48153.js");function m(t){return window.axios({url:"/SysView/add",method:"post",data:t})}function g(t){return window.axios({url:"/SysView/List",method:"get",params:t})}function y(t){return window.axios({url:"/SysView/Edit",method:"post",data:t})}function p(t){return window.axios({url:"/SysView/Delete",method:"post",params:t})}function w(t){return window.axios({url:"/SysView/Details",method:"get",params:t})}function b(t){return window.axios({url:"/SysWebResource/GetList",method:"get",params:t})}function _(t){return window.axios({url:"/SysButton/List",method:"get",params:t})}function v(t){return window.axios({url:"/SysButton/Delete",method:"get",params:t})}function S(t){return window.axios({url:"/SysButton/add",method:"post",data:t})}function $(t){return window.axios({url:"/SysButton/Details",method:"get",params:t})}function C(t){return window.axios({url:"/SysButton/Edit",method:"post",data:t})}function R(t){return window.axios({url:"/sysForm/list",method:"get",params:t})}function x(t){return window.axios({url:"/sysForm/Add",method:"post",data:t})}function k(t){return window.axios({url:"/sysForm/Edit",method:"post",data:t})}function T(t){return window.axios({url:"/sysForm/Delete",method:"get",params:t})}function B(t){return window.axios({url:"/sysForm/Details",method:"get",params:t})}function K(t){return window.axios({url:"/develop/GetFindView",method:"get",params:t})}function N(t){return window.axios({url:"/develop/GetFindForm",method:"get",params:t})}function F(t){return window.axios({url:"/SysButton/Set",method:"post",data:t})}function L(t){return window.axios({url:"/sysRelationship/List",method:"get",params:t})}function D(t){return window.axios({url:"/sysRelationship/List2",method:"get",params:t})}function E(t){return window.axios({url:"/SysRelationship/Details",method:"get",params:t})}function z(t){return window.axios({url:"/sysRelationship/Edit",method:"post",data:t})}function I(t){return window.axios({url:"/SysEcharts/add",method:"post",data:t})}function P(t){return window.axios({url:"/SysEcharts/editEcharts",method:"post",data:t})}function O(t){return window.axios({url:"/SysEcharts/del",method:"get",params:t})}function V(t){return window.axios({url:"/SysEcharts/getEcharts",method:"post",data:t})}function G(t){return window.axios({url:"/SysEcharts/getPersonalEcharts",method:"post",data:t})}function q(t){return window.axios({url:"/SysEcharts/updatePersonalEcharts",method:"post",data:t})}function j(t){return window.axios({url:"/SysEcharts/delPersonalEcharts",method:"get",params:t})}function A(t){return window.axios({url:"/SysSavedQuery/add",method:"post",data:t})}function M(t){return window.axios({url:"/SysSavedQuery/edit",method:"post",data:t})}function Q(t){return window.axios({url:"/SysSavedQuery/delSavedQueries",method:"get",params:t})}function H(t){return window.axios({url:"/SysSavedQuery/getSavedQueries",method:"post",data:t})}function U(t){return window.axios({url:"/SysSavedQuery/setDefaultQuery",method:"get",params:t})}function W(t){return window.axios({url:"/FieldSecurityConfig/getFieldSecurityPermissions",method:"post",data:t})}function c(t){return window.axios({url:"/FieldSecurityConfig/getFieldSecurityMember",method:"post",data:t})}function J(t){return window.axios({url:"/FieldSecurityConfig/editFieldSecurityPermissions",method:"post",data:t})}function X(t){return window.axios({url:"/FieldSecurityConfig/page",method:"post",data:t})}function Y(t){return window.axios({url:"/FieldSecurityConfig/add",method:"post",data:t})}function Z(t){return window.axios({url:"/FieldSecurityConfig/edit",method:"post",data:t})}function ee(t){return window.axios({url:"/FieldSecurityConfig/del",method:"get",params:t})}function u(t){return window.axios({url:"/FieldSecurityMember/batchAdd",method:"post",data:t})}function f(t){return window.axios({url:"/FieldSecurityMember/del",method:"get",params:t})}function h(t){return window.axios({url:"/sysRole/page",method:"get",params:t})}function te(t){return window.axios({url:"/sysRole/v2/add",method:"post",data:t})}function se(t){return window.axios({url:"/sysRole/edit",method:"post",data:t})}function ie(t){return window.axios({url:"/sysRole/delete",method:"post",data:t})}function ne(t){return window.axios({url:"/sysRole/ownMenu",method:"get",params:t})}function oe(t){return window.axios({url:"/sysRole/grantMenu",method:"post",data:t})}function ae(t){return window.axios({url:"/role/ViewOnBtnList",method:"get",params:t})}function re(t){return window.axios({url:"/role/RoleBindViewOnBtn",method:"post",data:t})}function le(t){return window.axios({url:"/sysRole/copyRole",method:"post",data:t})}const de={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.fieldSecurity.name",prop:"name",label:"\u540D\u79F0",width:"240",type:"slot",slotType:"name",align:"left"},{transKey:"gd.fieldSecurity.createdTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"left"},{transKey:"gd.fieldSecurity.description",prop:"description",label:"\u8BF4\u660E",align:"left"}],formColumns:[{transKey:"gd.fieldSecurity.name",effectType:"input",prop:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.fieldSecurity.description",effectType:"textarea",prop:"description",label:"\u8BF4\u660E",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"fieldSecurity:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"fieldSecurity:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"fieldSecurity:del"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}]}}};const ce={props:{tableButtons:{type:Array,default:()=>{}},record:{type:Object,default:()=>({})},height:{type:Number,default:0}},data(){return{}},computed:{style(){return`max-height: calc(${this.height}px - 60px);`},...o.mapGetters(["tableSize"])},methods:{doEvent(t){this.$emit("functionName",t)}}};var ue=function(){var e=this,s=e._self._c;return s("div",{staticClass:"page-descriptions-item"},[s("div",{staticClass:"descriptionst"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1),s("div",{staticClass:"descriptionsb",style:e.style},[s("el-descriptions",{attrs:{column:1,size:e.tableSize,border:"",direction:"vertical"}},[s("el-descriptions-item",[s("template",{slot:"label"},[e._v(" "+e._s(e.$i18nt("gd.fieldSecurity.name","\u540D\u79F0"))+" ")]),e._v(" "+e._s(e.record.name)+" ")],2),s("el-descriptions-item",[s("template",{slot:"label"},[e._v(" "+e._s(e.$i18nt("gd.fieldSecurity.createdTime","\u521B\u5EFA\u65F6\u95F4"))+" ")]),e._v(" "+e._s(e.record.createdtime)+" ")],2),s("el-descriptions-item",[s("template",{slot:"label"},[e._v(" "+e._s(e.$i18nt("gd.fieldSecurity.description","\u8BF4\u660E"))+" ")]),e._v(" "+e._s(e.record.description?e.record.description:"--")+" ")],2)],1)],1)])},fe=[],he=o.normalizeComponent(ce,ue,fe,!1,null,"1fa4c435",null,null);const me=he.exports,ge={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.field.describe",prop:"name",label:"\u63CF\u8FF0",width:"200",type:"slot",slotType:"name",align:"left"},{transKey:"gd.field.field",prop:"syscodegenconfigid",width:"180",label:"\u5B57\u6BB5\u540D",align:"left",type:"slot",slotType:"syscodegenconfigid",showOverflowTooltip:!0},{transKey:"gd.field.effectType",prop:"effecttype",width:"140",type:"slot",slotType:"effecttype",label:"\u7C7B\u578B",align:"left"},{transKey:"gd.fieldSecurity.table",prop:"syscodegenid",width:"180",type:"slot",slotType:"syscodegenid",label:"\u8868",align:"left"},{transKey:"gd.fieldSecurity.read",prop:"isquery",width:"90",type:"slot",slotType:"isquery",label:"\u8BFB\u53D6",align:"center",fixed:"right"},{transKey:"gd.fieldSecurity.update",prop:"isedit",width:"90",type:"slot",slotType:"isedit",label:"\u66F4\u65B0",align:"center",fixed:"right"},{transKey:"gd.fieldSecurity.create",prop:"isadd",width:"90",type:"slot",slotType:"isadd",label:"\u521B\u5EFA",align:"center",fixed:"right"}],tableButtons:[{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"fieldSecurity:dispose"}]}}};const ye={name:"GdDataAssign",props:{id:{type:[String,Number],default:0}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"600px",ruleFormData:{ownerId:""}}},computed:{message(){return`${this.$i18nt("gd.fieldSecurity.editFieldTip","\u66F4\u6539\u9009\u5B9A\u5B57\u6BB5\u7684\u6743\u9650\u3002")}`},...o.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.confirmLoading=!0,J(Object.assign(this.record,{sysfieldsecurityconfigid:this.id})).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message),this.confirmLoading=!1})},open(t){this.record=Object.assign({...t},{isquery:String(t.isquery),isedit:String(t.isedit),isadd:String(t.isadd)}),this.visible=!0},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},getDictionary(t){return this.$options.filters.dictData(t)},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var pe=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:{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","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.fieldSecurity.editField","\u7F16\u8F91\u5B57\u6BB5\u5B89\u5168\u6027"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("el-alert",{attrs:{title:e.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),type:"warning",description:e.message,"show-icon":"",closable:!1}}),s("div",{staticClass:"cofig"},[s("div",{staticClass:"l"},[s("div",{staticClass:"title"},[e._v(e._s(e.$i18nt("gd.fieldSecurity.allowReading","\u5141\u8BB8\u8BFB\u53D6")))]),s("div",[e._v(e._s(e.$i18nt("gd.fieldSecurity.allowReadingTip","\u7528\u6237\u53EF\u4EE5\u67E5\u770B\u6B64\u5B57\u6BB5")))])]),s("div",{staticClass:"r"},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.record.isquery,callback:function(i){e.$set(e.record,"isquery",i)},expression:"record.isquery"}},[e._l(e.getDictionary("yes_or_no"),function(i){return[s("el-option",{attrs:{value:i.code,label:e.$i18nt(i.transKey,i.name)}})]})],2)],1)]),s("el-divider"),s("div",{staticClass:"cofig"},[s("div",{staticClass:"l"},[s("div",{staticClass:"title"},[e._v(e._s(e.$i18nt("gd.fieldSecurity.allowUpdate","\u5141\u8BB8\u66F4\u65B0")))]),s("div",[e._v(e._s(e.$i18nt("gd.fieldSecurity.allowUpdateTip","\u7528\u6237\u53EF\u4EE5\u66F4\u6539\u6B64\u5B57\u6BB5\u4E2D\u7684\u4FE1\u606F")))])]),s("div",{staticClass:"r"},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.record.isedit,callback:function(i){e.$set(e.record,"isedit",i)},expression:"record.isedit"}},[e._l(e.getDictionary("yes_or_no"),function(i){return[s("el-option",{attrs:{value:i.code,label:e.$i18nt(i.transKey,i.name)}})]})],2)],1)]),s("el-divider"),s("div",{staticClass:"cofig"},[s("div",{staticClass:"l"},[s("div",{staticClass:"title"},[e._v(e._s(e.$i18nt("gd.fieldSecurity.allowCreate","\u5141\u8BB8\u521B\u5EFA")))]),s("div",[e._v(e._s(e.$i18nt("gd.fieldSecurity.allowCreateTip","\u7528\u6237\u53EF\u4EE5\u5728\u521B\u5EFA\u8BB0\u5F55\u65F6\u5411\u6B64\u5B57\u6BB5\u4E2D\u6DFB\u52A0\u4FE1\u606F")))])]),s("div",{staticClass:"r"},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.record.isadd,callback:function(i){e.$set(e.record,"isadd",i)},expression:"record.isadd"}},[e._l(e.getDictionary("yes_or_no"),function(i){return[s("el-option",{attrs:{value:i.code,label:e.$i18nt(i.transKey,i.name)}})]})],2)],1)])],1)],2)],1)},we=[],be=o.normalizeComponent(ye,pe,we,!1,null,"f8a4f4a0",null,null);const _e=be.exports;const ve={props:{height:{type:Number,default:100},record:{type:Object,default:()=>({})}},mixins:[ge],components:{EditForm:_e},data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:t=>this.record.id===void 0?new Promise((e,s)=>{e({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):W(Object.assign(t,this.queryParam,{sysFieldSecurityConfigId:this.record.id})).then(e=>e.data)}},computed:{...o.mapGetters(["tablePageSize","tableSize","screenHeight","tableLists"])},methods:{edit(){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.editForm(this.selectedRows[0])},editForm(t){this.$refs.editForm.open(t)},refresh(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var Se=function(){var e=this,s=e._self._c;return s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"260px"}},[s("el-select",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.fieldSecurity.table","\u8868"),"reserve-keyword":"",filterable:"",remote:"",clearable:""},model:{value:e.queryParam.sysCodeGenId,callback:function(i){e.$set(e.queryParam,"sysCodeGenId",i)},expression:"queryParam.sysCodeGenId"}},e._l(e.tableLists,function(i){return s("el-option",{key:i.id,attrs:{label:e.$i18nt(`Dynamics.${i.transKey}`,i.busname),value:i.id}},[s("span",[e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.busname))+" "+e._s(i.tablename))])])}),1),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:"name",fn:function({column:i,row:n}){return[n.syscodegenconfig?s("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:function(a){return e.editForm(n)}}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.syscodegenconfig.transKey}`,n.syscodegenconfig.columncomment))+" ")]):e._e()]}},{key:"syscodegenconfigid",fn:function({column:i,row:n}){return[n.syscodegenconfig?s("span",[e._v(" "+e._s(n.syscodegenconfig.columnname)+" ")]):e._e()]}},{key:"effecttype",fn:function({column:i,row:n}){return[n.syscodegenconfig?s("span",[e._v(" "+e._s(e._f("dictType")("code_gen_effect_type",n.syscodegenconfig.effecttype))+" ")]):e._e()]}},{key:"syscodegenid",fn:function({column:i,row:n}){return[n.syscodegen?s("span",[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.syscodegen.transkey}`,n.syscodegen.busname))+" ")]):e._e()]}},{key:"isquery",fn:function({column:i,row:n}){return[n.isquery===1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})]}},{key:"isedit",fn:function({column:i,row:n}){return[n.isedit===1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})]}},{key:"isadd",fn:function({column:i,row:n}){return[n.isadd===1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})]}}])}),s("EditForm",{ref:"editForm",attrs:{ok:"refresh",id:e.record.id},on:{ok:e.refresh}})],1)},$e=[],Ce=o.normalizeComponent(ve,Se,$e,!1,null,"faee3814",null,null);const Re=Ce.exports,xe={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.roleType",prop:"roletype",label:"\u89D2\u8272\u7C7B\u578B",align:"left",type:"slot",slotType:"roletype",showOverflowTooltip:!0},{transKey:"gd.user.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",type:"slot",slotType:"code",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",label:"\u6392\u5E8F",align:"left",type:"slot",slotType:"sort",showOverflowTooltip:!0}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"fieldSecurity:memberadd"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"fieldSecurity:memberdel"}]}}};const ke={props:{record:{type:Object,default:()=>({})},columns:{type:Array,default:()=>[]},disabledRowId:{type:Array,default:()=>[]}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],selectedRowKeys:[],selectedRows:[],visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",queryParam:{},loadData:t=>h(Object.assign(t,this.queryParam,{sysAppsId:window.$systemInfo.id})).then(e=>(this.changeData(e.data),e.data)),dataList:[]}},computed:{height(){return this.screenHeight-(this.fullscreen?160:320)},...o.mapGetters(["screenHeight","tablePageSize","tableSize"])},methods:{changeData(t){let e=[];this.dataList.forEach(i=>{e.push(i.id)});const s=t.rows.filter(i=>!e.includes(i.id));this.dataList=this.dataList.concat(s)},handleSubmit(t){let e=[];this.dataList.filter(i=>this.selectedRowKeys.includes(i.id)).forEach(i=>{e.push({sysFieldSecurityConfigId:this.record.id,member_AboutId:i.id,member_AboutTable:"sys_role"})});let s={data:this.selectedRowKeys,fkData:e};e.length===0?this.closed():this.$emit("lookupSeled",s)},open(t){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{this.refresh()},0)})},closed(){this.fullscreen=!1,this.visible=!1,this.onSelectChange([],[])},toggleFullscreen(){this.fullscreen=!this.fullscreen},refresh(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var Te=function(){var e=this,s=e._self._c;return s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{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","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.menu.advancedFind","\u67E5\u627E"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.columns,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1,selectedKeep:!0,disabledRowId:e.disabledRowId},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){},proxy:!0},{key:"name",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.name)+" ")]}},{key:"code",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.code)+" ")]}},{key:"sort",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.sort)+" ")]}},{key:"roleType",fn:function({column:i,row:n}){return[e._v(" "+e._s(e._f("dictType")("role_type",n.roleType))+" ")]}}],null,!1,3083467277)}):e._e()],1)],2)},Be=[],Ke=o.normalizeComponent(ke,Te,Be,!1,null,"a2bced86",null,null);const Ne=Ke.exports;const Fe={props:{height:{type:Number,default:100},record:{type:Object,default:()=>({})}},mixins:[xe],data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{sysCodeGenName:"sys_role"},disabledRowId:[],loadData:t=>this.record.id===void 0?new Promise((e,s)=>{e({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):c(Object.assign(t,this.queryParam,{sysFieldSecurityConfigId:this.record.id})).then(e=>(this.getRowId(e.data),e.data))}},components:{RoleSearch:Ne},computed:{...o.mapGetters(["tablePageSize","tableSize","screenHeight"])},methods:{getRowId(t){let e=[];t.rows.filter(s=>!this.disabledRowId.includes(s.sysrole.id)).forEach(s=>{e.push(s.sysrole.id)}),this.disabledRowId=this.disabledRowId.concat(e)},lookupSeled(t){this.$refs.roleSearch.confirmLoading=!0,u(t.fkData).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.roleSearch.closed(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message),this.$refs.roleSearch.confirmLoading=!1})},add(){this.$refs.roleSearch.open()},del(){let t=this;if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\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:(e,s,i)=>{if(e!=="confirm"){i();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,f({ids:t.selectedRowKeys.join(",")}).then(n=>{n.success?(t.$message.success(t.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),t.disabledRowId=t.disabledRowId.filter(a=>!t.selectedRows.filter(l=>l.sysrole.id===a)[0]),t.refresh(),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i()):t.$message.error(t.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n.message)})}})},refresh(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var Le=function(){var e=this,s=e._self._c;return s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(n.sysrole?n.sysrole.name:"")+" ")])]}},{key:"code",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.sysrole?n.sysrole.code:"")+" ")]}},{key:"sort",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.sysrole?n.sysrole.sort:"")+" ")]}},{key:"roletype",fn:function({column:i,row:n}){return[n.sysrole?s("span",[e._v(e._s(e._f("dictType")("role_type",n.sysrole.roletype)))]):e._e()]}}])}),s("RoleSearch",{ref:"roleSearch",attrs:{record:e.record,columns:e.tableColumns,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)},De=[],Ee=o.normalizeComponent(Fe,Le,De,!1,null,"067995ba",null,null);const ze=Ee.exports,Ie={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.fieldSecurity.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.teamType",prop:"teamType",label:"\u56E2\u961F\u7C7B\u578B",align:"left",type:"slot",slotType:"teamType",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.description",prop:"description",label:"\u8BF4\u660E",type:"slot",slotType:"description",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"fieldSecurity:memberadd"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"fieldSecurity:memberdel"}]}}};const Pe={props:{height:{type:Number,default:100},record:{type:Object,default:()=>({})}},mixins:[Ie],data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],disabledRowId:[],queryParam:{sysCodeGenName:"sys_team"},loadData:t=>this.record.id===void 0?new Promise((e,s)=>{e({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):c(Object.assign(t,this.queryParam,{sysFieldSecurityConfigId:this.record.id})).then(e=>(this.getRowId(e.data),e.data))}},computed:{...o.mapGetters(["tablePageSize","tableSize","screenHeight"])},methods:{getRowId(t){let e=[];t.rows.filter(s=>!this.disabledRowId.includes(s.systeam.id)).forEach(s=>{e.push(s.systeam.id)}),this.disabledRowId=this.disabledRowId.concat(e)},lookupSeled(t){if(t.fkData.length===0){this.$refs.engineSearch.closed();return}let e=[];t.fkData.forEach(s=>{e.push({sysFieldSecurityConfigId:this.record.id,member_AboutId:s.id,member_AboutTable:s.tableName})}),this.$refs.engineSearch.confirmLoading=!0,u(e).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.engineSearch.closed(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+s.message),this.$refs.engineSearch.confirmLoading=!1})},add(){this.$refs.engineSearch.open({fkEntityName:this.queryParam.sysCodeGenName,val:[],effectType:"participants",isRelevance:!0})},del(){let t=this;if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\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:(e,s,i)=>{if(e!=="confirm"){i();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,f({ids:t.selectedRowKeys.join(",")}).then(n=>{n.success?(t.$message.success(t.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),t.disabledRowId=t.disabledRowId.filter(a=>!t.selectedRows.filter(l=>l.systeam.id===a)[0]),t.refresh(),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i()):t.$message.error(t.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n.message)})}})},refresh(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var Oe=function(){var e=this,s=e._self._c;return s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(n.systeam?n.systeam.name:"")+" ")])]}},{key:"teamType",fn:function({column:i,row:n}){return[n.systeam?s("span",[e._v(" "+e._s(e._f("dictType")("TeamType",n.systeam.teamtype))+" ")]):e._e()]}},{key:"description",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.systeam?n.systeam.description:"")+" ")]}}])}),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)},Ve=[],Ge=o.normalizeComponent(Pe,Oe,Ve,!1,null,"04a23570",null,null);const qe=Ge.exports,je={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.nickname",prop:"nickname",label:"\u6635\u79F0",align:"left",type:"slot",slotType:"nickname",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"sex",label:"\u6027\u522B",align:"left",type:"slot",slotType:"sex",showOverflowTooltip:!0},{transKey:"gd.user.organization",prop:"orgname",label:"\u6240\u5C5E\u673A\u6784",align:"left",type:"slot",slotType:"orgname",showOverflowTooltip:!0},{transKey:"gd.user.status",prop:"status",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status",showOverflowTooltip:!0}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"fieldSecurity:memberadd"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"fieldSecurity:memberdel"}]}}};const Ae={props:{height:{type:Number,default:100},record:{type:Object,default:()=>({})}},mixins:[je],data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{sysCodeGenName:"sys_user"},disabledRowId:[],loadData:t=>this.record.id===void 0?new Promise((e,s)=>{e({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):c(Object.assign(t,this.queryParam,{sysFieldSecurityConfigId:this.record.id})).then(e=>(this.getRowId(e.data),e.data))}},computed:{...o.mapGetters(["tablePageSize","tableSize","screenHeight"])},methods:{getRowId(t){let e=[];t.rows.filter(s=>!this.disabledRowId.includes(s.sysuser.id)).forEach(s=>{e.push(s.sysuser.id)}),this.disabledRowId=this.disabledRowId.concat(e)},lookupSeled(t){if(t.fkData.length===0){this.$refs.engineSearch.closed();return}let e=[];t.fkData.forEach(s=>{e.push({sysFieldSecurityConfigId:this.record.id,member_AboutId:s.id,member_AboutTable:s.tableName})}),this.$refs.engineSearch.confirmLoading=!0,u(e).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.engineSearch.closed(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+s.message),this.$refs.engineSearch.confirmLoading=!1})},add(){this.$refs.engineSearch.open({fkEntityName:this.queryParam.sysCodeGenName,val:[],effectType:"participants",isRelevance:!0})},del(){let t=this;if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\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:(e,s,i)=>{if(e!=="confirm"){i();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,f({ids:t.selectedRowKeys.join(",")}).then(n=>{n.success?(t.$message.success(t.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),t.disabledRowId=t.disabledRowId.filter(a=>!t.selectedRows.filter(l=>l.sysuser.id===a)[0]),t.refresh(),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i()):t.$message.error(t.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n.message)})}})},refresh(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var Me=function(){var e=this,s=e._self._c;return s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(n.sysuser?n.sysuser.name:"")+" ")])]}},{key:"nickname",fn:function({column:i,row:n}){return[s("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(n.sysuser?n.sysuser.nickname:"")+" ")])]}},{key:"orgname",fn:function({column:i,row:n}){return[s("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(n.sysuser?n.sysuser.orgname:"")+" ")])]}},{key:"sex",fn:function({column:i,row:n}){return[n.sysuser?s("span",[e._v(" "+e._s(e._f("dictType")("gender",n.sysuser.gender))+" ")]):e._e()]}},{key:"status",fn:function({column:i,row:n}){return[n.sysuser?s("span",[e._v(" "+e._s(e._f("dictType")("state_code",n.sysuser.statecodes))+" ")]):e._e()]}}])}),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)},Qe=[],He=o.normalizeComponent(Ae,Me,Qe,!1,null,"bff3a640",null,null);const Ue=He.exports;const We={props:{height:{type:Number,default:0}},components:{FieldDescriptions:me,FieldConfig:Re,RoleConfig:ze,TeamConfig:qe,UserConfig:Ue},data(){return{tableButtons:[{displayName:"\u8FD4\u56DE",functionName:"back",show:!0,transKey:"gd.btn.back",icon:"el-icon-arrow-left"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTableField:edit"}],activeName:"field",record:{},loading:!1,formLoading:!1}},computed:{getHeight(){return this.height-56},stylep(){return""}},methods:{tabChange(t){this.$nextTick(()=>{setTimeout(()=>{this.$refs[this.activeName+"Config"].refresh()},0)})},init(t){this.activeName="field",this.record=t,this.$nextTick(()=>{setTimeout(()=>{this.$refs[this.activeName+"Config"].refresh()},0)})},functionName(t){t.item.functionName==="back"&&(this.activeName=""),this.$emit("functionName",t)}}};var Je=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view",staticStyle:{position:"absolute",top:"0","z-index":"8",left:"0",right:"0",bottom:"0",background:"#fff"},style:e.stylep},[s("div",{staticStyle:{display:"flex",background:"#f5f5f5"}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"page-view-descriptions",attrs:{"element-loading-spinner":"el-icon-loading active-color"}},[s("FieldDescriptions",{attrs:{record:e.record,tableButtons:e.tableButtons,height:e.height},on:{functionName:e.functionName}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],staticClass:"page-view-list",attrs:{"element-loading-spinner":"el-icon-loading"}},[s("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.tabChange},model:{value:e.activeName,callback:function(i){e.activeName=i},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:e.$i18nt("gd.fieldSecurity.field","\u5B57\u6BB5\u6743\u9650"),name:"field",lazy:!0}},[e.activeName==="field"?s("FieldConfig",{ref:"fieldConfig",attrs:{height:e.getHeight,record:e.record}}):e._e()],1),s("el-tab-pane",{attrs:{label:e.$i18nt("gd.fieldSecurity.team","\u56E2\u961F"),name:"team",lazy:!0}},[e.activeName==="team"?s("TeamConfig",{ref:"teamConfig",attrs:{height:e.getHeight,record:e.record}}):e._e()],1),s("el-tab-pane",{attrs:{label:e.$i18nt("gd.fieldSecurity.user","\u7528\u6237"),name:"user",lazy:!0}},[e.activeName==="user"?s("UserConfig",{ref:"userConfig",attrs:{height:e.getHeight,record:e.record}}):e._e()],1),s("el-tab-pane",{attrs:{label:e.$i18nt("gd.fieldSecurity.role","\u89D2\u8272"),name:"role",lazy:!0}},[e.activeName==="role"?s("RoleConfig",{ref:"roleConfig",attrs:{height:e.getHeight,record:e.record}}):e._e()],1)],1)],1)])])},Xe=[],Ye=o.normalizeComponent(We,Je,Xe,!1,null,"5ca5605b",null,null);const Ze=Ye.exports;const et={name:"GdFieldSecurity",props:{height:{type:Number,default:0}},mixins:[de],data(){return{transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:t=>X(Object.assign(t,this.queryParam)).then(e=>e.data),selItemData:{},openManage:!1}},computed:{getFormColumns(){return this.formColumns},styled(){return this.openManage?"z-index:7;padding: 0px 0px 0px 0px;":"padding: 0px 0px 0px 0px;"},getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},components:{ListConfig:Ze},methods:{del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\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}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,ee({ids:this.selectedRowKeys.join(",")}).then(i=>{s(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,i.success?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+i.message),this.handleOk()})},editForm(t){this.openManage=!0,this.selItemData=t,this.$nextTick(()=>{setTimeout(()=>{this.$refs.listConfig.init(t)},0)})},add(){this.selItemData={},this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(t){if(t){this.selItemData=t,this.transKey="gd.btn.edit",this.$refs.editForm.open(t);return}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.selItemData=this.selectedRows[0],this.transKey="gd.btn.edit",this.$refs.editForm.open(this.selectedRows[0])},sbumit({data:t,record:e,btn:s},i,n){this.formLoading=!0,(e?Z:Y)(t).then(r=>{r.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),n(),Object.assign(this.selItemData,t),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r.message),this.formLoading=!1})},handleOk(){this.$refs.table.refresh(),this.openManage&&this.$refs.listConfig.init(this.selItemData)},refresh(){this.$refs.table.refresh()},back(){this.openManage=!1},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},functionNameFk(t){let e=t.item.functionName;this[e]&&this[e](this.selItemData)}}};var tt=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",style:e.styled},[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:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})]},proxy:!0},{key:"name",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""},on:{click:e.editForm}})]}}])})],1),s("ListConfig",{ref:"listConfig",attrs:{height:e.height},on:{functionName:e.functionNameFk}}),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,inline:!1,width:"700px"},on:{sbumit:e.sbumit}})],1)},st=[],it=o.normalizeComponent(et,tt,st,!1,null,"beb59471",null,null);const d=it.exports;d.install=function(t){t.component(d.name,d)};exports.GDpackage=d;exports.codeGenerateForm=N;exports.codeGenerateView=K;exports.getRolePage=h;exports.sysButtonAdd=S;exports.sysButtonDelete=v;exports.sysButtonDetails=$;exports.sysButtonEdit=C;exports.sysButtonList=_;exports.sysButtonSet=F;exports.sysEchartsAdd=I;exports.sysEchartsDel=O;exports.sysEchartsEdit=P;exports.sysEchartsPage=V;exports.sysEchartsPersonalDel=j;exports.sysEchartsPersonalEdit=q;exports.sysEchartsPersonalPage=G;exports.sysFormAdd=x;exports.sysFormDelete=T;exports.sysFormDetails=B;exports.sysFormEdit=k;exports.sysFormList=R;exports.sysRelationshipDetails=E;exports.sysRelationshipEdit=z;exports.sysRelationshipList=L;exports.sysRelationshipList2=D;exports.sysRoleAddV2=te;exports.sysRoleCopyRole=le;exports.sysRoleDelete=ie;exports.sysRoleEdit=se;exports.sysRoleGrantMenu=oe;exports.sysRoleOwnMenu=ne;exports.sysRoleRoleBindViewOnBtn=re;exports.sysRoleViewOnBtnList=ae;exports.sysSavedQueryAdd=A;exports.sysSavedQueryDefault=U;exports.sysSavedQueryDelQueries=Q;exports.sysSavedQueryEdit=M;exports.sysSavedQueryPage=H;exports.sysViewAdd=m;exports.sysViewDelete=p;exports.sysViewDetails=w;exports.sysViewEdit=y;exports.sysViewList=g;exports.sysWebResourceGetList=b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as d, n as f } from "./chartbi.
|
|
2
|
-
import { a as c, t as p, i as g, j as h, k as m, l as y } from "./messages.
|
|
1
|
+
import { m as d, n as f } from "./chartbi.cdd1e365.mjs";
|
|
2
|
+
import { a as c, t as p, i as g, j as h, k as m, l as y } from "./messages.d8abe18d.mjs";
|
|
3
3
|
const b = {
|
|
4
4
|
data() {
|
|
5
5
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const d=require("./chartbi.78c30dce.js"),a=require("./messages.2d31a14f.js"),u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.file.fileOriginName",prop:"fileOriginName",label:"\u6587\u4EF6\u540D\u79F0",type:"slot",slotType:"fileOriginName",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.file.fileLocation",prop:"fileLocation",label:"\u5B58\u50A8\u4F4D\u7F6E",align:"left",type:"slot",slotType:"fileLocation",align:"center"},{transKey:"gd.file.fileBucket",prop:"filebucket",label:"\u6587\u4EF6\u4ED3\u5E93",align:"left"},{transKey:"gd.file.fileSuffix",prop:"fileSuffix",label:"\u6587\u4EF6\u540E\u7F00",align:"left",type:"slot",slotType:"fileSuffix"},{transKey:"gd.file.fileSizeInfo",prop:"filesizekb",label:"\u6587\u4EF6\u5927\u5C0F",align:"left",type:"slot",slotType:"filesizekb"},{transKey:"gd.file.fileObjectName",prop:"fileobjectname",label:"\u552F\u4E00\u6807\u8BC6id",align:"left"}],formColumns:[{transKey:"gd.file.fileOriginName",effectType:"input",prop:"fileoriginname",label:"\u6587\u4EF6\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.fileLocation",effectType:"input",prop:"filelocation",label:"\u5B58\u50A8\u4F4D\u7F6E",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"file_storage_location",disabled:!0,rules:[]},{transKey:"gd.file.fileBucket",effectType:"input",prop:"filebucket",label:"\u6587\u4EF6\u4ED3\u5E93",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.fileSuffix",effectType:"input",prop:"filesuffix",label:"\u6587\u4EF6\u540E\u7F00",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.fileSizeKb",effectType:"input",prop:"filesizekb",label:"\u6587\u4EF6\u5927\u5C0F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.fileObjectName",effectType:"input",prop:"fileobjectname",label:"\u552F\u4E00\u6807\u8BC6",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.filePath",effectType:"input",prop:"filepath",label:"\u5B58\u50A8\u8DEF\u5F84",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]}],tableButtons:[{displayName:"\u4E0A\u4F20\u6587\u4EF6",functionName:"add",show:!0,transKey:"gd.btn.upload",icon:"el-icon-upload",name:"sysFileInfo:upload"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysFileInfo:delete"},{displayName:"\u4E0B\u8F7D",functionName:"sysFileInfoDownload",show:!0,transKey:"gd.btn.download",icon:"el-icon-download",name:"sysFileInfo:download"},{displayName:"\u9884\u89C8",functionName:"preview",show:!0,transKey:"gd.btn.preview",icon:"gd-icon-yanjing-kai",name:"sysFileInfo:preview"}],tableQueries:[{transKey:"gd.file.fileOriginName",prop:"fileOriginName",label:"\u6587\u4EF6\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.file.fileLocation",prop:"fileLocation",label:"\u552F\u4E00\u7F16\u7801",effectType:"select",dictTypeCode:"file_storage_location",rules:[]},{transKey:"gd.file.fileBucket",prop:"fileBucket",label:"\u6587\u4EF6\u4ED3\u5E93",effectType:"input",rules:[]}]}}};const p={data(){return{transKey:"gd.btn.edit",fullscreen:!1,visible:!1,width:"900",confirmLoading:!1,src:"",isShowValue:!1,imgList:[]}},computed:{height(){return this.screenHeight-24-40-36},headTitle(){return this.$i18nt(this.transKey,this.title)},...d.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(t){this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.sysFileInfoPreview(t)},sysFileInfoPreview(t){a.sysFileInfoPreview({id:t.id}).then(e=>{this.confirmLoading=!1,this.downloadfile(e)}).catch(e=>{this.confirmLoading=!1,this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+e.message)})},downloadfile(t){const e=new Blob([t]),i=window.URL.createObjectURL(e);this.src=i,this.imgList[i],this.$refs.imgPreview.open()},closed(){this.fullscreen=!1,this.visible=!1}}};var g=function(){var e=this,i=e._self._c;return i("div",[i("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:e.imgList.length>0,imgList:e.imgList,currentImg:e.src}})],1)},h=[],m=d.normalizeComponent(p,g,h,!1,null,"70df1ecb",null,null);const y=m.exports;const b={name:"GdFile",props:{height:{type:Number,default:100}},mixins:[a.tablesFilter,u],components:{previewFrom:y},data(){return{transKey:"gd.btn.edit",loadData:t=>a.sysFileInfoPage(Object.assign(t,this.queryParam)).then(e=>e.data),selectedRows:[],selectedRowKeys:[],queryParam:{},fileList:[],options:{},currentImg:"",imgList:[]}},computed:{getHeight(){return this.height},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},created(){},mounted(){},methods:{editForm(t){this.transKey="gd.file.detail",this.$refs.editForm.open(Object.assign({...t}))},onSelectChange(t,e){if(this.selectedRows=e,this.selectedRowKeys=t,e.length==0){this.baseHideBtns([],2);return}if(e.length>1){this.baseHideBtns(["\u9884\u89C8"],2);return}let i=["\u9884\u89C8"],s=e[0];["png","jpeg","jpg","gif","tif","bmp","doc","docx","xls","xlsx","pdf","pptx"].includes(s.filesuffix)&&(i=[]),this.baseHideBtns(i,2)},baseHideBtns(t,e=1){let i=[...this.tableButtons];i.map(s=>(e===1?s.show=!t.includes(s.id):s.show=!t.includes(s.displayName),s)),this.tableButtons=[...i]},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},add(){document.querySelector(".upload-demo").click()},handleFileUpload(t){const e=this.$message({message:this.$i18nt("gd.https.uploading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"}),i=new FormData;i.append("file",t.file),a.sysFileInfoUpload(i).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.uploadSucc","\u4E0A\u4F20\u6210\u529F")),this.refresh()):this.$message.error(this.$i18nt("gd.https.uploadFail","\u4E0A\u4F20\u5931\u8D25")+s.message),this.$nextTick(()=>{setTimeout(()=>{e.close()},200)})})},sysFileInfoDownload(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.downTip","\u8BF7\u9009\u62E9\u9700\u8981\u4E0B\u8F7D\u7684\u6587\u4EF6!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.downTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u4E0B\u8F7D"));return}const t=this.$message({message:this.$i18nt("gd.https.downloading","\u6B63\u5728\u4E0B\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});a.sysFileInfoDownload({id:this.selectedRows[0].id}).then(e=>{this.downloadfile(e),this.$nextTick(()=>{setTimeout(()=>{t.close()},200)})}).catch(e=>{this.$nextTick(()=>{setTimeout(()=>{t.close()},200)}),this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25"))})},downloadfile(t){var e=new Blob([t.data],{type:"application/octet-stream;charset=UTF-8"}),i=t.headers["content-disposition"],s=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),l=s.exec(i),r=l[1],n=document.createElement("a"),f=window.URL.createObjectURL(e),c=/^["](.*)["]$/g;n.style.display="none",n.href=f,n.download=decodeURI(r.replace(c,"$1")),document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(f)},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,i)=>{this.delHand(t,e,i)}})},delHand(t,e,i){if(t!=="confirm"){i();return}let s=[];this.selectedRows.forEach(l=>{let r=a.sysFileInfoDelete(l).then(n=>n);s.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(s).then(l=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,i(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const r=l.filter(n=>!n.success);r.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")+r[0].message),this.refresh()})},preview(){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}let t=this.selectedRows[0];if(["png","jpeg","jpg","gif","tif","bmp"].includes(t.filesuffix)){this.baseFileImg(t);return}if(["doc","docx","xls","xlsx","pdf","pptx"].includes(t.filesuffix)){this.previewMicrosoft(t);return}},previewMicrosoft(t){this.$refs.filePreview.open({name:t.fileoriginname,fileId:t.id})},baseFileImg(t){a.sysFileInfoPreview({id:t.id}).then(e=>{const i=window.URL.createObjectURL(new Blob([e]));this.imgList=[i],this.currentImg=i,this.$nextTick(()=>{setTimeout(()=>{this.$refs.imgPreview.imgListShow=!0,this.$refs.imgPreview.open()},0)})})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},beforeDestroy(){}};var w=function(){var e=this,i=e._self._c;return i("div",{staticClass:"gd-page-view"},[i("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[i("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:"fileOriginName",fn:function({column:s,row:l}){return[i("gd-tooltip",{attrs:{rowKey:"fileoriginname",row:l,highlight:""},on:{click:e.editForm}})]}},{key:"fileLocation",fn:function(s){return[i("el-tag",{style:e._f("dictColor")("file_storage_location",s.row.filelocation),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("file_storage_location",s.row.filelocation))+" ")])]}},{key:"fileSuffix",fn:function(s){return[i("el-tag",[e._v(" "+e._s(s.row.filesuffix)+" ")])]}},{key:"fileObjectName",fn:function({column:s,row:l}){return[i("gd-tooltip",{attrs:{rowKey:"fileobjectname",row:l}})]}},{key:"filesizekb",fn:function({column:s,row:l}){return[e._v(e._s(l.filesizekb)+"(kb)")]}},{key:"operator",fn:function(){return[i("div",{staticClass:"gd-table-operator"},[i("div",{staticClass:"gd-table-operatorl"},[i("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.file.fileOriginName","\u6587\u4EF6\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.fileOriginName,callback:function(s){e.$set(e.queryParam,"fileOriginName",s)},expression:"queryParam.fileOriginName"}}),i("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[i("i",{staticClass:"el-input__icon el-icon-search"})])],1),i("div",{staticClass:"gd-table-operatorr"},[i("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:l}){return[i("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:s,visible:l},on:{save:e.saveQueries}})]}}])})],1),i("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",transKey:e.transKey,columns:e.formColumns,labelPosition:e.labelPosition,formMode:e.formMode}}),i("div",{staticStyle:{position:"absolute",left:"-200000px"}},[i("el-upload",{ref:"upload",attrs:{"http-request":e.handleFileUpload,"file-list":e.fileList,action:""}},[i("el-button",{ref:"uploadDemo",staticClass:"upload-demo",attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[e._v("\u9009\u53D6\u6587\u4EF6")])],1)],1),i("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:e.imgList.length>0,imgList:e.imgList,currentImg:e.currentImg}}),i("gd-file-preview",{ref:"filePreview",attrs:{options:e.options}})],1)},v=[],_=d.normalizeComponent(b,w,v,!1,null,"3a9954e8",null,null);const o=_.exports;o.install=function(t){t.component(o.name,o)};exports.GDpackage=o;
|
|
1
|
+
"use strict";const d=require("./chartbi.06e48153.js"),a=require("./messages.2fff74f3.js"),u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.file.fileOriginName",prop:"fileOriginName",label:"\u6587\u4EF6\u540D\u79F0",type:"slot",slotType:"fileOriginName",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.file.fileLocation",prop:"fileLocation",label:"\u5B58\u50A8\u4F4D\u7F6E",align:"left",type:"slot",slotType:"fileLocation",align:"center"},{transKey:"gd.file.fileBucket",prop:"filebucket",label:"\u6587\u4EF6\u4ED3\u5E93",align:"left"},{transKey:"gd.file.fileSuffix",prop:"fileSuffix",label:"\u6587\u4EF6\u540E\u7F00",align:"left",type:"slot",slotType:"fileSuffix"},{transKey:"gd.file.fileSizeInfo",prop:"filesizekb",label:"\u6587\u4EF6\u5927\u5C0F",align:"left",type:"slot",slotType:"filesizekb"},{transKey:"gd.file.fileObjectName",prop:"fileobjectname",label:"\u552F\u4E00\u6807\u8BC6id",align:"left"}],formColumns:[{transKey:"gd.file.fileOriginName",effectType:"input",prop:"fileoriginname",label:"\u6587\u4EF6\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.fileLocation",effectType:"input",prop:"filelocation",label:"\u5B58\u50A8\u4F4D\u7F6E",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"file_storage_location",disabled:!0,rules:[]},{transKey:"gd.file.fileBucket",effectType:"input",prop:"filebucket",label:"\u6587\u4EF6\u4ED3\u5E93",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.fileSuffix",effectType:"input",prop:"filesuffix",label:"\u6587\u4EF6\u540E\u7F00",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.fileSizeKb",effectType:"input",prop:"filesizekb",label:"\u6587\u4EF6\u5927\u5C0F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.fileObjectName",effectType:"input",prop:"fileobjectname",label:"\u552F\u4E00\u6807\u8BC6",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.file.filePath",effectType:"input",prop:"filepath",label:"\u5B58\u50A8\u8DEF\u5F84",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]}],tableButtons:[{displayName:"\u4E0A\u4F20\u6587\u4EF6",functionName:"add",show:!0,transKey:"gd.btn.upload",icon:"el-icon-upload",name:"sysFileInfo:upload"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysFileInfo:delete"},{displayName:"\u4E0B\u8F7D",functionName:"sysFileInfoDownload",show:!0,transKey:"gd.btn.download",icon:"el-icon-download",name:"sysFileInfo:download"},{displayName:"\u9884\u89C8",functionName:"preview",show:!0,transKey:"gd.btn.preview",icon:"gd-icon-yanjing-kai",name:"sysFileInfo:preview"}],tableQueries:[{transKey:"gd.file.fileOriginName",prop:"fileOriginName",label:"\u6587\u4EF6\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.file.fileLocation",prop:"fileLocation",label:"\u552F\u4E00\u7F16\u7801",effectType:"select",dictTypeCode:"file_storage_location",rules:[]},{transKey:"gd.file.fileBucket",prop:"fileBucket",label:"\u6587\u4EF6\u4ED3\u5E93",effectType:"input",rules:[]}]}}};const p={data(){return{transKey:"gd.btn.edit",fullscreen:!1,visible:!1,width:"900",confirmLoading:!1,src:"",isShowValue:!1,imgList:[]}},computed:{height(){return this.screenHeight-24-40-36},headTitle(){return this.$i18nt(this.transKey,this.title)},...d.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(t){this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.sysFileInfoPreview(t)},sysFileInfoPreview(t){a.sysFileInfoPreview({id:t.id}).then(e=>{this.confirmLoading=!1,this.downloadfile(e)}).catch(e=>{this.confirmLoading=!1,this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+e.message)})},downloadfile(t){const e=new Blob([t]),i=window.URL.createObjectURL(e);this.src=i,this.imgList[i],this.$refs.imgPreview.open()},closed(){this.fullscreen=!1,this.visible=!1}}};var g=function(){var e=this,i=e._self._c;return i("div",[i("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:e.imgList.length>0,imgList:e.imgList,currentImg:e.src}})],1)},h=[],m=d.normalizeComponent(p,g,h,!1,null,"70df1ecb",null,null);const y=m.exports;const b={name:"GdFile",props:{height:{type:Number,default:100}},mixins:[a.tablesFilter,u],components:{previewFrom:y},data(){return{transKey:"gd.btn.edit",loadData:t=>a.sysFileInfoPage(Object.assign(t,this.queryParam)).then(e=>e.data),selectedRows:[],selectedRowKeys:[],queryParam:{},fileList:[],options:{},currentImg:"",imgList:[]}},computed:{getHeight(){return this.height},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},created(){},mounted(){},methods:{editForm(t){this.transKey="gd.file.detail",this.$refs.editForm.open(Object.assign({...t}))},onSelectChange(t,e){if(this.selectedRows=e,this.selectedRowKeys=t,e.length==0){this.baseHideBtns([],2);return}if(e.length>1){this.baseHideBtns(["\u9884\u89C8"],2);return}let i=["\u9884\u89C8"],s=e[0];["png","jpeg","jpg","gif","tif","bmp","doc","docx","xls","xlsx","pdf","pptx"].includes(s.filesuffix)&&(i=[]),this.baseHideBtns(i,2)},baseHideBtns(t,e=1){let i=[...this.tableButtons];i.map(s=>(e===1?s.show=!t.includes(s.id):s.show=!t.includes(s.displayName),s)),this.tableButtons=[...i]},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},add(){document.querySelector(".upload-demo").click()},handleFileUpload(t){const e=this.$message({message:this.$i18nt("gd.https.uploading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"}),i=new FormData;i.append("file",t.file),a.sysFileInfoUpload(i).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.uploadSucc","\u4E0A\u4F20\u6210\u529F")),this.refresh()):this.$message.error(this.$i18nt("gd.https.uploadFail","\u4E0A\u4F20\u5931\u8D25")+s.message),this.$nextTick(()=>{setTimeout(()=>{e.close()},200)})})},sysFileInfoDownload(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.downTip","\u8BF7\u9009\u62E9\u9700\u8981\u4E0B\u8F7D\u7684\u6587\u4EF6!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.downTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u4E0B\u8F7D"));return}const t=this.$message({message:this.$i18nt("gd.https.downloading","\u6B63\u5728\u4E0B\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});a.sysFileInfoDownload({id:this.selectedRows[0].id}).then(e=>{this.downloadfile(e),this.$nextTick(()=>{setTimeout(()=>{t.close()},200)})}).catch(e=>{this.$nextTick(()=>{setTimeout(()=>{t.close()},200)}),this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25"))})},downloadfile(t){var e=new Blob([t.data],{type:"application/octet-stream;charset=UTF-8"}),i=t.headers["content-disposition"],s=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),l=s.exec(i),r=l[1],n=document.createElement("a"),f=window.URL.createObjectURL(e),c=/^["](.*)["]$/g;n.style.display="none",n.href=f,n.download=decodeURI(r.replace(c,"$1")),document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(f)},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,i)=>{this.delHand(t,e,i)}})},delHand(t,e,i){if(t!=="confirm"){i();return}let s=[];this.selectedRows.forEach(l=>{let r=a.sysFileInfoDelete(l).then(n=>n);s.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(s).then(l=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,i(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const r=l.filter(n=>!n.success);r.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")+r[0].message),this.refresh()})},preview(){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}let t=this.selectedRows[0];if(["png","jpeg","jpg","gif","tif","bmp"].includes(t.filesuffix)){this.baseFileImg(t);return}if(["doc","docx","xls","xlsx","pdf","pptx"].includes(t.filesuffix)){this.previewMicrosoft(t);return}},previewMicrosoft(t){this.$refs.filePreview.open({name:t.fileoriginname,fileId:t.id})},baseFileImg(t){a.sysFileInfoPreview({id:t.id}).then(e=>{const i=window.URL.createObjectURL(new Blob([e]));this.imgList=[i],this.currentImg=i,this.$nextTick(()=>{setTimeout(()=>{this.$refs.imgPreview.imgListShow=!0,this.$refs.imgPreview.open()},0)})})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},beforeDestroy(){}};var w=function(){var e=this,i=e._self._c;return i("div",{staticClass:"gd-page-view"},[i("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[i("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:"fileOriginName",fn:function({column:s,row:l}){return[i("gd-tooltip",{attrs:{rowKey:"fileoriginname",row:l,highlight:""},on:{click:e.editForm}})]}},{key:"fileLocation",fn:function(s){return[i("el-tag",{style:e._f("dictColor")("file_storage_location",s.row.filelocation),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("file_storage_location",s.row.filelocation))+" ")])]}},{key:"fileSuffix",fn:function(s){return[i("el-tag",[e._v(" "+e._s(s.row.filesuffix)+" ")])]}},{key:"fileObjectName",fn:function({column:s,row:l}){return[i("gd-tooltip",{attrs:{rowKey:"fileobjectname",row:l}})]}},{key:"filesizekb",fn:function({column:s,row:l}){return[e._v(e._s(l.filesizekb)+"(kb)")]}},{key:"operator",fn:function(){return[i("div",{staticClass:"gd-table-operator"},[i("div",{staticClass:"gd-table-operatorl"},[i("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.file.fileOriginName","\u6587\u4EF6\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.fileOriginName,callback:function(s){e.$set(e.queryParam,"fileOriginName",s)},expression:"queryParam.fileOriginName"}}),i("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[i("i",{staticClass:"el-input__icon el-icon-search"})])],1),i("div",{staticClass:"gd-table-operatorr"},[i("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:l}){return[i("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:s,visible:l},on:{save:e.saveQueries}})]}}])})],1),i("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",transKey:e.transKey,columns:e.formColumns,labelPosition:e.labelPosition,formMode:e.formMode}}),i("div",{staticStyle:{position:"absolute",left:"-200000px"}},[i("el-upload",{ref:"upload",attrs:{"http-request":e.handleFileUpload,"file-list":e.fileList,action:""}},[i("el-button",{ref:"uploadDemo",staticClass:"upload-demo",attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[e._v("\u9009\u53D6\u6587\u4EF6")])],1)],1),i("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:e.imgList.length>0,imgList:e.imgList,currentImg:e.currentImg}}),i("gd-file-preview",{ref:"filePreview",attrs:{options:e.options}})],1)},v=[],_=d.normalizeComponent(b,w,v,!1,null,"3a9954e8",null,null);const o=_.exports;o.install=function(t){t.component(o.name,o)};exports.GDpackage=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as o, n } from "./chartbi.
|
|
2
|
-
import { t as i } from "./messages.
|
|
1
|
+
import { m as o, n } from "./chartbi.cdd1e365.mjs";
|
|
2
|
+
import { t as i } from "./messages.d8abe18d.mjs";
|
|
3
3
|
function f(t) {
|
|
4
4
|
return window.axios({
|
|
5
5
|
url: "/sysVisLog/page",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./chartbi.78c30dce.js"),n=require("./messages.2d31a14f.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;
|
|
1
|
+
"use strict";const o=require("./chartbi.06e48153.js"),n=require("./messages.2fff74f3.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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./chartbi.
|
|
1
|
+
"use strict";const n=require("./chartbi.06e48153.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,"d72322ae",null,null);const s=m.exports;s.install=function(a){a.component(s.name,s)};exports.GDpackage=s;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as d, n as h } from "./chartbi.
|
|
2
|
-
import { s as g } from "./system.account.
|
|
3
|
-
import { t as f } from "./messages.
|
|
1
|
+
import { m as d, n as h } from "./chartbi.cdd1e365.mjs";
|
|
2
|
+
import { s as g } from "./system.account.9bc40d08.mjs";
|
|
3
|
+
import { t as f } from "./messages.d8abe18d.mjs";
|
|
4
4
|
function p(t) {
|
|
5
5
|
return window.axios({
|
|
6
6
|
url: "/sysNotice/page",
|