gds-plus-design-vue 1.2.2 → 1.2.4

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 (88) hide show
  1. package/lib/{chartbi.06e48153.js → chartbi.5eded588.js} +20 -20
  2. package/lib/{chartbi.cdd1e365.mjs → chartbi.c3bc6adb.mjs} +17 -9
  3. package/lib/gd-initial.js +17 -15
  4. package/lib/gd-initial.mjs +27181 -19838
  5. package/lib/main.00e2ba37.mjs +123 -0
  6. package/lib/main.55fab1ce.mjs +198 -0
  7. package/lib/main.7e1495ec.js +1 -0
  8. package/lib/{main.2415a49a.js → main.9c85b10c.js} +1 -1
  9. package/lib/main.a27e1e54.js +1 -0
  10. package/lib/main.a794f7cf.js +1 -0
  11. package/lib/{main.b2d0a309.mjs → main.b25a9b4c.mjs} +15 -15
  12. package/lib/{main.2cddfbbd.mjs → main.b4ad6d81.mjs} +3 -3
  13. package/lib/{messages.d8abe18d.mjs → messages.bc3bc0e8.mjs} +187 -172
  14. package/lib/{messages.2fff74f3.js → messages.fa3d97b5.js} +5 -5
  15. package/lib/style.css +2 -2
  16. package/lib/{system.account.9bc40d08.mjs → system.account.868f96f9.mjs} +26 -26
  17. package/lib/{system.account.8ea53681.js → system.account.e82580de.js} +1 -1
  18. package/lib/{system.config.c6e30213.js → system.config.6aae9ea6.js} +1 -1
  19. package/lib/{system.config.8223d495.mjs → system.config.71615d2b.mjs} +2 -2
  20. package/lib/{system.datasource.57233650.mjs → system.datasource.009a1673.mjs} +2 -2
  21. package/lib/{system.datasource.fd6a4e76.js → system.datasource.523ae242.js} +1 -1
  22. package/lib/{system.dict.a24f33b0.js → system.dict.0111a3bc.js} +1 -1
  23. package/lib/{system.dict.8f95218b.mjs → system.dict.8f562e89.mjs} +4 -4
  24. package/lib/{system.duplicatechecking.39293985.js → system.duplicatechecking.1865e065.js} +1 -1
  25. package/lib/{system.duplicatechecking.6b706948.mjs → system.duplicatechecking.f517abed.mjs} +2 -2
  26. package/lib/{system.email.dae988be.mjs → system.email.4c484530.mjs} +2 -2
  27. package/lib/{system.email.a2d9a307.js → system.email.70351605.js} +1 -1
  28. package/lib/{system.fieldsecurity.02627a7a.mjs → system.fieldsecurity.9f9f73df.mjs} +127 -79
  29. package/lib/system.fieldsecurity.d11088e3.js +1 -0
  30. package/lib/system.file.001a01bc.js +1 -0
  31. package/lib/{system.file.0fa095a9.mjs → system.file.96b3ce1e.mjs} +4 -4
  32. package/lib/{system.log.acb64505.mjs → system.log.80feb1c4.mjs} +2 -2
  33. package/lib/{system.log.c07ae5db.js → system.log.f7afb251.js} +1 -1
  34. package/lib/{system.machine.fc392d7f.mjs → system.machine.52e8a4f3.mjs} +1 -1
  35. package/lib/{system.machine.7fa3e3d1.js → system.machine.6e46b7a3.js} +1 -1
  36. package/lib/system.notice.365ddd35.js +1 -0
  37. package/lib/system.notice.b4247147.mjs +1690 -0
  38. package/lib/system.noticereceived.5545acf8.js +1 -0
  39. package/lib/{system.noticereceived.1aa70b65.mjs → system.noticereceived.eef2cf6e.mjs} +33 -24
  40. package/lib/{system.onlineuser.3d848a32.mjs → system.onlineuser.de5f62bf.mjs} +2 -2
  41. package/lib/{system.onlineuser.1c428d05.js → system.onlineuser.fd9fdc66.js} +1 -1
  42. package/lib/{system.org.fcf96d1e.mjs → system.org.94393315.mjs} +17 -68
  43. package/lib/system.org.d22168d6.js +1 -0
  44. package/lib/{system.permissions.a1a9505c.js → system.permissions.3c5c3573.js} +1 -1
  45. package/lib/{system.permissions.23f5b097.mjs → system.permissions.ccbe352d.mjs} +3 -3
  46. package/lib/{system.plugin.b6de4673.js → system.plugin.5d47e679.js} +1 -1
  47. package/lib/{system.plugin.e37f9dbc.mjs → system.plugin.8caa5d1f.mjs} +2 -2
  48. package/lib/{system.pos.a4fb19b0.js → system.pos.caaef4fc.js} +1 -1
  49. package/lib/{system.pos.1a01fc97.mjs → system.pos.e4be69c4.mjs} +2 -2
  50. package/lib/{system.promptmanagement.36a65c51.mjs → system.promptmanagement.1ad89863.mjs} +2 -2
  51. package/lib/{system.promptmanagement.290958b1.js → system.promptmanagement.e73f64a2.js} +1 -1
  52. package/lib/system.role.0323ddd5.mjs +2048 -0
  53. package/lib/system.role.b5b55ddd.js +1 -0
  54. package/lib/{system.sumberrules.dd6299e8.js → system.sumberrules.2babdd81.js} +1 -1
  55. package/lib/{system.sumberrules.cdef9308.mjs → system.sumberrules.42965c1e.mjs} +2 -2
  56. package/lib/{system.team.ee652fe4.mjs → system.team.28168433.mjs} +80 -49
  57. package/lib/system.team.a3527834.js +1 -0
  58. package/lib/{system.teammembers.26a2ba81.mjs → system.teammembers.08f3ce38.mjs} +3 -3
  59. package/lib/{system.teammembers.4a3dc336.js → system.teammembers.4b11e49b.js} +1 -1
  60. package/lib/{system.timers.4efa8a7d.mjs → system.timers.040b9bce.mjs} +2 -2
  61. package/lib/{system.timers.b9424204.js → system.timers.310b3710.js} +1 -1
  62. package/lib/{system.translation.21d2fd8b.js → system.translation.a4396166.js} +1 -1
  63. package/lib/{system.translation.0a9399b4.mjs → system.translation.c0068d8f.mjs} +3 -3
  64. package/lib/{system.user.d48a08db.js → system.user.20a5e7b4.js} +5 -5
  65. package/lib/{system.user.4fcfdf99.mjs → system.user.84e77277.mjs} +53 -23
  66. package/lib/{system.useraffiliation.a59ce45b.js → system.useraffiliation.307e3cd7.js} +1 -1
  67. package/lib/{system.useraffiliation.fb002239.mjs → system.useraffiliation.fb961d98.mjs} +3 -3
  68. package/lib/{system.webresource.3366cc29.js → system.webresource.0382b6b1.js} +1 -1
  69. package/lib/{system.webresource.4df01c92.mjs → system.webresource.2d0ab7a6.mjs} +3 -3
  70. package/lib/{system.welcome.472f099b.js → system.welcome.67d20fa4.js} +1 -1
  71. package/lib/{system.welcome.120f4b50.mjs → system.welcome.aaac4a40.mjs} +1 -1
  72. package/locale/en_US.js +109 -20
  73. package/locale/id_ID.js +107 -19
  74. package/locale/vi_VN.js +107 -19
  75. package/locale/zh_CN.js +106 -18
  76. package/package.json +1 -1
  77. package/lib/main.4c447fc3.js +0 -1
  78. package/lib/main.86fe06d4.mjs +0 -87
  79. package/lib/main.d091d06d.js +0 -1
  80. package/lib/system.fieldsecurity.a0cec24d.js +0 -1
  81. package/lib/system.file.d695ab37.js +0 -1
  82. package/lib/system.notice.5ae50bd4.mjs +0 -641
  83. package/lib/system.notice.f18578ae.js +0 -1
  84. package/lib/system.noticereceived.bfa98a9b.js +0 -1
  85. package/lib/system.org.5bb36f9c.js +0 -1
  86. package/lib/system.role.68de93ef.mjs +0 -1543
  87. package/lib/system.role.88100f66.js +0 -1
  88. package/lib/system.team.53d64006.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";const u=require("./system.fieldsecurity.a0cec24d.js"),c=require("./chartbi.06e48153.js"),b=require("./messages.2fff74f3.js"),y=require("./system.org.5bb36f9c.js"),g=require("./system.account.8ea53681.js"),_={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",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"200",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",label:"\u5907\u6CE8",align:"left",showOverflowTooltip:!0}],formColumns:[{transKey:"gd.user.roleName",effectType:"input",prop:"name",label:"\u89D2\u8272\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.org.code",prop:"code",effectType:"input",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.org.sort",prop:"sort",effectType:"inputnumber",label:"\u6392\u5E8F",defaultValue:100,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",type:"number"}]},{transKey:"gd.org.remark",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysRole:add"},{displayName:"\u590D\u5236\u89D2\u8272",functionName:"copy",show:!0,transKey:"gd.user.copyRole",icon:"el-icon-plus",name:"sysRole:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysRole:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysRole:delete"},{displayName:"\u6388\u6743\u7528\u6237",functionName:"userAuthorizationMenu",show:!0,transKey:"gd.user.userAuthorization",icon:"el-icon-user",name:"sysRole:userMenu"},{displayName:"\u6388\u6743\u83DC\u5355",functionName:"grantRoleMenu",show:!0,transKey:"gd.user.menuRole",icon:"el-icon-monitor",name:"sysRole:grantMenu"},{displayName:"\u6388\u6743APP\u83DC\u5355",functionName:"grantRoleAppMenu",show:!0,transKey:"gd.user.menuRoleApp",icon:"el-icon-mobile-phone",name:"sysRole:grantMenu"},{displayName:"\u6388\u6743\u6570\u636E",functionName:"grantRoleGrant",show:!0,transKey:"gd.user.dataRole",icon:"el-icon-tickets",name:"sysRole:grantData"},{displayName:"\u6388\u6743\u89C6\u56FE/\u8868\u5355",functionName:"grantRoleVF",show:!0,transKey:"gd.user.menuRolevf",icon:"el-icon-setting",name:"sysRole:grantMenu"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",effectType:"input",rules:[]}]}}};const K={data(){return{defaultProps:{children:"children",label:"title"},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:"800px",orgTreeData:[],checkedKeys:[]}},computed:{...c.mapGetters(["screenHeight","tableLists"])},methods:{handleSubmit(){const t=this.$refs.tree.getCheckedKeys();this.$emit("ok",Object.assign({...this.record},{checkedKeys:t})),this.closed()},getOrgData(){this.confirmLoading=!0,y.getOrgTree().then(t=>{t.success&&(this.orgTreeData=t.data,this.confirmLoading=!1)})},open(t){this.record=t,this.checkedKeys=t.checkedKeys,this.visible=!0,this.getOrgData()},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var k=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(n){e.visible=n},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.rangeRole","\u6388\u6743\u8303\u56F4"),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("el-tree",{ref:"tree",attrs:{data:e.orgTreeData,"show-checkbox":"","node-key":"id","default-expand-all":"","default-checked-keys":e.checkedKeys,props:e.defaultProps}}):e._e()],1)],2)],1)},w=[],$=c.normalizeComponent(K,k,w,!1,null,"2b164094",null,null);const T=$.exports;const C={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:"94%",loadData:[],submitData:{},loadSoData:t=>(this.confirmLoading=!0,new Promise((e,s)=>{this.confirmLoading=!1,e({pageNo:1,pageSize:500,totalRows:0,rows:this.loadData})})),columns:[{transKey:"gd.btn.entity",prop:"sysCodeGenName",label:"\u5B9E\u4F53",align:"left",type:"slot",slotType:"sysCodeGenName",width:120},{transKey:"gd.btn.query",prop:"getgrantd",label:"\u67E5\u8BE2",align:"left",type:"slot",slotType:"getgrantd",width:270,showTooltip:!1},{transKey:"gd.btn.add",prop:"addgrantd",label:"\u65B0\u589E",align:"left",type:"slot",slotType:"addgrantd",width:270,showTooltip:!1},{transKey:"gd.btn.edit",prop:"editgrantd",label:"\u7F16\u8F91",align:"left",type:"slot",slotType:"editgrantd",width:270,showTooltip:!1},{transKey:"gd.btn.del",prop:"delgrantd",label:"\u5220\u9664",align:"left",type:"slot",slotType:"delgrantd",width:270,showTooltip:!1},{transKey:"gd.relation.assignment",prop:"allocationgrantd",label:"\u5206\u6D3E",align:"left",type:"slot",slotType:"allocationgrantd",width:270,showTooltip:!1},{transKey:"gd.btn.share",prop:"sharegrantd",label:"\u5171\u4EAB",align:"left",type:"slot",slotType:"sharegrantd",width:270,showTooltip:!1}],currentList:{}}},components:{RoleScope:T},computed:{height(){return this.screenHeight-(this.fullscreen?120:310)},...c.mapGetters(["primaryColor","screenHeight","tableLists","tableSize","tablePageSize"])},methods:{handleSubmit(){this.confirmLoading=!0;let t=this.$refs.table.tableData;t.map(e=>(e.addgrant=e.addgrantd.length>0?e.addgrantd.join(","):null,e.delgrant=e.delgrantd.length>0?e.delgrantd.join(","):null,e.editgrant=e.editgrantd.length>0?e.editgrantd.join(","):null,e.getgrant=e.getgrantd.length>0?e.getgrantd.join(","):null,e.sharegrant=e.sharegrantd.length>0?e.sharegrantd.join(","):null,e.allocationgrant=e.allocationgrantd.length>0?e.allocationgrantd.join(","):null,e)),y.saveOrgDetail(Object.assign({...this.submitData},{grants:t})).then(e=>{this.confirmLoading=!1,e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message)})},setRoleScop(t){this.confirmLoading=!0;const e=this.$refs.table.tableData;e[t.index][t.name]=[...t.checkedKeys].join(","),this.loadData=[...e],this.refresh(),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F"))},openList(t,e,s){const n=this.$refs.table.tableData,i=`${t.prop.replace("grantd","")}custom`,a=n[s][i],o=a?a.split(",").map(Number):[];this.$refs.roleScope.open({index:s,item:t,checkedKeys:o,data:e,name:i})},getUserControlData(){this.confirmLoading=!0,y.getOrgDetail({roleId:this.record.id}).then(t=>{t.success?(t.data.grants.map(e=>(e.addgrantd=e.addgrant?e.addgrant.split(","):[],e.delgrantd=e.delgrant?e.delgrant.split(","):[],e.editgrantd=e.editgrant?e.editgrant.split(","):[],e.getgrantd=e.getgrant?e.getgrant.split(","):[],e.sharegrantd=e.sharegrant?e.sharegrant.split(","):[],e.allocationgrantd=e.allocationgrant?e.allocationgrant.split(","):[],e)),this.loadData=t.data.grants,this.submitData=t.data,this.$nextTick(()=>{setTimeout(()=>{this.refresh(),this.confirmLoading=!0},1e3),setTimeout(()=>{this.confirmLoading=!1},1200)})):(this.$message.error(t.message),this.confirmLoading=!1)})},open(t){this.record=t,this.visible=!0,this.getUserControlData()},closed(){this.fullscreen=!1,this.visible=!1},refresh(t=!0){this.$refs.table?this.$refs.table.refresh(t):console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},getDictionary(t){return this.$options.filters.dictData(t)},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var R=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(n){e.visible=n},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.dataRole","\u6388\u6743\u6570\u636E"),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"}],staticStyle:{"margin-top":"-12px"}},[e.visible?s("gd-tables",{ref:"table",attrs:{dataSource:e.loadSoData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.columns,height:e.height,filtering:!1,initialLoading:!1,showPagination:!1,rowKey:"sysCodeGenId",disabledRefresh:"",disabledColumnSettings:""},scopedSlots:e._u([e._l(e.columns,function(n){return{key:n.prop,fn:function({column:i,row:a,index:o}){return[n.prop==="sysCodeGenName"?s("div",[e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.syscodegenname))+" ")]):s("div",{staticClass:"grant-select"},[s("el-select",{staticStyle:{flex:"1"},attrs:{placeholder:e.$i18nt("gd.xlsxImport.mapFieldsTip","\u8BF7\u9009\u62E9\u6620\u5C04\u5B57\u6BB5"),filterable:"",clearable:"",multiple:""},model:{value:a[n.prop],callback:function(r){e.$set(a,n.prop,r)},expression:"row[item.prop]"}},[e._l(e.getDictionary("data_scope_type"),function(r){return[s("el-option",{attrs:{label:e.$i18nt(`Dynamics.${r.transkey}`,r.name),value:r.code}})]})],2),a[n.prop].includes("5")?s("el-button",{staticClass:"active-color flex-center",attrs:{type:"text"},on:{click:function(r){return e.openList(n,a,o)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.view","\u67E5\u770B"))+" ")]):e._e()],1)]}}})],null,!0)}):e._e()],1)],2),s("RoleScope",{ref:"roleScope",on:{ok:e.setRoleScop}})],1)},I=[],L=c.normalizeComponent(C,R,I,!1,null,"39b91bb5",null,null);const S=L.exports;const x={name:"LayoutItem",props:{record:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]}},data(){return{}},computed:{fadeColord(){return this.fadeColor(this.primaryColor,.1)},menusType(){return this.record[0]?this.record[0].menusType:0},...c.mapGetters(["primaryColor"])},methods:{hasAll(t){return!(this.checkedKeys.filter(s=>t.menuBtnIds.includes(s)).length>=t.menuBtnIds.length)},checkedBtn(t,e){this.$emit("checkedBtn",t,e)},change(t,e){this.$emit("change",t,e)},open(t){this.$emit("open",t)},checked(t){return!!this.checkedKeys.filter(s=>s===t.id)[0]},fadeColor(t,e){let s=parseInt(t.substring(1,3),16),n=parseInt(t.substring(3,5),16),i=parseInt(t.substring(5,7),16);return`rgba(${s},${n},${i},${e})`}}};var N=function(){var e=this,s=e._self._c;return s("div",{style:{"--fadecolor":e.fadeColord}},[e._l(e.record,function(n){return[s("div",{staticClass:"list-item"},[e.menusType===0?s("i",{class:n.open?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(i){return e.open(n)}}}):e._e(),e.menusType!==2?s("div",{staticClass:"item-name"},[s("el-checkbox",{attrs:{indeterminate:n.isIndeterminate},on:{change:function(i){return e.change(i,[n.id])}},model:{value:n.checked,callback:function(i){e.$set(n,"checked",i)},expression:"item.checked"}},[n.iconClass?s("i",{staticClass:"gd-icons",class:n.iconClass,staticStyle:{"font-size":"15px"}}):e._e(),e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.title))+" ")]),n.children&&n.children.length>0&&e.menusType===1?s("el-button",{staticStyle:{"margin-left":"12px",padding:"5px 15px"},attrs:{size:"mini"}},[e.hasAll(n)?s("span",{on:{click:function(i){return e.checkedBtn(n,1)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")]):s("span",{on:{click:function(i){return e.checkedBtn(n,0)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")])]):e._e()],1):e._e(),s("div",{staticClass:"item-data"},[n.children&&n.children.length>0&&n.children[0].menusType===2?s("div",{staticClass:"item-data-list"},[e._l(n.children,function(i){return[s("div",{staticClass:"item-name item-named",on:{click:function(a){return e.change(!i.checked,[i.id])}}},[i.checked?s("i",{staticClass:"gd-icons gd-icon-quanxuan active-color"}):s("div",{staticClass:"item-named-kuang"}),s("div",{staticClass:"item-named-title",class:i.checked?"active-color":""},[e._v(" "+e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.title))+" ")])])]})],2):e._e()])]),n.children&&n.children.length>0&&n.children[0].menusType!==2?s("div",{staticClass:"list-more"},[n.open?s("LayoutItem",{attrs:{record:n.children,checkedKeys:e.checkedKeys},on:{open:e.open,change:e.change,checkedBtn:e.checkedBtn}}):e._e()],1):e._e()]})],2)},D=[],B=c.normalizeComponent(x,N,D,!1,null,"53cbc9f1",null,null);const v=B.exports;const F={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:"94%",menuTreeData:[],checkedKeys:[],list:[],allClose:!1,menuAll:[],systemMenuAll:[],allCheckedKeys:[],appsId:""}},computed:{isIndeterminate(){return this.allClose?!1:this.checkedKeys.length>0},...c.mapGetters(["screenHeight","tableLists"])},components:{LayoutItem:v},methods:{handleSubmit(){this.confirmLoading=!0,u.sysRoleGrantMenu({id:this.record.id,grantmenuidlist:this.checkedKeys}).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok"),this.closed()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message),this.confirmLoading=!1})},checkedItemBtn(t,e){let s=[...this.checkedKeys].filter(n=>!t.menuBtnIds.includes(n));e===1&&(s=s.concat(t.menuBtnIds)),this.checkedKeys=[...s],this.handleItem()},openItem(t){let e=[...this.menuTreeData];const s=n=>(n=n.filter((i,a)=>(i.id===t.id&&(i.open=!i.open),i.children&&i.children.length>0&&(i.children=s(i.children)),!0)),n);s(e),this.menuTreeData=[...e]},changeItem(t,e,s=!0){let n=[...this.checkedKeys];this.checkedKeys.filter(l=>e.includes(l))[0];const i=this.list.filter(l=>e.includes(l.id))[0],a=s&&i?i.menuIds:[];if(t?n=this.checkedKeys.concat(e).concat(a):n=this.checkedKeys.filter(l=>!e.includes(l)).filter(l=>!a.includes(l)),this.checkedKeys=[...n],this.handleItem(),i.menusType===2)return;let o=[];this.findParent(this.menuTreeData,i,o);let r=[],d=[];o.forEach(l=>{this.checkedKeys.filter(f=>l.menuIds.includes(f)).length===l.menuIds.length&&l.menuIds.length>0&&!l.checked?r.push(l.id):d.push(l.id)}),r.forEach(l=>{this.changeItem(!0,[l],!1)}),d.forEach(l=>{this.changeItem(!1,[l],!1)})},handleItem(){let t=[...this.menuTreeData];const e=s=>(s=s.filter((n,i)=>{const a=this.checkedKeys.filter(o=>n.menuIds.includes(o));return this.checkedKeys.includes(n.id)?(n.checked=!0,n.isIndeterminate=!1):(n.checked=!1,n.isIndeterminate=a.length>0&&n.menuIds.length>0),n.children&&n.children.length>0&&(n.children=e(n.children)),!0}),s);e(t),this.menuTreeData=[...t],this.allClose=this.checkedKeys.length===this.allCheckedKeys.length&&this.allCheckedKeys.length>0},changeAll(t){t?this.checkedKeys=[...this.allCheckedKeys]:this.checkedKeys=[],this.handleItem()},init(){this.confirmLoading=!0,Promise.all([this.getMenuTree(),this.expandedMenuKeys(),this.getMenuList()]).then(async t=>{let e=[],s=[];const n=r=>(r=r.filter((d,l)=>{const h=this.checkedKeys.filter(p=>d.id===p)[0];return d.open=!0,d.checked=d.type===1?!!h:!1,d.isIndeterminate=!1,d.menusType=d.type,e.push(d.id),s.push(d),d.children&&d.children.length>0&&(d.children=n(d.children)),!0}),r);let i=this.menuAll.filter(r=>!!this.systemMenuAll.filter(l=>l.id===r.id)[0]);await n(i),this.allCheckedKeys=e;let a=[];s.forEach((r,d)=>{const l=this.getMenuIds(r);s[d].menuIds=l.arr,s[d].menuBtnIds=l.btn,!(this.checkedKeys.filter(f=>l.arr.includes(f)).length===l.arr.length)&&l.arr.length>0&&a.push(r.id)}),this.list=s;const o=this.checkedKeys.filter(r=>e.includes(r)).filter(r=>!a.includes(r)).filter((r,d,l)=>l.indexOf(r)===d);this.checkedKeys=o,this.allClose=this.checkedKeys.length===e.length&&e.length>0,this.menuTreeData=[...i],this.handleItem(),this.confirmLoading=!1})},open(t,e){this.record=t,this.appsId=e||window.$systemInfo.id,this.visible=!0,this.init()},getMenuTree(){return g.SysMenuTreeForGrant({roleId:this.record.id}).then(t=>(t.code===200&&(this.menuAll=t.data),t))},expandedMenuKeys(){return u.sysRoleOwnMenu({id:this.record.id}).then(t=>(t.code===200&&(this.checkedKeys=t.data),t))},getMenuList(){let t={AppsId:this.appsId};return g.sysMenuListByAppsId(t).then(e=>(e.code===200&&(this.systemMenuAll=e.data),e))},getMenuIds(t){let e=[],s=[];const n=i=>(i=i.filter((a,o)=>(a.menusType!==2?e.push(a.id):s.push(a.id),a.children&&a.children.length>0&&(a.children=n(a.children)),!0)),i);return t.children&&n(t.children),{arr:e,btn:s}},findParent(t,e,s){for(let n of t)if(n.id===e.parentId||n.children&&n.children.length>0&&this.findParent(n.children,e,s))return s.unshift(n),!0;return!1},closed(){this.fullscreen=!1,this.visible=!1,this.menuTreeData=[],this.checkedKeys=[]},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var M=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(n){e.visible=n},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.dataRole","\u6388\u6743\u6570\u636E"),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"}],staticStyle:{"min-height":"400px"}},[e.visible?s("LayoutItem",{attrs:{record:e.menuTreeData,checkedKeys:e.checkedKeys},on:{open:e.openItem,change:e.changeItem,checkedBtn:e.checkedItemBtn}}):e._e()],1),s("template",{slot:"footer"},[s("div",{staticClass:"btoms"},[s("el-checkbox",{attrs:{disabled:e.confirmLoading,indeterminate:e.isIndeterminate},on:{change:e.changeAll},model:{value:e.allClose,callback:function(n){e.allClose=n},expression:"allClose"}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")])],1)])],2)],1)},A=[],O=c.normalizeComponent(F,M,A,!1,null,"d82ecaae",null,null);const P=O.exports;const z={name:"GdUserRole",props:{height:{type:Number,default:100},openSelecteKeys:{type:Array,default:()=>[]},openMode:{type:String,default:"page"}},mixins:[b.tablesFilter],data(){return{transKey:"gd.btn.add",formLoading:!1,currentNode:null,loading:!0,orgTree:[],selectedRowKeys:[],selectedRows:[],queryParam:{},defaultProps:{children:"children",label:"title",value:"value"},defaultExpandedKeys:"",loadData:t=>g.getUserManage({roleId:this.openSelecteKeys[0]}).then(e=>(this.getRowId(e.data),{pageNo:1,pageSize:1e3,totalRows:0,rows:e.data})),disableBtn:[],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",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}],formColumnsuser:[{transKey:"gd.user.account",effectType:"input",prop:"account",label:"\u8D26\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",min:2}]},{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.sex",prop:"gender",effectType:"radio",label:"\u6027\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"gender",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.birthday",prop:"birthday",effectType:"date",label:"\u751F\u65E5",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-dd",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.user.phone",effectType:"input",prop:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.email",effectType:"input",prop:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!",transKey:"gd.account.emailTip"}]},{transKey:"gd.user.nickname",prop:"nickname",effectType:"input",label:"\u6635\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.tel",prop:"tel",effectType:"input",label:"\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.org.displayName",prop:"orgid",effectType:"selectTree",label:"\u6240\u5C5E\u673A\u6784",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.user.PSDNeverExpire",prop:"psdneverexpire",effectType:"switch",label:"\u5BC6\u7801\u6C38\u4E0D\u8FC7\u671F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysRole:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysRole:delete"}],disabledRowId:[],sysCodeGenName:"sys_user"}},components:{},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getQueryParam(){let t=new Map;for(let e in this.queryParam)t.set(e==="statecodes"?"searchctatus":e,this.queryParam[e]);return Object.fromEntries(t)},getFormColumns(){return this.formColumnsuser.filter(e=>(e.prop==="orgid"&&(e.treeOptions=[...this.orgTree]),!0))},getTableButtons(){return this.tableButtons.filter(t=>(t.show=!this.disableBtn.includes(t.displayName),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...c.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{getRowId(t){let e=[];t.filter(s=>!this.disabledRowId.includes(s.id)).forEach(s=>{e.push(s.id)}),this.disabledRowId=this.disabledRowId.concat(e)},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},getOrgTree(){y.getOrgTree({}).then(t=>{if(t.code===200){const e=s=>(s=s.filter((n,i)=>(n.value=String(n.value),n.children&&n.children.length>0&&(n.children=e(n.children)),!0)),s);this.orgTree=e(t.data)}this.loading=!1})},handleNodeClick(t){this.queryParam.orgId===t.id?(delete this.queryParam.orgId,this.$nextTick(()=>{setTimeout(()=>{this.$refs.tree.setCurrentKey(null)},0)})):this.queryParam=Object.assign({...this.queryParam},{orgId:t.id}),this.refresh()},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},lookupSeled(t){if(t.fkData.length===0){this.$refs.engineSearch.closed();return}this.$refs.engineSearch.confirmLoading=!0,g.postbindUsersToRole({roleId:this.openSelecteKeys[0],userIdList:t.data}).then(e=>{e.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")+e.message),this.$refs.engineSearch.confirmLoading=!1})},add(){this.$refs.engineSearch.open({fkEntityName:this.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,n)=>{if(e!=="confirm"){n();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,g.postunbindUsersFromRole({roleId:t.openSelecteKeys[0],userIdList:t.selectedRowKeys}).then(i=>{i.success?(t.$message.success(t.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),t.disabledRowId=t.disabledRowId.filter(a=>!t.selectedRows.filter(r=>r.id===a)[0]),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,n(),t.refresh()):t.$message.error(t.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+i.message)})}})}},created(){}};var E=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[s("div",{staticClass:"page-view-list"},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,showPagination:!1,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:n,row:i}){return[s("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(i.name)+" ")])]}},{key:"nickname",fn:function({column:n,row:i}){return[s("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(i.nickname)+" ")])]}},{key:"orgname",fn:function({column:n,row:i}){return[s("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(i.orgname)+" ")])]}},{key:"sex",fn:function({column:n,row:i}){return[s("span",[e._v(" "+e._s(e._f("dictType")("gender",i.gender))+" ")])]}},{key:"status",fn:function({column:n,row:i}){return[s("span",[e._v(" "+e._s(e._f("dictType")("state_code",i.statecodes))+" ")])]}}])}),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)])},q=[],G=c.normalizeComponent(z,E,q,!1,null,"e9dd56ab",null,null);const j=G.exports;const H={data(){return{buttons:[],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[]}},components:{UserFormDate:j},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...c.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.closed(),this.$emit("ok")},open(t){this.record=t,this.visible=!0,this.selectedRowKeys=[t.id],this.$nextTick(()=>{setTimeout(()=>{this.$refs.userForm.refresh()},0)})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(t){this.selectedRowKeys=t},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var V=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,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(n){e.visible=n},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.userAuthorization","\u6388\u6743\u7528\u6237"),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("UserFormDate",{ref:"userForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},U=[],Q=c.normalizeComponent(H,V,U,!1,null,"46b57430",null,null);const J=Q.exports;const W={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:"94%",menuTreeData:[],menuTreeDatad:[],checkedKeys:[],list:[],allClose:!1,menuAll:[],systemMenuAll:[],allCheckedKeys:[]}},computed:{isIndeterminate(){return this.allClose?!1:this.checkedKeys.length>0},...c.mapGetters(["screenHeight","tableLists"])},components:{LayoutItem:v},methods:{async handleSubmit(){const t=e=>(e=e.filter((s,n)=>{const i=this.checkedKeys.filter(a=>s.id===a)[0];return s.type=i?1:0,s.formlist&&s.formlist.length>0&&(s.formlist=t(s.formlist)),s.viewlist&&s.viewlist.length>0&&(s.viewlist=t(s.viewlist)),s.btnlist&&s.btnlist.length>0&&(s.btnlist=t(s.btnlist)),!0}),e);this.confirmLoading=!0,await t(this.menuAll),u.sysRoleRoleBindViewOnBtn({roleid:this.record.id,list:this.menuAll}).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok"),this.closed()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message),this.confirmLoading=!1})},checkedItemBtn(t,e){let s=[...this.checkedKeys].filter(n=>!t.menuBtnIds.includes(n));e===1&&(s=s.concat(t.menuBtnIds)),this.checkedKeys=[...s],this.handleItem()},openItem(t){let e=[...this.menuTreeData];const s=n=>(n=n.filter((i,a)=>(i.id===t.id&&(i.open=!i.open),i.children&&i.children.length>0&&(i.children=s(i.children)),!0)),n);s(e),this.menuTreeData=[...e]},changeItem(t,e,s=!0){let n=[...this.checkedKeys];this.checkedKeys.filter(l=>e.includes(l))[0];const i=this.list.filter(l=>e.includes(l.id))[0],a=s&&i?i.menuIds:[];if(t?n=this.checkedKeys.concat(e).concat(a):n=this.checkedKeys.filter(l=>!e.includes(l)).filter(l=>!a.includes(l)),this.checkedKeys=[...n],this.handleItem(),i.menusType===2)return;let o=[];this.findParent(this.menuTreeData,i,o);let r=[],d=[];o.forEach(l=>{this.checkedKeys.filter(f=>l.menuIds.includes(f)).length===l.menuIds.length&&l.menuIds.length>0&&!l.checked?r.push(l.id):d.push(l.id)}),r.forEach(l=>{this.changeItem(!0,[l],!1)}),d.forEach(l=>{this.changeItem(!1,[l],!1)})},handleItem(){let t=[...this.menuTreeData];const e=s=>(s=s.filter((n,i)=>{const a=this.checkedKeys.filter(o=>n.menuIds.includes(o));return this.checkedKeys.includes(n.id)?(n.checked=!0,n.isIndeterminate=!1):(n.checked=!1,n.isIndeterminate=a.length>0&&n.menuIds.length>0),n.children&&n.children.length>0&&(n.children=e(n.children)),!0}),s);e(t),this.menuTreeData=[...t],this.allClose=this.checkedKeys.length===this.allCheckedKeys.length&&this.allCheckedKeys.length>0},changeAll(t){t?this.checkedKeys=[...this.allCheckedKeys]:this.checkedKeys=[],this.handleItem()},init(){this.confirmLoading=!0,Promise.all([this.getList()]).then(async t=>{this.confirmLoading=!1;let e=JSON.parse(JSON.stringify(this.menuTreeDatad)),s=[];const n=a=>(a=a.filter((o,r)=>{const d=this.checkedKeys.filter(l=>o.id===l)[0];return o.open=!0,o.checked=o.menusType===1?!!d:!1,o.isIndeterminate=!1,s.push(o),o.children&&o.children.length>0&&(o.children=n(o.children)),!0}),a);await n(e);let i=[];s.forEach((a,o)=>{const r=this.getMenuIds(a);s[o].menuIds=r.arr,s[o].menuBtnIds=r.btn,!(this.checkedKeys.filter(h=>r.arr.includes(h)).length===r.arr.length)&&r.arr.length>0&&i.push(a.id)}),this.list=s,this.allClose=this.checkedKeys.length===this.allCheckedKeys.length&&this.allCheckedKeys.length>0,this.menuTreeData=[...e],this.handleItem(),console.log(this.menuAll,"123")})},getList(){return u.sysRoleViewOnBtnList({roleId:this.record.id}).then(t=>{if(t.code===200){let e=[],s=[];const n=(a,o)=>(a=a.filter((r,d)=>{r.parentId=o,r.open=!0,r.checked=!1,r.isIndeterminate=!1,r.transkey=r.transkey?r.transkey:null,r.title=r.name,r.menusType=r.formlist&&r.viewlist?0:r.btnlist?1:2,s.push(r.id),r.type===1&&e.push(r.id);let l=[];return r.viewlist&&r.viewlist.length>0&&(r.viewlist.map(h=>(h.iconClass="gd-icon-shitumoshi",h)),l=l.concat(r.viewlist)),r.formlist&&r.formlist.length>0&&(r.formlist.map(h=>(h.iconClass="gd-icon-biaodanmoshi",h)),l=l.concat(r.formlist)),r.btnlist&&r.btnlist.length>0&&(l=l.concat(r.btnlist)),l.length>0&&(r.children=n(l,r.id)),!0}),a);this.menuAll=t.data.list;let i=JSON.parse(JSON.stringify(this.menuAll));n(i,0),this.checkedKeys=e,this.allCheckedKeys=s,this.menuTreeDatad=[...i]}return t})},getMenuIds(t){let e=[],s=[];const n=i=>(i=i.filter((a,o)=>(a.menusType!==2?e.push(a.id):s.push(a.id),a.children&&a.children.length>0&&(a.children=n(a.children)),!0)),i);return t.children&&n(t.children),{arr:e,btn:s}},findParent(t,e,s){for(let n of t)if(n.id===e.parentId||n.children&&n.children.length>0&&this.findParent(n.children,e,s))return s.unshift(n),!0;return!1},open(t){this.record=t,this.visible=!0,this.init()},closed(){this.fullscreen=!1,this.visible=!1,this.menuTreeData=[],this.checkedKeys=[]},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var X=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(n){e.visible=n},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.dataRole","\u6388\u6743\u6570\u636E"),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"}],staticStyle:{"min-height":"400px"}},[e.visible?s("LayoutItem",{attrs:{record:e.menuTreeData,checkedKeys:e.checkedKeys},on:{open:e.openItem,change:e.changeItem,checkedBtn:e.checkedItemBtn}}):e._e()],1),s("template",{slot:"footer"},[s("div",{staticClass:"btoms"},[s("el-checkbox",{attrs:{disabled:e.confirmLoading,indeterminate:e.isIndeterminate},on:{change:e.changeAll},model:{value:e.allClose,callback:function(n){e.allClose=n},expression:"allClose"}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")])],1)])],2)],1)},Y=[],Z=c.normalizeComponent(W,X,Y,!1,null,"e6593396",null,null);const ee=Z.exports;const te={name:"GdRole",props:{height:{type:Number,default:100},openMode:{type:String,default:"page"},openSelecteKeys:{type:Array,default:()=>[]}},mixins:[b.tablesFilter,_],data(){return{appsId:"",transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},allRowData:[],loadData:t=>(this.selectedKeep&&(this.selectedRowKeys=[...this.openSelecteKeys]),u.getRolePage(Object.assign(t,this.queryParam,{sysAppsId:window.$systemInfo.id})).then(e=>(this.allRowData=e.data,e.data)))}},components:{RoleGrant:S,RoleMenu:P,RoleMenuViewForm:ee,UserAuthorization:J},computed:{getTableButtons(){return this.tableButtons.filter(t=>t.functionName==="grantRoleAppMenu"?!!this.appsId:!0)},initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getFormColumns(){return this.formColumns.filter(t=>(t.prop==="code"&&(t.disabled=this.transKey!=="gd.btn.add"),!(this.transKey==="gd.https.copy"&&t.prop==="code")))},getHeight(){return this.height},...c.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{getAppId(){g.getConfigInfoByCode({code:"App_Id"}).then(t=>{t.code===200&&(this.appsId=t.data?t.data.value:"")})},userAuthorizationMenu(){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.$refs.userAuthorization.open(this.selectedRows[0])},grantRoleMenu(){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.$refs.roleMenu.open(this.selectedRows[0])},grantRoleAppMenu(){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.$refs.roleMenu.open(this.selectedRows[0],this.appsId)},grantRoleGrant(){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.$refs.roleGrant.open(this.selectedRows[0])},grantRoleVF(){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.$refs.roleMenuViewForm.open(this.selectedRows[0])},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.$refs.editForm.open(t)},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}let n=[];this.selectedRows.forEach(i=>{let a=u.sysRoleDelete(i).then(o=>o);n.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(n).then(i=>{const a=i.filter(o=>!o.success);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),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},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])},copy(){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.transKey="gd.https.copy",this.$refs.editForm.open(Object.assign({...this.selectedRows[0]},{roleId:this.selectedRows[0].id}))},sbumit({data:t,record:e,btn:s},n,i){this.formLoading=!0;let a=e?this.transKey==="gd.https.copy"?u.sysRoleCopyRole:u.sysRoleEdit:u.sysRoleAddV2;const o=this.transKey!=="gd.https.edit"?Object.assign(t,{sysappsid:window.$systemInfo.id}):t;a(o).then(r=>{r.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),i(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r.message),this.formLoading=!1})},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e,this.allRowData)},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},created(){this.getAppId()}};var se=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0,selectedKeep:e.selectedKeep,initialLoading:e.initialLoading},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:n,row:i}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:i,highlight:""},on:{click:e.editForm}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.user.roleName","\u89D2\u8272\u540D"),clearable:""},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(n){e.$set(e.queryParam,"name",n)},expression:"queryParam.name"}}),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"},[e.openMode==="page"?s("gd-btn-list",{attrs:{sysViewButtons:e.getTableButtons},on:{functionName:e.doEvent}}):e._e()],1)])]},proxy:!0},{key:"filtering",fn:function({colse:n,visible:i}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:n,visible:i},on:{save:e.saveQueries}})]}}])})],1),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},on:{sbumit:e.sbumit}}),s("RoleGrant",{ref:"roleGrant",on:{ok:e.refresh}}),s("RoleMenu",{ref:"roleMenu",on:{ok:e.refresh}}),s("RoleMenuViewForm",{ref:"roleMenuViewForm",on:{ok:e.refresh}}),s("UserAuthorization",{ref:"userAuthorization",on:{ok:e.refresh}})],1)},ne=[],ie=c.normalizeComponent(te,se,ne,!1,null,"005c52d9",null,null);const m=ie.exports;m.install=function(t){t.component(m.name,m)};exports.GDpackage=m;
@@ -1 +0,0 @@
1
- "use strict";const o=require("./chartbi.06e48153.js"),l=require("./messages.2fff74f3.js");function p(t){return window.axios({url:"/sysTeam/page",method:"get",params:t})}function g(t){return window.axios({url:"/sysTeam/add",method:"post",data:t})}function y(t){return window.axios({url:"/sysTeam/edit",method:"post",data:t})}function b(t){return window.axios({url:"/sysTeam/delete",method:"post",data:t})}function _(t){return window.axios({url:"/sysTeam/detail",method:"get",params:t})}function m(t){return window.axios({url:"/sysTeam/members",method:"get",params:t})}function c(t){return window.axios({url:"/sysTeam/member/add",method:"post",data:t})}function u(t){return window.axios({url:"/sysTeam/member/edit",method:"post",data:t})}function h(t){return window.axios({url:"/sysTeam/member/delete",method:"post",data:t})}function f(t){return window.axios({url:"/sysTeam/member/detail",method:"get",params:t})}const w={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.team.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.team.amdmin",prop:"administratorid",label:"\u7BA1\u7406\u5458",type:"slot",slotType:"administratorid",align:"left"},{transKey:"gd.team.teamtype",prop:"teamtype",label:"\u56E2\u961F\u7C7B\u578B",type:"slot",slotType:"teamtype",align:"left"},{transKey:"gd.team.describe",prop:"description",label:"\u63CF\u8FF0",align:"left"},{transKey:"gd.team.createdTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTeam:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTeam:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTeam:delete"}]}}},$={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.team.name",prop:"sys_teamid",label:"\u540D\u79F0",type:"slot",slotType:"sys_teamid",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.team.member",prop:"sys_userid",label:"\u6210\u5458",type:"slot",slotType:"sys_userid",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTeam:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTeam:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTeam:delete"}]}}};const v={props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0},sys_teamid:{type:Number,default:0},typeAdd:{type:Number,default:1},openMode:{type:Number,default:1}},data(){return{width:"50%",visible:!1,fullScreen:!1,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],title:"",confirmLoading:!1,type:1,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},ruleFormData:{id:"",sys_userid:"",sys_teamid:""},dataList:[],columnList:[],ownerid:"",firstLoading:!1,firstLoading1:!1}},computed:{disableds(){return this.typeAdd==2}},methods:{lookupSeled(t){this.dataList=[...t.fkData],this.$set(this.ruleFormData,"sys_userid",t.data[0])},lookup(t){let e={effectType:"fk",fkEntityName:"sys_user",val:t||[]};this.$refs.msgSearch.open(e)},open(t){this.visible=!0,this.fullScreen=!1,this.title=t?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.type=t?2:1,this.typeAdd==2&&this.searchData(this.sys_teamid),t&&this.getDetail(t.id)},getDetail(t){t!=""&&(this.dataList=[],f({id:t}).then(e=>{if(e.code==200){let s=e.data;this.dataList.push({id:s.sys_userid,name:s.username}),this.columnList.push({id:s.sys_teamid,name:s.teamname});let a={id:s.id,sys_userid:s.sys_userid,sys_teamid:s.sys_teamid};this.firstLoading=!0,this.firstLoading1=!0,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=a},0)})}}))},searchData(t){this.columnList=[],l.baseFkList({fkEntityName:"sys_team",id:t}).then(e=>{e.code==200&&(this.ruleFormData.sys_teamid=t,this.columnList=e.data.length>0?e.data:[])})},searchList(){this.firstLoading||(this.adminClick(""),this.firstLoading=!0)},adminClick(t){this.dataList=[],this.fetching=!0,l.baseFkList({fkEntityName:"sys_user",name:t}).then(e=>{e.code==200&&(this.dataList=e.data)})},searchList1(){this.firstLoading1||(this.userClick(""),this.firstLoading1=!0)},userClick(t){this.columnList=[],this.fetching=!0,l.baseFkList({fkEntityName:"sys_team",name:t}).then(e=>{e.code==200&&(this.columnList=e.data)})},handleSubmit(){this.$refs.ruleForm.validate(t=>{t&&(this.type==1?this.add(this.ruleFormData):this.edit(this.ruleFormData))})},add(t){this.confirmLoading=!0,delete t.id,c(t).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25: ")+e.message)}).finally(e=>{this.confirmLoading=!1})},edit(t){this.confirmLoading=!0,u(t).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25: ")+e.message)}).finally(e=>{this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.firstLoading=!1,this.firstLoading1=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={sys_userid:"",sys_teamid:""}},getDictionary(t){return this.$options.filters.dictData(t)},toggleFullscreen(){this.fullScreen=!this.fullScreen},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var k=function(){var e=this,s=e._self._c;return s("div",[s("el-dialog",{class:e.fullScreen?"gd-dialog":"gd-dialog gd-dialog-fangda",attrs:{width:e.width,visible:e.visible,fullscreen:e.fullScreen,footer:null,top:"80px","modal-append-to-body":e.modalAppendToBody,"append-to-body":e.appendToBody,"close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullScreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("div",{class:e.fullScreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",attrs:{rules:e.rules,model:e.ruleFormData,"label-width":"100px"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:e.$i18nt("gd.team.member","\u7528\u6237"),prop:"sys_userid"}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",filterable:"",remote:"",clearable:"","collapse-tags":!0,"remote-method":e.adminClick},on:{focus:e.searchList},model:{value:e.ruleFormData.sys_userid,callback:function(a){e.$set(e.ruleFormData,"sys_userid",a)},expression:"ruleFormData.sys_userid"}},e._l(e.dataList,function(a,i){return s("el-option",{key:a.id+"&"+i,attrs:{label:a.name,value:a.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(a){return e.lookup(e.ruleFormData.sys_userid)}}})])],1)])],1),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:e.$i18nt("gd.team.team","\u56E2\u961F"),prop:"sys_teamid"}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",filterable:"",remote:"",clearable:"","collapse-tags":!0,disabled:e.disableds,"remote-method":e.userClick},on:{focus:e.searchList1},model:{value:e.ruleFormData.sys_teamid,callback:function(a){e.$set(e.ruleFormData,"sys_teamid",a)},expression:"ruleFormData.sys_teamid"}},e._l(e.columnList,function(a,i){return s("el-option",{key:a.id+"&"+i,attrs:{label:a.name,value:a.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{lookup:function(a){e.ruleFormData.sys_teamid}}})])],1)])],1)],1)],1)],1)])],1),s("gd-search",{ref:"msgSearch",attrs:{appendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},F=[],L=o.normalizeComponent(v,k,F,!1,null,"0613082f",null,null);const T=L.exports;const C={name:"GdTeamMembers",mixins:[l.tablesFilter,$],props:{height:{type:Number,default:100},sys_teamid:{type:Number,default:0},type:{type:Number,default:1},openMode:{type:Number,default:1}},data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:t=>m(Object.assign(t,this.getQueryParam,{SysTeamId:this.sys_teamid})).then(e=>(console.log(e),e.data))}},computed:{getHeight(){return this.height},getQueryParam(){let t=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&(e==="msgStatus"||e==="sendType"))t.set(e,this.queryParam[e].join(","));else if(this.queryParam[e]&&(e==="actualOn"||e==="createdTime"||e==="scheduledStartedOn")){if(this.queryParam[e].length>0){let s=this.queryParam[e],a=s[0].split(" ")[0],i=s[1].split(" ")[0];t.set(`${e}Start`,`${a} 00:00:00`),t.set(`${e}End`,`${i} 23:59:59`)}}else t.set(e,this.queryParam[e]);return Object.fromEntries(t)},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},components:{editForm:T},watch:{type(t,e){this.$refs.table&&this.$refs.table.refresh()},sys_teamid(t,e){this.$refs.table&&this.$refs.table.refresh()}},methods:{editForm(t){this.transKey="gd.btn.edit",this.$refs.editForm.open(t)},add(){this.$refs.editForm.open()},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])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let a=[];this.selectedRows.forEach(i=>{let n=h({id:i.id}).then(r=>r);a.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(a).then(i=>{const n=i.filter(r=>!r.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},handleOk(){this.refresh()},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(a=>a.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var D=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!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:"sys_teamid",fn:function({column:a,row:i}){return[s("gd-tooltip",{attrs:{rowKey:"teamname",row:i,highlight:""},on:{click:e.editForm}})]}},{key:"sys_userid",fn:function({column:a,row:i}){return[i.sys_userid?s("span",[e._v(" "+e._s(i.username)+" ")]):e._e()]}}])})],1),s("editForm",{ref:"editForm",attrs:{openPermissions:!0,sys_teamid:e.sys_teamid,typeAdd:e.type,openMode:e.openMode},on:{ok:e.handleOk}})],1)},S=[],x=o.normalizeComponent(C,D,S,!1,null,"65460067",null,null);const B=x.exports;const N={props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{width:"60%",visible:!1,fullScreen:!1,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],confirmLoading:!1,type:0,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],administratorid:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},ruleFormData:{id:"",name:"",administratorid:"",teamtype:"2",description:""},dataList:[],columnList:[],ownerid:"",firstLoading:!1}},computed:{detailShow(){return!!this.ruleFormData.id},title(){return this.ruleFormData.id?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add")}},components:{teamMemberDetail:B},methods:{lookupSeled(t){this.dataList=[...t.fkData],this.$set(this.ruleFormData,"administratorid",t.data[0])},lookup(t){let e={effectType:"fk",fkEntityName:"sys_user",val:t||[]};this.$refs.msgSearch.open(e)},open(t){this.visible=!0,this.fullScreen=!1,this.type=t?2:1,this.ruleFormData.id=t?t.id:"",t&&this.getDetail(t.id)},getDetail(t){t!=""&&(this.dataList=[],_({id:t}).then(e=>{if(e.code==200){let s=e.data;this.dataList.push({id:s.administratorid,name:s.administratorname}),this.columnList.push({id:s.ownerid,name:s.ownername});let a={id:s.id,name:s.name,teamtype:s.teamtype?s.teamtype.toString():"",description:s.description,administratorid:s.administratorid};this.firstLoading=!0,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=a,this.ownerid=s.ownerid},0)})}}))},searchData(t){this.dataList=[],l.baseFkList({fkEntityName:"sys_user",id:t.administratorid}).then(e=>{e.code==200&&(this.firstLoading=!0,e.data.length>0?this.dataList=e.data:this.dataList.push({id:t.administratorid,name:t.administratorname}))})},searchList(){this.firstLoading||(this.adminClick(""),this.firstLoading=!0)},adminClick(t){this.dataList=[],this.fetching=!0,l.baseFkList({fkEntityName:"sys_user",name:t}).then(e=>{e.code==200&&(this.dataList=e.data)})},handleSubmit(){this.$refs.ruleForm.validate(t=>{t&&(console.log(this.type),this.type==1?this.add(this.ruleFormData):this.edit(this.ruleFormData))})},add(t){this.confirmLoading=!0,delete t.id,g(t).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok"),this.ruleFormData.id=e.data,this.type=2,this.getDetail(e.data)):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25: ")+e.message)}).finally(e=>{this.confirmLoading=!1})},edit(t){this.confirmLoading=!0,y(t).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25: ")+e.message)}).finally(e=>{this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={id:"",name:"",administratorid:"",teamtype:"2",description:""},this.ownerid="",this.type=1},getDictionary(t){return this.$options.filters.dictData(t)},toggleFullscreen(){this.fullScreen=!this.fullScreen},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var K=function(){var e=this,s=e._self._c;return s("div",[s("el-dialog",{class:e.fullScreen?"gd-dialog":"gd-dialog gd-dialog-fangda",attrs:{width:e.width,visible:e.visible,fullscreen:e.fullScreen,footer:null,top:"80px","modal-append-to-body":e.modalAppendToBody,"append-to-body":e.appendToBody,"close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullScreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("div",{class:e.fullScreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",attrs:{rules:e.rules,model:e.ruleFormData,"label-width":"100px"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:e.$i18nt("gd.team.name","\u540D\u79F0"),prop:"name"}},[s("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.name,callback:function(a){e.$set(e.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1)],1),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:e.$i18nt("gd.team.teamtype","\u56E2\u961F\u7C7B\u578B"),prop:"teamtype"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.teamtype,callback:function(a){e.$set(e.ruleFormData,"teamtype",a)},expression:"ruleFormData.teamtype"}},e._l(e.getDictionary("teamtype"),function(a,i){return s("el-option",{key:i,attrs:{value:a.code,label:e.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1)],1),s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:e.$i18nt("gd.team.amdmin","\u7BA1\u7406\u5458"),prop:"administratorid"}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",filterable:"",remote:"",clearable:"","collapse-tags":!0,"remote-method":e.adminClick},on:{focus:e.searchList},model:{value:e.ruleFormData.administratorid,callback:function(a){e.$set(e.ruleFormData,"administratorid",a)},expression:"ruleFormData.administratorid"}},e._l(e.dataList,function(a,i){return s("el-option",{key:a.id+"&"+i,attrs:{label:a.name,value:a.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(a){return e.lookup(e.ruleFormData.administratorid)}}})])],1)])],1),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:e.$i18nt("gd.team.owner","\u8D1F\u8D23\u4EBA")}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",filterable:"",remote:"",clearable:"","collapse-tags":!0,disabled:""},model:{value:e.ownerid,callback:function(a){e.ownerid=a},expression:"ownerid"}},e._l(e.columnList,function(a,i){return s("el-option",{key:i,attrs:{label:a.name,value:a.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search cao_setting-disabled"})])],1)])],1)],1),s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:e.$i18nt("gd.team.describe","\u63CF\u8FF0"),prop:"description"}},[s("el-input",{attrs:{type:"textarea",rows:4,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(a){e.$set(e.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1)],1),e.detailShow?s("el-card",{attrs:{shadow:"never"}},[s("div",[e._v(e._s(e.$i18nt("gd.team.teamMember","\u56E2\u961F\u6210\u5458")))]),s("teamMemberDetail",{attrs:{sys_teamid:Number(e.ruleFormData.id),type:e.type,openMode:2,height:200}})],1):e._e()],1)],1),s("gd-search",{ref:"msgSearch",attrs:{appendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},P=[],R=o.normalizeComponent(N,K,P,!1,null,"837be327",null,null);const E=R.exports;const M={name:"GdTeam",mixins:[l.tablesFilter,w],props:{height:{type:Number,default:100}},data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:t=>p(Object.assign(t,this.getQueryParam)).then(e=>e.data)}},components:{editForm:E},computed:{getHeight(){return this.height},getQueryParam(){let t=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&(e==="msgStatus"||e==="sendType"))t.set(e,this.queryParam[e].join(","));else if(this.queryParam[e]&&(e==="actualOn"||e==="createdTime"||e==="scheduledStartedOn")){if(this.queryParam[e].length>0){let s=this.queryParam[e],a=s[0].split(" ")[0],i=s[1].split(" ")[0];t.set(`${e}Start`,`${a} 00:00:00`),t.set(`${e}End`,`${i} 23:59:59`)}}else t.set(e,this.queryParam[e]);return Object.fromEntries(t)},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{editForm(t){this.transKey="gd.btn.edit",this.$refs.editForm.open(t)},add(){this.$refs.editForm.open()},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])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let a=[];this.selectedRows.forEach(i=>{let n=b({id:i.id}).then(r=>r);a.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(a).then(i=>{const n=i.filter(r=>!r.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},handleOk(){this.refresh()},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(a=>a.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var O=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!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:a,row:i}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:i,highlight:""},on:{click:e.editForm}})]}},{key:"administratorid",fn:function({column:a,row:i}){return[i.administratorname?s("span",[e._v(" "+e._s(i.administratorname)+" ")]):e._e()]}},{key:"teamtype",fn:function(a){return[e.dictSwitch(a.row.teamtype,"teamtype")?s("el-tag",{style:e._f("dictColor")("teamtype",a.row.teamtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("teamtype",a.row.teamtype))+" ")]):s("span",[e._v(e._s(e._f("dictType")("teamtype",a.row.teamtype)))])]}}])})],1),s("editForm",{ref:"editForm",attrs:{openPermissions:!0},on:{ok:e.handleOk}})],1)},q=[],z=o.normalizeComponent(M,O,q,!1,null,"f62d65e6",null,null);const d=z.exports;d.install=function(t){t.component(d.name,d)};exports.GDpackage=d;exports.sysTeamMemberAdd=c;exports.sysTeamMemberDel=h;exports.sysTeamMemberDetail=f;exports.sysTeamMemberEdit=u;exports.sysTeamMembers=m;