gds-plus-design-vue 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/lib/{chartbi.78c30dce.js → chartbi.06e48153.js} +20 -20
  2. package/lib/{chartbi.ba6fe7fa.mjs → chartbi.cdd1e365.mjs} +12 -5
  3. package/lib/gd-initial.js +4 -4
  4. package/lib/gd-initial.mjs +508 -409
  5. package/lib/{main.cf1290f5.js → main.2415a49a.js} +1 -1
  6. package/lib/{main.cd0be45d.mjs → main.2cddfbbd.mjs} +3 -3
  7. package/lib/{main.543481f4.js → main.4c447fc3.js} +1 -1
  8. package/lib/{main.141f0215.mjs → main.86fe06d4.mjs} +3 -3
  9. package/lib/{main.7db485a4.mjs → main.b2d0a309.mjs} +3 -3
  10. package/lib/{main.30314690.js → main.d091d06d.js} +1 -1
  11. package/lib/{messages.2d31a14f.js → messages.2fff74f3.js} +1 -1
  12. package/lib/{messages.3363d67f.mjs → messages.d8abe18d.mjs} +1 -1
  13. package/lib/style.css +3 -3
  14. package/lib/{system.account.5ecb976a.js → system.account.8ea53681.js} +1 -1
  15. package/lib/{system.account.abd13073.mjs → system.account.9bc40d08.mjs} +2 -2
  16. package/lib/{system.config.c17d97d1.mjs → system.config.8223d495.mjs} +2 -2
  17. package/lib/{system.config.8b2c2452.js → system.config.c6e30213.js} +1 -1
  18. package/lib/{system.datasource.8afcb605.mjs → system.datasource.57233650.mjs} +2 -2
  19. package/lib/{system.datasource.bde1c190.js → system.datasource.fd6a4e76.js} +1 -1
  20. package/lib/{system.dict.41525bfb.mjs → system.dict.8f95218b.mjs} +9 -9
  21. package/lib/{system.dict.edd60192.js → system.dict.a24f33b0.js} +1 -1
  22. package/lib/{system.duplicatechecking.aa0b0f09.js → system.duplicatechecking.39293985.js} +1 -1
  23. package/lib/{system.duplicatechecking.0833c9b6.mjs → system.duplicatechecking.6b706948.mjs} +2 -2
  24. package/lib/{system.email.b5c2ca73.js → system.email.a2d9a307.js} +1 -1
  25. package/lib/{system.email.9436ae5a.mjs → system.email.dae988be.mjs} +2 -2
  26. package/lib/{system.fieldsecurity.e5714acf.mjs → system.fieldsecurity.02627a7a.mjs} +1 -1
  27. package/lib/{system.fieldsecurity.167c9243.js → system.fieldsecurity.a0cec24d.js} +1 -1
  28. package/lib/{system.file.9394e98a.mjs → system.file.0fa095a9.mjs} +2 -2
  29. package/lib/{system.file.1372dca9.js → system.file.d695ab37.js} +1 -1
  30. package/lib/{system.log.9d4eed4c.mjs → system.log.acb64505.mjs} +2 -2
  31. package/lib/{system.log.959eeaa7.js → system.log.c07ae5db.js} +1 -1
  32. package/lib/{system.machine.b41c8d9b.js → system.machine.7fa3e3d1.js} +1 -1
  33. package/lib/{system.machine.bcf7148f.mjs → system.machine.fc392d7f.mjs} +1 -1
  34. package/lib/{system.notice.40c505bb.mjs → system.notice.5ae50bd4.mjs} +3 -3
  35. package/lib/{system.notice.c4456add.js → system.notice.f18578ae.js} +1 -1
  36. package/lib/{system.noticereceived.003de2d0.mjs → system.noticereceived.1aa70b65.mjs} +3 -3
  37. package/lib/{system.noticereceived.45e2bc6c.js → system.noticereceived.bfa98a9b.js} +1 -1
  38. package/lib/{system.onlineuser.be89a865.js → system.onlineuser.1c428d05.js} +1 -1
  39. package/lib/{system.onlineuser.a0f94427.mjs → system.onlineuser.3d848a32.mjs} +2 -2
  40. package/lib/{system.org.01eab98f.js → system.org.5bb36f9c.js} +1 -1
  41. package/lib/{system.org.33de59c9.mjs → system.org.fcf96d1e.mjs} +2 -2
  42. package/lib/{system.permissions.9bcb9602.mjs → system.permissions.23f5b097.mjs} +3 -3
  43. package/lib/{system.permissions.a313d4a1.js → system.permissions.a1a9505c.js} +1 -1
  44. package/lib/{system.plugin.6b0e3fe5.js → system.plugin.b6de4673.js} +1 -1
  45. package/lib/{system.plugin.f119b583.mjs → system.plugin.e37f9dbc.mjs} +2 -2
  46. package/lib/{system.pos.2e6e2a5f.mjs → system.pos.1a01fc97.mjs} +2 -2
  47. package/lib/{system.pos.ec6ea8d0.js → system.pos.a4fb19b0.js} +1 -1
  48. package/lib/{system.promptmanagement.f47498f6.js → system.promptmanagement.290958b1.js} +1 -1
  49. package/lib/{system.promptmanagement.86052658.mjs → system.promptmanagement.36a65c51.mjs} +2 -2
  50. package/lib/{system.role.c812ad72.mjs → system.role.68de93ef.mjs} +5 -5
  51. package/lib/{system.role.ba18ffe0.js → system.role.88100f66.js} +1 -1
  52. package/lib/{system.sumberrules.09e3efaa.mjs → system.sumberrules.cdef9308.mjs} +2 -2
  53. package/lib/{system.sumberrules.3da249c2.js → system.sumberrules.dd6299e8.js} +1 -1
  54. package/lib/{system.team.62bd9cc2.js → system.team.53d64006.js} +1 -1
  55. package/lib/{system.team.c665e5a8.mjs → system.team.ee652fe4.mjs} +2 -2
  56. package/lib/{system.teammembers.376a248a.mjs → system.teammembers.26a2ba81.mjs} +3 -3
  57. package/lib/{system.teammembers.8273b71b.js → system.teammembers.4a3dc336.js} +1 -1
  58. package/lib/{system.timers.a98c5800.mjs → system.timers.4efa8a7d.mjs} +2 -2
  59. package/lib/{system.timers.0984adcd.js → system.timers.b9424204.js} +1 -1
  60. package/lib/{system.translation.f371225d.mjs → system.translation.0a9399b4.mjs} +3 -3
  61. package/lib/{system.translation.1e0c0eba.js → system.translation.21d2fd8b.js} +1 -1
  62. package/lib/{system.user.20f0e3fa.mjs → system.user.4fcfdf99.mjs} +5 -5
  63. package/lib/{system.user.8123edea.js → system.user.d48a08db.js} +1 -1
  64. package/lib/{system.useraffiliation.9dba06f7.js → system.useraffiliation.a59ce45b.js} +1 -1
  65. package/lib/{system.useraffiliation.7424aa9d.mjs → system.useraffiliation.fb002239.mjs} +3 -3
  66. package/lib/{system.webresource.3ce3eb71.js → system.webresource.3366cc29.js} +1 -1
  67. package/lib/{system.webresource.e270251b.mjs → system.webresource.4df01c92.mjs} +3 -3
  68. package/lib/{system.welcome.c2aaf120.mjs → system.welcome.120f4b50.mjs} +1 -1
  69. package/lib/{system.welcome.84bde03d.js → system.welcome.472f099b.js} +1 -1
  70. package/locale/en_US.js +13 -11
  71. package/locale/id_ID.js +13 -11
  72. package/locale/vi_VN.js +13 -11
  73. package/locale/zh_CN.js +13 -11
  74. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";const o=require("./chartbi.78c30dce.js"),l=require("./messages.2d31a14f.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;
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;
@@ -1,5 +1,5 @@
1
- import { n as o, m } from "./chartbi.ba6fe7fa.mjs";
2
- import { f as l, t as c } from "./messages.3363d67f.mjs";
1
+ import { n as o, m } from "./chartbi.cdd1e365.mjs";
2
+ import { f as l, t as c } from "./messages.d8abe18d.mjs";
3
3
  function u(t) {
4
4
  return window.axios({
5
5
  url: "/sysTeam/page",
@@ -1,6 +1,6 @@
1
- import { n as d, m as c } from "./chartbi.ba6fe7fa.mjs";
2
- import { s as u, a as m, b as h, c as f, d as g } from "./system.team.c665e5a8.mjs";
3
- import { f as r, t as p } from "./messages.3363d67f.mjs";
1
+ import { n as d, m as c } from "./chartbi.cdd1e365.mjs";
2
+ import { s as u, a as m, b as h, c as f, d as g } from "./system.team.ee652fe4.mjs";
3
+ import { f as r, t as p } from "./messages.d8abe18d.mjs";
4
4
  const y = {
5
5
  data() {
6
6
  return {
@@ -1 +1 @@
1
- "use strict";const c=require("./chartbi.78c30dce.js"),n=require("./system.team.62bd9cc2.js"),r=require("./messages.2d31a14f.js"),u={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 m={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}],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}},methods:{lookupSeled(t){t.table.tablename=="sys_team"?(this.columnList=[...t.fkData],this.$set(this.ruleFormData,"sys_teamid",t.data[0])):t.table.tablename=="sys_user"&&(this.dataList=[...t.fkData],this.$set(this.ruleFormData,"sys_userid",t.data[0]))},lookup(t,e){let s={effectType:"fk",fkEntityName:e==1?"sys_user":"sys_team",val:t||[]};this.$refs.msgSearch.open(s)},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,t&&this.getDetail(t.id)},getDetail(t){t!=""&&(this.dataList=[],n.sysTeamMemberDetail({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 i={id:s.id,sys_userid:s.sys_userid,sys_teamid:s.sys_teamid};this.firstLoading=!0,this.firstLoading1=!0,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=i},0)})}}))},searchData(t){this.dataList=[],r.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,r.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,r.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,n.sysTeamMemberAdd(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,n.sysTeamMemberEdit(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 h=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(i){e.visible=i},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(i){i.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(i){e.$set(e.ruleFormData,"sys_userid",i)},expression:"ruleFormData.sys_userid"}},e._l(e.dataList,function(i,a){return s("el-option",{key:i.id+"&"+a,attrs:{label:i.name,value:i.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(i){return e.lookup(e.ruleFormData.sys_userid,1)}}})])],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,"remote-method":e.userClick},on:{focus:e.searchList1},model:{value:e.ruleFormData.sys_teamid,callback:function(i){e.$set(e.ruleFormData,"sys_teamid",i)},expression:"ruleFormData.sys_teamid"}},e._l(e.columnList,function(i,a){return s("el-option",{key:i.id+"&"+a,attrs:{label:i.name,value:i.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(i){return e.lookup(e.ruleFormData.sys_teamid,2)}}})])],1)])],1)],1)],1)],1)])],1),s("gd-search",{ref:"msgSearch",attrs:{appendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},f=[],g=c.normalizeComponent(m,h,f,!1,null,"4b8d68cf",null,null);const p=g.exports;const y={name:"GdTeamMembers",mixins:[r.tablesFilter,u],props:{height:{type:Number,default:100}},data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:t=>this.getList(t).then(e=>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],i=s[0].split(" ")[0],a=s[1].split(" ")[0];t.set(`${e}Start`,`${i} 00:00:00`),t.set(`${e}End`,`${a} 23:59:59`)}}else t.set(e,this.queryParam[e]);return Object.fromEntries(t)},...c.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},components:{editForm:p},methods:{getList(t){return n.sysTeamMembers(Object.assign(t,this.getQueryParam)).then(e=>{if(e.code==200)return e.data})},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 i=[];this.selectedRows.forEach(a=>{let l=n.sysTeamMemberDel({id:a.id}).then(d=>d);i.push(l)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const l=a.filter(d=>!d.success);l.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")+l[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(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var _=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:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"teamname",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"sys_userid",fn:function({column:i,row:a}){return[a.sys_userid?s("span",[e._v(" "+e._s(a.username)+" ")]):e._e()]}}])})],1),s("editForm",{ref:"editForm",attrs:{openPermissions:!0},on:{ok:e.handleOk}})],1)},b=[],$=c.normalizeComponent(y,_,b,!1,null,"d9f498cd",null,null);const o=$.exports;o.install=function(t){t.component(o.name,o)};exports.GDpackage=o;
1
+ "use strict";const c=require("./chartbi.06e48153.js"),n=require("./system.team.53d64006.js"),r=require("./messages.2fff74f3.js"),u={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 m={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}],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}},methods:{lookupSeled(t){t.table.tablename=="sys_team"?(this.columnList=[...t.fkData],this.$set(this.ruleFormData,"sys_teamid",t.data[0])):t.table.tablename=="sys_user"&&(this.dataList=[...t.fkData],this.$set(this.ruleFormData,"sys_userid",t.data[0]))},lookup(t,e){let s={effectType:"fk",fkEntityName:e==1?"sys_user":"sys_team",val:t||[]};this.$refs.msgSearch.open(s)},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,t&&this.getDetail(t.id)},getDetail(t){t!=""&&(this.dataList=[],n.sysTeamMemberDetail({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 i={id:s.id,sys_userid:s.sys_userid,sys_teamid:s.sys_teamid};this.firstLoading=!0,this.firstLoading1=!0,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=i},0)})}}))},searchData(t){this.dataList=[],r.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,r.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,r.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,n.sysTeamMemberAdd(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,n.sysTeamMemberEdit(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 h=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(i){e.visible=i},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(i){i.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(i){e.$set(e.ruleFormData,"sys_userid",i)},expression:"ruleFormData.sys_userid"}},e._l(e.dataList,function(i,a){return s("el-option",{key:i.id+"&"+a,attrs:{label:i.name,value:i.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(i){return e.lookup(e.ruleFormData.sys_userid,1)}}})])],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,"remote-method":e.userClick},on:{focus:e.searchList1},model:{value:e.ruleFormData.sys_teamid,callback:function(i){e.$set(e.ruleFormData,"sys_teamid",i)},expression:"ruleFormData.sys_teamid"}},e._l(e.columnList,function(i,a){return s("el-option",{key:i.id+"&"+a,attrs:{label:i.name,value:i.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(i){return e.lookup(e.ruleFormData.sys_teamid,2)}}})])],1)])],1)],1)],1)],1)])],1),s("gd-search",{ref:"msgSearch",attrs:{appendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},f=[],g=c.normalizeComponent(m,h,f,!1,null,"4b8d68cf",null,null);const p=g.exports;const y={name:"GdTeamMembers",mixins:[r.tablesFilter,u],props:{height:{type:Number,default:100}},data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:t=>this.getList(t).then(e=>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],i=s[0].split(" ")[0],a=s[1].split(" ")[0];t.set(`${e}Start`,`${i} 00:00:00`),t.set(`${e}End`,`${a} 23:59:59`)}}else t.set(e,this.queryParam[e]);return Object.fromEntries(t)},...c.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},components:{editForm:p},methods:{getList(t){return n.sysTeamMembers(Object.assign(t,this.getQueryParam)).then(e=>{if(e.code==200)return e.data})},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 i=[];this.selectedRows.forEach(a=>{let l=n.sysTeamMemberDel({id:a.id}).then(d=>d);i.push(l)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const l=a.filter(d=>!d.success);l.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")+l[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(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var _=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:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"teamname",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"sys_userid",fn:function({column:i,row:a}){return[a.sys_userid?s("span",[e._v(" "+e._s(a.username)+" ")]):e._e()]}}])})],1),s("editForm",{ref:"editForm",attrs:{openPermissions:!0},on:{ok:e.handleOk}})],1)},b=[],$=c.normalizeComponent(y,_,b,!1,null,"d9f498cd",null,null);const o=$.exports;o.install=function(t){t.component(o.name,o)};exports.GDpackage=o;
@@ -1,5 +1,5 @@
1
- import { n as g, m as I, u as z } from "./chartbi.ba6fe7fa.mjs";
2
- import { t as q } from "./messages.3363d67f.mjs";
1
+ import { n as g, m as I, u as z } from "./chartbi.cdd1e365.mjs";
2
+ import { t as q } from "./messages.d8abe18d.mjs";
3
3
  function H(a) {
4
4
  return window.axios({
5
5
  url: "/SysJob/pageJobDetail",