gds-plus-design-vue 1.1.7 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/lib/gd-initial.js +15 -16
  2. package/lib/gd-initial.mjs +9886 -9254
  3. package/lib/main.2eb05c0d.js +1 -0
  4. package/lib/main.85f07438.mjs +68 -0
  5. package/lib/main.9bdd200f.mjs +87 -0
  6. package/lib/{main.f2b00b70.mjs → main.e62fbc84.mjs} +17 -17
  7. package/lib/{main.60763eae.js → main.ef020e08.js} +1 -1
  8. package/lib/main.f13b92a2.js +1 -0
  9. package/lib/style.css +1 -1
  10. package/lib/{system.account.93b7df36.mjs → system.account.25a9471c.mjs} +521 -505
  11. package/lib/{system.account.65b2f7d4.js → system.account.88600238.js} +2 -2
  12. package/lib/{system.duplicatechecking.0d47a5ca.js → system.duplicatechecking.2e9b8df8.js} +1 -1
  13. package/lib/{system.duplicatechecking.ad111272.mjs → system.duplicatechecking.b05f1617.mjs} +2 -2
  14. package/lib/{system.email.54722948.js → system.email.15594778.js} +1 -1
  15. package/lib/{system.email.923697c6.mjs → system.email.6369f5b4.mjs} +1 -1
  16. package/lib/{system.notice.93c4691c.js → system.notice.662195f6.js} +1 -1
  17. package/lib/{system.notice.e0b84103.mjs → system.notice.e2fe81dc.mjs} +1 -1
  18. package/lib/{system.noticereceived.a28ba643.js → system.noticereceived.15cf2fce.js} +1 -1
  19. package/lib/{system.noticereceived.c0a19336.mjs → system.noticereceived.20f38964.mjs} +1 -1
  20. package/lib/{system.permissions.b8a5f79d.mjs → system.permissions.5524b210.mjs} +1 -1
  21. package/lib/{system.permissions.c34f44a3.js → system.permissions.a45b5b80.js} +1 -1
  22. package/lib/system.promptmanagement.67475aac.js +1 -0
  23. package/lib/{system.promptmanagement.fe8b0913.mjs → system.promptmanagement.e9976712.mjs} +67 -51
  24. package/lib/system.role.0a1f11ad.js +1 -0
  25. package/lib/{system.role.ceb5ed2d.mjs → system.role.e5d08307.mjs} +94 -60
  26. package/lib/{system.translation.6351f189.mjs → system.translation.48ff0b03.mjs} +25 -21
  27. package/lib/{system.translation.8905eb73.js → system.translation.8f7e4144.js} +1 -1
  28. package/lib/{system.user.12a4e490.mjs → system.user.30451246.mjs} +19 -12
  29. package/lib/{system.user.d668538b.js → system.user.e0e4ac12.js} +6 -6
  30. package/lib/{system.useraffiliation.c272e688.mjs → system.useraffiliation.1e74fa9e.mjs} +1 -1
  31. package/lib/{system.useraffiliation.b8be03db.js → system.useraffiliation.f3c88a51.js} +1 -1
  32. package/locale/en_US.js +40 -7
  33. package/locale/id_ID.js +43 -10
  34. package/locale/vi_VN.js +43 -10
  35. package/locale/zh_CN.js +37 -4
  36. package/package.json +1 -1
  37. package/lib/system.promptmanagement.5a4930b1.js +0 -1
  38. package/lib/system.role.daedd959.js +0 -1
@@ -1 +1 @@
1
- "use strict";const l=require("./system.duplicatechecking.0d47a5ca.js"),o=require("./chartbi.afd83839.js"),u=require("./messages.083c4ede.js"),h={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0}],formColumns:[{transKey:"gd.form.roleName",effectType:"input",prop:"name",label:"\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.ownershipValue.ownershipValue",prop:"affiliationValue",effectType:"input",label:"\u6240\u5C5E\u503C",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysAffiliation:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysAffiliation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysAffiliation:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",label:"\u6240\u5C5E\u503C",effectType:"input",rules:[]}]}}};const f={name:"GdUserRole",props:{height:{type:Number,default:100},openSelecteKeys:{type:Array,default:()=>[]},useraffiliationname:{type:String,default:""},openMode:{type:String,default:"page"}},mixins:[u.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=>(this.queryParam={userAffiliationId:this.openSelecteKeys[0]},l.getbyUserAffiliationId(this.queryParam).then(e=>(e.data.length>0&&this.getRowId(e.data),console.log(this.disabledRowId),e.data.forEach(s=>{s.useraffiliationname=this.useraffiliationname}),{pageno:1,pagesize:1e3,rows:e.data}))),disableBtn:[],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.userAffiliation.name",prop:"username",label:"\u7528\u6237(\u59D3\u540D)",align:"left",type:"slot",slotType:"username",showOverflowTooltip:!0},{transKey:"gd.userAffiliation.userOwnershipName",prop:"useraffiliationname",label:"\u7528\u6237\u6240\u5C5E\u540D\u79F0",align:"left",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`},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{getRowId(t){let e=[];t.filter(s=>!this.disabledRowId.includes(s.userid)).forEach(s=>{e.push(s.userid)}),this.disabledRowId=this.disabledRowId.concat(e)},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.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,l.sysUserAffiliationAddRelation({userAffiliationId: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,i)=>{if(e!=="confirm"){i();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,l.sysUserAffiliationDeleteRelation({userAffiliationId:t.openSelecteKeys[0],userIdList:JSON.parse(JSON.stringify(t.selectedRows)).map(a=>a.userid)}).then(a=>{a.success?(t.$message.success(t.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),t.disabledRowId=t.disabledRowId.filter(n=>!t.selectedRows.filter(d=>d.userid===n)[0]),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i(),t.refresh()):t.$message.error(t.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message)})}})}},created(){}};var p=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:"username",fn:function({column:i,row:a}){return[s("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(a.username)+" ")])]}}])}),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)])},g=[],m=o.normalizeComponent(f,p,g,!1,null,"01c5868d",null,null);const y=m.exports;const b={data(){return{buttons:[],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[]}},components:{UserRelation:y},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...o.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.closed()},open(t){this.record=t,this.visible=!0,this.selectedRowKeys=[t.id],this.useraffiliationname=t.affiliationvalue,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 w=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":!1,"append-to-body":!0,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.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("UserRelation",{ref:"userForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys,useraffiliationname:e.useraffiliationname},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},v=[],_=o.normalizeComponent(b,w,v,!1,null,"eceab663",null,null);const $=_.exports;const K={data(){return{sys_UseraffiliationtypeId:"",transKey:"gd.btn.add",formLoading:!1,formButtons:[{displayName:"\u786E\u5B9A",functionName:"formhandleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],belongslist:[],formColumns:[{transKey:"gd.form.name",prop:"name",effectType:"input",label:"\u540D\u79F0",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.ownershipValue.ownershipValue",prop:"affiliationValue",effectType:"input",label:"\u6240\u5C5E\u503C",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],confirmLoading:!0,title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,fullScreen:!1,width:"1000px",ruleFormData:{name:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},visible:!1,queryParam:{},loadData:t=>(this.queryParam={Sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId},l.getUserAffiliation(Object.assign(t,this.queryParam)).then(e=>(e.data.rows.forEach(s=>{s.typename=this.ruleFormData.name}),e.data))),openMode:"page",selectedRowKeys:[],selectedRows:[],tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.duplicatechecking.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationvalue",label:"\u6240\u5C5E\u503C",align:"left",showOverflowTooltip:!0}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysAffiliation:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysAffiliation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysAffiliation:delete"},{displayName:"\u6388\u6743\u7528\u6237",functionName:"userRelationship",show:!0,transKey:"gd.user.userAuthorization",icon:"el-icon-setting",name:"sysAffiliation:belongingMenu"}]}},components:{UserRelationAdd:$},computed:{getFormColumns(){return this.formColumns.filter(t=>!0)},getHeight(){const t=this.fullScreen?230:410;return this.screenHeight-t},initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},...o.mapGetters(["screenHeight","tableLists","tableSize","tablePageSize","labelPosition","formMode"])},methods:{userRelationship(){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.userrelationadd.open(this.selectedRows[0])},lookup(t,e){const s=t[e.prop];this.$refs.viewSearch.open({fkEntityName:"DataSource",effectType:e.effectType,val:s||""})},async searchDataSource(t){this.formLoading=!0,this.belongslist=[],this.belongslist=await this.getbelongslist(),this.formLoading=!1},fkSearch(t){const e=`${t}Loading`;t==="name"&&!this[e]&&this.searchDataSource("")},getbelongslist(){return l.getSysUserAffiliationType().then(t=>{if(t.code===200)return t.data.rows})},getDataSource(t){let e={name:t,fkEntityName:this.fkEntityName};return u.baseFkList(e).then(s=>s.data.map(i=>(i.id=String(i.id),i)))},okFilter(t){this.filterList={...t}},toggleFullscreen(){this.fullScreen=!this.fullScreen},getDictionary(t){return this.$options.filters.dictData(t)},selectRules(t){},getList(t,e){},init(t){this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type=t?2:1,this.title=t?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.sys_UseraffiliationtypeId=t?t.id:"",this.selectedRowKeys=[],this.selectedRows=[],this.$nextTick(()=>{setTimeout(()=>{this.type===2&&this.refresh(),this.ruleFormData={name:t?t.name:""},this.$refs.ruleForm.resetFields()},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}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 n=l.sysUserAffiliationDelete(a).then(r=>r);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const n=a.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})},add(t){this.transKey="gd.btn.add",this.$refs.editFormref.open(null),this.$refs.editFormref.setData({nametype:this.ruleFormData.name})},edit(t){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},editForm(t){this.transKey="gd.btn.edit",this.$refs.editFormref.open(t),this.$refs.editFormref.setData({nametype:this.ruleFormData.name}),this.$refs.editFormref.setData({affiliationValue:t.affiliationvalue})},formhandleSubmit(){console.log("\u6240\u5C5E\u503C\u7684\u65B0\u589E\u4FDD\u5B58")},handleSubmit(){this.$refs.ruleForm.validate(t=>{if(t){const e={...this.ruleFormData};this.sub(e)}})},sub(t){this.formLoading=!0;let e=this.type==1?l.sysUserAffiliationTypeAdd:l.sysUserAffiliationTypeEdit;const s=this.type==1?t:Object.assign({values:t,id:this.sys_UseraffiliationtypeId});e(s).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleCancel(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.formLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.tabledisabled=!1},doEvent(t){let e=t.item.functionName;this[e]()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e)},removeRow(t){let e=this;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:(s,i,a)=>{if(s!=="confirm"){a();return}e.$message.success(e.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),a()}})},sbumit({data:t,record:e,btn:s},i,a){this.formLoading=!0;let n=e?l.sysUserAffiliationEdit:l.sysUserAffiliationAdd;delete t.nametype;const r=e?Object.assign({affiliationValue:t.affiliationValue,sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId,id:t.id}):Object.assign(t,{sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId});n(r).then(d=>{d.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+d.message),this.formLoading=!1})},refresh(){this.$refs.table&&this.$refs.table.refresh()}}};var C=function(){var e=this,s=e._self._c;return s("div",[s("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullScreen,width:e.width,visible:e.visible,footer:null,top:"80px","append-to-body":"","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},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("div",{staticClass:"setting-navs",class:e.fullScreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",attrs:{model:e.ruleFormData,rules:e.rules,"label-width":"120px"},nativeOn:{submit:function(i){i.preventDefault()}}},[s("el-row",{staticStyle:{"margin-left":"-12px","margin-right":"-12px"},attrs:{gutter:48}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{staticClass:"form_name",staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.name","\u540D\u79F0"),prop:"name"}},[s("el-input",{attrs:{disabled:e.type==2,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.name,callback:function(i){e.$set(e.ruleFormData,"name",i)},expression:"ruleFormData.name"}})],1)],1)],1)],1),e.type==2?[s("el-divider"),s("div",{staticClass:"setting-conter"},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,selectedKeep:e.selectedKeep,initialLoading:e.initialLoading},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"operator-list"},[s("div",{staticClass:"clearfix"},[s("span",[e._v(e._s(e.$i18nt("gd.userAffiliation.userownershipValue","\u7528\u6237\u6240\u5C5E\u503C")))])]),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}],null,!1,3417440761)})],1)]:e._e()],2)])],1),s("gd-edit-form",{ref:"editFormref",attrs:{formItemWidth:"100%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode},on:{sbumit:e.sbumit}}),s("UserRelationAdd",{ref:"userrelationadd",on:{ok:e.refresh}})],1)},S=[],T=o.normalizeComponent(K,C,S,!1,null,"40f982ec",null,null);const R=T.exports;const k={name:"GdUserAffiliation",props:{height:{type:Number,default:100},openMode:{type:String,default:"page"},openSelecteKeys:{type:Array,default:()=>[]}},mixins:[u.tablesFilter,h],data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},record:{},loadData:t=>(this.selectedKeep&&(this.selectedRowKeys=[...this.openSelecteKeys]),l.getSysUserAffiliationType(Object.assign(t,this.queryParam)).then(e=>e.data))}},components:{editForm:R},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.$refs.editForm.init(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 i=[];this.selectedRows.forEach(a=>{let n=l.sysUserAffiliationTypeDelete(a).then(r=>r);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const n=a.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})},add(){this.$refs.editForm.init(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])},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e)},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var L=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:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,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.form.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(i){e.$set(e.queryParam,"name",i)},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.tableButtons},on:{functionName:e.doEvent}}):e._e()],1)])]},proxy:!0},{key:"filtering",fn:function({colse:i,visible:a}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:a},on:{save:e.saveQueries}})]}}])})],1),s("editForm",{ref:"editForm",attrs:{table:e.record},on:{ok:e.handleOk}})],1)},B=[],F=o.normalizeComponent(k,L,B,!1,null,"48edf473",null,null);const c=F.exports;c.install=function(t){t.component(c.name,c)};exports.GDpackage=c;
1
+ "use strict";const l=require("./system.duplicatechecking.2e9b8df8.js"),o=require("./chartbi.afd83839.js"),u=require("./messages.083c4ede.js"),h={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0}],formColumns:[{transKey:"gd.form.roleName",effectType:"input",prop:"name",label:"\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.ownershipValue.ownershipValue",prop:"affiliationValue",effectType:"input",label:"\u6240\u5C5E\u503C",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysAffiliation:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysAffiliation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysAffiliation:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",label:"\u6240\u5C5E\u503C",effectType:"input",rules:[]}]}}};const f={name:"GdUserRole",props:{height:{type:Number,default:100},openSelecteKeys:{type:Array,default:()=>[]},useraffiliationname:{type:String,default:""},openMode:{type:String,default:"page"}},mixins:[u.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=>(this.queryParam={userAffiliationId:this.openSelecteKeys[0]},l.getbyUserAffiliationId(this.queryParam).then(e=>(e.data.length>0&&this.getRowId(e.data),console.log(this.disabledRowId),e.data.forEach(s=>{s.useraffiliationname=this.useraffiliationname}),{pageno:1,pagesize:1e3,rows:e.data}))),disableBtn:[],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.userAffiliation.name",prop:"username",label:"\u7528\u6237(\u59D3\u540D)",align:"left",type:"slot",slotType:"username",showOverflowTooltip:!0},{transKey:"gd.userAffiliation.userOwnershipName",prop:"useraffiliationname",label:"\u7528\u6237\u6240\u5C5E\u540D\u79F0",align:"left",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`},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{getRowId(t){let e=[];t.filter(s=>!this.disabledRowId.includes(s.userid)).forEach(s=>{e.push(s.userid)}),this.disabledRowId=this.disabledRowId.concat(e)},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.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,l.sysUserAffiliationAddRelation({userAffiliationId: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,i)=>{if(e!=="confirm"){i();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,l.sysUserAffiliationDeleteRelation({userAffiliationId:t.openSelecteKeys[0],userIdList:JSON.parse(JSON.stringify(t.selectedRows)).map(a=>a.userid)}).then(a=>{a.success?(t.$message.success(t.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),t.disabledRowId=t.disabledRowId.filter(n=>!t.selectedRows.filter(d=>d.userid===n)[0]),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i(),t.refresh()):t.$message.error(t.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message)})}})}},created(){}};var p=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:"username",fn:function({column:i,row:a}){return[s("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(a.username)+" ")])]}}])}),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)])},g=[],m=o.normalizeComponent(f,p,g,!1,null,"01c5868d",null,null);const y=m.exports;const b={data(){return{buttons:[],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[]}},components:{UserRelation:y},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...o.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.closed()},open(t){this.record=t,this.visible=!0,this.selectedRowKeys=[t.id],this.useraffiliationname=t.affiliationvalue,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 w=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":!1,"append-to-body":!0,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.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("UserRelation",{ref:"userForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys,useraffiliationname:e.useraffiliationname},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},v=[],_=o.normalizeComponent(b,w,v,!1,null,"eceab663",null,null);const $=_.exports;const K={data(){return{sys_UseraffiliationtypeId:"",transKey:"gd.btn.add",formLoading:!1,formButtons:[{displayName:"\u786E\u5B9A",functionName:"formhandleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],belongslist:[],formColumns:[{transKey:"gd.form.name",prop:"name",effectType:"input",label:"\u540D\u79F0",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.ownershipValue.ownershipValue",prop:"affiliationValue",effectType:"input",label:"\u6240\u5C5E\u503C",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],confirmLoading:!0,title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,fullScreen:!1,width:"1000px",ruleFormData:{name:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},visible:!1,queryParam:{},loadData:t=>(this.queryParam={Sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId},l.getUserAffiliation(Object.assign(t,this.queryParam)).then(e=>(e.data.rows.forEach(s=>{s.typename=this.ruleFormData.name}),e.data))),openMode:"page",selectedRowKeys:[],selectedRows:[],tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.duplicatechecking.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationvalue",label:"\u6240\u5C5E\u503C",align:"left",showOverflowTooltip:!0}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysAffiliation:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysAffiliation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysAffiliation:delete"},{displayName:"\u6388\u6743\u7528\u6237",functionName:"userRelationship",show:!0,transKey:"gd.user.userAuthorization",icon:"el-icon-setting",name:"sysAffiliation:belongingMenu"}]}},components:{UserRelationAdd:$},computed:{getFormColumns(){return this.formColumns.filter(t=>!0)},getHeight(){const t=this.fullScreen?230:410;return this.screenHeight-t},initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},...o.mapGetters(["screenHeight","tableLists","tableSize","tablePageSize","labelPosition","formMode"])},methods:{userRelationship(){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.userrelationadd.open(this.selectedRows[0])},lookup(t,e){const s=t[e.prop];this.$refs.viewSearch.open({fkEntityName:"DataSource",effectType:e.effectType,val:s||""})},async searchDataSource(t){this.formLoading=!0,this.belongslist=[],this.belongslist=await this.getbelongslist(),this.formLoading=!1},fkSearch(t){const e=`${t}Loading`;t==="name"&&!this[e]&&this.searchDataSource("")},getbelongslist(){return l.getSysUserAffiliationType().then(t=>{if(t.code===200)return t.data.rows})},getDataSource(t){let e={name:t,fkEntityName:this.fkEntityName};return u.baseFkList(e).then(s=>s.data.map(i=>(i.id=String(i.id),i)))},okFilter(t){this.filterList={...t}},toggleFullscreen(){this.fullScreen=!this.fullScreen},getDictionary(t){return this.$options.filters.dictData(t)},selectRules(t){},getList(t,e){},init(t){this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type=t?2:1,this.title=t?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.sys_UseraffiliationtypeId=t?t.id:"",this.selectedRowKeys=[],this.selectedRows=[],this.$nextTick(()=>{setTimeout(()=>{this.type===2&&this.refresh(),this.ruleFormData={name:t?t.name:""},this.$refs.ruleForm.resetFields()},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}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 n=l.sysUserAffiliationDelete(a).then(r=>r);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const n=a.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})},add(t){this.transKey="gd.btn.add",this.$refs.editFormref.open(null),this.$refs.editFormref.setData({nametype:this.ruleFormData.name})},edit(t){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},editForm(t){this.transKey="gd.btn.edit",this.$refs.editFormref.open(t),this.$refs.editFormref.setData({nametype:this.ruleFormData.name}),this.$refs.editFormref.setData({affiliationValue:t.affiliationvalue})},formhandleSubmit(){console.log("\u6240\u5C5E\u503C\u7684\u65B0\u589E\u4FDD\u5B58")},handleSubmit(){this.$refs.ruleForm.validate(t=>{if(t){const e={...this.ruleFormData};this.sub(e)}})},sub(t){this.formLoading=!0;let e=this.type==1?l.sysUserAffiliationTypeAdd:l.sysUserAffiliationTypeEdit;const s=this.type==1?t:Object.assign({values:t,id:this.sys_UseraffiliationtypeId});e(s).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleCancel(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.formLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.tabledisabled=!1},doEvent(t){let e=t.item.functionName;this[e]()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e)},removeRow(t){let e=this;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:(s,i,a)=>{if(s!=="confirm"){a();return}e.$message.success(e.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),a()}})},sbumit({data:t,record:e,btn:s},i,a){this.formLoading=!0;let n=e?l.sysUserAffiliationEdit:l.sysUserAffiliationAdd;delete t.nametype;const r=e?Object.assign({affiliationValue:t.affiliationValue,sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId,id:t.id}):Object.assign(t,{sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId});n(r).then(d=>{d.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+d.message),this.formLoading=!1})},refresh(){this.$refs.table&&this.$refs.table.refresh()}}};var C=function(){var e=this,s=e._self._c;return s("div",[s("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullScreen,width:e.width,visible:e.visible,footer:null,top:"80px","append-to-body":"","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},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("div",{staticClass:"setting-navs",class:e.fullScreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",attrs:{model:e.ruleFormData,rules:e.rules,"label-width":"120px"},nativeOn:{submit:function(i){i.preventDefault()}}},[s("el-row",{staticStyle:{"margin-left":"-12px","margin-right":"-12px"},attrs:{gutter:48}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{staticClass:"form_name",staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.name","\u540D\u79F0"),prop:"name"}},[s("el-input",{attrs:{disabled:e.type==2,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.name,callback:function(i){e.$set(e.ruleFormData,"name",i)},expression:"ruleFormData.name"}})],1)],1)],1)],1),e.type==2?[s("el-divider"),s("div",{staticClass:"setting-conter"},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,selectedKeep:e.selectedKeep,initialLoading:e.initialLoading},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"operator-list"},[s("div",{staticClass:"clearfix"},[s("span",[e._v(e._s(e.$i18nt("gd.userAffiliation.userownershipValue","\u7528\u6237\u6240\u5C5E\u503C")))])]),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}],null,!1,3417440761)})],1)]:e._e()],2)])],1),s("gd-edit-form",{ref:"editFormref",attrs:{formItemWidth:"100%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode},on:{sbumit:e.sbumit}}),s("UserRelationAdd",{ref:"userrelationadd",on:{ok:e.refresh}})],1)},S=[],T=o.normalizeComponent(K,C,S,!1,null,"40f982ec",null,null);const R=T.exports;const k={name:"GdUserAffiliation",props:{height:{type:Number,default:100},openMode:{type:String,default:"page"},openSelecteKeys:{type:Array,default:()=>[]}},mixins:[u.tablesFilter,h],data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},record:{},loadData:t=>(this.selectedKeep&&(this.selectedRowKeys=[...this.openSelecteKeys]),l.getSysUserAffiliationType(Object.assign(t,this.queryParam)).then(e=>e.data))}},components:{editForm:R},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.$refs.editForm.init(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 i=[];this.selectedRows.forEach(a=>{let n=l.sysUserAffiliationTypeDelete(a).then(r=>r);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const n=a.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})},add(){this.$refs.editForm.init(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])},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e)},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var L=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:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,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.form.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(i){e.$set(e.queryParam,"name",i)},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.tableButtons},on:{functionName:e.doEvent}}):e._e()],1)])]},proxy:!0},{key:"filtering",fn:function({colse:i,visible:a}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:a},on:{save:e.saveQueries}})]}}])})],1),s("editForm",{ref:"editForm",attrs:{table:e.record},on:{ok:e.handleOk}})],1)},B=[],F=o.normalizeComponent(k,L,B,!1,null,"48edf473",null,null);const c=F.exports;c.install=function(t){t.component(c.name,c)};exports.GDpackage=c;
package/locale/en_US.js CHANGED
@@ -162,7 +162,12 @@ export default {
162
162
  titlePho: "Phone login",
163
163
  loading: "Logging in...",
164
164
  codeSwitchTip: "If the image verification code recognition is difficult, click on the image verification code to refresh the display",
165
- scancodeLogin: "Enterprise WeChat authorization login"
165
+ scancodeLogin: "Enterprise WeChat authorization login",
166
+ missingParameters: "Missing parameter: ",
167
+ authorization: "Authorized ...",
168
+ authorizationCompleted: "Authorization completed",
169
+ authorizedLogin: "Authorized login",
170
+ authorizedOauth: "Authorization authentication",
166
171
  },
167
172
  /*基础*/
168
173
  basics: {
@@ -357,6 +362,7 @@ export default {
357
362
  orgOldNameTip: "The historical data institution to which the user belongs will be updated. Are you sure you want to modify the institution to which the user belongs?",
358
363
  selectFile: "Select File",
359
364
  userAuthorization: "User Authorization",
365
+ menuRoleApp: "Authorized Menu Of APP"
360
366
  },
361
367
  /*机构*/
362
368
  org: {
@@ -546,7 +552,8 @@ export default {
546
552
  doubleClickEdit: "Double click edit",
547
553
  currentTime: "Current time",
548
554
  fileAcceptTip: "The file type is not supported!",
549
- fileSizeTip: "The upload size cannot exceed "
555
+ fileSizeTip: "The upload size cannot exceed ",
556
+ fileLimitTip: "Exceeded the maximum upload quantity",
550
557
  },
551
558
  /*表单*/
552
559
  form: {
@@ -985,6 +992,7 @@ export default {
985
992
  singletonMode: "Singleton pattern",
986
993
  multipleMode: "Multi instance mode",
987
994
  collectMode: "collect",
995
+ externalLinks: "External links"
988
996
  },
989
997
  /* 侧边栏*/
990
998
  sidebar: {
@@ -1337,6 +1345,7 @@ export default {
1337
1345
  updateInstitutions: "Update institutions",
1338
1346
  open: "Open",
1339
1347
  screenSwitch: "Full Screen Switch",
1348
+ uploadDrag:"Drag and drop files or click upload"
1340
1349
  },
1341
1350
  /*日志管理*/
1342
1351
  log: {
@@ -2272,8 +2281,8 @@ export default {
2272
2281
  text: "Text",
2273
2282
  executionFunction: "Execution method",
2274
2283
  interactiveMode: "Interaction mode",
2275
- systemsMethod: "Systems method",
2276
- componentMethod: "Component method",
2284
+ systemsMethod: "System",
2285
+ componentMethod: "Component",
2277
2286
  interactiveComponent: "Interactive components",
2278
2287
  interactiveMethod: "Interactive methods",
2279
2288
  customMethod: "Custom Method",
@@ -2461,6 +2470,26 @@ export default {
2461
2470
  refreshIcon: "Refresh icon",
2462
2471
  tableSizeIcon: "Table density icon",
2463
2472
  listItemsIcon: "Table item icon",
2473
+ displayNickname: "Display nickname",
2474
+ displaySubheading: "Display subtitle",
2475
+ subFontcolor: "Subtitle font color",
2476
+ subFontSize: "Subtitle font size",
2477
+ subRowHeight: "Subtitle line height",
2478
+ marginSpacing: "White edge spacing",
2479
+ correctLevel: "Correct level",
2480
+ columnUsageType: "Binding value type",
2481
+ dataDisplay: "Data display",
2482
+ eventPassParameters: "Parameter transmission during interaction",
2483
+ parameterName: "Parameter Name",
2484
+ imgConfiguration: "Image configuration",
2485
+ objectFitFill: "By default, it is not guaranteed to maintain the original proportion, and the content is stretched to fill the entire content container.",
2486
+ objectFitContain: "Maintain the original size ratio. The content has been scaled.",
2487
+ objectFitCover: "Maintain the original size ratio. But some content may be cut.",
2488
+ objectFitNone: "Retain the length and width of the original element content, which means that the content will not be reset.",
2489
+ objectFitDown: "Maintain the original size ratio.",
2490
+ indicatorType: "Indicator Style",
2491
+ block: "Block",
2492
+ roundDot: "Round dot",
2464
2493
  },
2465
2494
  /*集群列表 */
2466
2495
  colony: {
@@ -2525,6 +2554,7 @@ export default {
2525
2554
  form: "Form container",
2526
2555
  treePanel: "Tree selection container",
2527
2556
  flexLayout: "Block layout",
2557
+ drawerContainer: "抽屉容器",
2528
2558
  },
2529
2559
  /*基础组件*/
2530
2560
  basiccomponents: {
@@ -2634,16 +2664,19 @@ export default {
2634
2664
  refreshData: "Refresh data",
2635
2665
  downLoadData: "Drop down to load data",
2636
2666
  LoadData: "Query data",
2637
- getData: "获取数据",
2638
- treeData: '树点击加载数据',
2667
+ getData: "Get data",
2668
+ treeData: 'Tree click to load data',
2639
2669
  deleteIdData: "Delete data based on ID",
2640
2670
  previewComponents: "Preview components",
2641
2671
  filePreview: "File preview",
2642
- fileDown: "文件下载",
2672
+ fileDown: "File Download",
2643
2673
  globalComponents: "Global components",
2644
2674
  pageComponents: "On page components",
2645
2675
  filterData: "Filter data",
2646
2676
  enlargeChart: "Enlarge the chart",
2677
+ winOpenLink: "Open link",
2678
+ openLink: "Open the link in a new window",
2679
+ routerPush: "Local route redirection"
2647
2680
  },
2648
2681
  /*审计日志插件*/
2649
2682
  auditLogPlug: {
package/locale/id_ID.js CHANGED
@@ -162,7 +162,12 @@ export default {
162
162
  titlePho: "Login dengan nomor telepon",
163
163
  loading: "Daftar masuk",
164
164
  codeSwitchTip: "Jika pengenalan kode verifikasi gambar sulit, klik kode verifikasi gambar untuk menyegarkan paparan",
165
- scancodeLogin: "Login otorisasi WeChat perusahaan"
165
+ scancodeLogin: "Login otorisasi WeChat perusahaan",
166
+ missingParameters: "Parameter yang hilang: ",
167
+ authorization: "Diizinkan. ..",
168
+ authorizationCompleted: "Otorisasi selesai",
169
+ authorizedLogin: "Login yang sah",
170
+ authorizedOauth: "Otentikasi otorisasi",
166
171
  },
167
172
  /*基础*/
168
173
  basics: {
@@ -335,7 +340,7 @@ export default {
335
340
  pawMoreTip: "Silakan konfirmasi konsistensi kata sandi yang dimasukkan dua kali!",
336
341
  roleName: "Nama peran",
337
342
  basicInformation: "informasi penting",
338
- otherInformation: "其它信息",
343
+ otherInformation: "Informasi lain",
339
344
  organization: "Institusi berkaitan",
340
345
  accountTip: "Silakan masukkan rekening dengan setidaknya lima karakter!",
341
346
  nickname: "nama panggilan",
@@ -355,8 +360,9 @@ export default {
355
360
  PSDNeverExpire: "kata sandi tidak pernah habis",
356
361
  orgOldName: "Nama institusi asal",
357
362
  orgOldNameTip: "Institusi data sejarah yang dimiliki pengguna akan diperbarui. Anda yakin ingin mengubah institusi yang dimiliki pengguna?",
358
- selectFile: "选取文件",
363
+ selectFile: "Pilih File",
359
364
  userAuthorization: "Otorisasi pengguna",
365
+ menuRoleApp: "Menu Otorisasi APP"
360
366
  },
361
367
  /*机构*/
362
368
  org: {
@@ -546,7 +552,8 @@ export default {
546
552
  doubleClickEdit: "Klik ganda edit",
547
553
  currentTime: "Waktu saat ini",
548
554
  fileAcceptTip: "Jenis file tidak didukung!",
549
- fileSizeTip: "Ukuran upload tidak dapat melebihi "
555
+ fileSizeTip: "Ukuran upload tidak dapat melebihi ",
556
+ fileLimitTip: "Melebihi jumlah upload maksimum",
550
557
  },
551
558
  /*表单*/
552
559
  form: {
@@ -985,6 +992,7 @@ export default {
985
992
  singletonMode: "Patung singleton",
986
993
  multipleMode: "Mod multi instance",
987
994
  collectMode: "koleksi",
995
+ externalLinks: "Link eksternal"
988
996
  },
989
997
  /* 侧边栏*/
990
998
  sidebar: {
@@ -1337,6 +1345,7 @@ export default {
1337
1345
  updateInstitutions: "Kemaskini institusi",
1338
1346
  open: "Buka",
1339
1347
  screenSwitch: "Saklar Layar Penuh",
1348
+ uploadDrag:"Seret dan drop file atau klik upload"
1340
1349
  },
1341
1350
  /*日志管理*/
1342
1351
  log: {
@@ -2274,8 +2283,8 @@ export default {
2274
2283
  text: "文本",
2275
2284
  executionFunction: "执行方法",
2276
2285
  interactiveMode: "交互方式",
2277
- systemsMethod: "系统方法",
2278
- componentMethod: "组件方法",
2286
+ systemsMethod: "系统",
2287
+ componentMethod: "组件",
2279
2288
  interactiveComponent: "交互组件",
2280
2289
  interactiveMethod: "交互方法",
2281
2290
  customMethod: "自定义方法",
@@ -2463,6 +2472,26 @@ export default {
2463
2472
  refreshIcon: "Refresh ikon",
2464
2473
  tableSizeIcon: "Ikon kepadatan tabel",
2465
2474
  listItemsIcon: "Ikon item tabel",
2475
+ displayNickname: "Tampilkan nama panggilan",
2476
+ displaySubheading: "Tampilkan subtitle",
2477
+ subFontcolor: "Warna font subtitle",
2478
+ subFontSize: "Ukuran font subtitle",
2479
+ subRowHeight: "Tinggi baris subtitle",
2480
+ marginSpacing: "Jarak tepi putih",
2481
+ correctLevel: "Tingkat yang benar",
2482
+ columnUsageType: "Jenis nilai pengikat",
2483
+ dataDisplay: "Tampilan data",
2484
+ eventPassParameters: "Transmisi parameter selama interaksi",
2485
+ parameterName: "Nama Parameter",
2486
+ imgConfiguration: "Konfigurasi gambar",
2487
+ objectFitFill: "Secara default, tidak dijamin untuk mempertahankan proporsi asli, dan konten diperpanjang untuk mengisi seluruh wadah konten.",
2488
+ objectFitContain: "Jaga rasio ukuran asli. Konten telah diubah.",
2489
+ objectFitCover: "Jaga rasio ukuran asli. Beberapa konten dapat dipotong.",
2490
+ objectFitNone: "Menjaga panjang dan lebar konten elemen asli, yang berarti bahwa konten tidak akan diatur ulang.",
2491
+ objectFitDown: "Jaga rasio ukuran asli.",
2492
+ indicatorType: "Gaya Indikator",
2493
+ block: "Blok",
2494
+ roundDot: "Titik bulat",
2466
2495
  },
2467
2496
  /*集群列表 */
2468
2497
  colony: {
@@ -2527,6 +2556,7 @@ export default {
2527
2556
  form: "表单容器",
2528
2557
  treePanel: "树选择容器",
2529
2558
  flexLayout: "区块布局",
2559
+ drawerContainer: "抽屉容器",
2530
2560
  },
2531
2561
  /*基础组件*/
2532
2562
  basiccomponents: {
@@ -2635,17 +2665,20 @@ export default {
2635
2665
  reloadData: "Memuat ulang data",
2636
2666
  refreshData: "Menyegarkan data",
2637
2667
  downLoadData: "Drop down untuk memuat data",
2638
- LoadData: "查询数据",
2639
- getData: "获取数据",
2640
- treeData: '树点击加载数据',
2668
+ LoadData: "Pencarian data",
2669
+ getData: "Dapatkan data",
2670
+ treeData: 'Klik pohon untuk memuat data',
2641
2671
  deleteIdData: "Hapus data berdasarkan ID",
2642
2672
  previewComponents: "Pratinjau komponen",
2643
2673
  filePreview: "Pratinjau file",
2644
- fileDown: "文件下载",
2674
+ fileDown: "Unduh File",
2645
2675
  globalComponents: "Komponen global",
2646
2676
  pageComponents: "Pada komponen halaman",
2647
2677
  filterData: "Filter data",
2648
2678
  enlargeChart: "Membesarkan grafik",
2679
+ winOpenLink: "Buka tautan",
2680
+ openLink: "Buka tautan di jendela baru",
2681
+ routerPush: "Pengalihan rute lokal"
2649
2682
  },
2650
2683
  /*审计日志插件*/
2651
2684
  auditLogPlug: {
package/locale/vi_VN.js CHANGED
@@ -162,7 +162,12 @@ export default {
162
162
  titlePho: "Đăng nhập điện thoại",
163
163
  loading: "Đang đăng nhập...",
164
164
  codeSwitchTip: "Nếu nhận dạng CAPTCHA hình ảnh khó khăn, hãy nhấp vào CAPTCHA hình ảnh để làm mới màn hình",
165
- scancodeLogin: "Đăng nhập ủy quyền WeChat doanh nghiệp"
165
+ scancodeLogin: "Đăng nhập ủy quyền WeChat doanh nghiệp",
166
+ missingParameters: "Thông số thiếu: ",
167
+ authorization: "được ủy quyền. ..",
168
+ authorizationCompleted: "Chấp thuận hoàn thành",
169
+ authorizedLogin: "Đăng nhập được ủy quyền",
170
+ authorizedOauth: "Chứng thực ủy quyền",
166
171
  },
167
172
  /*基础*/
168
173
  basics: {
@@ -335,7 +340,7 @@ export default {
335
340
  pawMoreTip: "Vui lòng xác nhận tính nhất quán của mật khẩu nhập hai lần!",
336
341
  roleName: "Tên nhân vật",
337
342
  basicInformation: "Thông tin cơ bản",
338
- otherInformation: "其它信息",
343
+ otherInformation: "Informasi lain",
339
344
  organization: "Cơ quan trực thuộc",
340
345
  accountTip: "Vui lòng nhập số tài khoản có ít nhất 5 ký tự!",
341
346
  nickname: "Biệt danh",
@@ -355,8 +360,9 @@ export default {
355
360
  PSDNeverExpire: "mật khẩu không bao giờ hết hạn",
356
361
  orgOldName: "Tên tổ chức gốc",
357
362
  orgOldNameTip: "Tổ chức dữ liệu lịch sử mà người dùng thuộc về sẽ được cập nhật. Bạn có chắc chắn rằng bạn muốn sửa đổi tổ chức mà người dùng thuộc về không?",
358
- selectFile: "选取文件",
363
+ selectFile: "Chọn tập tin",
359
364
  userAuthorization: "Ủy quyền người dùng",
365
+ menuRoleApp: "Menu được ủy quyền của APP"
360
366
  },
361
367
  /*机构*/
362
368
  org: {
@@ -546,7 +552,8 @@ export default {
546
552
  doubleClickEdit: "Double click chỉnh sửa",
547
553
  currentTime: "Thời gian hiện tại",
548
554
  fileAcceptTip: "Loại file không được hỗ trợ!",
549
- fileSizeTip: "Kích thước tải lên không thể vượt quá "
555
+ fileSizeTip: "Kích thước tải lên không thể vượt quá ",
556
+ fileLimitTip: "Vượt quá số lượng tải lên tối đa",
550
557
  },
551
558
  /*表单*/
552
559
  form: {
@@ -985,6 +992,7 @@ export default {
985
992
  singletonMode: "Chế độ Singleton",
986
993
  multipleMode: "Chế độ đa thể hiện",
987
994
  collectMode: "Thu thập",
995
+ externalLinks: "Liên kết bên ngoài"
988
996
  },
989
997
  /* 侧边栏*/
990
998
  sidebar: {
@@ -1337,6 +1345,7 @@ export default {
1337
1345
  updateInstitutions: "Cơ quan cập nhật",
1338
1346
  open: "Mở",
1339
1347
  screenSwitch: "Chuyển đổi toàn màn hình",
1348
+ uploadDrag:"Kéo và thả các tập tin hoặc nhấp vào tải lên"
1340
1349
  },
1341
1350
  /*日志管理*/
1342
1351
  log: {
@@ -2274,8 +2283,8 @@ export default {
2274
2283
  text: "文本",
2275
2284
  executionFunction: "执行方法",
2276
2285
  interactiveMode: "交互方式",
2277
- systemsMethod: "系统方法",
2278
- componentMethod: "组件方法",
2286
+ systemsMethod: "系统",
2287
+ componentMethod: "组件",
2279
2288
  interactiveComponent: "交互组件",
2280
2289
  interactiveMethod: "交互方法",
2281
2290
  customMethod: "自定义方法",
@@ -2463,6 +2472,26 @@ export default {
2463
2472
  refreshIcon: "Tải mới biểu tượng",
2464
2473
  tableSizeIcon: "Biểu tượng mật độ bảng",
2465
2474
  listItemsIcon: "Biểu tượng mục bảng",
2475
+ displayNickname: "Hiển thị biệt danh",
2476
+ displaySubheading: "Hiển thị phụ đề",
2477
+ subFontcolor: "Subtitle font color",
2478
+ subFontSize: "Kích thước phông chữ phụ đề",
2479
+ subRowHeight: "Chiều cao dòng phụ đề",
2480
+ marginSpacing: "Khoảng cách cạnh trắng",
2481
+ correctLevel: "Mức độ chính xác",
2482
+ columnUsageType: "Loại giá trị ràng buộc",
2483
+ dataDisplay: "Hiển thị dữ liệu",
2484
+ eventPassParameters: "Truyền thông số trong tương tác",
2485
+ parameterName: "Tên thông số",
2486
+ imgConfiguration: "Cấu hình hình ảnh",
2487
+ objectFitFill: "Theo mặc định, nó không được đảm bảo duy trì tỷ lệ ban đầu, và nội dung được kéo dài để lấp đầy toàn bộ container nội dung.",
2488
+ objectFitContain: "Duy trì tỷ lệ kích thước ban đầu. Nội dung đã được mở rộng.",
2489
+ objectFitCover: "Duy trì tỷ lệ kích thước ban đầu. Một số nội dung có thể bị cắt.",
2490
+ objectFitNone: "Giữ lại chiều dài và chiều rộng của nội dung phần tử gốc, có nghĩa là nội dung sẽ không được thiết lập lại.",
2491
+ objectFitDown: "Duy trì tỷ lệ kích thước ban đầu.",
2492
+ indicatorType: "Phong cách chỉ số",
2493
+ block: "Khối",
2494
+ roundDot: "Điểm tròn",
2466
2495
  },
2467
2496
  /*集群列表 */
2468
2497
  colony: {
@@ -2527,6 +2556,7 @@ export default {
2527
2556
  form: "表单容器",
2528
2557
  treePanel: "树选择容器",
2529
2558
  flexLayout: "区块布局",
2559
+ drawerContainer: "抽屉容器",
2530
2560
  },
2531
2561
  /*基础组件*/
2532
2562
  basiccomponents: {
@@ -2635,17 +2665,20 @@ export default {
2635
2665
  reloadData: "Tải lại dữ liệu",
2636
2666
  refreshData: "Làm mới dữ liệu",
2637
2667
  downLoadData: "Drop down để tải dữ liệu",
2638
- LoadData: "查询数据",
2639
- getData: "获取数据",
2640
- treeData: '树点击加载数据',
2668
+ LoadData: "Dữ liệu truy vấn",
2669
+ getData: "Nhận dữ liệu",
2670
+ treeData: 'Nhấp vào cây để tải dữ liệu',
2641
2671
  deleteIdData: "Xóa dữ liệu dựa trên ID",
2642
2672
  previewComponents: "Xem trước các thành phần",
2643
2673
  filePreview: "Xem trước tập tin",
2644
- fileDown: "文件下载",
2674
+ fileDown: "Tải xuống tập tin",
2645
2675
  globalComponents: "Các thành phần toàn cầu",
2646
2676
  pageComponents: "Trên các thành phần trang",
2647
2677
  filterData: "Dữ liệu lọc",
2648
2678
  enlargeChart: "Mở rộng biểu đồ",
2679
+ winOpenLink: "Mở liên kết",
2680
+ openLink: "Mở liên kết trong một cửa sổ mới",
2681
+ routerPush: "Chuyển hướng đường địa phương"
2649
2682
  },
2650
2683
  /*审计日志插件*/
2651
2684
  auditLogPlug: {
package/locale/zh_CN.js CHANGED
@@ -162,7 +162,12 @@ export default {
162
162
  titlePho: "手机号登录",
163
163
  loading: "正在登录中...",
164
164
  codeSwitchTip: "如果图片验证码识别困难,点击图片验证码即可刷新显示",
165
- scancodeLogin: "企微扫码授权登录"
165
+ scancodeLogin: "企微扫码授权登录",
166
+ missingParameters: "缺失参数: ",
167
+ authorization: "授权中...",
168
+ authorizationCompleted: "授权已完成",
169
+ authorizedLogin: "授权登录",
170
+ authorizedOauth: "授权认证",
166
171
  },
167
172
  /*基础*/
168
173
  basics: {
@@ -358,6 +363,7 @@ export default {
358
363
  orgOldNameTip: "用户所属历史数据机构会更新,是否确认修改用户所属机构?",
359
364
  selectFile: "选取文件",
360
365
  userAuthorization: "授权用户",
366
+ menuRoleApp: "授权App菜单"
361
367
  },
362
368
  /*机构*/
363
369
  org: {
@@ -547,7 +553,8 @@ export default {
547
553
  doubleClickEdit: "双击编辑",
548
554
  currentTime: "当前时间",
549
555
  fileAcceptTip: "文件类型不支持!",
550
- fileSizeTip: "上传大小不能超过"
556
+ fileSizeTip: "上传大小不能超过",
557
+ fileLimitTip: "已超过最大上传数量",
551
558
  },
552
559
  /*表单*/
553
560
  form: {
@@ -986,6 +993,7 @@ export default {
986
993
  singletonMode: "单例模式",
987
994
  multipleMode: "多例模式",
988
995
  collectMode: "收藏模式",
996
+ externalLinks: "外链接"
989
997
  },
990
998
  /* 侧边栏*/
991
999
  sidebar: {
@@ -1338,6 +1346,7 @@ export default {
1338
1346
  updateInstitutions: "更新机构",
1339
1347
  open: "打开",
1340
1348
  screenSwitch: "全屏切换",
1349
+ uploadDrag: "拖拽文件或点击上传"
1341
1350
  },
1342
1351
  /*日志管理*/
1343
1352
  log: {
@@ -2276,8 +2285,8 @@ export default {
2276
2285
  text: "文本",
2277
2286
  executionFunction: "执行方法",
2278
2287
  interactiveMode: "交互方式",
2279
- systemsMethod: "系统方法",
2280
- componentMethod: "组件方法",
2288
+ systemsMethod: "系统",
2289
+ componentMethod: "组件",
2281
2290
  interactiveComponent: "交互组件",
2282
2291
  interactiveMethod: "交互方法",
2283
2292
  customMethod: "自定义方法",
@@ -2465,6 +2474,26 @@ export default {
2465
2474
  refreshIcon: "刷新图标",
2466
2475
  tableSizeIcon: "表密度图标",
2467
2476
  listItemsIcon: "表列项图标",
2477
+ displayNickname: "显示昵称",
2478
+ displaySubheading: "显示副标题",
2479
+ subFontcolor: "副标题字体颜色",
2480
+ subFontSize: "副标题字体大小",
2481
+ subRowHeight: "副标题行高",
2482
+ marginSpacing: "白边间距",
2483
+ correctLevel: "纠错级别",
2484
+ columnUsageType: "绑定值类型",
2485
+ dataDisplay: "数据展示",
2486
+ eventPassParameters: "交互时参数传递",
2487
+ parameterName: "参数名",
2488
+ imgConfiguration: "图片配置",
2489
+ objectFitFill: "默认,不保证保持原有的比例,内容拉伸填充整个内容容器。",
2490
+ objectFitContain: "保持原有尺寸比例。内容被缩放。",
2491
+ objectFitCover: "保持原有尺寸比例。但部分内容可能被剪切。",
2492
+ objectFitNone: "保留原有元素内容的长度和宽度,也就是说内容不会被重置。",
2493
+ objectFitDown: "保持原有尺寸比例。",
2494
+ indicatorType: "指示器样式",
2495
+ block: "方块",
2496
+ roundDot: "圆点",
2468
2497
  },
2469
2498
  /*集群列表 */
2470
2499
  colony: {
@@ -2529,6 +2558,7 @@ export default {
2529
2558
  form: "表单容器",
2530
2559
  treePanel: "树选择容器",
2531
2560
  flexLayout: "区块布局",
2561
+ drawerContainer: "抽屉容器",
2532
2562
  },
2533
2563
  /*基础组件*/
2534
2564
  basiccomponents: {
@@ -2648,6 +2678,9 @@ export default {
2648
2678
  pageComponents: "页面内组件",
2649
2679
  filterData: "筛选数据",
2650
2680
  enlargeChart: "放大图表",
2681
+ winOpenLink: "打开链接",
2682
+ openLink: "在新窗口打开链接",
2683
+ routerPush: "本地路由跳转"
2651
2684
  },
2652
2685
  /*审计日志插件*/
2653
2686
  auditLogPlug: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gds-plus-design-vue",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "高得CRM-PLUS框架Vue组件",
5
5
  "files": [
6
6
  "lib",