gds-plus-design-vue 1.2.73 → 1.2.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/addPermission.4a553cd8.js +1 -0
- package/lib/{addPermission.1eb97ee3.mjs → addPermission.78068c52.mjs} +45 -43
- package/lib/{approvalModel.c09cbf86.mjs → approvalModel.1d109493.mjs} +2 -2
- package/lib/{approvalModel.63fa8914.js → approvalModel.e0e5738f.js} +1 -1
- package/lib/{attribute.88d41b0f.mjs → attribute.9dfa6953.mjs} +46 -44
- package/lib/attribute.f97b41ad.js +1 -0
- package/lib/{components.globalheader.28b38c3a.js → components.globalheader.c7bf862b.js} +1 -1
- package/lib/{components.globalheader.9471ef9d.mjs → components.globalheader.f0b8aab7.mjs} +1 -1
- package/lib/{components.middleware.b2e156ea.js → components.middleware.216e1574.js} +1 -1
- package/lib/{components.middleware.7b760b95.mjs → components.middleware.d7dc078d.mjs} +2 -2
- package/lib/{components.modaltitle.179b6da1.js → components.modaltitle.0d3db44e.js} +1 -1
- package/lib/{components.modaltitle.2c1011c5.mjs → components.modaltitle.517bc660.mjs} +2 -2
- package/lib/{components.sidenavmenu.a3de1659.js → components.sidenavmenu.364a8b26.js} +1 -1
- package/lib/{components.sidenavmenu.91e996c4.mjs → components.sidenavmenu.3f4d259f.mjs} +1 -1
- package/lib/components.table.5d1336dd.js +8 -0
- package/lib/components.table.a50270a9.mjs +3591 -0
- package/lib/components.table.childheader.7e9b960f.mjs +325 -0
- package/lib/components.table.childheader.cee3be75.js +1 -0
- package/lib/components.table.queriesfield.eb795212.js +1 -0
- package/lib/components.table.queriesfield.f16322dc.mjs +748 -0
- package/lib/components.viewformdetails.513f0dbe.js +1 -0
- package/lib/{components.viewformdetails.4e40579f.mjs → components.viewformdetails.cb86a01d.mjs} +28 -21
- package/lib/{createFile.ca811a30.mjs → createFile.44667f20.mjs} +45 -43
- package/lib/createFile.6389354d.js +1 -0
- package/lib/{editForm.83d10fae.mjs → editForm.54f33a47.mjs} +5 -2
- package/lib/editForm.a5fd3180.js +1 -0
- package/lib/extendedAttributes.3ed8fe2a.js +1 -0
- package/lib/{extendedAttributes.a3ee9bde.mjs → extendedAttributes.b2c2ab6c.mjs} +45 -43
- package/lib/{fileSearch.d7abc086.mjs → fileSearch.203b9423.mjs} +45 -43
- package/lib/fileSearch.3513b55b.js +1 -0
- package/lib/{flow.designer.7d58bc2c.js → flow.designer.362f5f66.js} +1 -1
- package/lib/{flow.designer.b066df02.mjs → flow.designer.e087cd9b.mjs} +1 -1
- package/lib/{flow.list.a9afdd93.mjs → flow.list.3c2df716.mjs} +2 -2
- package/lib/{flow.list.d288de5e.js → flow.list.dea8996a.js} +1 -1
- package/lib/{form.build.16110b90.mjs → form.build.69803596.mjs} +24 -17
- package/lib/form.build.6a1bcad5.js +1 -0
- package/lib/{form.designer.build.2bd26973.mjs → form.designer.build.12c673f0.mjs} +188 -150
- package/lib/form.designer.build.89af4d24.js +1 -0
- package/lib/{formFiled.3763ebff.mjs → formFiled.593b5a25.mjs} +7 -6
- package/lib/formFiled.d63e97d3.js +1 -0
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +148 -146
- package/lib/{http.message.ceb0a1c6.mjs → http.message.00e72e09.mjs} +29 -21
- package/lib/{http.message.87f319d7.js → http.message.73c3ed85.js} +1 -1
- package/lib/index.4f1635c8.js +8 -0
- package/lib/{index.606ef358.mjs → index.9ecf4818.mjs} +3158 -2477
- package/lib/{layoutBlocks.0784592a.mjs → layoutBlocks.97713647.mjs} +91 -78
- package/lib/layoutBlocks.d26f79f2.js +1 -0
- package/lib/layouts.0e66a0bc.js +2 -0
- package/lib/{layouts.915931be.mjs → layouts.ddf507fa.mjs} +29 -21
- package/lib/{main.0326119e.js → main.22cae2bb.js} +1 -1
- package/lib/{main.adcedcee.mjs → main.37ae02bc.mjs} +1 -1
- package/lib/main.44750095.js +1 -0
- package/lib/{main.034638bb.mjs → main.55c9f109.mjs} +5 -8
- package/lib/{main.44efe912.mjs → main.5bf89f06.mjs} +54 -55
- package/lib/main.f0805dab.js +1 -0
- package/lib/manage.91e76379.js +1 -0
- package/lib/{manage.63cd038d.mjs → manage.b3462cce.mjs} +46 -44
- package/lib/{messages.messagetemplate.0935e5a3.mjs → messages.messagetemplate.ceeb3f47.mjs} +2 -2
- package/lib/{messages.messagetemplate.50334e5f.js → messages.messagetemplate.e52ab470.js} +1 -1
- package/lib/messages.sendplan.18bda3c5.js +1 -0
- package/lib/{messages.sendplan.61edcc7f.mjs → messages.sendplan.c6821911.mjs} +97 -25
- package/lib/{messages.sendrecord.09a1d1cd.js → messages.sendrecord.12028921.js} +2 -2
- package/lib/{messages.sendrecord.1c48aa6e.mjs → messages.sendrecord.f7630ebd.mjs} +3 -3
- package/lib/{messages.templatelibrary.f31e8d58.mjs → messages.templatelibrary.4654886e.mjs} +1 -1
- package/lib/{messages.templatelibrary.f5952edd.js → messages.templatelibrary.cd20c05b.js} +1 -1
- package/lib/{mobile.designer.componentstree.70fd4c93.mjs → mobile.designer.componentstree.5a329caa.mjs} +1 -1
- package/lib/{mobile.designer.componentstree.f4a901e4.js → mobile.designer.componentstree.888d8646.js} +1 -1
- package/lib/{mobile.designer.menutree.4d4e059b.js → mobile.designer.menutree.646ebcdd.js} +1 -1
- package/lib/{mobile.designer.menutree.7d3b783d.mjs → mobile.designer.menutree.da4c05f4.mjs} +1 -1
- package/lib/moveFile.345aee1d.js +1 -0
- package/lib/{moveFile.b66805f8.mjs → moveFile.864ea48f.mjs} +48 -46
- package/lib/{page.build.09137386.mjs → page.build.39202359.mjs} +674 -668
- package/lib/{page.build.1b771761.js → page.build.66e190a5.js} +3 -3
- package/lib/{page.designer.componentstree.a256ff7a.mjs → page.designer.componentstree.2d5a887a.mjs} +1 -1
- package/lib/{page.designer.componentstree.341908b2.js → page.designer.componentstree.ec3dcbc1.js} +1 -1
- package/lib/{page.designer.menutree.e4ce1e90.mjs → page.designer.menutree.1e642711.mjs} +2 -2
- package/lib/{page.designer.menutree.71c18258.js → page.designer.menutree.6368c636.js} +1 -1
- package/lib/{page.designer.page.d2d6b614.js → page.designer.page.2dac64ca.js} +1 -1
- package/lib/{page.designer.page.559113a9.mjs → page.designer.page.4cf4b1bf.mjs} +5 -5
- package/lib/{result.16da7693.mjs → result.3c1fc8b7.mjs} +45 -43
- package/lib/result.cf75c6c3.js +1 -0
- package/lib/{router.config.70680261.mjs → router.config.b78ec9f8.mjs} +5 -5
- package/lib/{router.config.1e67a1c3.js → router.config.d746d115.js} +1 -1
- package/lib/{solution.application.8d6c84e8.js → solution.application.15e813b4.js} +1 -1
- package/lib/{solution.application.e6b5dc4f.mjs → solution.application.5d02d1cd.mjs} +16 -10
- package/lib/solution.approvalflow.1f11ad8f.js +1 -0
- package/lib/{solution.approvalflow.8572122d.mjs → solution.approvalflow.24a50af0.mjs} +20 -14
- package/lib/solution.dict.28214a3e.js +1 -0
- package/lib/{solution.dict.088a1e72.mjs → solution.dict.77cb1ad2.mjs} +41 -37
- package/lib/{solution.menu.fa48a7e8.js → solution.menu.12b9f56d.js} +1 -1
- package/lib/{solution.menu.e58922fe.mjs → solution.menu.72498250.mjs} +1 -1
- package/lib/{solution.plugin.ae6df926.mjs → solution.plugin.76b603be.mjs} +18 -12
- package/lib/solution.plugin.e7b31aff.js +1 -0
- package/lib/solution.processflow.aa84ec06.js +1 -0
- package/lib/{solution.processflow.a52fd47c.mjs → solution.processflow.d336bd7b.mjs} +15 -9
- package/lib/{solution.role.7b3e7030.mjs → solution.role.05efb1b4.mjs} +18 -12
- package/lib/solution.role.d07e1813.js +1 -0
- package/lib/{solution.webresources.88c4483b.mjs → solution.webresources.1b0f8550.mjs} +247 -79
- package/lib/solution.webresources.5b4abeb5.js +2 -0
- package/lib/{solution.workflow.2530073b.mjs → solution.workflow.6d081d1f.mjs} +18 -12
- package/lib/solution.workflow.91b42158.js +1 -0
- package/lib/style.css +2 -2
- package/lib/{system.duplicatechecking.bef2b20c.js → system.duplicatechecking.719ddda1.js} +1 -1
- package/lib/{system.duplicatechecking.a0da805e.mjs → system.duplicatechecking.af9318aa.mjs} +1 -1
- package/lib/{system.notice.da2c944c.mjs → system.notice.12fa4d1c.mjs} +4 -4
- package/lib/{system.notice.72e0615f.js → system.notice.9385577f.js} +1 -1
- package/lib/{system.noticereceived.54c17b73.js → system.noticereceived.3dec9e12.js} +1 -1
- package/lib/{system.noticereceived.30dab7d1.mjs → system.noticereceived.7cfcceb4.mjs} +1 -1
- package/lib/{system.team.367bf5e7.mjs → system.team.3b0fcc60.mjs} +1 -1
- package/lib/{system.team.cf1c1558.js → system.team.c0d623a5.js} +1 -1
- package/lib/{system.teammembers.63f21557.js → system.teammembers.c99ef01b.js} +1 -1
- package/lib/{system.teammembers.851ce63b.mjs → system.teammembers.d0dc3f12.mjs} +2 -2
- package/lib/{system.user.bff7cc2f.js → system.user.75fa57c3.js} +1 -1
- package/lib/{system.user.a1ff367b.mjs → system.user.78a45735.mjs} +1 -1
- package/lib/versionControl.c39356b7.js +1 -0
- package/lib/{versionControl.6cd18867.mjs → versionControl.d572bc44.mjs} +52 -50
- package/lib/{versionEdit.910d2e2f.mjs → versionEdit.8b059461.mjs} +45 -43
- package/lib/versionEdit.d56cde69.js +1 -0
- package/lib/view.build.14c0d411.js +1 -0
- package/lib/{view.build.20e9aec0.mjs → view.build.5b9241fd.mjs} +193 -190
- package/lib/viewList.215afeb2.js +1 -0
- package/lib/{viewList.a4909732.mjs → viewList.b090d62f.mjs} +11 -12
- package/package.json +1 -1
- package/lib/addPermission.5bfc7e11.js +0 -1
- package/lib/attribute.919cb93e.js +0 -1
- package/lib/components.table.a0ac819e.js +0 -8
- package/lib/components.table.d79f5fa3.mjs +0 -4650
- package/lib/components.viewformdetails.6e66cc83.js +0 -1
- package/lib/copy.3b06d60f.mjs +0 -572
- package/lib/copy.fa2fcb22.js +0 -1
- package/lib/createFile.94329169.js +0 -1
- package/lib/editForm.e284e5ec.js +0 -1
- package/lib/extendedAttributes.b1107f6c.js +0 -1
- package/lib/fileSearch.4722ac3b.js +0 -1
- package/lib/form.build.5461409b.js +0 -1
- package/lib/form.designer.build.67b316e1.js +0 -1
- package/lib/formFiled.ef26328d.js +0 -1
- package/lib/index.fe18e32c.js +0 -8
- package/lib/layoutBlocks.1b71d988.js +0 -1
- package/lib/layouts.ae25c583.js +0 -2
- package/lib/main.44d72b90.js +0 -1
- package/lib/main.47957168.js +0 -1
- package/lib/manage.80871daf.js +0 -1
- package/lib/messages.sendplan.60929f46.js +0 -1
- package/lib/moveFile.d79f7fd9.js +0 -1
- package/lib/result.9cb6c2f1.js +0 -1
- package/lib/solution.approvalflow.cce2f064.js +0 -1
- package/lib/solution.dict.1d5195d0.js +0 -1
- package/lib/solution.plugin.5d6d29cf.js +0 -1
- package/lib/solution.processflow.bfa4897c.js +0 -1
- package/lib/solution.role.2eff83a1.js +0 -1
- package/lib/solution.webresources.bc00603d.js +0 -1
- package/lib/solution.workflow.59e0e697.js +0 -1
- package/lib/versionControl.47cc1330.js +0 -1
- package/lib/versionEdit.977faa93.js +0 -1
- package/lib/view.build.a48a14b0.js +0 -1
- package/lib/viewList.71f866da.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./http.duplicatechecking.ee5c414c.js"),h=require("./components.chartbi.13a8a7b5.js"),m=require("./utils.mixins.js.750ca50e.js"),g=require("./http.syscodegenerateconfigmanage.840f1136.js"),p=require("./utils.plug.js.f62510ce.js"),b={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.duplicatechecking.name",prop:"name",label:"\u540D\u79F0",width:"260",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.duplicatechecking.basicTable",prop:"basicrecordtablename",width:"220",label:"\u57FA\u672C\u8868",align:"left"},{transKey:"gd.duplicatechecking.matchingTable",prop:"matchingrecordtablename",width:"220",label:"\u5339\u914D\u8868",align:"left"},{transKey:"gd.duplicatechecking.isSave",prop:"issave",width:"120",label:"\u662F\u5426\u4FDD\u5B58",type:"slot",slotType:"issave",align:"left"},{transKey:"gd.duplicatechecking.status",prop:"stateCodes",width:"120",label:"\u72B6\u6001",type:"slot",slotType:"stateCodes",align:"left"},{transKey:"gd.duplicatechecking.explain",prop:"remark",width:"260",label:"\u8BF4\u660E",align:"left"}],formColumns:[],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"duplicatechecking:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"duplicatechecking:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"duplicatechecking:delete"},{displayName:"\u542F\u7528",functionName:"enable",show:!0,transKey:"gd.btn.enable",icon:"el-icon-video-play",name:"duplicatechecking:changeStatus"},{displayName:"\u505C\u7528",functionName:"deactivated",show:!0,btnType:"danger",icon:"el-icon-discover",transKey:"gd.btn.deactivate",name:"duplicatechecking:changeStatus"}],formButtons:[],tableQueries:[{transKey:"gd.msg.temPlate.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]},{transKey:"gd.duplicatechecking.isSave",prop:"isSave",label:"\u662F\u5426\u4FDD\u5B58",effectType:"select",dictTypeCode:"yes_or_no",rules:[]},{transKey:"gd.duplicatechecking.basicTable",prop:"baseRecordTable",label:"\u57FA\u672C\u8868",effectType:"selectMultiple",fkEntityName:"sys_code_gen",rules:[],fkData:[],dictData:[]},{transKey:"gd.duplicatechecking.matchingTable",prop:"matchingRecordTable",label:"\u5339\u914D\u8868",effectType:"selectMultiple",fkEntityName:"sys_code_gen",fkData:[],rules:[],dictData:[]}]}}};const y={props:{height:{type:Number,default:100}},name:"GdDuplicateChecking",mixins:[m.tablesFilter,b],components:{editForm:()=>Promise.resolve().then(()=>S)},data(){return{selectedRowKeys:[],selectedRows:[],disableBtn:[],transKey:"gd.duplicatechecking.checkConfigurationRetryRule",formLoading:!1,currentNode:null,loadData:i=>c.listSysDupRules(Object.assign(i,this.getQueryParam)).then(e=>e.data),record:{},queryParam:{}}},computed:{getTableLists(){let i=[...this.tableLists];return i.forEach((e,t)=>{i[t].name=e.busname,i[t].code=e.id}),i},getTableQueries(){return this.tableQueries.forEach((i,e)=>{if(i.prop==="matchingRecordTable")this.tableQueries[e].dictData=[...this.getTableLists];else if(i.prop==="baseRecordTable"){const t=this.getTableLists.filter(s=>s.ischeckduplicate===1);this.tableQueries[e].dictData=[...t]}}),this.tableQueries},getHeight(){return this.height},getTableButtons(){return this.tableButtons.filter(i=>(i.show=!this.disableBtn.includes(i.displayName),!0))},getQueryParam(){let i=new Map;for(let e in this.queryParam)this.queryParam[e]&&e==="baseRecordTable"||e==="matchingRecordTable"?i.set(e,this.queryParam[e].join(",")):i.set(e,this.queryParam[e]);return Object.fromEntries(i)},...h.mapGetters(["tablePageSize","tableSize","labelPosition","formMode","tableLists"])},methods:{onSelectChange(i,e){if(this.selectedRows=e,this.selectedRowKeys=i,i.length===0){this.disableBtn=[];return}const t=e.filter(a=>a.statecodes===1)[0];this.disableBtn=t?["\u5220\u9664","\u542F\u7528"]:[],e.filter(a=>a.statecodes===0)[0]&&this.disableBtn.push("\u505C\u7528")},refresh(){this.$refs.table.refresh()},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.editForms(this.selectedRows[0])},editForms(i){this.$refs.editForm.init(i)},saveQueries(i){this.queryParam={...i},this.refresh()},add(){this.$refs.editForm.init(null)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,t)=>{this.delHand(i,e,t)}})},delHand(i,e,t){if(i!=="confirm"){t();return}let s=[],a=c.delSysDupRules({ids:this.selectedRowKeys.join(",")}).then(l=>l);s.push(a),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(s).then(l=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,t();const r=l.filter(n=>!n.success);r.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+r[0].message),this.refresh()})},doEvent(i){let e=i.item.functionName;this[e]&&this[e]()},handleOk(){this.$refs.table.refresh()},dictSwitch(i,e){let t=this.$options.filters.dictData(e).filter(s=>s.code==i)[0];return t!=null&&t.colour?t.colour:null},enable(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.operateTip","\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\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.editStateCodes({row:this.selectedRows[0]})},deactivated(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.operateTip","\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\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.editStateCodes({row:this.selectedRows[0]})},editStateCodes({column:i,row:e}){if(e.dict_type==1){this.$message.error(this.$i18nt("gd.https.operableNoTip","\u4E0D\u53EF\u64CD\u4F5C!"));return}const t=e.statecodes!=1?this.$i18nt("gd.https.enableContent","\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?"):this.$i18nt("gd.https.deactivateContent","\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"),s=e.statecodes!=1?this.$i18nt("gd.https.enableOk","\u786E\u8BA4\u505C\u7528"):this.$i18nt("gd.https.deactivateOk","\u786E\u8BA4\u542F\u7528");this.$confirm(t,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:s,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:(a,l,r)=>{if(a!=="confirm"){r();return}l.confirmButtonLoading=!0,l.cancelButtonLoading=!0,l.showCancelButton=!1,c.editSysDupRules({id:e.id,stateCodes:e.statecodes==1?0:1}).then(n=>{r(),l.confirmButtonLoading=!1,l.cancelButtonLoading=!1,l.showCancelButton=!0,n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message)})}})}}};var w=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view"},[t("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,filtering:!0,height:e.getHeight},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:s,row:a}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForms}})]}},{key:"basicrecordtablename",fn:function({column:s,row:a}){return[t("gd-tooltip",{attrs:{rowKey:"basicrecordtable",row:a}})]}},{key:"matchingrecordtablename",fn:function({column:s,row:a}){return[t("gd-tooltip",{attrs:{rowKey:"matchingrecordtable",row:a}})]}},{key:"issave",fn:function(s){return[e.dictSwitch(s.row.issave,"yes_or_no")?t("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.row.issave,"yes_or_no")}},[e._v(" "+e._s(e._f("dictType")("yes_or_no",s.row.issave))+" ")]):t("span",[e._v(e._s(e._f("dictType")("yes_or_no",s.row.issave)))])]}},{key:"remark",fn:function({column:s,row:a}){return[t("gd-tooltip",{attrs:{rowKey:"remark",row:a}})]}},{key:"stateCodes",fn:function(s){return[e.dictSwitch(s.row.statecodes,"state_code")?t("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.row.statecodes,"state_code")}},[e._v(" "+e._s(e._f("dictType")("state_code",s.row.statecodes))+" ")]):t("span",[e._v(e._s(e._f("dictType")("state_code",s.row.statecodes)))])]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.getTableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:a}){return[t("gd-table-queries-field",{attrs:{columns:e.getTableQueries,height:e.getHeight,queryParam:e.queryParam,colse:s,visible:a},on:{save:e.saveQueries}})]}}])})],1),t("editForm",{ref:"editForm",attrs:{table:e.record},on:{ok:e.handleOk}})],1)},$=[],C=h.normalizeComponent(y,w,$,!1,null,"09531ffc",null,null);const d=C.exports;d.install=function(i){i.component(d.name,d)};const _={data(){return{confirmLoading:!0,title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!1,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,fullScreen:!1,width:"1000px",ruleFormData:{stateCodes:"0",name:"",explain:"",issave:!1},rules:{status:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},tableData:[],visible:!1,matchingsysCodeGenId:"",sysCodeGenId:"",sysCodeGenoId:"",viewId:"0",viewoId:"0",filterList:{},isAll:!1,viewListData:[],viewPersonalData:[],loadData:[],ruleslists:[],selShow:!0,tableMode:"basic",isflows:!1,rulesList:[],fieldloadData:[],matchFieldloadData:[],tabledisabled:!1,filteredList:[]}},components:{FlowsFilter:()=>Promise.resolve().then(()=>require("./flow.designer.7d58bc2c.js")).then(i=>i.main)},computed:{table(){return this.tableLists.filter(i=>i.id===this.matchingsysCodeGenId)[0]},processedTableData(){return[...this.tableData,{isPlaceholder:!0}]},fieldProp(){return this.tableMode==="basic"?"field":"baseField"},plugFilters(){return p.getPlugFilters()},...h.mapGetters(["screenHeight","tableLists","primaryColor"])},methods:{okFilter(i){this.filterList={...i}},toggleFullscreen(){this.fullScreen=!this.fullScreen},getDictionary(i){return this.$options.filters.dictData(i)},selectRules(i){},changeRelevant(i,e){i.condition="",this.tabledisabled=!0;let t=null;if(e=="field"?(this.selShow=!0,t=this.fieldloadData.filter(s=>s.columnname===i.basicField)[0],i.fieldeffecttype=t.effecttype):(t=this.matchFieldloadData.filter(s=>s.columnname===i.matchingField)[0],i.mactheffecttype=t.effecttype,i.mactheffecttype!==i.fieldeffecttype&&this.$message.warning(this.$i18nt("gd.duplicatechecking.pleaseBasicTableandmach","\u57FA\u672C\u5B57\u6BB5\u9700\u4E0E\u5339\u914D\u5B57\u6BB5\u4FDD\u6301\u4E00\u81F4"))),t){i.type=t.effecttype,this.conditionColumn(i,t);return}},conditionColumn(i,e){let t=this.rulesList.filter(s=>s.remark.split(",").includes(e.effecttype));i.ruleslists=[...t]},getList(i,e){return g.onlineFormGetCodeGenerateList({codeGenId:i}).then(t=>{let a=[...t.data.filter(n=>n.effecttype=="about"&&n.columnname==(n.relations+"_AboutTable").toLowerCase()||n.effecttype=="currency"&&n.columnname==(n.relations+"_Currency_Base").toLowerCase()?!1:n.effecttype!="editor")];const l=this.rulesList.map(n=>({...n,remarkTypes:n.remark.split(",").map(o=>o.trim())})),r=a.filter(n=>l.some(o=>o.remarkTypes.includes(n.effecttype)));return e=="basicTable"?this.fieldloadData=r:e=="matchingTable"&&(this.matchFieldloadData=r),this.type==2&&this.tableData.forEach(n=>{let o=null;if(o=this.fieldloadData.filter(u=>u.columnname===n.basicField)[0],o){let u=this.rulesList.filter(f=>f.remark.split(",").includes(o.effecttype));n.ruleslists=[...u]}}),t})},init(i){this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type=i?2:1,this.title=i?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.$nextTick(()=>{this.filterList=JSON.parse(JSON.stringify(this.plugFilters));let e=this.getDictionary("table_dup_rule");e.forEach((t,s)=>{e[s].sysdicttype={}}),this.rulesList=[...e]}),this.sysViewButtons=[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],this.isflows=!0,i&&this.sysTranslationDetail(i.id),this.filteredList=[],this.filteredList=this.tableLists.filter(e=>e.ischeckduplicate===1)},sysTranslationDetail(i){this.confirmLoading=!0,c.detailSysDupRules({id:i}).then(e=>{this.ruleFormData.name=e.data.name,this.ruleFormData.stateCodes=String(e.data.statecodes),this.ruleFormData.id=e.data.id,this.ruleFormData.explain=e.data.explain,this.ruleFormData.issave=e.data.issave===1,this.tableData=JSON.parse(e.data.matchingrules),this.filterList=e.data.filterconfig?JSON.parse(e.data.filterconfig):JSON.parse(JSON.stringify(this.plugfilters)),this.sysCodeGenId=Number(e.data.basicrecordtable),this.getList(e.data.basicrecordtable,"basicTable"),this.tableMode="basic",this.matchingsysCodeGenId=Number(e.data.matchingrecordtable),this.matchingsysCodeGenId&&this.matchingsysCodeGenId!=this.sysCodeGenId&&(this.getList(this.matchingsysCodeGenId,"matchingTable"),this.tableMode="match"),this.ruleFormData.stateCodes==1&&(this.sysViewButtons=[]),this.confirmLoading=!1})},add(i){this.confirmLoading=!0,delete i.id,c.addSysDupRules(i).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",i),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail")+e.message)}).finally(e=>{this.confirmLoading=!1})},edit(i){this.confirmLoading=!0,delete i.basicRecordTable,delete i.matchingRecordTable,c.editSysDupRules(i).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",i),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail")+e.message)}).finally(e=>{this.confirmLoading=!1})},handleSubmit(){this.$refs.ruleForm.validate(i=>{this.tableData.forEach(l=>{l.charactorcount=l.charactorcount?Number(l.charactorcount):"",l.basicField=l.basicField?l.basicField:"",l.matchingField=this.tableMode==="match"?l.matchingField:l.basicField});let e=JSON.parse(JSON.stringify(this.tableData));e.forEach(l=>{delete l.isPlaceholder,delete l.ruleslists,delete l.fieldeffecttype,delete l.mactheffecttype});let t=this.filterList.list[0],s=0;this.filterList.list.forEach(l=>{s+=l.list.length});let a=t&&this.filterList.list.length===1&&t.referencefiled===""&&t.referencetable===""&&t.list.length>0?Object.assign(t,{columnid:0}):this.filterList;if(i){const l={...this.ruleFormData,basicRecordTable:this.sysCodeGenId,matchingRecordTable:this.matchingsysCodeGenId,filterConfig:JSON.stringify(a),matchingRules:JSON.stringify(e)};this.type==1?this.add(l):this.edit(l)}})},handleModeChange(i){this.tableData=[],this.selShow=!0,this.sysCodeGenId==this.matchingsysCodeGenId?this.tableMode="basic":this.tableMode="match",this.flowsFilterInit(),this.getList(i,"matchingTable")},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.tabledisabled=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={stateCodes:"0",name:"",explain:"",issave:!1},this.sysCodeGenId="",this.matchingsysCodeGenId="",this.tableData=[],this.fieldloadData=[],this.matchFieldloadData=[],this.selShow=!0,this.tableMode="basic"},doEvent(i){let e=i.item.functionName;this[e]&&this[e]()},shouldShowCharCount(i){return["2","3"].includes(i.condition)},selectTable(i){this.tableData=[],this.selShow=!0,this.matchingsysCodeGenId===""&&(this.matchingsysCodeGenId=i),this.sysCodeGenId==this.matchingsysCodeGenId?this.tableMode="basic":this.tableMode="match",this.flowsFilterInit(),this.getList(i,"basicTable")},addNewRow(i){this.selShow=!1;const e={basicField:"",matchingField:"",condition:"",charactorcount:"",isPlaceholder:!1,ruleslists:"",type:""};this.tableData.push(e)},shouldShowAddButton(i){const e=i===this.processedTableData.length-1,t=this.tableData.some(s=>!s.field);return e&&!t},removeRow(i){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:(t,s,a)=>{if(t!=="confirm"){a();return}this.tableData.splice(i,1),this.tabledisabled=!1,this.selShow=!0,e.$message.success(e.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),a()}})},tableRowClassName({row:i}){return i.isPlaceholder?"placeholder-row":""},handleCellHover(i,e,t){},handleAddRow(i){this.selShow=!0},flowsFilterInit(){this.$nextTick(()=>{this.$refs.flowsFilter.initComponents(this.plugFilters)})},selFilter(){if(!(this.type==2&&this.ruleFormData.stateCodes==1)){if(this.matchingsysCodeGenId==""){this.$message.warning(this.$i18nt("gd.duplicatechecking.pleaseSelectBasicTable","\u8BF7\u9009\u62E9\u5339\u914D\u8868"));return}console.log(this.filterList),this.$refs.flowsFilter.init(this.filterList)}},isselect(){return this.type==2?this.ruleFormData.stateCodes!=1:!0}}};var k=function(){var e=this,t=e._self._c;return t("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{width:e.width,visible:e.visible,fullscreen:e.fullScreen,footer:null,top:"80px","append-to-body":"","show-close":!1},on:{"update:visible":function(s){e.visible=s},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:`${e.title}${e.$i18nt("gd.duplicatechecking.checkConfigurationRetryRule","\u67E5\u91CD\u89C4\u5219\u914D\u7F6E")}`,fullscreen:e.fullScreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,closed:"handleCancel",showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[t("div",{staticClass:"setting-navs",class:e.fullScreen?"modal-bodyq":"modal-body"},[t("el-form",{ref:"ruleForm",attrs:{model:e.ruleFormData,rules:e.rules,"label-width":"120px"},nativeOn:{submit:function(s){s.preventDefault()}}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.name","\u540D\u79F0"),prop:"name"}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:e.type==2&&e.ruleFormData.stateCodes==1},model:{value:e.ruleFormData.name,callback:function(s){e.$set(e.ruleFormData,"name",s)},expression:"ruleFormData['name']"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.status","\u72B6\u6001")}},[t("el-select",{ref:"refView",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:""},model:{value:e.ruleFormData.stateCodes,callback:function(s){e.$set(e.ruleFormData,"stateCodes",s)},expression:"ruleFormData['stateCodes']"}},[t("el-option",{attrs:{value:"1",label:e.$i18nt("gd.duplicatechecking.enable","\u542F\u7528]")}}),t("el-option",{attrs:{value:"0",label:e.$i18nt("gd.duplicatechecking.deactivate","\u7981\u7528]")}})],1)],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.explain","\u8BF4\u660E")}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.inputcontent","\u8BF7\u8F93\u5165\u5185\u5BB9"),autosize:{minRows:4,maxRows:6},disabled:e.type==2&&e.ruleFormData.stateCodes==1},model:{value:e.ruleFormData.explain,callback:function(s){e.$set(e.ruleFormData,"explain",s)},expression:"ruleFormData['explain']"}})],1)],1),t("el-col",{staticClass:"setting-navs-btn",attrs:{source:24}},[t("span",[e._v(e._s(e.$i18nt("gd.duplicatechecking.repeatDetectionRuleCondition","\u91CD\u590D\u68C0\u6D4B\u89C4\u5219\u6761\u4EF6")))])]),t("el-col",{attrs:{span:10}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.basicTable","\u57FA\u672C\u8868")}},[t("el-select",{ref:"refTable",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:e.type==2&&e.ruleFormData.stateCodes==1},on:{change:e.selectTable},model:{value:e.sysCodeGenId,callback:function(s){e.sysCodeGenId=s},expression:"sysCodeGenId"}},e._l(e.filteredList,function(s){return t("el-option",{key:s.id,attrs:{label:e.$i18nt(`Dynamics.${s.transkey}`,s.busname),value:s.id}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${s.transkey}`,s.busname))+" "+e._s(s.tablename)+" ")])}),1)],1)],1),t("el-col",{attrs:{span:10}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.matchingTable","\u5339\u914D\u8868")}},[t("el-select",{ref:"refTable",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:e.type==2&&e.ruleFormData.stateCodes==1},on:{change:e.handleModeChange},model:{value:e.matchingsysCodeGenId,callback:function(s){e.matchingsysCodeGenId=s},expression:"matchingsysCodeGenId"}},e._l(e.tableLists,function(s){return t("el-option",{key:s.id,attrs:{label:e.$i18nt(`Dynamics.${s.transkey}`,s.busname),value:s.id}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${s.transkey}`,s.busname))+" "+e._s(s.tablename)+" ")])}),1)],1)],1),t("el-col",{attrs:{span:4}},[t("el-button",{attrs:{type:"primary"},on:{click:e.selFilter}},[e._v(e._s(e.$i18nt("gd.view.filterConditions","\u8FC7\u6EE4\u6761\u4EF6")))])],1),t("el-col",{attrs:{span:10}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.allowSave","\u5141\u8BB8\u4FDD\u5B58")}},[t("el-switch",{attrs:{disabled:e.type==2&&e.ruleFormData.stateCodes==1,"active-color":e.primaryColor},model:{value:e.ruleFormData.issave,callback:function(s){e.$set(e.ruleFormData,"issave",s)},expression:"ruleFormData['issave']"}})],1)],1)],1)],1),t("div",{staticClass:"setting-conter"},[t("div",{staticClass:"config-table-container"},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.processedTableData,border:"","header-cell-class-name":"table-header","row-class-name":e.tableRowClassName},on:{"cell-mouse-enter":e.handleCellHover}},[t("el-table-column",{attrs:{prop:e.fieldProp,label:e.tableMode==="basic"?e.$i18nt("gd.duplicatechecking.field","\u5B57\u6BB5"):e.$i18nt("gd.duplicatechecking.basicField","\u57FA\u672C\u5B57\u6BB5"),"min-width":"220"},scopedSlots:e._u([{key:"default",fn:function(s){return[s.row.isPlaceholder?e._e():t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:e.type==2&&e.ruleFormData.stateCodes==1},on:{change:function(a){return e.changeRelevant(s.row,"field")}},model:{value:s.row.basicField,callback:function(a){e.$set(s.row,"basicField",a)},expression:"scope.row.basicField"}},e._l(e.fieldloadData,function(a,l){return t("el-option",{key:a.id,attrs:{value:a.columnname,label:e.$i18nt(`Dynamics.${a.transkey}`,a.columncomment),clearable:""}},[t("span",{staticStyle:{"padding-left":"2px"}},[e._v(e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.columncomment))+" "+e._s(a.columnname))])])}),1),e.selShow&&s.row.isPlaceholder&&e.isselect()?t("div",{staticClass:"select-placeholder",on:{click:function(a){return e.addNewRow(s.row)}}},[t("span",{staticClass:"blue-text active-color"},[e._v(e._s(e.$i18nt("gd.btn.choice","\u9009\u62E9")))])]):e._e()]}}])}),e.tableMode==="match"?t("el-table-column",{attrs:{prop:"matchingField",label:e.$i18nt("gd.duplicatechecking.matchingField","\u5339\u914D\u5B57\u6BB5"),"min-width":"220"},scopedSlots:e._u([{key:"default",fn:function(s){return[s.row.isPlaceholder?e._e():t("el-select",{attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!s.row.basicField||e.type==2&&e.ruleFormData.stateCodes==1},on:{change:function(a){return e.changeRelevant(s.row,"mactch")}},model:{value:s.row.matchingField,callback:function(a){e.$set(s.row,"matchingField",a)},expression:"scope.row.matchingField"}},e._l(e.matchFieldloadData,function(a,l){return t("el-option",{key:a.id,attrs:{value:a.columnname,label:e.$i18nt(`Dynamics.${a.transkey}`,a.columncomment)}},[t("span",{staticStyle:{"padding-left":"2px"}},[e._v(e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.columncomment))+" "+e._s(a.columnname))])])}),1)]}}],null,!1,2256470968)}):e._e(),t("el-table-column",{attrs:{prop:"condition",label:e.$i18nt("gd.duplicatechecking.condition","\u6761\u4EF6"),"min-width":"170"},scopedSlots:e._u([{key:"default",fn:function(s){return[!s.row.isPlaceholder&&s.row.ruleslists&&s.row.ruleslists.length>0?t("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.type==2&&e.ruleFormData.stateCodes==1},on:{change:e.selectRules},model:{value:s.row.condition,callback:function(a){e.$set(s.row,"condition",a)},expression:"scope.row.condition"}},[e._l(s.row.ruleslists,function(a){return[t("el-option",{attrs:{value:a.code,label:e.$i18nt(`Dynamics.${a.transkey}`,a.name)}})]})],2):e._e()]}}])}),t("el-table-column",{staticClass:"charactorcount",attrs:{prop:"charactorcount",label:e.$i18nt("gd.duplicatechecking.numberCharacters","\u5B57\u7B26\u6570"),"min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(s){return[e.shouldShowCharCount(s.row)?t("el-input-number",{staticStyle:{width:"100%"},attrs:{disabled:e.type==2&&e.ruleFormData.stateCodes==1,min:0},model:{value:s.row.charactorcount,callback:function(a){e.$set(s.row,"charactorcount",a)},expression:"scope.row.charactorcount"}}):e._e()]}}])}),t("el-table-column",{attrs:{label:e.$i18nt("gd.duplicatechecking.handle","\u64CD\u4F5C"),"min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(s){return!s.row.isPlaceholder&&e.isselect()?[t("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"16px",color:"#ff4d4f"},on:{click:function(a){return e.removeRow(s.$index)}}})]:void 0}}],null,!0)})],1)],1)]),e.visible&&e.isflows&&e.matchingsysCodeGenId?t("FlowsFilter",{ref:"flowsFilter",attrs:{type:2,table:e.table},on:{ok:e.okFilter}}):e._e()],1)])],1)},v=[],F=h.normalizeComponent(_,k,v,!1,null,"f9c61f8f",null,null);const D=F.exports,S=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=d;
|
|
1
|
+
"use strict";const c=require("./http.duplicatechecking.ee5c414c.js"),h=require("./components.chartbi.13a8a7b5.js"),m=require("./utils.mixins.js.750ca50e.js"),g=require("./http.syscodegenerateconfigmanage.840f1136.js"),p=require("./utils.plug.js.f62510ce.js"),b={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.duplicatechecking.name",prop:"name",label:"\u540D\u79F0",width:"260",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.duplicatechecking.basicTable",prop:"basicrecordtablename",width:"220",label:"\u57FA\u672C\u8868",align:"left"},{transKey:"gd.duplicatechecking.matchingTable",prop:"matchingrecordtablename",width:"220",label:"\u5339\u914D\u8868",align:"left"},{transKey:"gd.duplicatechecking.isSave",prop:"issave",width:"120",label:"\u662F\u5426\u4FDD\u5B58",type:"slot",slotType:"issave",align:"left"},{transKey:"gd.duplicatechecking.status",prop:"stateCodes",width:"120",label:"\u72B6\u6001",type:"slot",slotType:"stateCodes",align:"left"},{transKey:"gd.duplicatechecking.explain",prop:"remark",width:"260",label:"\u8BF4\u660E",align:"left"}],formColumns:[],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"duplicatechecking:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"duplicatechecking:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"duplicatechecking:delete"},{displayName:"\u542F\u7528",functionName:"enable",show:!0,transKey:"gd.btn.enable",icon:"el-icon-video-play",name:"duplicatechecking:changeStatus"},{displayName:"\u505C\u7528",functionName:"deactivated",show:!0,btnType:"danger",icon:"el-icon-discover",transKey:"gd.btn.deactivate",name:"duplicatechecking:changeStatus"}],formButtons:[],tableQueries:[{transKey:"gd.msg.temPlate.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]},{transKey:"gd.duplicatechecking.isSave",prop:"isSave",label:"\u662F\u5426\u4FDD\u5B58",effectType:"select",dictTypeCode:"yes_or_no",rules:[]},{transKey:"gd.duplicatechecking.basicTable",prop:"baseRecordTable",label:"\u57FA\u672C\u8868",effectType:"selectMultiple",fkEntityName:"sys_code_gen",rules:[],fkData:[],dictData:[]},{transKey:"gd.duplicatechecking.matchingTable",prop:"matchingRecordTable",label:"\u5339\u914D\u8868",effectType:"selectMultiple",fkEntityName:"sys_code_gen",fkData:[],rules:[],dictData:[]}]}}};const y={props:{height:{type:Number,default:100}},name:"GdDuplicateChecking",mixins:[m.tablesFilter,b],components:{editForm:()=>Promise.resolve().then(()=>S)},data(){return{selectedRowKeys:[],selectedRows:[],disableBtn:[],transKey:"gd.duplicatechecking.checkConfigurationRetryRule",formLoading:!1,currentNode:null,loadData:i=>c.listSysDupRules(Object.assign(i,this.getQueryParam)).then(e=>e.data),record:{},queryParam:{}}},computed:{getTableLists(){let i=[...this.tableLists];return i.forEach((e,t)=>{i[t].name=e.busname,i[t].code=e.id}),i},getTableQueries(){return this.tableQueries.forEach((i,e)=>{if(i.prop==="matchingRecordTable")this.tableQueries[e].dictData=[...this.getTableLists];else if(i.prop==="baseRecordTable"){const t=this.getTableLists.filter(s=>s.ischeckduplicate===1);this.tableQueries[e].dictData=[...t]}}),this.tableQueries},getHeight(){return this.height},getTableButtons(){return this.tableButtons.filter(i=>(i.show=!this.disableBtn.includes(i.displayName),!0))},getQueryParam(){let i=new Map;for(let e in this.queryParam)this.queryParam[e]&&e==="baseRecordTable"||e==="matchingRecordTable"?i.set(e,this.queryParam[e].join(",")):i.set(e,this.queryParam[e]);return Object.fromEntries(i)},...h.mapGetters(["tablePageSize","tableSize","labelPosition","formMode","tableLists"])},methods:{onSelectChange(i,e){if(this.selectedRows=e,this.selectedRowKeys=i,i.length===0){this.disableBtn=[];return}const t=e.filter(a=>a.statecodes===1)[0];this.disableBtn=t?["\u5220\u9664","\u542F\u7528"]:[],e.filter(a=>a.statecodes===0)[0]&&this.disableBtn.push("\u505C\u7528")},refresh(){this.$refs.table.refresh()},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.editForms(this.selectedRows[0])},editForms(i){this.$refs.editForm.init(i)},saveQueries(i){this.queryParam={...i},this.refresh()},add(){this.$refs.editForm.init(null)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,t)=>{this.delHand(i,e,t)}})},delHand(i,e,t){if(i!=="confirm"){t();return}let s=[],a=c.delSysDupRules({ids:this.selectedRowKeys.join(",")}).then(l=>l);s.push(a),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(s).then(l=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,t();const r=l.filter(n=>!n.success);r.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+r[0].message),this.refresh()})},doEvent(i){let e=i.item.functionName;this[e]&&this[e]()},handleOk(){this.$refs.table.refresh()},dictSwitch(i,e){let t=this.$options.filters.dictData(e).filter(s=>s.code==i)[0];return t!=null&&t.colour?t.colour:null},enable(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.operateTip","\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\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.editStateCodes({row:this.selectedRows[0]})},deactivated(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.operateTip","\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\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.editStateCodes({row:this.selectedRows[0]})},editStateCodes({column:i,row:e}){if(e.dict_type==1){this.$message.error(this.$i18nt("gd.https.operableNoTip","\u4E0D\u53EF\u64CD\u4F5C!"));return}const t=e.statecodes!=1?this.$i18nt("gd.https.enableContent","\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?"):this.$i18nt("gd.https.deactivateContent","\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"),s=e.statecodes!=1?this.$i18nt("gd.https.enableOk","\u786E\u8BA4\u505C\u7528"):this.$i18nt("gd.https.deactivateOk","\u786E\u8BA4\u542F\u7528");this.$confirm(t,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:s,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:(a,l,r)=>{if(a!=="confirm"){r();return}l.confirmButtonLoading=!0,l.cancelButtonLoading=!0,l.showCancelButton=!1,c.editSysDupRules({id:e.id,stateCodes:e.statecodes==1?0:1}).then(n=>{r(),l.confirmButtonLoading=!1,l.cancelButtonLoading=!1,l.showCancelButton=!0,n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message)})}})}}};var w=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view"},[t("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,filtering:!0,height:e.getHeight},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:s,row:a}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForms}})]}},{key:"basicrecordtablename",fn:function({column:s,row:a}){return[t("gd-tooltip",{attrs:{rowKey:"basicrecordtable",row:a}})]}},{key:"matchingrecordtablename",fn:function({column:s,row:a}){return[t("gd-tooltip",{attrs:{rowKey:"matchingrecordtable",row:a}})]}},{key:"issave",fn:function(s){return[e.dictSwitch(s.row.issave,"yes_or_no")?t("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.row.issave,"yes_or_no")}},[e._v(" "+e._s(e._f("dictType")("yes_or_no",s.row.issave))+" ")]):t("span",[e._v(e._s(e._f("dictType")("yes_or_no",s.row.issave)))])]}},{key:"remark",fn:function({column:s,row:a}){return[t("gd-tooltip",{attrs:{rowKey:"remark",row:a}})]}},{key:"stateCodes",fn:function(s){return[e.dictSwitch(s.row.statecodes,"state_code")?t("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.row.statecodes,"state_code")}},[e._v(" "+e._s(e._f("dictType")("state_code",s.row.statecodes))+" ")]):t("span",[e._v(e._s(e._f("dictType")("state_code",s.row.statecodes)))])]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.getTableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:a}){return[t("gd-table-queries-field",{attrs:{columns:e.getTableQueries,height:e.getHeight,queryParam:e.queryParam,colse:s,visible:a},on:{save:e.saveQueries}})]}}])})],1),t("editForm",{ref:"editForm",attrs:{table:e.record},on:{ok:e.handleOk}})],1)},$=[],C=h.normalizeComponent(y,w,$,!1,null,"09531ffc",null,null);const d=C.exports;d.install=function(i){i.component(d.name,d)};const _={data(){return{confirmLoading:!0,title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!1,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,fullScreen:!1,width:"1000px",ruleFormData:{stateCodes:"0",name:"",explain:"",issave:!1},rules:{status:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},tableData:[],visible:!1,matchingsysCodeGenId:"",sysCodeGenId:"",sysCodeGenoId:"",viewId:"0",viewoId:"0",filterList:{},isAll:!1,viewListData:[],viewPersonalData:[],loadData:[],ruleslists:[],selShow:!0,tableMode:"basic",isflows:!1,rulesList:[],fieldloadData:[],matchFieldloadData:[],tabledisabled:!1,filteredList:[]}},components:{FlowsFilter:()=>Promise.resolve().then(()=>require("./flow.designer.362f5f66.js")).then(i=>i.main)},computed:{table(){return this.tableLists.filter(i=>i.id===this.matchingsysCodeGenId)[0]},processedTableData(){return[...this.tableData,{isPlaceholder:!0}]},fieldProp(){return this.tableMode==="basic"?"field":"baseField"},plugFilters(){return p.getPlugFilters()},...h.mapGetters(["screenHeight","tableLists","primaryColor"])},methods:{okFilter(i){this.filterList={...i}},toggleFullscreen(){this.fullScreen=!this.fullScreen},getDictionary(i){return this.$options.filters.dictData(i)},selectRules(i){},changeRelevant(i,e){i.condition="",this.tabledisabled=!0;let t=null;if(e=="field"?(this.selShow=!0,t=this.fieldloadData.filter(s=>s.columnname===i.basicField)[0],i.fieldeffecttype=t.effecttype):(t=this.matchFieldloadData.filter(s=>s.columnname===i.matchingField)[0],i.mactheffecttype=t.effecttype,i.mactheffecttype!==i.fieldeffecttype&&this.$message.warning(this.$i18nt("gd.duplicatechecking.pleaseBasicTableandmach","\u57FA\u672C\u5B57\u6BB5\u9700\u4E0E\u5339\u914D\u5B57\u6BB5\u4FDD\u6301\u4E00\u81F4"))),t){i.type=t.effecttype,this.conditionColumn(i,t);return}},conditionColumn(i,e){let t=this.rulesList.filter(s=>s.remark.split(",").includes(e.effecttype));i.ruleslists=[...t]},getList(i,e){return g.onlineFormGetCodeGenerateList({codeGenId:i}).then(t=>{let a=[...t.data.filter(n=>n.effecttype=="about"&&n.columnname==(n.relations+"_AboutTable").toLowerCase()||n.effecttype=="currency"&&n.columnname==(n.relations+"_Currency_Base").toLowerCase()?!1:n.effecttype!="editor")];const l=this.rulesList.map(n=>({...n,remarkTypes:n.remark.split(",").map(o=>o.trim())})),r=a.filter(n=>l.some(o=>o.remarkTypes.includes(n.effecttype)));return e=="basicTable"?this.fieldloadData=r:e=="matchingTable"&&(this.matchFieldloadData=r),this.type==2&&this.tableData.forEach(n=>{let o=null;if(o=this.fieldloadData.filter(u=>u.columnname===n.basicField)[0],o){let u=this.rulesList.filter(f=>f.remark.split(",").includes(o.effecttype));n.ruleslists=[...u]}}),t})},init(i){this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type=i?2:1,this.title=i?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.$nextTick(()=>{this.filterList=JSON.parse(JSON.stringify(this.plugFilters));let e=this.getDictionary("table_dup_rule");e.forEach((t,s)=>{e[s].sysdicttype={}}),this.rulesList=[...e]}),this.sysViewButtons=[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],this.isflows=!0,i&&this.sysTranslationDetail(i.id),this.filteredList=[],this.filteredList=this.tableLists.filter(e=>e.ischeckduplicate===1)},sysTranslationDetail(i){this.confirmLoading=!0,c.detailSysDupRules({id:i}).then(e=>{this.ruleFormData.name=e.data.name,this.ruleFormData.stateCodes=String(e.data.statecodes),this.ruleFormData.id=e.data.id,this.ruleFormData.explain=e.data.explain,this.ruleFormData.issave=e.data.issave===1,this.tableData=JSON.parse(e.data.matchingrules),this.filterList=e.data.filterconfig?JSON.parse(e.data.filterconfig):JSON.parse(JSON.stringify(this.plugfilters)),this.sysCodeGenId=Number(e.data.basicrecordtable),this.getList(e.data.basicrecordtable,"basicTable"),this.tableMode="basic",this.matchingsysCodeGenId=Number(e.data.matchingrecordtable),this.matchingsysCodeGenId&&this.matchingsysCodeGenId!=this.sysCodeGenId&&(this.getList(this.matchingsysCodeGenId,"matchingTable"),this.tableMode="match"),this.ruleFormData.stateCodes==1&&(this.sysViewButtons=[]),this.confirmLoading=!1})},add(i){this.confirmLoading=!0,delete i.id,c.addSysDupRules(i).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",i),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail")+e.message)}).finally(e=>{this.confirmLoading=!1})},edit(i){this.confirmLoading=!0,delete i.basicRecordTable,delete i.matchingRecordTable,c.editSysDupRules(i).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",i),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail")+e.message)}).finally(e=>{this.confirmLoading=!1})},handleSubmit(){this.$refs.ruleForm.validate(i=>{this.tableData.forEach(l=>{l.charactorcount=l.charactorcount?Number(l.charactorcount):"",l.basicField=l.basicField?l.basicField:"",l.matchingField=this.tableMode==="match"?l.matchingField:l.basicField});let e=JSON.parse(JSON.stringify(this.tableData));e.forEach(l=>{delete l.isPlaceholder,delete l.ruleslists,delete l.fieldeffecttype,delete l.mactheffecttype});let t=this.filterList.list[0],s=0;this.filterList.list.forEach(l=>{s+=l.list.length});let a=t&&this.filterList.list.length===1&&t.referencefiled===""&&t.referencetable===""&&t.list.length>0?Object.assign(t,{columnid:0}):this.filterList;if(i){const l={...this.ruleFormData,basicRecordTable:this.sysCodeGenId,matchingRecordTable:this.matchingsysCodeGenId,filterConfig:JSON.stringify(a),matchingRules:JSON.stringify(e)};this.type==1?this.add(l):this.edit(l)}})},handleModeChange(i){this.tableData=[],this.selShow=!0,this.sysCodeGenId==this.matchingsysCodeGenId?this.tableMode="basic":this.tableMode="match",this.flowsFilterInit(),this.getList(i,"matchingTable")},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.tabledisabled=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={stateCodes:"0",name:"",explain:"",issave:!1},this.sysCodeGenId="",this.matchingsysCodeGenId="",this.tableData=[],this.fieldloadData=[],this.matchFieldloadData=[],this.selShow=!0,this.tableMode="basic"},doEvent(i){let e=i.item.functionName;this[e]&&this[e]()},shouldShowCharCount(i){return["2","3"].includes(i.condition)},selectTable(i){this.tableData=[],this.selShow=!0,this.matchingsysCodeGenId===""&&(this.matchingsysCodeGenId=i),this.sysCodeGenId==this.matchingsysCodeGenId?this.tableMode="basic":this.tableMode="match",this.flowsFilterInit(),this.getList(i,"basicTable")},addNewRow(i){this.selShow=!1;const e={basicField:"",matchingField:"",condition:"",charactorcount:"",isPlaceholder:!1,ruleslists:"",type:""};this.tableData.push(e)},shouldShowAddButton(i){const e=i===this.processedTableData.length-1,t=this.tableData.some(s=>!s.field);return e&&!t},removeRow(i){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:(t,s,a)=>{if(t!=="confirm"){a();return}this.tableData.splice(i,1),this.tabledisabled=!1,this.selShow=!0,e.$message.success(e.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),a()}})},tableRowClassName({row:i}){return i.isPlaceholder?"placeholder-row":""},handleCellHover(i,e,t){},handleAddRow(i){this.selShow=!0},flowsFilterInit(){this.$nextTick(()=>{this.$refs.flowsFilter.initComponents(this.plugFilters)})},selFilter(){if(!(this.type==2&&this.ruleFormData.stateCodes==1)){if(this.matchingsysCodeGenId==""){this.$message.warning(this.$i18nt("gd.duplicatechecking.pleaseSelectBasicTable","\u8BF7\u9009\u62E9\u5339\u914D\u8868"));return}console.log(this.filterList),this.$refs.flowsFilter.init(this.filterList)}},isselect(){return this.type==2?this.ruleFormData.stateCodes!=1:!0}}};var k=function(){var e=this,t=e._self._c;return t("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{width:e.width,visible:e.visible,fullscreen:e.fullScreen,footer:null,top:"80px","append-to-body":"","show-close":!1},on:{"update:visible":function(s){e.visible=s},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:`${e.title}${e.$i18nt("gd.duplicatechecking.checkConfigurationRetryRule","\u67E5\u91CD\u89C4\u5219\u914D\u7F6E")}`,fullscreen:e.fullScreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,closed:"handleCancel",showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[t("div",{staticClass:"setting-navs",class:e.fullScreen?"modal-bodyq":"modal-body"},[t("el-form",{ref:"ruleForm",attrs:{model:e.ruleFormData,rules:e.rules,"label-width":"120px"},nativeOn:{submit:function(s){s.preventDefault()}}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.name","\u540D\u79F0"),prop:"name"}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:e.type==2&&e.ruleFormData.stateCodes==1},model:{value:e.ruleFormData.name,callback:function(s){e.$set(e.ruleFormData,"name",s)},expression:"ruleFormData['name']"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.status","\u72B6\u6001")}},[t("el-select",{ref:"refView",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:""},model:{value:e.ruleFormData.stateCodes,callback:function(s){e.$set(e.ruleFormData,"stateCodes",s)},expression:"ruleFormData['stateCodes']"}},[t("el-option",{attrs:{value:"1",label:e.$i18nt("gd.duplicatechecking.enable","\u542F\u7528]")}}),t("el-option",{attrs:{value:"0",label:e.$i18nt("gd.duplicatechecking.deactivate","\u7981\u7528]")}})],1)],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.explain","\u8BF4\u660E")}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.inputcontent","\u8BF7\u8F93\u5165\u5185\u5BB9"),autosize:{minRows:4,maxRows:6},disabled:e.type==2&&e.ruleFormData.stateCodes==1},model:{value:e.ruleFormData.explain,callback:function(s){e.$set(e.ruleFormData,"explain",s)},expression:"ruleFormData['explain']"}})],1)],1),t("el-col",{staticClass:"setting-navs-btn",attrs:{source:24}},[t("span",[e._v(e._s(e.$i18nt("gd.duplicatechecking.repeatDetectionRuleCondition","\u91CD\u590D\u68C0\u6D4B\u89C4\u5219\u6761\u4EF6")))])]),t("el-col",{attrs:{span:10}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.basicTable","\u57FA\u672C\u8868")}},[t("el-select",{ref:"refTable",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:e.type==2&&e.ruleFormData.stateCodes==1},on:{change:e.selectTable},model:{value:e.sysCodeGenId,callback:function(s){e.sysCodeGenId=s},expression:"sysCodeGenId"}},e._l(e.filteredList,function(s){return t("el-option",{key:s.id,attrs:{label:e.$i18nt(`Dynamics.${s.transkey}`,s.busname),value:s.id}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${s.transkey}`,s.busname))+" "+e._s(s.tablename)+" ")])}),1)],1)],1),t("el-col",{attrs:{span:10}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.matchingTable","\u5339\u914D\u8868")}},[t("el-select",{ref:"refTable",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:e.type==2&&e.ruleFormData.stateCodes==1},on:{change:e.handleModeChange},model:{value:e.matchingsysCodeGenId,callback:function(s){e.matchingsysCodeGenId=s},expression:"matchingsysCodeGenId"}},e._l(e.tableLists,function(s){return t("el-option",{key:s.id,attrs:{label:e.$i18nt(`Dynamics.${s.transkey}`,s.busname),value:s.id}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${s.transkey}`,s.busname))+" "+e._s(s.tablename)+" ")])}),1)],1)],1),t("el-col",{attrs:{span:4}},[t("el-button",{attrs:{type:"primary"},on:{click:e.selFilter}},[e._v(e._s(e.$i18nt("gd.view.filterConditions","\u8FC7\u6EE4\u6761\u4EF6")))])],1),t("el-col",{attrs:{span:10}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.allowSave","\u5141\u8BB8\u4FDD\u5B58")}},[t("el-switch",{attrs:{disabled:e.type==2&&e.ruleFormData.stateCodes==1,"active-color":e.primaryColor},model:{value:e.ruleFormData.issave,callback:function(s){e.$set(e.ruleFormData,"issave",s)},expression:"ruleFormData['issave']"}})],1)],1)],1)],1),t("div",{staticClass:"setting-conter"},[t("div",{staticClass:"config-table-container"},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.processedTableData,border:"","header-cell-class-name":"table-header","row-class-name":e.tableRowClassName},on:{"cell-mouse-enter":e.handleCellHover}},[t("el-table-column",{attrs:{prop:e.fieldProp,label:e.tableMode==="basic"?e.$i18nt("gd.duplicatechecking.field","\u5B57\u6BB5"):e.$i18nt("gd.duplicatechecking.basicField","\u57FA\u672C\u5B57\u6BB5"),"min-width":"220"},scopedSlots:e._u([{key:"default",fn:function(s){return[s.row.isPlaceholder?e._e():t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:e.type==2&&e.ruleFormData.stateCodes==1},on:{change:function(a){return e.changeRelevant(s.row,"field")}},model:{value:s.row.basicField,callback:function(a){e.$set(s.row,"basicField",a)},expression:"scope.row.basicField"}},e._l(e.fieldloadData,function(a,l){return t("el-option",{key:a.id,attrs:{value:a.columnname,label:e.$i18nt(`Dynamics.${a.transkey}`,a.columncomment),clearable:""}},[t("span",{staticStyle:{"padding-left":"2px"}},[e._v(e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.columncomment))+" "+e._s(a.columnname))])])}),1),e.selShow&&s.row.isPlaceholder&&e.isselect()?t("div",{staticClass:"select-placeholder",on:{click:function(a){return e.addNewRow(s.row)}}},[t("span",{staticClass:"blue-text active-color"},[e._v(e._s(e.$i18nt("gd.btn.choice","\u9009\u62E9")))])]):e._e()]}}])}),e.tableMode==="match"?t("el-table-column",{attrs:{prop:"matchingField",label:e.$i18nt("gd.duplicatechecking.matchingField","\u5339\u914D\u5B57\u6BB5"),"min-width":"220"},scopedSlots:e._u([{key:"default",fn:function(s){return[s.row.isPlaceholder?e._e():t("el-select",{attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!s.row.basicField||e.type==2&&e.ruleFormData.stateCodes==1},on:{change:function(a){return e.changeRelevant(s.row,"mactch")}},model:{value:s.row.matchingField,callback:function(a){e.$set(s.row,"matchingField",a)},expression:"scope.row.matchingField"}},e._l(e.matchFieldloadData,function(a,l){return t("el-option",{key:a.id,attrs:{value:a.columnname,label:e.$i18nt(`Dynamics.${a.transkey}`,a.columncomment)}},[t("span",{staticStyle:{"padding-left":"2px"}},[e._v(e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.columncomment))+" "+e._s(a.columnname))])])}),1)]}}],null,!1,2256470968)}):e._e(),t("el-table-column",{attrs:{prop:"condition",label:e.$i18nt("gd.duplicatechecking.condition","\u6761\u4EF6"),"min-width":"170"},scopedSlots:e._u([{key:"default",fn:function(s){return[!s.row.isPlaceholder&&s.row.ruleslists&&s.row.ruleslists.length>0?t("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.type==2&&e.ruleFormData.stateCodes==1},on:{change:e.selectRules},model:{value:s.row.condition,callback:function(a){e.$set(s.row,"condition",a)},expression:"scope.row.condition"}},[e._l(s.row.ruleslists,function(a){return[t("el-option",{attrs:{value:a.code,label:e.$i18nt(`Dynamics.${a.transkey}`,a.name)}})]})],2):e._e()]}}])}),t("el-table-column",{staticClass:"charactorcount",attrs:{prop:"charactorcount",label:e.$i18nt("gd.duplicatechecking.numberCharacters","\u5B57\u7B26\u6570"),"min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(s){return[e.shouldShowCharCount(s.row)?t("el-input-number",{staticStyle:{width:"100%"},attrs:{disabled:e.type==2&&e.ruleFormData.stateCodes==1,min:0},model:{value:s.row.charactorcount,callback:function(a){e.$set(s.row,"charactorcount",a)},expression:"scope.row.charactorcount"}}):e._e()]}}])}),t("el-table-column",{attrs:{label:e.$i18nt("gd.duplicatechecking.handle","\u64CD\u4F5C"),"min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(s){return!s.row.isPlaceholder&&e.isselect()?[t("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"16px",color:"#ff4d4f"},on:{click:function(a){return e.removeRow(s.$index)}}})]:void 0}}],null,!0)})],1)],1)]),e.visible&&e.isflows&&e.matchingsysCodeGenId?t("FlowsFilter",{ref:"flowsFilter",attrs:{type:2,table:e.table},on:{ok:e.okFilter}}):e._e()],1)])],1)},v=[],F=h.normalizeComponent(_,k,v,!1,null,"f9c61f8f",null,null);const D=F.exports,S=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=d;
|
|
@@ -433,7 +433,7 @@ const S = {
|
|
|
433
433
|
filteredList: []
|
|
434
434
|
};
|
|
435
435
|
},
|
|
436
|
-
components: { FlowsFilter: () => import("./flow.designer.
|
|
436
|
+
components: { FlowsFilter: () => import("./flow.designer.e087cd9b.mjs").then((a) => a.m) },
|
|
437
437
|
computed: {
|
|
438
438
|
table() {
|
|
439
439
|
return this.tableLists.filter((a) => a.id === this.matchingsysCodeGenId)[0];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { m as l, n as c } from "./components.chartbi.7356b244.mjs";
|
|
2
|
-
import { b as g, c as
|
|
2
|
+
import { b as g, c as w, d as b, e as m, f as _, g as y, h as v } from "./http.noticemanage.2cdb23b8.mjs";
|
|
3
3
|
import { e as $, f as T } from "./http.usermanage.f5491144.mjs";
|
|
4
4
|
import { t as u } from "./utils.mixins.js.be01e599.mjs";
|
|
5
5
|
import { s as R, a as S, g as C } from "./http.filemanage.c0de21d6.mjs";
|
|
@@ -395,7 +395,7 @@ const N = {
|
|
|
395
395
|
receivergroups: this.ruleFormData.notifyingPerson,
|
|
396
396
|
attachment: this.ruleFormData.fileid
|
|
397
397
|
};
|
|
398
|
-
this.formLoading = !0,
|
|
398
|
+
this.formLoading = !0, w(Object.assign(this.noticeDetail, a)).then((o) => {
|
|
399
399
|
o.success ? (this.status == 1 && n(), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F"))) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + o.message), this.formLoading = !1, this.refresh();
|
|
400
400
|
});
|
|
401
401
|
return;
|
|
@@ -408,7 +408,7 @@ const N = {
|
|
|
408
408
|
receiverGroups: this.ruleFormData.notifyingPerson,
|
|
409
409
|
attachment: this.ruleFormData.fileid
|
|
410
410
|
};
|
|
411
|
-
this.formLoading = !0,
|
|
411
|
+
this.formLoading = !0, b(r).then((a) => {
|
|
412
412
|
if (a.success || (this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25") + a.message), this.refresh(), this.formLoading = !1), this.refresh(), this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.status == 1) {
|
|
413
413
|
this.formLoading = !1, n();
|
|
414
414
|
return;
|
|
@@ -727,7 +727,7 @@ var x = function() {
|
|
|
727
727
|
D,
|
|
728
728
|
!1,
|
|
729
729
|
null,
|
|
730
|
-
"
|
|
730
|
+
"66379943",
|
|
731
731
|
null,
|
|
732
732
|
null
|
|
733
733
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./components.chartbi.13a8a7b5.js"),l=require("./http.noticemanage.2507d094.js"),m=require("./http.usermanage.6dcbc7de.js"),h=require("./utils.mixins.js.750ca50e.js"),f=require("./http.filemanage.7e6e3e1a.js");require("./components.form.14ed3374.js");const b=require("./http.orgmanage.5162fd7a.js"),w=require("./http.rolemanage.4d1101dd.js"),_=require("./http.sysapps.469d47f7.js"),v=require("./http.tabledevelopment.a880bb76.js"),$={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.notice.title",prop:"title",label:"\u6807\u9898",width:"260",type:"slot",slotType:"title",align:"left",fixed:!0},{transKey:"gd.notice.type",prop:"type",width:"120",label:"\u7C7B\u578B",align:"left",type:"slot",slotType:"type"},{transKey:"gd.notice.status",prop:"status",width:"120",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status"},{transKey:"gd.notice.createdTime",prop:"createdtime",width:"180",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicTime",prop:"publictime",width:"180",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",width:"200",label:"\u53D1\u5E03\u4EBA",align:"left"}],formColumns:[{transKey:"gd.notice.title",effectType:"input",prop:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.type",prop:"type",label:"\u7C7B\u578B",effectType:"radio",dictTypeCode:"notice_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}],type:"slot",slotType:"notice_type"},{transKey:"gd.notice.noticeBucket",effectType:"editor",prop:"content",label:"\u5185\u5BB9",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.attachment",effectType:"file",prop:"fileList",label:"\u9644\u4EF6",accept:".pdf",placeholder:"\u8BF7\u4E0A\u4F20",fileTitle:"\u4E0A\u4F20PDF\u6587\u4EF6",limit:1,rules:[],type:"slot",slotType:"fileList"},{transKey:"gd.notice.notifyTo",effectType:"notifyingPerson",prop:"notifyingPerson",label:"\u6536\u5230\u901A\u77E5\u4EBA",type:"slot",slotType:"notifyingPerson",rules:[],disabled:!1}],noticeFormColumns:[],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysNotice:add"},{displayName:"\u901A\u77E5\u4EBA",functionName:"notifyingPerson",show:!0,transKey:"gd.notice.notifyingPerson",icon:"el-icon-bell",name:"sysNotice:notifyingPerson"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysNotice:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysNotice:delete"},{displayName:"\u53D1\u5E03",functionName:"release",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",name:"sysNotice:changeStatus"},{displayName:"\u64A4\u56DE",functionName:"rollback",show:!0,transKey:"gd.btn.withdraw",icon:"el-icon-refresh-left",btnType:"danger",name:"sysNotice:changeStatus"},{displayName:"\u67E5\u770B",functionName:"read",show:!0,transKey:"gd.btn.view",icon:"el-icon-reading",name:"sysNotice:detail"}],formButtons:[{displayName:"\u5B58\u4E3A\u8349\u7A3F",functionName:"saveDraft",show:!0,transKey:"gd.btn.saveDraft",icon:"el-icon-tickets",validate:!0},{displayName:"\u53D1\u5E03",functionName:"releaseTip",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",validate:!0}],noticeFormButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.notice.noticeOriginName",prop:"searchValue",label:"\u5173\u952E\u8BCD",effectType:"input",rules:[]},{transKey:"gd.sysConfig.type",prop:"type",label:"\u7C7B\u578B",effectType:"select",dictTypeCode:"notice_type",rules:[]}]}}};const T={name:"GdNotice",props:{height:{type:Number,default:100}},mixins:[h.tablesFilter,$],data(){return{transKey:"gd.btn.add",loadData:t=>l.sysNoticePage(Object.assign(t,this.queryParam)).then(e=>(this.allData=e.data.rows,e.data)),allData:[],selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1,mockData:[],targetKeys:[],noticeUserIdList:[],status:0,type:"noticeUser",confirmLoading:!1,fileType:"pdf",style:"width: 100%; height: 580px;",headers:{"Content-Type":"multipart/form-data"},fileListFile:[],imgList:[],currentImg:"",ruleFormData:{fileList:"",name:"",notifyingPerson:[],fileid:""},record:{},allEmpty:!0,noticeType:"",fileAccept:["application/pdf"]}},components:{detailForm:()=>Promise.resolve().then(()=>y),editNoticeForm:()=>Promise.resolve().then(()=>re)},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(e=>!(e.prop==="notifyingPerson"&&this.transKey==="gd.btn.add"||(this.noticeType==3&&e.prop==="content"?e.rules=[]:this.noticeType!=3&&e.prop==="content"&&(e.rules=[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]),(this.noticeType==1||this.noticeType==2)&&e.prop==="fileList")))},getButtons(){return this.formButtons.filter(t=>!(this.transKey==="gd.btn.add"&&t.functionName==="releaseTip"))},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},mounted(){(this.$route.params.id||this.$route.query.id)&&(this.transKey="gd.notice.detail",setTimeout(()=>{this.allData.forEach(t=>{(t.id==this.$route.params.id||t.id==this.$route.query.id)&&this.$refs.detailForm.open(t)})},1e3))},methods:{onSelectChange(t,e){if(this.selectedRowKeys=t,this.selectedRows=e,e.length==0){this.baseHideBtns([],2);return}if(e.length>1){this.baseHideBtns(["\u5220\u9664","\u53D1\u5E03","\u64A4\u56DE","\u7F16\u8F91"],2);return}let s=[],i=e.filter(r=>r.status==0),n=e.filter(r=>r.status==1),a=e.filter(r=>r.status==2);i.length==e.length?s=["\u64A4\u56DE"]:n.length==e.length?s=["\u5220\u9664","\u53D1\u5E03","\u7F16\u8F91"]:a.length==e.length&&(s=["\u64A4\u56DE","\u53D1\u5E03","\u7F16\u8F91"]),this.baseHideBtns(s,2)},baseHideBtns(t,e=1){let s=[...this.tableButtons];s.map(i=>(e===1?i.show=!t.includes(i.id):i.show=!t.includes(i.displayName),i)),this.tableButtons=[...s]},add(){this.transKey="gd.btn.add",this.fileListFile=[],this.ruleFormData={fileList:"",name:"",notifyingPerson:[],fileid:""},this.$refs.editForm.open(null)},noticePerson(t){this.$refs.editNoticeFormRef.init(t.id,"2")},notifyingPerson(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.operateTip","\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));return}this.$refs.editNoticeFormRef.init(this.selectedRowKeys,"1")},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.sysNoticeDetail(this.selectedRows[0].id),this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...this.selectedRows[0]},{type:String(this.selectedRows[0].type),content:this.selectedRows[0].content,fileid:this.selectedRows[0].attachment}))},editForm(t){this.transKey="gd.notice.detail",this.$refs.detailForm.open(t)},handleOk(t){this.ruleFormData.notifyingPerson=[],this.ruleFormData.notifyingPerson=t,this.allEmpty=Array.isArray(t)?t.every(e=>!e.receiverIdList||e.receiverIdList.length===0):!0},sbumit({data:t,record:e,btn:s},i,n){if(this.status=s.item.functionName=="releaseTip"?1:0,e!=null){let r={id:t.id,content:t.content,status:this.status,title:t.title,type:t.type,receivergroups:this.ruleFormData.notifyingPerson,attachment:this.ruleFormData.fileid};this.formLoading=!0,l.sysNoticeEdit(Object.assign(this.noticeDetail,r)).then(c=>{c.success?(this.status==1&&n(),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+c.message),this.formLoading=!1,this.refresh()});return}let a={content:t.content,status:this.status,title:t.title,type:t.type,receiverGroups:this.ruleFormData.notifyingPerson,attachment:this.ruleFormData.fileid};this.formLoading=!0,l.sysNoticeAdd(a).then(r=>{if(r.success||(this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+r.message),this.refresh(),this.formLoading=!1),this.refresh(),this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.status==1){this.formLoading=!1,n();return}setTimeout(()=>{this.$nextTick(()=>{l.sysNoticePage({pageNo:1,pageSize:50}).then(c=>{this.allData=c.data.rows;const d=this.allData.filter(g=>g.title==t.title&&g.content==t.content);d.length>0&&(this.transKey="gd.btn.edit",this.sysNoticeDetail(d[0].id),this.$refs.editForm.open(Object.assign({...d[0]},{type:String(d[0].type),content:d[0].content,fileid:d[0].attachment}))),this.formLoading=!1})})},10)})},saveQueries(t){this.queryParam=t,this.refresh()},read(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.readTip","\u8BF7\u9009\u62E9\u9700\u8981\u67E5\u770B\u7684\u6570\u636E"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));return}this.$refs.detailForm.open(this.selectedRows[0])},rollback(){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.$confirm(this.$i18nt("gd.https.withdrawContent","\u786E\u8BA4\u64A4\u56DE?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.withdrawOk","\u7ACB\u5373\u64A4\u56DE!"),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.rollbackHand(t,e,s)}})},rollbackHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let a=l.sysNoticeChangeStatus({id:n.id,status:2}).then(r=>r);i.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const a=n.filter(r=>!r.success);a.length===0?this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a[0].message),this.refresh()})},release(){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.$confirm(this.$i18nt("gd.https.releaseContent","\u786E\u8BA4\u53D1\u5E03?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.releaseOk","\u7ACB\u5373\u53D1\u5E03!"),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.releaseHand(t,e,s)}})},releaseHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let a=l.sysNoticeChangeStatus({id:n.id,status:1}).then(r=>r);i.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const a=n.filter(r=>!r.success);a.length===0?this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a[0].message),this.refresh()})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let a=l.sysNoticeDelete(n).then(r=>r);i.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{s();const a=n.filter(r=>!r.success);a.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a[0].message),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},sysNoticeDetail(t){l.sysNoticeDetail({id:t}).then(e=>{this.noticeDetail=e.data,e.data.attachment&&(this.ruleFormData.fileid=e.data.attachment,this.infoDownLoad(e.data.attachment)),this.ruleFormData.notifyingPerson=e.data.receivergroups,this.allEmpty=Array.isArray(this.ruleFormData.notifyingPerson)?this.ruleFormData.notifyingPerson.every(s=>!(!s.receiverIdList||s.receiverIdList.length===0)):!0,this.noticeType=e.data.type})},getMock(t){const e=[],s=[];m.sysUserSelector().then(i=>{this.confirmLoading=!1;for(let n=0;n<i.data.length;n++){const a=i.data[n],r={key:a.id.toString(),label:a.name,description:`description of ${a.name}`};if(t)for(let c=0;c<t.noticeuseridlist.length;c++)r.key===t.noticeuseridlist[c]&&e.push(t.noticeuseridlist[c]);s.push(r)}this.mockData=s,this.targetKeys=e})},handleChange(t){this.targetKeys=t},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},handleFile(t){if(!!["image"].includes("file")&&!t){this.fileList=[];return}},uploadFile(t){if(!this.fileAccept.includes(t.file.type)){this.$message.error(this.$i18nt("gd.view.fileAcceptTip","\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")),t.onError();return}new FormData().append("file",t.file),f.sysFileInfoUploadShop(t).then(i=>{if(i.code===200){const n=i.data.url,r=(this.ruleFormData&&this.ruleFormData.fileList?this.ruleFormData.fileList.split(","):[]).concat([n]);return this.ruleFormData.fileList=r.join(","),this.ruleFormData.name=i.data.fileoriginname.substring(0,i.data.fileoriginname.lastIndexOf(".")),this.ruleFormData.fileid=i.data.id.toString(),t.onSuccess(i.data),i.data}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+i.message),t.onError()}).catch(i=>{t.onError(i)})},successFile(t,e,s){},removeFile(t,e){let s=[];e.forEach(i=>{i.response&&i.response.id?s.push(i.response.id):s.push(i.url)}),this.ruleFormData.fileList=s.join(","),this.ruleFormData.name="",this.ruleFormData.fileid=""},previewFile(t){let e="";t.response&&t.response.fileOriginName?(e=t.response.fileOriginName,t.response.url):(e=t.name,t.url);const s=e.substr(e.lastIndexOf(".")+1).toLowerCase();["gif","jpeg","png","jpg","JPG","PNG"].includes(s)?this.imgPreview(t.response.id):this.downFile(t)},imgPreview(t){f.sysFileInfoPreview({id:t}).then(e=>{const s=window.URL.createObjectURL(new Blob([e]));this.imgList=[s],this.currentImg=s,this.$refs.imgPreview.open()})},downFile(t){this.$refs.filePreview.open(Object.assign(t,{fileId:t.response&&t.response.fileoriginname?t.response.id:t.fileId}))},getBlobType(t){let e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";return this.fileType==="pdf"?e="application/pdf":this.fileType==="docx"&&(e="application/msword"),e},infoDownLoad(t){return f.sysFileInfoDetail({id:t}).then(e=>{this.ruleFormData.fileList=e.data.url,this.ruleFormData.name=e.data.fileoriginname.substring(0,e.data.fileoriginname.lastIndexOf(".")),this.ruleFormData.fileid=e.data.id.toString(),this.fileListFile=[{name:e.data.fileoriginname,url:e.data.url,response:{id:e.data.id,url:e.data.url,fileoriginname:e.data.fileoriginname}}]})},getDictionary(t){return this.$options.filters.dictData(t)},changeMode(t){this.noticeType=t}}};var R=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},on:{onChange:e.onSelectChange},scopedSlots:e._u([{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.notice.title","\u6807\u9898"),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.SearchValue,callback:function(i){e.$set(e.queryParam,"SearchValue",i)},expression:"queryParam.SearchValue"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"title",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"title",row:n,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_type",i.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_type",i.row.type))+" ")])]}},{key:"status",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_status",i.row.status),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_status",i.row.status))+" ")])]}},{key:"filtering",fn:function({colse:i,visible:n}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:n},on:{save:e.saveQueries}})]}}])})],1),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"100%",transKey:e.transKey,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,buttons:e.getButtons,loading:e.formLoading},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"targetKeys",fn:function({data:i,column:n}){return[s("el-transfer",{attrs:{data:e.mockData,titles:["\u672A\u9009","\u5DF2\u9009"],filterable:""},on:{change:e.handleChange},model:{value:e.targetKeys,callback:function(a){e.targetKeys=a},expression:"targetKeys"}})]}},{key:"notifyingPerson",fn:function({data:i,column:n}){return[s("el-button",{attrs:{type:e.allEmpty?"danger":"primary"},on:{click:function(a){return e.noticePerson(i)}}},[s("i",{staticClass:"gd-icons el-icon-bell"}),e._v(" "+e._s(e.$i18nt("gd.notice.notice","\u901A\u77E5"))+" ")])]}},{key:"notice_type",fn:function({data:i,column:n}){return[s("el-radio-group",{on:{change:e.changeMode},model:{value:i.type,callback:function(a){e.$set(i,"type",a)},expression:"data.type"}},e._l(e.getDictionary("notice_type"),function(a,r){return s("el-radio",{key:a.code,attrs:{label:a.code}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.name))+" ")])}),1)]}},{key:"fileList",fn:function({data:i,column:n}){return[s("el-upload",{attrs:{action:"","on-preview":e.previewFile,"on-remove":e.removeFile,multiple:"",limit:n.limit,accept:n.accept,"http-request":e.uploadFile,"file-list":e.fileListFile,"on-success":e.successFile}},[s("el-button",{attrs:{size:"mini",type:"primary"}},[s("i",{staticClass:"gd-icons gd-icon-shangchuan"}),e._v(" "+e._s(e.$i18nt("gd.btn.upload","\u4E0A\u4F20"))+" ")])],1)]}}])}),s("detailForm",{ref:"detailForm"}),s("editNoticeForm",{ref:"editNoticeFormRef",on:{ok:e.handleOk}}),s("gd-file-preview",{ref:"filePreview"}),s("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:e.imgList.length>0,imgList:e.imgList,currentImg:e.currentImg}})],1)},C=[],S=o.normalizeComponent(T,R,C,!1,null,"e655e2b3",null,null);const p=S.exports;p.install=function(t){t.component(p.name,p)};const K={name:"GdNoticeDetails",props:{modeType:{type:String,default:"dialog"}},data(){return{transKey:"gd.notice.detail",fullscreen:!1,visible:!1,width:"80%",confirmLoading:!1,contentRecord:{},sysViewButtons:[],type:"pdf"}},computed:{height(){return this.screenHeight-24-40-36},headTitle(){return this.$i18nt(this.transKey,this.title)},style(){return`height:${this.fullscreen?this.screenHeight-80:this.screenHeight-240}px;`},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{open(t){this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.sysNoticeDetail(t.id)},sysNoticeDetail(t){this.fullscreen=!1,l.sysNoticeDetail({id:t}).then(e=>{e.code===200?(this.contentRecord=e.data,this.$emit("onLoadCompleted"),e.data.attachment&&this.$nextTick(()=>{setTimeout(()=>{let s={name:`${e.data.title}.${this.type}`,fileId:e.data.attachment,fullscreen:!1};this.$refs.filePreview.open(s)},0)})):this.$message.error(e.message),this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.contentRecord={}},closed(){this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var L=function(){var e=this,s=e._self._c;return s("div",[e.modeType==="dialog"?s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{formMode:e.formMode,fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px",transKey:e.transKey,labelPosition:e.labelPosition,"show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("gd-modal-title",{attrs:{slot:"title",title:e.headTitle,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],class:e.fullscreen?"modal-bodyq":"modal-body"},[s("div",{staticStyle:{"text-align":"center","font-size":"28px"}},[e._v(e._s(this.contentRecord.title))]),s("div",{staticStyle:{"text-align":"right","font-size":"12px",color:":#999"}},[s("span",[e._v(e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername))]),s("span",{staticStyle:{"padding-left":"12px"}},[e._v(" "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),s("el-divider"),s("div",[s("label",{staticClass:"ql-editor",domProps:{innerHTML:e._s(this.contentRecord.content)}})]),e.contentRecord.status!=2&&e.contentRecord.attachment!=""?s("gd-file-preview",{ref:"filePreview",attrs:{options:{},modeType:"component"}}):e._e()],1)],1):s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"30vh"}},[s("div",{staticStyle:{"text-align":"center","font-size":"28px"}},[e._v(e._s(this.contentRecord.title))]),s("div",{staticStyle:{"text-align":"right","font-size":"12px",color:":#999"}},[s("span",[e._v(e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername))]),s("span",{staticStyle:{"padding-left":"12px"}},[e._v(" "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),s("el-divider"),s("div",[s("label",{staticClass:"ql-editor",domProps:{innerHTML:e._s(this.contentRecord.content)}})]),e.contentRecord.status!=2&&e.contentRecord.attachment!=""?s("gd-file-preview",{ref:"filePreview",attrs:{options:{},modeType:"component"}}):e._e()],1)],1)},P=[],k=o.normalizeComponent(K,L,P,!1,null,"9aab64a3",null,null);const u=k.exports,y=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"}));u.install=function(t){t.component(u.name,u)};const F={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",minWidth:"260",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.org.type",prop:"orgType",label:"\u673A\u6784\u7C7B\u578B",minWidth:"220",type:"slot",slotType:"orgType",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",width:"200",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",minWidth:"300",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const N={props:{height:{type:Number,default:0},selectOrgRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,F],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:t=>b.getOrgPage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectOrgRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},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 x=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,filtering:!1,height:e.height,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""}})]}},{key:"orgType",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("org_type",i.row.orgtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("org_type",i.row.orgtype))+" ")])]}},{key:"remark",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:n}})]}}])})],1)])},D=[],O=o.normalizeComponent(N,x,D,!1,null,"5f8fe789",null,null);const B=O.exports,z={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"200",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",label:"\u5907\u6CE8",align:"left",showOverflowTooltip:!0}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const q={props:{height:{type:Number,default:0},selectRoleRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,z],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{sysAppsId:""},loadData:t=>w.getRolePage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectRoleRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{getSysAppsPage(){_.sysAppsPage().then(t=>{t.success&&(this.queryParam.sysAppsId=t.data.rows[0].id)})},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},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]()}},created(){this.getSysAppsPage()}};var H=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,filtering:!1,height:e.height,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""}})]}}])})],1)])},j=[],I=o.normalizeComponent(q,H,j,!1,null,"af7b4faa",null,null);const E=I.exports,M={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.fieldSecurity.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.teamType",prop:"teamType",label:"\u56E2\u961F\u7C7B\u578B",align:"left",type:"slot",slotType:"teamType",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.description",prop:"description",label:"\u8BF4\u660E",type:"slot",slotType:"description",align:"left"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const A={props:{height:{type:Number,default:0},selectTeamRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,M],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:t=>v.getSysTeamPage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectTeamRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},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 U=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,filtering:!1,height:e.height,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(n.name)+" ")])]}},{key:"teamType",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(e._f("dictType")("TeamType",n.teamtype))+" ")])]}},{key:"description",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.description)+" ")]}}])})],1)])},V=[],G=o.normalizeComponent(A,U,V,!1,null,"6f5c581d",null,null);const Q=G.exports,J={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.account",prop:"account",label:"\u8D26\u53F7",width:"220",type:"slot",slotType:"account",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",width:"160",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"gender",width:"120",label:"\u6027\u522B",type:"slot",slotType:"gender",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.displayName",prop:"orgname",label:"\u673A\u6784\u540D\u79F0",width:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.phone",prop:"phone",width:"160",label:"\u624B\u673A",align:"left"},{transKey:"gd.user.status",prop:"statecodes",label:"\u72B6\u6001",width:"120",type:"slot",slotType:"statecodes",align:"center",dictTypeCode:"state_code",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"checkbox",dictTypeCode:"state_code"})}],tableQueries:[{transKey:"gd.application.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]}]}}};const W={props:{height:{type:Number,default:300},selectUserRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,J],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{searchValue:""},loadData:t=>{let e=JSON.parse(JSON.stringify(this.selectUserRow));return m.getUserPage(Object.assign(t,this.queryParam)).then(s=>{let i=[];return e.length>0?i=[...JSON.parse(JSON.stringify(e))].map(String):i=[...JSON.parse(JSON.stringify(this.selectUserRow))].map(String),this.$nextTick(()=>{this.selectedRowKeys=[...i],this.onSelectChange(i,[])}),s.data})},detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},init(t){this.queryParam.searchValue="",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]()}},mounted(){}};var X=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,filtering:!1,height:e.height,initialLoading:!0,showPagination:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"account",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"account",row:n,highlight:""}})]}},{key:"gender",fn:function(i){return[s("div",{staticStyle:{cursor:"pointer"}},[s("el-tag",{style:e._f("dictColor")("gender",i.row.gender),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("gender",i.row.gender))+" ")])],1)]}},{key:"statecodes",fn:function(i){return[s("div",{staticStyle:{cursor:"pointer"}},[i.row.statecodes==1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})])]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"270px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.user.keywordTip","\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u8D26\u53F7\u3001\u624B\u673A\u53F7\u5173\u952E\u8BCD"),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.searchValue,callback:function(i){e.$set(e.queryParam,"searchValue",i)},expression:"queryParam.searchValue"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0}])})],1)])},Y=[],Z=o.normalizeComponent(W,X,Y,!1,null,"e622f086",null,null);const ee=Z.exports;const te={data(){return{confirmLoading:!0,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:"noticeuser",fullScreen:!1,width:"90%",visible:!1,userRowList:[],teamRowList:[],roleRowList:[],orgRowList:[],recordData:"",enterType:""}},components:{noticeUser:ee,notcieOrg:B,noticeRole:E,noticeTeam:Q},computed:{getHeight(){const t=this.fullScreen?210:370;return this.screenHeight-t},getButtons(){return this.sysViewButtons.filter(t=>!(this.enterType=="1"&&t.functionName==="handleSubmit"))},...o.mapGetters(["screenHeight","tableLists","primaryColor"])},methods:{toggleFullscreen(){this.fullScreen=!this.fullScreen},init(t,e){this.recordData=t,this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type="noticeuser",this.userRowList=[],this.teamRowList=[],this.roleRowList=[],this.orgRowList=[],this.enterType=e,t&&(this.getData(t,e),setTimeout(()=>{this.$refs.noticeuserRef.init(this.userRowList)},100))},getData(t,e){l.sysNoticeReceiversByTypes({id:e=="1"?t[0]:t}).then(s=>{s.data.receivergroups.forEach(n=>{n.receivertype=="1"&&(this.userRowList=n.receiveridlist),n.receivertype=="2"&&(this.roleRowList=n.receiveridlist),n.receivertype=="3"&&(this.teamRowList=n.receiveridlist),n.receivertype=="4"&&(this.orgRowList=n.receiveridlist)})})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},tabChange(t){this.$nextTick(()=>{setTimeout(()=>{},0)})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.userRowList=[],this.teamRowList=[],this.roleRowList=[],this.orgRowList=[]},handleSubmit(){let t=[{receiverType:"1",receiverIdList:this.userRowList.map(Number)},{receiverType:"2",receiverIdList:this.roleRowList.map(Number)},{receiverType:"3",receiverIdList:this.teamRowList.map(Number)},{receiverType:"4",receiverIdList:this.orgRowList.map(Number)}];this.handleCancel(),this.$emit("ok",t)},selectUser(t){this.userRowList=t},selectTeam(t){this.teamRowList=t},selectRole(t){this.roleRowList=t},selectOrg(t){this.orgRowList=t}}};var se=function(){var e=this,s=e._self._c;return s("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{width:e.width,visible:e.visible,fullscreen:e.fullScreen,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.$i18nt("gd.notice.notifyingPerson","\u901A\u77E5")}`,fullscreen:e.fullScreen,buttons:e.getButtons,confirmLoading:e.confirmLoading,closed:"handleCancel",showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},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-tabs",{attrs:{type:"card"},on:{"tab-click":e.tabChange},model:{value:e.type,callback:function(i){e.type=i},expression:"type"}},[s("el-tab-pane",{attrs:{name:"noticeuser",label:e.$i18nt("gd.fieldSecurity.user","\u7528\u6237")}},[e.type=="noticeuser"?s("noticeUser",{ref:"noticeuserRef",attrs:{selectUserRow:e.userRowList,height:e.getHeight},on:{ok:e.selectUser}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticeteam",label:e.$i18nt("gd.fieldSecurity.team","\u56E2\u961F")}},[e.type=="noticeteam"?s("noticeTeam",{ref:"noticeteamRef",attrs:{selectTeamRow:e.teamRowList,height:e.getHeight},on:{ok:e.selectTeam}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticerole",label:e.$i18nt("gd.fieldSecurity.role","\u89D2\u8272")}},[e.type=="noticerole"?s("noticeRole",{ref:"noticeroleRef",attrs:{selectRoleRow:e.roleRowList,height:e.getHeight},on:{ok:e.selectRole}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticeorg",label:e.$i18nt("gd.pagecomponents.institution","\u673A\u6784")}},[e.type=="noticeorg"?s("notcieOrg",{ref:"noticeorgRef",attrs:{selectOrgRow:e.orgRowList,height:e.getHeight},on:{ok:e.selectOrg}}):e._e()],1)],1)],1)])],1)},ie=[],ne=o.normalizeComponent(te,se,ie,!1,null,"c00c5f9e",null,null);const ae=ne.exports,re=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=p;exports.main=y;exports.noticeItem=u;
|
|
1
|
+
"use strict";const o=require("./components.chartbi.13a8a7b5.js"),l=require("./http.noticemanage.2507d094.js"),m=require("./http.usermanage.6dcbc7de.js"),h=require("./utils.mixins.js.750ca50e.js"),f=require("./http.filemanage.7e6e3e1a.js");require("./components.form.14ed3374.js");const b=require("./http.orgmanage.5162fd7a.js"),w=require("./http.rolemanage.4d1101dd.js"),_=require("./http.sysapps.469d47f7.js"),v=require("./http.tabledevelopment.a880bb76.js"),$={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.notice.title",prop:"title",label:"\u6807\u9898",width:"260",type:"slot",slotType:"title",align:"left",fixed:!0},{transKey:"gd.notice.type",prop:"type",width:"120",label:"\u7C7B\u578B",align:"left",type:"slot",slotType:"type"},{transKey:"gd.notice.status",prop:"status",width:"120",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status"},{transKey:"gd.notice.createdTime",prop:"createdtime",width:"180",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicTime",prop:"publictime",width:"180",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",width:"200",label:"\u53D1\u5E03\u4EBA",align:"left"}],formColumns:[{transKey:"gd.notice.title",effectType:"input",prop:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.type",prop:"type",label:"\u7C7B\u578B",effectType:"radio",dictTypeCode:"notice_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}],type:"slot",slotType:"notice_type"},{transKey:"gd.notice.noticeBucket",effectType:"editor",prop:"content",label:"\u5185\u5BB9",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.attachment",effectType:"file",prop:"fileList",label:"\u9644\u4EF6",accept:".pdf",placeholder:"\u8BF7\u4E0A\u4F20",fileTitle:"\u4E0A\u4F20PDF\u6587\u4EF6",limit:1,rules:[],type:"slot",slotType:"fileList"},{transKey:"gd.notice.notifyTo",effectType:"notifyingPerson",prop:"notifyingPerson",label:"\u6536\u5230\u901A\u77E5\u4EBA",type:"slot",slotType:"notifyingPerson",rules:[],disabled:!1}],noticeFormColumns:[],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysNotice:add"},{displayName:"\u901A\u77E5\u4EBA",functionName:"notifyingPerson",show:!0,transKey:"gd.notice.notifyingPerson",icon:"el-icon-bell",name:"sysNotice:notifyingPerson"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysNotice:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysNotice:delete"},{displayName:"\u53D1\u5E03",functionName:"release",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",name:"sysNotice:changeStatus"},{displayName:"\u64A4\u56DE",functionName:"rollback",show:!0,transKey:"gd.btn.withdraw",icon:"el-icon-refresh-left",btnType:"danger",name:"sysNotice:changeStatus"},{displayName:"\u67E5\u770B",functionName:"read",show:!0,transKey:"gd.btn.view",icon:"el-icon-reading",name:"sysNotice:detail"}],formButtons:[{displayName:"\u5B58\u4E3A\u8349\u7A3F",functionName:"saveDraft",show:!0,transKey:"gd.btn.saveDraft",icon:"el-icon-tickets",validate:!0},{displayName:"\u53D1\u5E03",functionName:"releaseTip",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",validate:!0}],noticeFormButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.notice.noticeOriginName",prop:"searchValue",label:"\u5173\u952E\u8BCD",effectType:"input",rules:[]},{transKey:"gd.sysConfig.type",prop:"type",label:"\u7C7B\u578B",effectType:"select",dictTypeCode:"notice_type",rules:[]}]}}};const T={name:"GdNotice",props:{height:{type:Number,default:100}},mixins:[h.tablesFilter,$],data(){return{transKey:"gd.btn.add",loadData:t=>l.sysNoticePage(Object.assign(t,this.queryParam)).then(e=>(this.allData=e.data.rows,e.data)),allData:[],selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1,mockData:[],targetKeys:[],noticeUserIdList:[],status:0,type:"noticeUser",confirmLoading:!1,fileType:"pdf",style:"width: 100%; height: 580px;",headers:{"Content-Type":"multipart/form-data"},fileListFile:[],imgList:[],currentImg:"",ruleFormData:{fileList:"",name:"",notifyingPerson:[],fileid:""},record:{},allEmpty:!0,noticeType:"",fileAccept:["application/pdf"]}},components:{detailForm:()=>Promise.resolve().then(()=>y),editNoticeForm:()=>Promise.resolve().then(()=>re)},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(e=>!(e.prop==="notifyingPerson"&&this.transKey==="gd.btn.add"||(this.noticeType==3&&e.prop==="content"?e.rules=[]:this.noticeType!=3&&e.prop==="content"&&(e.rules=[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]),(this.noticeType==1||this.noticeType==2)&&e.prop==="fileList")))},getButtons(){return this.formButtons.filter(t=>!(this.transKey==="gd.btn.add"&&t.functionName==="releaseTip"))},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},mounted(){(this.$route.params.id||this.$route.query.id)&&(this.transKey="gd.notice.detail",setTimeout(()=>{this.allData.forEach(t=>{(t.id==this.$route.params.id||t.id==this.$route.query.id)&&this.$refs.detailForm.open(t)})},1e3))},methods:{onSelectChange(t,e){if(this.selectedRowKeys=t,this.selectedRows=e,e.length==0){this.baseHideBtns([],2);return}if(e.length>1){this.baseHideBtns(["\u5220\u9664","\u53D1\u5E03","\u64A4\u56DE","\u7F16\u8F91"],2);return}let s=[],i=e.filter(r=>r.status==0),n=e.filter(r=>r.status==1),a=e.filter(r=>r.status==2);i.length==e.length?s=["\u64A4\u56DE"]:n.length==e.length?s=["\u5220\u9664","\u53D1\u5E03","\u7F16\u8F91"]:a.length==e.length&&(s=["\u64A4\u56DE","\u53D1\u5E03","\u7F16\u8F91"]),this.baseHideBtns(s,2)},baseHideBtns(t,e=1){let s=[...this.tableButtons];s.map(i=>(e===1?i.show=!t.includes(i.id):i.show=!t.includes(i.displayName),i)),this.tableButtons=[...s]},add(){this.transKey="gd.btn.add",this.fileListFile=[],this.ruleFormData={fileList:"",name:"",notifyingPerson:[],fileid:""},this.$refs.editForm.open(null)},noticePerson(t){this.$refs.editNoticeFormRef.init(t.id,"2")},notifyingPerson(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.operateTip","\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));return}this.$refs.editNoticeFormRef.init(this.selectedRowKeys,"1")},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.sysNoticeDetail(this.selectedRows[0].id),this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...this.selectedRows[0]},{type:String(this.selectedRows[0].type),content:this.selectedRows[0].content,fileid:this.selectedRows[0].attachment}))},editForm(t){this.transKey="gd.notice.detail",this.$refs.detailForm.open(t)},handleOk(t){this.ruleFormData.notifyingPerson=[],this.ruleFormData.notifyingPerson=t,this.allEmpty=Array.isArray(t)?t.every(e=>!e.receiverIdList||e.receiverIdList.length===0):!0},sbumit({data:t,record:e,btn:s},i,n){if(this.status=s.item.functionName=="releaseTip"?1:0,e!=null){let r={id:t.id,content:t.content,status:this.status,title:t.title,type:t.type,receivergroups:this.ruleFormData.notifyingPerson,attachment:this.ruleFormData.fileid};this.formLoading=!0,l.sysNoticeEdit(Object.assign(this.noticeDetail,r)).then(c=>{c.success?(this.status==1&&n(),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+c.message),this.formLoading=!1,this.refresh()});return}let a={content:t.content,status:this.status,title:t.title,type:t.type,receiverGroups:this.ruleFormData.notifyingPerson,attachment:this.ruleFormData.fileid};this.formLoading=!0,l.sysNoticeAdd(a).then(r=>{if(r.success||(this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+r.message),this.refresh(),this.formLoading=!1),this.refresh(),this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.status==1){this.formLoading=!1,n();return}setTimeout(()=>{this.$nextTick(()=>{l.sysNoticePage({pageNo:1,pageSize:50}).then(c=>{this.allData=c.data.rows;const d=this.allData.filter(g=>g.title==t.title&&g.content==t.content);d.length>0&&(this.transKey="gd.btn.edit",this.sysNoticeDetail(d[0].id),this.$refs.editForm.open(Object.assign({...d[0]},{type:String(d[0].type),content:d[0].content,fileid:d[0].attachment}))),this.formLoading=!1})})},10)})},saveQueries(t){this.queryParam=t,this.refresh()},read(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.readTip","\u8BF7\u9009\u62E9\u9700\u8981\u67E5\u770B\u7684\u6570\u636E"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));return}this.$refs.detailForm.open(this.selectedRows[0])},rollback(){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.$confirm(this.$i18nt("gd.https.withdrawContent","\u786E\u8BA4\u64A4\u56DE?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.withdrawOk","\u7ACB\u5373\u64A4\u56DE!"),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.rollbackHand(t,e,s)}})},rollbackHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let a=l.sysNoticeChangeStatus({id:n.id,status:2}).then(r=>r);i.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const a=n.filter(r=>!r.success);a.length===0?this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a[0].message),this.refresh()})},release(){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.$confirm(this.$i18nt("gd.https.releaseContent","\u786E\u8BA4\u53D1\u5E03?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.releaseOk","\u7ACB\u5373\u53D1\u5E03!"),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.releaseHand(t,e,s)}})},releaseHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let a=l.sysNoticeChangeStatus({id:n.id,status:1}).then(r=>r);i.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const a=n.filter(r=>!r.success);a.length===0?this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a[0].message),this.refresh()})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let a=l.sysNoticeDelete(n).then(r=>r);i.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{s();const a=n.filter(r=>!r.success);a.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a[0].message),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},sysNoticeDetail(t){l.sysNoticeDetail({id:t}).then(e=>{this.noticeDetail=e.data,e.data.attachment&&(this.ruleFormData.fileid=e.data.attachment,this.infoDownLoad(e.data.attachment)),this.ruleFormData.notifyingPerson=e.data.receivergroups,this.allEmpty=Array.isArray(this.ruleFormData.notifyingPerson)?this.ruleFormData.notifyingPerson.every(s=>!(!s.receiverIdList||s.receiverIdList.length===0)):!0,this.noticeType=e.data.type})},getMock(t){const e=[],s=[];m.sysUserSelector().then(i=>{this.confirmLoading=!1;for(let n=0;n<i.data.length;n++){const a=i.data[n],r={key:a.id.toString(),label:a.name,description:`description of ${a.name}`};if(t)for(let c=0;c<t.noticeuseridlist.length;c++)r.key===t.noticeuseridlist[c]&&e.push(t.noticeuseridlist[c]);s.push(r)}this.mockData=s,this.targetKeys=e})},handleChange(t){this.targetKeys=t},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},handleFile(t){if(!!["image"].includes("file")&&!t){this.fileList=[];return}},uploadFile(t){if(!this.fileAccept.includes(t.file.type)){this.$message.error(this.$i18nt("gd.view.fileAcceptTip","\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")),t.onError();return}new FormData().append("file",t.file),f.sysFileInfoUploadShop(t).then(i=>{if(i.code===200){const n=i.data.url,r=(this.ruleFormData&&this.ruleFormData.fileList?this.ruleFormData.fileList.split(","):[]).concat([n]);return this.ruleFormData.fileList=r.join(","),this.ruleFormData.name=i.data.fileoriginname.substring(0,i.data.fileoriginname.lastIndexOf(".")),this.ruleFormData.fileid=i.data.id.toString(),t.onSuccess(i.data),i.data}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+i.message),t.onError()}).catch(i=>{t.onError(i)})},successFile(t,e,s){},removeFile(t,e){let s=[];e.forEach(i=>{i.response&&i.response.id?s.push(i.response.id):s.push(i.url)}),this.ruleFormData.fileList=s.join(","),this.ruleFormData.name="",this.ruleFormData.fileid=""},previewFile(t){let e="";t.response&&t.response.fileOriginName?(e=t.response.fileOriginName,t.response.url):(e=t.name,t.url);const s=e.substr(e.lastIndexOf(".")+1).toLowerCase();["gif","jpeg","png","jpg","JPG","PNG"].includes(s)?this.imgPreview(t.response.id):this.downFile(t)},imgPreview(t){f.sysFileInfoPreview({id:t}).then(e=>{const s=window.URL.createObjectURL(new Blob([e]));this.imgList=[s],this.currentImg=s,this.$refs.imgPreview.open()})},downFile(t){this.$refs.filePreview.open(Object.assign(t,{fileId:t.response&&t.response.fileoriginname?t.response.id:t.fileId}))},getBlobType(t){let e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";return this.fileType==="pdf"?e="application/pdf":this.fileType==="docx"&&(e="application/msword"),e},infoDownLoad(t){return f.sysFileInfoDetail({id:t}).then(e=>{this.ruleFormData.fileList=e.data.url,this.ruleFormData.name=e.data.fileoriginname.substring(0,e.data.fileoriginname.lastIndexOf(".")),this.ruleFormData.fileid=e.data.id.toString(),this.fileListFile=[{name:e.data.fileoriginname,url:e.data.url,response:{id:e.data.id,url:e.data.url,fileoriginname:e.data.fileoriginname}}]})},getDictionary(t){return this.$options.filters.dictData(t)},changeMode(t){this.noticeType=t}}};var R=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},on:{onChange:e.onSelectChange},scopedSlots:e._u([{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.notice.title","\u6807\u9898"),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.SearchValue,callback:function(i){e.$set(e.queryParam,"SearchValue",i)},expression:"queryParam.SearchValue"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"title",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"title",row:n,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_type",i.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_type",i.row.type))+" ")])]}},{key:"status",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_status",i.row.status),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_status",i.row.status))+" ")])]}},{key:"filtering",fn:function({colse:i,visible:n}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:n},on:{save:e.saveQueries}})]}}])})],1),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"100%",transKey:e.transKey,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,buttons:e.getButtons,loading:e.formLoading},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"targetKeys",fn:function({data:i,column:n}){return[s("el-transfer",{attrs:{data:e.mockData,titles:["\u672A\u9009","\u5DF2\u9009"],filterable:""},on:{change:e.handleChange},model:{value:e.targetKeys,callback:function(a){e.targetKeys=a},expression:"targetKeys"}})]}},{key:"notifyingPerson",fn:function({data:i,column:n}){return[s("el-button",{attrs:{type:e.allEmpty?"danger":"primary"},on:{click:function(a){return e.noticePerson(i)}}},[s("i",{staticClass:"gd-icons el-icon-bell"}),e._v(" "+e._s(e.$i18nt("gd.notice.notice","\u901A\u77E5"))+" ")])]}},{key:"notice_type",fn:function({data:i,column:n}){return[s("el-radio-group",{on:{change:e.changeMode},model:{value:i.type,callback:function(a){e.$set(i,"type",a)},expression:"data.type"}},e._l(e.getDictionary("notice_type"),function(a,r){return s("el-radio",{key:a.code,attrs:{label:a.code}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.name))+" ")])}),1)]}},{key:"fileList",fn:function({data:i,column:n}){return[s("el-upload",{attrs:{action:"","on-preview":e.previewFile,"on-remove":e.removeFile,multiple:"",limit:n.limit,accept:n.accept,"http-request":e.uploadFile,"file-list":e.fileListFile,"on-success":e.successFile}},[s("el-button",{attrs:{size:"mini",type:"primary"}},[s("i",{staticClass:"gd-icons gd-icon-shangchuan"}),e._v(" "+e._s(e.$i18nt("gd.btn.upload","\u4E0A\u4F20"))+" ")])],1)]}}])}),s("detailForm",{ref:"detailForm"}),s("editNoticeForm",{ref:"editNoticeFormRef",on:{ok:e.handleOk}}),s("gd-file-preview",{ref:"filePreview"}),s("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:e.imgList.length>0,imgList:e.imgList,currentImg:e.currentImg}})],1)},C=[],S=o.normalizeComponent(T,R,C,!1,null,"66379943",null,null);const p=S.exports;p.install=function(t){t.component(p.name,p)};const K={name:"GdNoticeDetails",props:{modeType:{type:String,default:"dialog"}},data(){return{transKey:"gd.notice.detail",fullscreen:!1,visible:!1,width:"80%",confirmLoading:!1,contentRecord:{},sysViewButtons:[],type:"pdf"}},computed:{height(){return this.screenHeight-24-40-36},headTitle(){return this.$i18nt(this.transKey,this.title)},style(){return`height:${this.fullscreen?this.screenHeight-80:this.screenHeight-240}px;`},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{open(t){this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.sysNoticeDetail(t.id)},sysNoticeDetail(t){this.fullscreen=!1,l.sysNoticeDetail({id:t}).then(e=>{e.code===200?(this.contentRecord=e.data,this.$emit("onLoadCompleted"),e.data.attachment&&this.$nextTick(()=>{setTimeout(()=>{let s={name:`${e.data.title}.${this.type}`,fileId:e.data.attachment,fullscreen:!1};this.$refs.filePreview.open(s)},0)})):this.$message.error(e.message),this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.contentRecord={}},closed(){this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var L=function(){var e=this,s=e._self._c;return s("div",[e.modeType==="dialog"?s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{formMode:e.formMode,fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px",transKey:e.transKey,labelPosition:e.labelPosition,"show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("gd-modal-title",{attrs:{slot:"title",title:e.headTitle,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],class:e.fullscreen?"modal-bodyq":"modal-body"},[s("div",{staticStyle:{"text-align":"center","font-size":"28px"}},[e._v(e._s(this.contentRecord.title))]),s("div",{staticStyle:{"text-align":"right","font-size":"12px",color:":#999"}},[s("span",[e._v(e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername))]),s("span",{staticStyle:{"padding-left":"12px"}},[e._v(" "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),s("el-divider"),s("div",[s("label",{staticClass:"ql-editor",domProps:{innerHTML:e._s(this.contentRecord.content)}})]),e.contentRecord.status!=2&&e.contentRecord.attachment!=""?s("gd-file-preview",{ref:"filePreview",attrs:{options:{},modeType:"component"}}):e._e()],1)],1):s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"30vh"}},[s("div",{staticStyle:{"text-align":"center","font-size":"28px"}},[e._v(e._s(this.contentRecord.title))]),s("div",{staticStyle:{"text-align":"right","font-size":"12px",color:":#999"}},[s("span",[e._v(e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername))]),s("span",{staticStyle:{"padding-left":"12px"}},[e._v(" "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),s("el-divider"),s("div",[s("label",{staticClass:"ql-editor",domProps:{innerHTML:e._s(this.contentRecord.content)}})]),e.contentRecord.status!=2&&e.contentRecord.attachment!=""?s("gd-file-preview",{ref:"filePreview",attrs:{options:{},modeType:"component"}}):e._e()],1)],1)},P=[],k=o.normalizeComponent(K,L,P,!1,null,"9aab64a3",null,null);const u=k.exports,y=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"}));u.install=function(t){t.component(u.name,u)};const F={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",minWidth:"260",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.org.type",prop:"orgType",label:"\u673A\u6784\u7C7B\u578B",minWidth:"220",type:"slot",slotType:"orgType",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",width:"200",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",minWidth:"300",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const N={props:{height:{type:Number,default:0},selectOrgRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,F],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:t=>b.getOrgPage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectOrgRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},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 x=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,filtering:!1,height:e.height,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""}})]}},{key:"orgType",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("org_type",i.row.orgtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("org_type",i.row.orgtype))+" ")])]}},{key:"remark",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:n}})]}}])})],1)])},D=[],O=o.normalizeComponent(N,x,D,!1,null,"5f8fe789",null,null);const B=O.exports,z={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"200",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",label:"\u5907\u6CE8",align:"left",showOverflowTooltip:!0}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const q={props:{height:{type:Number,default:0},selectRoleRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,z],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{sysAppsId:""},loadData:t=>w.getRolePage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectRoleRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{getSysAppsPage(){_.sysAppsPage().then(t=>{t.success&&(this.queryParam.sysAppsId=t.data.rows[0].id)})},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},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]()}},created(){this.getSysAppsPage()}};var H=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,filtering:!1,height:e.height,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""}})]}}])})],1)])},j=[],I=o.normalizeComponent(q,H,j,!1,null,"af7b4faa",null,null);const E=I.exports,M={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.fieldSecurity.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.teamType",prop:"teamType",label:"\u56E2\u961F\u7C7B\u578B",align:"left",type:"slot",slotType:"teamType",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.description",prop:"description",label:"\u8BF4\u660E",type:"slot",slotType:"description",align:"left"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const A={props:{height:{type:Number,default:0},selectTeamRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,M],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:t=>v.getSysTeamPage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectTeamRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},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 U=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,filtering:!1,height:e.height,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(n.name)+" ")])]}},{key:"teamType",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(e._f("dictType")("TeamType",n.teamtype))+" ")])]}},{key:"description",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.description)+" ")]}}])})],1)])},V=[],G=o.normalizeComponent(A,U,V,!1,null,"6f5c581d",null,null);const Q=G.exports,J={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.account",prop:"account",label:"\u8D26\u53F7",width:"220",type:"slot",slotType:"account",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",width:"160",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"gender",width:"120",label:"\u6027\u522B",type:"slot",slotType:"gender",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.displayName",prop:"orgname",label:"\u673A\u6784\u540D\u79F0",width:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.phone",prop:"phone",width:"160",label:"\u624B\u673A",align:"left"},{transKey:"gd.user.status",prop:"statecodes",label:"\u72B6\u6001",width:"120",type:"slot",slotType:"statecodes",align:"center",dictTypeCode:"state_code",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"checkbox",dictTypeCode:"state_code"})}],tableQueries:[{transKey:"gd.application.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]}]}}};const W={props:{height:{type:Number,default:300},selectUserRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,J],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{searchValue:""},loadData:t=>{let e=JSON.parse(JSON.stringify(this.selectUserRow));return m.getUserPage(Object.assign(t,this.queryParam)).then(s=>{let i=[];return e.length>0?i=[...JSON.parse(JSON.stringify(e))].map(String):i=[...JSON.parse(JSON.stringify(this.selectUserRow))].map(String),this.$nextTick(()=>{this.selectedRowKeys=[...i],this.onSelectChange(i,[])}),s.data})},detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},init(t){this.queryParam.searchValue="",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]()}},mounted(){}};var X=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,filtering:!1,height:e.height,initialLoading:!0,showPagination:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"account",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"account",row:n,highlight:""}})]}},{key:"gender",fn:function(i){return[s("div",{staticStyle:{cursor:"pointer"}},[s("el-tag",{style:e._f("dictColor")("gender",i.row.gender),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("gender",i.row.gender))+" ")])],1)]}},{key:"statecodes",fn:function(i){return[s("div",{staticStyle:{cursor:"pointer"}},[i.row.statecodes==1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})])]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"270px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.user.keywordTip","\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u8D26\u53F7\u3001\u624B\u673A\u53F7\u5173\u952E\u8BCD"),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.searchValue,callback:function(i){e.$set(e.queryParam,"searchValue",i)},expression:"queryParam.searchValue"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0}])})],1)])},Y=[],Z=o.normalizeComponent(W,X,Y,!1,null,"e622f086",null,null);const ee=Z.exports;const te={data(){return{confirmLoading:!0,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:"noticeuser",fullScreen:!1,width:"90%",visible:!1,userRowList:[],teamRowList:[],roleRowList:[],orgRowList:[],recordData:"",enterType:""}},components:{noticeUser:ee,notcieOrg:B,noticeRole:E,noticeTeam:Q},computed:{getHeight(){const t=this.fullScreen?210:370;return this.screenHeight-t},getButtons(){return this.sysViewButtons.filter(t=>!(this.enterType=="1"&&t.functionName==="handleSubmit"))},...o.mapGetters(["screenHeight","tableLists","primaryColor"])},methods:{toggleFullscreen(){this.fullScreen=!this.fullScreen},init(t,e){this.recordData=t,this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type="noticeuser",this.userRowList=[],this.teamRowList=[],this.roleRowList=[],this.orgRowList=[],this.enterType=e,t&&(this.getData(t,e),setTimeout(()=>{this.$refs.noticeuserRef.init(this.userRowList)},100))},getData(t,e){l.sysNoticeReceiversByTypes({id:e=="1"?t[0]:t}).then(s=>{s.data.receivergroups.forEach(n=>{n.receivertype=="1"&&(this.userRowList=n.receiveridlist),n.receivertype=="2"&&(this.roleRowList=n.receiveridlist),n.receivertype=="3"&&(this.teamRowList=n.receiveridlist),n.receivertype=="4"&&(this.orgRowList=n.receiveridlist)})})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},tabChange(t){this.$nextTick(()=>{setTimeout(()=>{},0)})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.userRowList=[],this.teamRowList=[],this.roleRowList=[],this.orgRowList=[]},handleSubmit(){let t=[{receiverType:"1",receiverIdList:this.userRowList.map(Number)},{receiverType:"2",receiverIdList:this.roleRowList.map(Number)},{receiverType:"3",receiverIdList:this.teamRowList.map(Number)},{receiverType:"4",receiverIdList:this.orgRowList.map(Number)}];this.handleCancel(),this.$emit("ok",t)},selectUser(t){this.userRowList=t},selectTeam(t){this.teamRowList=t},selectRole(t){this.roleRowList=t},selectOrg(t){this.orgRowList=t}}};var se=function(){var e=this,s=e._self._c;return s("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{width:e.width,visible:e.visible,fullscreen:e.fullScreen,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.$i18nt("gd.notice.notifyingPerson","\u901A\u77E5")}`,fullscreen:e.fullScreen,buttons:e.getButtons,confirmLoading:e.confirmLoading,closed:"handleCancel",showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},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-tabs",{attrs:{type:"card"},on:{"tab-click":e.tabChange},model:{value:e.type,callback:function(i){e.type=i},expression:"type"}},[s("el-tab-pane",{attrs:{name:"noticeuser",label:e.$i18nt("gd.fieldSecurity.user","\u7528\u6237")}},[e.type=="noticeuser"?s("noticeUser",{ref:"noticeuserRef",attrs:{selectUserRow:e.userRowList,height:e.getHeight},on:{ok:e.selectUser}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticeteam",label:e.$i18nt("gd.fieldSecurity.team","\u56E2\u961F")}},[e.type=="noticeteam"?s("noticeTeam",{ref:"noticeteamRef",attrs:{selectTeamRow:e.teamRowList,height:e.getHeight},on:{ok:e.selectTeam}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticerole",label:e.$i18nt("gd.fieldSecurity.role","\u89D2\u8272")}},[e.type=="noticerole"?s("noticeRole",{ref:"noticeroleRef",attrs:{selectRoleRow:e.roleRowList,height:e.getHeight},on:{ok:e.selectRole}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticeorg",label:e.$i18nt("gd.pagecomponents.institution","\u673A\u6784")}},[e.type=="noticeorg"?s("notcieOrg",{ref:"noticeorgRef",attrs:{selectOrgRow:e.orgRowList,height:e.getHeight},on:{ok:e.selectOrg}}):e._e()],1)],1)],1)])],1)},ie=[],ne=o.normalizeComponent(te,se,ie,!1,null,"c00c5f9e",null,null);const ae=ne.exports,re=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=p;exports.main=y;exports.noticeItem=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./components.chartbi.13a8a7b5.js"),l=require("./http.noticereceivedmanage.e8ec9c9d.js"),o=require("./utils.mixins.js.750ca50e.js"),c={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.notice.title",prop:"title",label:"\u6807\u9898",width:"260",type:"slot",slotType:"title",align:"left",fixed:!0},{transKey:"gd.notice.type",prop:"type",width:"120",label:"\u7C7B\u578B",align:"left",type:"slot",slotType:"type"},{transKey:"gd.notice.status",prop:"status",width:"120",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status"},{transKey:"gd.notice.publicTime",prop:"publictime",width:"180",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",width:"200",label:"\u53D1\u5E03\u4EBA",align:"left"}],tableQueries:[{transKey:"gd.notice.noticeOriginName",prop:"searchValue",label:"\u5173\u952E\u8BCD",effectType:"input",rules:[]},{transKey:"gd.sysConfig.type",prop:"type",label:"\u7C7B\u578B",effectType:"select",dictTypeCode:"notice_type",rules:[]}]}}};const u={name:"GdNoticeReceived",props:{height:{type:Number,default:100}},mixins:[o.tablesFilter,c],data(){return{transKey:"gd.btn.add",loadData:t=>l.sysNoticeReceived(Object.assign(t,this.queryParam)).then(e=>(this.allData=e.data.rows,e.data)),selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1,allData:[]}},components:{detailForm:()=>Promise.resolve().then(()=>require("./system.notice.
|
|
1
|
+
"use strict";const n=require("./components.chartbi.13a8a7b5.js"),l=require("./http.noticereceivedmanage.e8ec9c9d.js"),o=require("./utils.mixins.js.750ca50e.js"),c={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.notice.title",prop:"title",label:"\u6807\u9898",width:"260",type:"slot",slotType:"title",align:"left",fixed:!0},{transKey:"gd.notice.type",prop:"type",width:"120",label:"\u7C7B\u578B",align:"left",type:"slot",slotType:"type"},{transKey:"gd.notice.status",prop:"status",width:"120",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status"},{transKey:"gd.notice.publicTime",prop:"publictime",width:"180",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",width:"200",label:"\u53D1\u5E03\u4EBA",align:"left"}],tableQueries:[{transKey:"gd.notice.noticeOriginName",prop:"searchValue",label:"\u5173\u952E\u8BCD",effectType:"input",rules:[]},{transKey:"gd.sysConfig.type",prop:"type",label:"\u7C7B\u578B",effectType:"select",dictTypeCode:"notice_type",rules:[]}]}}};const u={name:"GdNoticeReceived",props:{height:{type:Number,default:100}},mixins:[o.tablesFilter,c],data(){return{transKey:"gd.btn.add",loadData:t=>l.sysNoticeReceived(Object.assign(t,this.queryParam)).then(e=>(this.allData=e.data.rows,e.data)),selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1,allData:[]}},components:{detailForm:()=>Promise.resolve().then(()=>require("./system.notice.9385577f.js")).then(t=>t.main)},computed:{getHeight(){return this.height},...n.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{editForm(t){this.transKey="gd.notice.detail",this.$refs.detailForm.open(t)},saveQueries(t){this.queryParam=t,this.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},mounted(){(this.$route.params.id||this.$route.query.id)&&(this.transKey="gd.notice.detail",setTimeout(()=>{this.allData.forEach(t=>{(t.id==this.$route.params.id||t.id==this.$route.query.id)&&this.$refs.detailForm.open(t)})},1e3))}};var d=function(){var e=this,i=e._self._c;return i("div",{staticClass:"gd-page-view"},[i("div",{staticClass:"page-view-list"},[i("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[i("div",{staticClass:"gd-table-operator"},[i("div",{staticClass:"gd-table-operatorl"},[i("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.notice.title","\u6807\u9898"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.SearchValue,callback:function(a){e.$set(e.queryParam,"SearchValue",a)},expression:"queryParam.SearchValue"}}),i("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[i("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0},{key:"title",fn:function({column:a,row:r}){return[i("gd-tooltip",{attrs:{rowKey:"title",row:r,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(a){return[i("el-tag",{style:e._f("dictColor")("notice_type",a.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_type",a.row.type))+" ")])]}},{key:"status",fn:function(a){return[i("el-tag",{style:e._f("dictColor")("notice_status",a.row.status),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_status",a.row.status))+" ")])]}},{key:"filtering",fn:function({colse:a,visible:r}){return[i("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:a,visible:r},on:{save:e.saveQueries}})]}}])})],1),i("detailForm",{ref:"detailForm"})],1)},p=[],y=n.normalizeComponent(u,d,p,!1,null,"48775a9c",null,null);const s=y.exports;s.install=function(t){t.component(s.name,s)};exports.GDpackage=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./components.chartbi.13a8a7b5.js"),n=require("./http.team.e45400d5.js"),m=require("./utils.mixins.js.750ca50e.js"),c=require("./http.main.2f8a6936.js"),u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.team.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",width:"220",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.team.amdmin",prop:"administratorid",label:"\u7BA1\u7406\u5458",width:"220",type:"slot",slotType:"administratorid",align:"left"},{transKey:"gd.team.teamtype",prop:"teamtype",label:"\u56E2\u961F\u7C7B\u578B",width:"180",type:"slot",slotType:"teamtype",align:"left"},{transKey:"gd.team.createdTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center",width:"180"},{transKey:"gd.team.describe",prop:"description",label:"\u63CF\u8FF0",width:"260",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 h={name:"GdTeam",mixins:[m.tablesFilter,u],props:{height:{type:Number,default:100}},data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:a=>n.sysTeamPage(Object.assign(a,this.getQueryParam)).then(e=>e.data)}},components:{editForm:()=>Promise.resolve().then(()=>$)},computed:{getHeight(){return this.height},getQueryParam(){let a=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&(e==="msgStatus"||e==="sendType"))a.set(e,this.queryParam[e].join(","));else if(this.queryParam[e]&&(e==="actualOn"||e==="createdTime"||e==="scheduledStartedOn")){if(this.queryParam[e].length>0){let t=this.queryParam[e],i=t[0].split(" ")[0],s=t[1].split(" ")[0];a.set(`${e}Start`,`${i} 00:00:00`),a.set(`${e}End`,`${s} 23:59:59`)}}else a.set(e,this.queryParam[e]);return Object.fromEntries(a)},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{editForm(a){this.transKey="gd.btn.edit",this.$refs.editForm.open(a)},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:(a,e,t)=>{this.delHand(a,e,t)}})},delHand(a,e,t){if(a!=="confirm"){t();return}let i=[];this.selectedRows.forEach(s=>{let r=n.sysTeamDel({id:s.id}).then(d=>d);i.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(s=>{const r=s.filter(d=>!d.success);r.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+r[0].message),t(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},onSelectChange(a,e){this.selectedRowKeys=a,this.selectedRows=e},handleOk(){this.refresh()},refresh(){this.$refs.table.refresh()},dictSwitch(a,e){let t=this.$options.filters.dictData(e).filter(i=>i.code==a)[0];return t!=null&&t.colour?t.colour:null},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()}}};var p=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view"},[t("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[t("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[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:i,row:s}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:s,highlight:""},on:{click:e.editForm}})]}},{key:"administratorid",fn:function({column:i,row:s}){return[s.administratorname?t("span",[e._v(" "+e._s(s.administratorname)+" ")]):e._e()]}},{key:"teamtype",fn:function(i){return[e.dictSwitch(i.row.teamtype,"teamtype")?t("el-tag",{style:e._f("dictColor")("teamtype",i.row.teamtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("teamtype",i.row.teamtype))+" ")]):t("span",[e._v(e._s(e._f("dictType")("teamtype",i.row.teamtype)))])]}}])})],1),t("editForm",{ref:"editForm",attrs:{openPermissions:!0},on:{ok:e.handleOk}})],1)},f=[],g=o.normalizeComponent(h,p,f,!1,null,"22fbdc27",null,null);const l=g.exports;l.install=function(a){a.component(l.name,l)};const y={props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{width:"80%",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:{getHeight(){const a=this.fullScreen?400:548;return this.screenHeight-a},detailShow(){return!!this.ruleFormData.id},title(){return this.ruleFormData.id?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add")},...o.mapGetters(["screenHeight"])},components:{teamMemberDetail:()=>Promise.resolve().then(()=>require("./system.teammembers.63f21557.js"))},methods:{lookupSeled(a){this.dataList=[...a.fkData],this.$set(this.ruleFormData,"administratorid",a.data[0])},lookup(a){let e={effectType:"fk",fkEntityName:"sys_user",val:a||[]};this.$refs.msgSearch.open(e)},open(a){this.visible=!0,this.fullScreen=!1,this.type=a?2:1,this.ruleFormData.id=a?a.id:"",a&&this.getDetail(a.id)},getDetail(a){a!=""&&(this.dataList=[],n.sysTeamDetail({id:a}).then(e=>{if(e.code==200){let t=e.data;this.dataList.push({id:t.administratorid,name:t.administratorname}),this.columnList.push({id:t.ownerid,name:t.ownername});let i={id:t.id,name:t.name,teamtype:t.teamtype?t.teamtype.toString():"",description:t.description,administratorid:t.administratorid};this.firstLoading=!0,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=i,this.ownerid=t.ownerid},0)})}}))},searchData(a){this.dataList=[],c.baseFkList({fkEntityName:"sys_user",id:a.administratorid}).then(e=>{e.code==200&&(this.firstLoading=!0,e.data.length>0?this.dataList=e.data:this.dataList.push({id:a.administratorid,name:a.administratorname}))})},searchList(){this.firstLoading||(this.adminClick(""),this.firstLoading=!0)},adminClick(a){this.dataList=[],this.fetching=!0,c.baseFkList({fkEntityName:"sys_user",name:a}).then(e=>{e.code==200&&(this.dataList=e.data)})},handleSubmit(){this.$refs.ruleForm.validate(a=>{a&&(console.log(this.type),this.type==1?this.add(this.ruleFormData):this.edit(this.ruleFormData))})},add(a){this.confirmLoading=!0,delete a.id,n.sysTeamAdd(a).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(a){this.confirmLoading=!0,n.sysTeamEdit(a).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(a){return this.$options.filters.dictData(a)},toggleFullscreen(){this.fullScreen=!this.fullScreen},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()}}};var b=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",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}},[t("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"}),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[t("div",{class:e.fullScreen?"modal-bodyq":"modal-body"},[t("el-form",{ref:"ruleForm",attrs:{rules:e.rules,model:e.ruleFormData,"label-width":"100px"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.name","\u540D\u79F0"),prop:"name"}},[t("el-input",{attrs:{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),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.teamtype","\u56E2\u961F\u7C7B\u578B"),prop:"teamtype"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.teamtype,callback:function(i){e.$set(e.ruleFormData,"teamtype",i)},expression:"ruleFormData.teamtype"}},e._l(e.getDictionary("teamtype"),function(i,s){return t("el-option",{key:s,attrs:{value:i.code,label:e.$i18nt(`Dynamics.${i.transkey}`,i.name)}})}),1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.amdmin","\u7BA1\u7406\u5458"),prop:"administratorid"}},[t("div",{staticClass:"cao_about"},[t("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(i){e.$set(e.ruleFormData,"administratorid",i)},expression:"ruleFormData.administratorid"}},e._l(e.dataList,function(i,s){return t("el-option",{key:i.id+"&"+s,attrs:{label:i.name,value:i.id}})}),1),t("div",{staticClass:"cao_setting"},[t("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(i){return e.lookup(e.ruleFormData.administratorid)}}})])],1)])],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.owner","\u8D1F\u8D23\u4EBA")}},[t("div",{staticClass:"cao_about"},[t("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(i){e.ownerid=i},expression:"ownerid"}},e._l(e.columnList,function(i,s){return t("el-option",{key:s,attrs:{label:i.name,value:i.id}})}),1),t("div",{staticClass:"cao_setting"},[t("i",{staticClass:"el-input__icon el-icon-search cao_setting-disabled"})])],1)])],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.describe","\u63CF\u8FF0"),prop:"description"}},[t("el-input",{attrs:{type:"textarea",rows:4,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(i){e.$set(e.ruleFormData,"description",i)},expression:"ruleFormData.description"}})],1)],1)],1)],1)],1),e.visible&&e.detailShow?t("el-card",{attrs:{shadow:"never"}},[t("div",{staticStyle:{"font-weight":"500","font-size":"17px","padding-bottom":"6px"}},[e._v(e._s(e.$i18nt("gd.team.teamMember","\u56E2\u961F\u6210\u5458")))]),t("teamMemberDetail",{attrs:{sys_teamid:e.ruleFormData.id,type:e.type,openMode:2,height:e.getHeight,modeType:"components"}})],1):e._e()],1)],1),t("gd-search",{ref:"msgSearch",attrs:{appendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},_=[],w=o.normalizeComponent(y,b,_,!1,null,"ae94d1a3",null,null);const v=w.exports,$=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=l;
|
|
1
|
+
"use strict";const o=require("./components.chartbi.13a8a7b5.js"),n=require("./http.team.e45400d5.js"),m=require("./utils.mixins.js.750ca50e.js"),c=require("./http.main.2f8a6936.js"),u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.team.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",width:"220",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.team.amdmin",prop:"administratorid",label:"\u7BA1\u7406\u5458",width:"220",type:"slot",slotType:"administratorid",align:"left"},{transKey:"gd.team.teamtype",prop:"teamtype",label:"\u56E2\u961F\u7C7B\u578B",width:"180",type:"slot",slotType:"teamtype",align:"left"},{transKey:"gd.team.createdTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center",width:"180"},{transKey:"gd.team.describe",prop:"description",label:"\u63CF\u8FF0",width:"260",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 h={name:"GdTeam",mixins:[m.tablesFilter,u],props:{height:{type:Number,default:100}},data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:a=>n.sysTeamPage(Object.assign(a,this.getQueryParam)).then(e=>e.data)}},components:{editForm:()=>Promise.resolve().then(()=>$)},computed:{getHeight(){return this.height},getQueryParam(){let a=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&(e==="msgStatus"||e==="sendType"))a.set(e,this.queryParam[e].join(","));else if(this.queryParam[e]&&(e==="actualOn"||e==="createdTime"||e==="scheduledStartedOn")){if(this.queryParam[e].length>0){let t=this.queryParam[e],i=t[0].split(" ")[0],s=t[1].split(" ")[0];a.set(`${e}Start`,`${i} 00:00:00`),a.set(`${e}End`,`${s} 23:59:59`)}}else a.set(e,this.queryParam[e]);return Object.fromEntries(a)},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{editForm(a){this.transKey="gd.btn.edit",this.$refs.editForm.open(a)},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:(a,e,t)=>{this.delHand(a,e,t)}})},delHand(a,e,t){if(a!=="confirm"){t();return}let i=[];this.selectedRows.forEach(s=>{let r=n.sysTeamDel({id:s.id}).then(d=>d);i.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(s=>{const r=s.filter(d=>!d.success);r.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+r[0].message),t(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},onSelectChange(a,e){this.selectedRowKeys=a,this.selectedRows=e},handleOk(){this.refresh()},refresh(){this.$refs.table.refresh()},dictSwitch(a,e){let t=this.$options.filters.dictData(e).filter(i=>i.code==a)[0];return t!=null&&t.colour?t.colour:null},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()}}};var p=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view"},[t("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[t("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[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:i,row:s}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:s,highlight:""},on:{click:e.editForm}})]}},{key:"administratorid",fn:function({column:i,row:s}){return[s.administratorname?t("span",[e._v(" "+e._s(s.administratorname)+" ")]):e._e()]}},{key:"teamtype",fn:function(i){return[e.dictSwitch(i.row.teamtype,"teamtype")?t("el-tag",{style:e._f("dictColor")("teamtype",i.row.teamtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("teamtype",i.row.teamtype))+" ")]):t("span",[e._v(e._s(e._f("dictType")("teamtype",i.row.teamtype)))])]}}])})],1),t("editForm",{ref:"editForm",attrs:{openPermissions:!0},on:{ok:e.handleOk}})],1)},f=[],g=o.normalizeComponent(h,p,f,!1,null,"22fbdc27",null,null);const l=g.exports;l.install=function(a){a.component(l.name,l)};const y={props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{width:"80%",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:{getHeight(){const a=this.fullScreen?400:548;return this.screenHeight-a},detailShow(){return!!this.ruleFormData.id},title(){return this.ruleFormData.id?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add")},...o.mapGetters(["screenHeight"])},components:{teamMemberDetail:()=>Promise.resolve().then(()=>require("./system.teammembers.c99ef01b.js"))},methods:{lookupSeled(a){this.dataList=[...a.fkData],this.$set(this.ruleFormData,"administratorid",a.data[0])},lookup(a){let e={effectType:"fk",fkEntityName:"sys_user",val:a||[]};this.$refs.msgSearch.open(e)},open(a){this.visible=!0,this.fullScreen=!1,this.type=a?2:1,this.ruleFormData.id=a?a.id:"",a&&this.getDetail(a.id)},getDetail(a){a!=""&&(this.dataList=[],n.sysTeamDetail({id:a}).then(e=>{if(e.code==200){let t=e.data;this.dataList.push({id:t.administratorid,name:t.administratorname}),this.columnList.push({id:t.ownerid,name:t.ownername});let i={id:t.id,name:t.name,teamtype:t.teamtype?t.teamtype.toString():"",description:t.description,administratorid:t.administratorid};this.firstLoading=!0,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=i,this.ownerid=t.ownerid},0)})}}))},searchData(a){this.dataList=[],c.baseFkList({fkEntityName:"sys_user",id:a.administratorid}).then(e=>{e.code==200&&(this.firstLoading=!0,e.data.length>0?this.dataList=e.data:this.dataList.push({id:a.administratorid,name:a.administratorname}))})},searchList(){this.firstLoading||(this.adminClick(""),this.firstLoading=!0)},adminClick(a){this.dataList=[],this.fetching=!0,c.baseFkList({fkEntityName:"sys_user",name:a}).then(e=>{e.code==200&&(this.dataList=e.data)})},handleSubmit(){this.$refs.ruleForm.validate(a=>{a&&(console.log(this.type),this.type==1?this.add(this.ruleFormData):this.edit(this.ruleFormData))})},add(a){this.confirmLoading=!0,delete a.id,n.sysTeamAdd(a).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(a){this.confirmLoading=!0,n.sysTeamEdit(a).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(a){return this.$options.filters.dictData(a)},toggleFullscreen(){this.fullScreen=!this.fullScreen},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()}}};var b=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",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}},[t("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"}),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[t("div",{class:e.fullScreen?"modal-bodyq":"modal-body"},[t("el-form",{ref:"ruleForm",attrs:{rules:e.rules,model:e.ruleFormData,"label-width":"100px"},nativeOn:{submit:function(i){i.preventDefault()}}},[t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.name","\u540D\u79F0"),prop:"name"}},[t("el-input",{attrs:{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),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.teamtype","\u56E2\u961F\u7C7B\u578B"),prop:"teamtype"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.teamtype,callback:function(i){e.$set(e.ruleFormData,"teamtype",i)},expression:"ruleFormData.teamtype"}},e._l(e.getDictionary("teamtype"),function(i,s){return t("el-option",{key:s,attrs:{value:i.code,label:e.$i18nt(`Dynamics.${i.transkey}`,i.name)}})}),1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.amdmin","\u7BA1\u7406\u5458"),prop:"administratorid"}},[t("div",{staticClass:"cao_about"},[t("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(i){e.$set(e.ruleFormData,"administratorid",i)},expression:"ruleFormData.administratorid"}},e._l(e.dataList,function(i,s){return t("el-option",{key:i.id+"&"+s,attrs:{label:i.name,value:i.id}})}),1),t("div",{staticClass:"cao_setting"},[t("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(i){return e.lookup(e.ruleFormData.administratorid)}}})])],1)])],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.owner","\u8D1F\u8D23\u4EBA")}},[t("div",{staticClass:"cao_about"},[t("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(i){e.ownerid=i},expression:"ownerid"}},e._l(e.columnList,function(i,s){return t("el-option",{key:s,attrs:{label:i.name,value:i.id}})}),1),t("div",{staticClass:"cao_setting"},[t("i",{staticClass:"el-input__icon el-icon-search cao_setting-disabled"})])],1)])],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.describe","\u63CF\u8FF0"),prop:"description"}},[t("el-input",{attrs:{type:"textarea",rows:4,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(i){e.$set(e.ruleFormData,"description",i)},expression:"ruleFormData.description"}})],1)],1)],1)],1)],1),e.visible&&e.detailShow?t("el-card",{attrs:{shadow:"never"}},[t("div",{staticStyle:{"font-weight":"500","font-size":"17px","padding-bottom":"6px"}},[e._v(e._s(e.$i18nt("gd.team.teamMember","\u56E2\u961F\u6210\u5458")))]),t("teamMemberDetail",{attrs:{sys_teamid:e.ruleFormData.id,type:e.type,openMode:2,height:e.getHeight,modeType:"components"}})],1):e._e()],1)],1),t("gd-search",{ref:"msgSearch",attrs:{appendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},_=[],w=o.normalizeComponent(y,b,_,!1,null,"ae94d1a3",null,null);const v=w.exports,$=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=l;
|