gds-plus-design-vue 1.1.64 → 1.1.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/lib/chartbi.48631362.mjs +44076 -0
  2. package/lib/chartbi.afd83839.js +80 -0
  3. package/lib/element-theme-chalk.ae828c17.js +2 -0
  4. package/lib/gd-initial.js +34 -0
  5. package/lib/gd-initial.mjs +80400 -101
  6. package/lib/main.03b24a05.js +1 -0
  7. package/lib/{main.665d9127.mjs → main.3cd24320.mjs} +27 -18
  8. package/lib/main.4cafc3eb.mjs +68 -0
  9. package/lib/main.eea30a23.js +1 -0
  10. package/lib/main.efd6b228.mjs +87 -0
  11. package/lib/main.f1e3ba71.js +1 -0
  12. package/lib/messages.083c4ede.js +9 -0
  13. package/lib/messages.7e85146d.mjs +5802 -0
  14. package/lib/style.css +2 -2
  15. package/lib/system.account.78b852cd.js +216 -0
  16. package/lib/system.account.ae0822f1.mjs +2552 -0
  17. package/lib/system.config.327aded6.js +1 -0
  18. package/lib/system.config.9c46f279.mjs +373 -0
  19. package/lib/system.datasource.4b0951ba.mjs +511 -0
  20. package/lib/system.datasource.8a0c7e0f.js +1 -0
  21. package/lib/system.dict.65f25e4e.mjs +996 -0
  22. package/lib/system.dict.72594c98.js +1 -0
  23. package/lib/system.duplicatechecking.2e9b8df8.js +1 -0
  24. package/lib/system.duplicatechecking.b05f1617.mjs +2130 -0
  25. package/lib/system.email.0899621c.js +41 -0
  26. package/lib/system.email.a4d6d622.mjs +7432 -0
  27. package/lib/system.fieldsecurity.7de4ee1d.mjs +1745 -0
  28. package/lib/system.fieldsecurity.d57edb47.js +1 -0
  29. package/lib/system.file.b3558a8b.js +1 -0
  30. package/lib/system.file.f152d4fe.mjs +489 -0
  31. package/lib/system.log.30e5157c.mjs +1450 -0
  32. package/lib/system.log.f243e7d0.js +1 -0
  33. package/lib/system.machine.325b256e.mjs +94 -0
  34. package/lib/system.machine.332fb31c.js +1 -0
  35. package/lib/system.notice.234d5e47.mjs +636 -0
  36. package/lib/system.notice.540e97ca.js +1 -0
  37. package/lib/system.noticereceived.1fb75290.js +1 -0
  38. package/lib/system.noticereceived.c22372df.mjs +158 -0
  39. package/lib/system.onlineuser.90c08aef.mjs +184 -0
  40. package/lib/system.onlineuser.e0c261ed.js +1 -0
  41. package/lib/system.org.65452f67.js +1 -0
  42. package/lib/system.org.b8d59e5d.mjs +421 -0
  43. package/lib/system.permissions.8b0d3c8c.js +9 -0
  44. package/lib/system.permissions.cba8bd58.mjs +212 -0
  45. package/lib/system.plugin.07b3c38e.js +1 -0
  46. package/lib/system.plugin.4911a33d.mjs +946 -0
  47. package/lib/system.pos.6ed35c39.js +1 -0
  48. package/lib/system.pos.c274f13c.mjs +312 -0
  49. package/lib/system.promptmanagement.67475aac.js +1 -0
  50. package/lib/system.promptmanagement.e9976712.mjs +805 -0
  51. package/lib/system.role.53778e38.mjs +1509 -0
  52. package/lib/system.role.c3d74603.js +1 -0
  53. package/lib/system.timers.69f1792a.mjs +3160 -0
  54. package/lib/system.timers.ef6b6796.js +38 -0
  55. package/lib/system.translation.48ff0b03.mjs +665 -0
  56. package/lib/system.translation.8f7e4144.js +1 -0
  57. package/lib/system.user.01a55993.mjs +1425 -0
  58. package/lib/system.user.ea18a84c.js +14 -0
  59. package/lib/system.useraffiliation.1e74fa9e.mjs +1025 -0
  60. package/lib/system.useraffiliation.f3c88a51.js +1 -0
  61. package/lib/system.webresource.5049d97b.js +1 -0
  62. package/lib/system.webresource.e9518d87.mjs +723 -0
  63. package/lib/system.welcome.3f1cce96.mjs +45 -0
  64. package/lib/system.welcome.b109df88.js +1 -0
  65. package/locale/en_US.js +67 -9
  66. package/locale/id_ID.js +66 -8
  67. package/locale/vi_VN.js +66 -8
  68. package/locale/zh_CN.js +65 -8
  69. package/package.json +105 -105
  70. package/lib/gd-initial.umd.js +0 -435
  71. package/lib/index.32120001.mjs +0 -157708
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./chartbi.afd83839.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,"79c491b1",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,"cc8a58ec",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,"7072a6da",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,"069026ea",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,"616c066c",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,"5c2b5b14",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.sex))+" ")]):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.status))+" ")]):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,"f108c893",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,"1b0d17f8",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,"6247adac",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;
@@ -0,0 +1 @@
1
+ "use strict";const d=require("./chartbi.afd83839.js"),a=require("./messages.083c4ede.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,"b1ae8123",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,"798823c8",null,null);const o=_.exports;o.install=function(t){t.component(o.name,o)};exports.GDpackage=o;
@@ -0,0 +1,489 @@
1
+ import { m as d, n as f } from "./chartbi.48631362.mjs";
2
+ import { a as c, t as p, i as g, j as h, k as m, l as y } from "./messages.7e85146d.mjs";
3
+ const b = {
4
+ data() {
5
+ return {
6
+ tableColumns: [
7
+ {
8
+ type: "selection",
9
+ width: "60",
10
+ fixed: !0
11
+ },
12
+ {
13
+ transKey: "gd.file.fileOriginName",
14
+ prop: "fileOriginName",
15
+ label: "\u6587\u4EF6\u540D\u79F0",
16
+ type: "slot",
17
+ slotType: "fileOriginName",
18
+ align: "left",
19
+ fixed: !0,
20
+ renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
21
+ effectType: "input"
22
+ }),
23
+ showOverflowTooltip: !0
24
+ },
25
+ {
26
+ transKey: "gd.file.fileLocation",
27
+ prop: "fileLocation",
28
+ label: "\u5B58\u50A8\u4F4D\u7F6E",
29
+ align: "left",
30
+ type: "slot",
31
+ slotType: "fileLocation",
32
+ align: "center"
33
+ },
34
+ {
35
+ transKey: "gd.file.fileBucket",
36
+ prop: "filebucket",
37
+ label: "\u6587\u4EF6\u4ED3\u5E93",
38
+ align: "left"
39
+ },
40
+ {
41
+ transKey: "gd.file.fileSuffix",
42
+ prop: "fileSuffix",
43
+ label: "\u6587\u4EF6\u540E\u7F00",
44
+ align: "left",
45
+ type: "slot",
46
+ slotType: "fileSuffix"
47
+ },
48
+ {
49
+ transKey: "gd.file.fileSizeInfo",
50
+ prop: "filesizekb",
51
+ label: "\u6587\u4EF6\u5927\u5C0F",
52
+ align: "left",
53
+ type: "slot",
54
+ slotType: "filesizekb"
55
+ },
56
+ {
57
+ transKey: "gd.file.fileObjectName",
58
+ prop: "fileobjectname",
59
+ label: "\u552F\u4E00\u6807\u8BC6id",
60
+ align: "left"
61
+ }
62
+ ],
63
+ formColumns: [
64
+ {
65
+ transKey: "gd.file.fileOriginName",
66
+ effectType: "input",
67
+ prop: "fileoriginname",
68
+ label: "\u6587\u4EF6\u540D\u79F0",
69
+ placeholder: "\u8BF7\u8F93\u5165",
70
+ placeholderTransKey: "gd.placeholder.input",
71
+ disabled: !0,
72
+ rules: []
73
+ },
74
+ {
75
+ transKey: "gd.file.fileLocation",
76
+ effectType: "input",
77
+ prop: "filelocation",
78
+ label: "\u5B58\u50A8\u4F4D\u7F6E",
79
+ placeholder: "\u8BF7\u8F93\u5165",
80
+ placeholderTransKey: "gd.placeholder.input",
81
+ dictTypeCode: "file_storage_location",
82
+ disabled: !0,
83
+ rules: []
84
+ },
85
+ {
86
+ transKey: "gd.file.fileBucket",
87
+ effectType: "input",
88
+ prop: "filebucket",
89
+ label: "\u6587\u4EF6\u4ED3\u5E93",
90
+ placeholder: "\u8BF7\u8F93\u5165",
91
+ placeholderTransKey: "gd.placeholder.input",
92
+ disabled: !0,
93
+ rules: []
94
+ },
95
+ {
96
+ transKey: "gd.file.fileSuffix",
97
+ effectType: "input",
98
+ prop: "filesuffix",
99
+ label: "\u6587\u4EF6\u540E\u7F00",
100
+ placeholder: "\u8BF7\u8F93\u5165",
101
+ placeholderTransKey: "gd.placeholder.input",
102
+ disabled: !0,
103
+ rules: []
104
+ },
105
+ {
106
+ transKey: "gd.file.fileSizeKb",
107
+ effectType: "input",
108
+ prop: "filesizekb",
109
+ label: "\u6587\u4EF6\u5927\u5C0F",
110
+ placeholder: "\u8BF7\u8F93\u5165",
111
+ placeholderTransKey: "gd.placeholder.input",
112
+ disabled: !0,
113
+ rules: []
114
+ },
115
+ {
116
+ transKey: "gd.file.fileObjectName",
117
+ effectType: "input",
118
+ prop: "fileobjectname",
119
+ label: "\u552F\u4E00\u6807\u8BC6",
120
+ placeholder: "\u8BF7\u8F93\u5165",
121
+ placeholderTransKey: "gd.placeholder.input",
122
+ disabled: !0,
123
+ rules: []
124
+ },
125
+ {
126
+ transKey: "gd.file.filePath",
127
+ effectType: "input",
128
+ prop: "filepath",
129
+ label: "\u5B58\u50A8\u8DEF\u5F84",
130
+ placeholder: "\u8BF7\u8F93\u5165",
131
+ placeholderTransKey: "gd.placeholder.input",
132
+ disabled: !0,
133
+ rules: []
134
+ }
135
+ ],
136
+ tableButtons: [
137
+ {
138
+ displayName: "\u4E0A\u4F20\u6587\u4EF6",
139
+ functionName: "add",
140
+ show: !0,
141
+ transKey: "gd.btn.upload",
142
+ icon: "el-icon-upload",
143
+ name: "sysFileInfo:upload"
144
+ },
145
+ {
146
+ displayName: "\u5220\u9664",
147
+ functionName: "del",
148
+ show: !0,
149
+ transKey: "gd.btn.del",
150
+ icon: "el-icon-delete",
151
+ btnType: "danger",
152
+ name: "sysFileInfo:delete"
153
+ },
154
+ {
155
+ displayName: "\u4E0B\u8F7D",
156
+ functionName: "sysFileInfoDownload",
157
+ show: !0,
158
+ transKey: "gd.btn.download",
159
+ icon: "el-icon-download",
160
+ name: "sysFileInfo:download"
161
+ },
162
+ {
163
+ displayName: "\u9884\u89C8",
164
+ functionName: "preview",
165
+ show: !0,
166
+ transKey: "gd.btn.preview",
167
+ icon: "gd-icon-yanjing-kai",
168
+ name: "sysFileInfo:preview"
169
+ }
170
+ ],
171
+ tableQueries: [{
172
+ transKey: "gd.file.fileOriginName",
173
+ prop: "fileOriginName",
174
+ label: "\u6587\u4EF6\u540D\u79F0",
175
+ effectType: "input",
176
+ rules: []
177
+ }, {
178
+ transKey: "gd.file.fileLocation",
179
+ prop: "fileLocation",
180
+ label: "\u552F\u4E00\u7F16\u7801",
181
+ effectType: "select",
182
+ dictTypeCode: "file_storage_location",
183
+ rules: []
184
+ }, {
185
+ transKey: "gd.file.fileBucket",
186
+ prop: "fileBucket",
187
+ label: "\u6587\u4EF6\u4ED3\u5E93",
188
+ effectType: "input",
189
+ rules: []
190
+ }]
191
+ };
192
+ }
193
+ };
194
+ const w = {
195
+ data() {
196
+ return {
197
+ transKey: "gd.btn.edit",
198
+ fullscreen: !1,
199
+ visible: !1,
200
+ width: "900",
201
+ confirmLoading: !1,
202
+ src: "",
203
+ isShowValue: !1,
204
+ imgList: []
205
+ };
206
+ },
207
+ computed: {
208
+ height() {
209
+ return this.screenHeight - 24 - 40 - 36;
210
+ },
211
+ headTitle() {
212
+ return this.$i18nt(this.transKey, this.title);
213
+ },
214
+ ...d(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
215
+ },
216
+ methods: {
217
+ toggleFullscreen() {
218
+ this.fullscreen = !this.fullscreen;
219
+ },
220
+ open(t) {
221
+ this.fullscreen = !1, this.visible = !0, this.confirmLoading = !0, this.sysFileInfoPreview(t);
222
+ },
223
+ sysFileInfoPreview(t) {
224
+ c({
225
+ id: t.id
226
+ }).then((e) => {
227
+ this.confirmLoading = !1, this.downloadfile(e);
228
+ }).catch((e) => {
229
+ this.confirmLoading = !1, this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + e.message);
230
+ });
231
+ },
232
+ downloadfile(t) {
233
+ const e = new Blob([t]), i = window.URL.createObjectURL(e);
234
+ this.src = i, this.imgList[i], this.$refs.imgPreview.open();
235
+ },
236
+ closed() {
237
+ this.fullscreen = !1, this.visible = !1;
238
+ }
239
+ }
240
+ };
241
+ var v = function() {
242
+ var e = this, i = e._self._c;
243
+ return i("div", [i("gd-img-preview", { ref: "imgPreview", attrs: { filePreviewShow: e.imgList.length > 0, imgList: e.imgList, currentImg: e.src } })], 1);
244
+ }, _ = [], $ = /* @__PURE__ */ f(
245
+ w,
246
+ v,
247
+ _,
248
+ !1,
249
+ null,
250
+ "b1ae8123",
251
+ null,
252
+ null
253
+ );
254
+ const K = $.exports;
255
+ const T = {
256
+ name: "GdFile",
257
+ props: {
258
+ height: {
259
+ type: Number,
260
+ default: 100
261
+ }
262
+ },
263
+ mixins: [p, b],
264
+ components: {
265
+ previewFrom: K
266
+ },
267
+ data() {
268
+ return {
269
+ transKey: "gd.btn.edit",
270
+ loadData: (t) => g(Object.assign(t, this.queryParam)).then((e) => e.data),
271
+ selectedRows: [],
272
+ selectedRowKeys: [],
273
+ queryParam: {},
274
+ fileList: [],
275
+ options: {},
276
+ currentImg: "",
277
+ imgList: []
278
+ };
279
+ },
280
+ computed: {
281
+ getHeight() {
282
+ return this.height;
283
+ },
284
+ ...d(["tablePageSize", "tableSize", "labelPosition", "formMode"])
285
+ },
286
+ created() {
287
+ },
288
+ mounted() {
289
+ },
290
+ methods: {
291
+ editForm(t) {
292
+ this.transKey = "gd.file.detail", this.$refs.editForm.open(
293
+ Object.assign({
294
+ ...t
295
+ })
296
+ );
297
+ },
298
+ onSelectChange(t, e) {
299
+ if (this.selectedRows = e, this.selectedRowKeys = t, e.length == 0) {
300
+ this.baseHideBtns([], 2);
301
+ return;
302
+ }
303
+ if (e.length > 1) {
304
+ this.baseHideBtns(["\u9884\u89C8"], 2);
305
+ return;
306
+ }
307
+ let i = ["\u9884\u89C8"], s = e[0];
308
+ ["png", "jpeg", "jpg", "gif", "tif", "bmp", "doc", "docx", "xls", "xlsx", "pdf", "pptx"].includes(s.filesuffix) && (i = []), this.baseHideBtns(i, 2);
309
+ },
310
+ baseHideBtns(t, e = 1) {
311
+ let i = [...this.tableButtons];
312
+ i.map((s) => (e === 1 ? s.show = !t.includes(s.id) : s.show = !t.includes(s.displayName), s)), this.tableButtons = [...i];
313
+ },
314
+ saveQueries(t) {
315
+ this.queryParam = { ...t }, this.refresh();
316
+ },
317
+ refresh() {
318
+ this.$refs.table.refresh();
319
+ },
320
+ add() {
321
+ document.querySelector(".upload-demo").click();
322
+ },
323
+ handleFileUpload(t) {
324
+ const e = this.$message({
325
+ message: this.$i18nt("gd.https.uploading", "\u52A0\u8F7D\u4E2D..."),
326
+ duration: 0,
327
+ iconClass: "el-icon-loading"
328
+ }), i = new FormData();
329
+ i.append("file", t.file), h(i).then((s) => {
330
+ 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(() => {
331
+ setTimeout(() => {
332
+ e.close();
333
+ }, 200);
334
+ });
335
+ });
336
+ },
337
+ sysFileInfoDownload() {
338
+ if (this.selectedRowKeys.length === 0) {
339
+ this.$message.warning(this.$i18nt("gd.https.downTip", "\u8BF7\u9009\u62E9\u9700\u8981\u4E0B\u8F7D\u7684\u6587\u4EF6!"));
340
+ return;
341
+ }
342
+ if (this.selectedRowKeys.length > 1) {
343
+ this.$message.warning(this.$i18nt("gd.https.downTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u4E0B\u8F7D"));
344
+ return;
345
+ }
346
+ const t = this.$message({
347
+ message: this.$i18nt("gd.https.downloading", "\u6B63\u5728\u4E0B\u8F7D\u4E2D..."),
348
+ duration: 0,
349
+ iconClass: "el-icon-loading"
350
+ });
351
+ m({
352
+ id: this.selectedRows[0].id
353
+ }).then((e) => {
354
+ this.downloadfile(e), this.$nextTick(() => {
355
+ setTimeout(() => {
356
+ t.close();
357
+ }, 200);
358
+ });
359
+ }).catch((e) => {
360
+ this.$nextTick(() => {
361
+ setTimeout(() => {
362
+ t.close();
363
+ }, 200);
364
+ }), this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25"));
365
+ });
366
+ },
367
+ downloadfile(t) {
368
+ var e = new Blob([t.data], {
369
+ type: "application/octet-stream;charset=UTF-8"
370
+ }), i = t.headers["content-disposition"], s = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), l = s.exec(i), a = l[1], n = document.createElement("a"), r = window.URL.createObjectURL(e), u = /^["](.*)["]$/g;
371
+ n.style.display = "none", n.href = r, n.download = decodeURI(a.replace(u, "$1")), document.body.appendChild(n), n.click(), document.body.removeChild(n), window.URL.revokeObjectURL(r);
372
+ },
373
+ del() {
374
+ if (this.selectedRowKeys.length === 0) {
375
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
376
+ return;
377
+ }
378
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
379
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
380
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
381
+ showClose: !1,
382
+ confirmButtonLoading: !1,
383
+ cancelButtonLoading: !1,
384
+ closeOnClickModal: !1,
385
+ type: "warning",
386
+ confirmButtonClass: "el-button--danger",
387
+ customClass: "custom-alert",
388
+ callback: () => {
389
+ },
390
+ beforeClose: (t, e, i) => {
391
+ this.delHand(t, e, i);
392
+ }
393
+ });
394
+ },
395
+ delHand(t, e, i) {
396
+ if (t !== "confirm") {
397
+ i();
398
+ return;
399
+ }
400
+ let s = [];
401
+ this.selectedRows.forEach((l) => {
402
+ let a = y(l).then((n) => n);
403
+ s.push(a);
404
+ }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((l) => {
405
+ e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, i(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
406
+ const a = l.filter((n) => !n.success);
407
+ a.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") + a[0].message), this.refresh();
408
+ });
409
+ },
410
+ preview() {
411
+ if (this.selectedRowKeys.length === 0) {
412
+ this.$message.warning(this.$i18nt("Locals.common.https.editTip"));
413
+ return;
414
+ }
415
+ if (this.selectedRowKeys.length > 1) {
416
+ this.$message.warning(this.$i18nt("Locals.common.https.editTipOne"));
417
+ return;
418
+ }
419
+ let t = this.selectedRows[0];
420
+ if (["png", "jpeg", "jpg", "gif", "tif", "bmp"].includes(t.filesuffix)) {
421
+ this.baseFileImg(t);
422
+ return;
423
+ }
424
+ if (["doc", "docx", "xls", "xlsx", "pdf", "pptx"].includes(t.filesuffix)) {
425
+ this.previewMicrosoft(t);
426
+ return;
427
+ }
428
+ },
429
+ previewMicrosoft(t) {
430
+ this.$refs.filePreview.open({ name: t.fileoriginname, fileId: t.id });
431
+ },
432
+ baseFileImg(t) {
433
+ c({
434
+ id: t.id
435
+ }).then((e) => {
436
+ const i = window.URL.createObjectURL(new Blob([e]));
437
+ this.imgList = [i], this.currentImg = i, this.$nextTick(() => {
438
+ setTimeout(() => {
439
+ this.$refs.imgPreview.imgListShow = !0, this.$refs.imgPreview.open();
440
+ }, 0);
441
+ });
442
+ });
443
+ },
444
+ doEvent(t) {
445
+ let e = t.item.functionName;
446
+ this[e] && this[e]();
447
+ }
448
+ },
449
+ beforeDestroy() {
450
+ }
451
+ };
452
+ var L = function() {
453
+ var e = this, i = e._self._c;
454
+ 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 }) {
455
+ return [i("gd-tooltip", { attrs: { rowKey: "fileoriginname", row: l, highlight: "" }, on: { click: e.editForm } })];
456
+ } }, { key: "fileLocation", fn: function(s) {
457
+ 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)) + " ")])];
458
+ } }, { key: "fileSuffix", fn: function(s) {
459
+ return [i("el-tag", [e._v(" " + e._s(s.row.filesuffix) + " ")])];
460
+ } }, { key: "fileObjectName", fn: function({ column: s, row: l }) {
461
+ return [i("gd-tooltip", { attrs: { rowKey: "fileobjectname", row: l } })];
462
+ } }, { key: "filesizekb", fn: function({ column: s, row: l }) {
463
+ return [e._v(e._s(l.filesizekb) + "(kb)")];
464
+ } }, { key: "operator", fn: function() {
465
+ 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) {
466
+ return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.refresh.apply(null, arguments);
467
+ } }, model: { value: e.queryParam.fileOriginName, callback: function(s) {
468
+ e.$set(e.queryParam, "fileOriginName", s);
469
+ }, 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)])];
470
+ }, proxy: !0 }, { key: "filtering", fn: function({ colse: s, visible: l }) {
471
+ return [i("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: l }, on: { save: e.saveQueries } })];
472
+ } }]) })], 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);
473
+ }, x = [], k = /* @__PURE__ */ f(
474
+ T,
475
+ L,
476
+ x,
477
+ !1,
478
+ null,
479
+ "798823c8",
480
+ null,
481
+ null
482
+ );
483
+ const o = k.exports;
484
+ o.install = function(t) {
485
+ t.component(o.name, o);
486
+ };
487
+ export {
488
+ o as G
489
+ };