gds-plus-design-vue 1.3.2 → 1.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/lib/{btnGroup.868c8549.js → btnGroup.2304f2f4.js} +1 -1
  2. package/lib/{btnGroup.bbf14548.mjs → btnGroup.cbaa6e6b.mjs} +14 -14
  3. package/lib/{components.form.9c850f56.mjs → components.form.082d9c9b.mjs} +1 -1
  4. package/lib/{components.form.column.bb178c13.mjs → components.form.column.cab0072e.mjs} +1 -1
  5. package/lib/{components.form.column.bbdd2b3a.js → components.form.column.ee06d8bb.js} +1 -1
  6. package/lib/{components.form.218c5703.js → components.form.f4bb9c4c.js} +1 -1
  7. package/lib/{components.globalheader.87083065.js → components.globalheader.5db21e71.js} +1 -1
  8. package/lib/{components.globalheader.c7309694.mjs → components.globalheader.c5ce924d.mjs} +1 -1
  9. package/lib/components.iconselector.831f847e.js +1 -0
  10. package/lib/{components.iconselector.d7c731b8.mjs → components.iconselector.ded60514.mjs} +20 -17
  11. package/lib/{components.sidenavmenu.8a971489.js → components.sidenavmenu.90170635.js} +1 -1
  12. package/lib/{components.sidenavmenu.d4d48a2e.mjs → components.sidenavmenu.c7b6729b.mjs} +7 -7
  13. package/lib/{components.table.queriesfield.0c9da7cd.mjs → components.table.queriesfield.84733bb7.mjs} +32 -32
  14. package/lib/components.table.queriesfield.a50919ee.js +1 -0
  15. package/lib/{fonticon.9adf1203.mjs → fonticon.0d9a2e23.mjs} +14 -14
  16. package/lib/{fonticon.1b451e1a.js → fonticon.a1263225.js} +1 -1
  17. package/lib/{form.designer.build.44a222b7.mjs → form.designer.build.136e3cdd.mjs} +10 -4
  18. package/lib/form.designer.build.7c94450d.js +1 -0
  19. package/lib/gd-initial.js +1 -1
  20. package/lib/gd-initial.mjs +14 -14
  21. package/lib/{http.filedocument.a10d6b67.mjs → http.filedocument.0219751b.mjs} +14 -14
  22. package/lib/{index.50e04b35.js → index.3a9b2d69.js} +1 -1
  23. package/lib/{index.08591f92.mjs → index.459a27d0.mjs} +22 -22
  24. package/lib/index.53b24311.js +1 -0
  25. package/lib/{index.55cf8b7e.js → index.6207efd7.js} +1 -1
  26. package/lib/{index.a32cdfa6.mjs → index.718199db.mjs} +17 -17
  27. package/lib/{index.dd12afc4.mjs → index.72ea6b6b.mjs} +6 -6
  28. package/lib/{index.d5afad7c.js → index.8c8698d0.js} +1 -1
  29. package/lib/{index.6faf770f.js → index.9ec72e55.js} +1 -1
  30. package/lib/{index.cf8bce6c.mjs → index.e051f15e.mjs} +149 -136
  31. package/lib/{index.b5d91f53.mjs → index.f1ecfc7f.mjs} +23 -23
  32. package/lib/{layoutBlocks.22969318.mjs → layoutBlocks.ec55e84e.mjs} +14 -14
  33. package/lib/{layoutBlocks.3326a2cf.js → layoutBlocks.ff24da6b.js} +1 -1
  34. package/lib/{layouts.basiclayout.d292ac35.js → layouts.basiclayout.05046cb5.js} +1 -1
  35. package/lib/{layouts.basiclayout.ba756cfc.mjs → layouts.basiclayout.422c6adc.mjs} +2 -2
  36. package/lib/{layouts.basiclayouttop.5ea4efd6.mjs → layouts.basiclayouttop.4047325d.mjs} +2 -2
  37. package/lib/{layouts.basiclayouttop.22fb1854.js → layouts.basiclayouttop.d6ee1637.js} +1 -1
  38. package/lib/{main.1fe649dd.js → main.467492ec.js} +1 -1
  39. package/lib/main.72c50010.mjs +941 -0
  40. package/lib/{main.839b7bab.mjs → main.750a686d.mjs} +1 -1
  41. package/lib/{main.46333cc1.js → main.77bfdb3d.js} +1 -1
  42. package/lib/{main.89e80afa.js → main.8024dd7b.js} +1 -1
  43. package/lib/{main.faec0761.mjs → main.95d3ff6c.mjs} +1 -1
  44. package/lib/{main.f646cd77.js → main.97e52ee0.js} +1 -1
  45. package/lib/{main.3781a6a9.js → main.9e4ff9c6.js} +1 -1
  46. package/lib/{main.9753a7a6.mjs → main.a3a8a32a.mjs} +26 -26
  47. package/lib/{main.5d1d8c5d.mjs → main.b7f83538.mjs} +1 -1
  48. package/lib/{main.c57a92f8.js → main.d19f6077.js} +1 -1
  49. package/lib/{main.e2e786a1.mjs → main.ff2b9dde.mjs} +1 -1
  50. package/lib/{mobile.designer.menutree.6ada2626.js → mobile.designer.menutree.31a0ac7c.js} +1 -1
  51. package/lib/{mobile.designer.menutree.5b1640f2.mjs → mobile.designer.menutree.b921fa65.mjs} +2 -2
  52. package/lib/{page.application.6ea9a771.mjs → page.application.72fd9f5e.mjs} +2 -2
  53. package/lib/{page.application.bde3a64a.js → page.application.b07312ad.js} +1 -1
  54. package/lib/{page.bmodule.datafiltering.1ab7a1b7.js → page.bmodule.datafiltering.50c9e358.js} +1 -1
  55. package/lib/{page.bmodule.datafiltering.82eb5fa8.mjs → page.bmodule.datafiltering.b3254ae9.mjs} +1 -1
  56. package/lib/{page.build.6447bfd6.js → page.build.5fa4a6c0.js} +1 -1
  57. package/lib/{page.build.a7f5bc44.mjs → page.build.d8557c78.mjs} +1 -1
  58. package/lib/{page.designer.layouts.b5447529.js → page.designer.layouts.351f3075.js} +1 -1
  59. package/lib/{page.designer.layouts.a04efb60.mjs → page.designer.layouts.5d641118.mjs} +1 -1
  60. package/lib/{page.designer.menutree.02ba7d2c.mjs → page.designer.menutree.34aedf7f.mjs} +491 -416
  61. package/lib/{page.designer.menutree.e9fcd5d7.js → page.designer.menutree.51b5e5ed.js} +1 -1
  62. package/lib/{page.designerp.generatorecharts.4e8fb3f2.mjs → page.designerp.generatorecharts.243dafb6.mjs} +1 -1
  63. package/lib/{page.designerp.generatorecharts.fee5aedd.js → page.designerp.generatorecharts.917dd008.js} +1 -1
  64. package/lib/{page.designerp.generatorgridmenu.d8820f3c.mjs → page.designerp.generatorgridmenu.85ed1c88.mjs} +3 -3
  65. package/lib/page.designerp.generatorgridmenu.ef75017c.js +1 -0
  66. package/lib/{page.designerp.generatortable.9d7b9b14.js → page.designerp.generatortable.79639f31.js} +1 -1
  67. package/lib/{page.designerp.generatortable.6011f553.mjs → page.designerp.generatortable.c4cbeb36.mjs} +1 -1
  68. package/lib/{page.designerp.generatortablegrid.c6e94530.js → page.designerp.generatortablegrid.2d33e24a.js} +1 -1
  69. package/lib/{page.designerp.generatortablegrid.5af3abfa.mjs → page.designerp.generatortablegrid.e61db667.mjs} +2 -2
  70. package/lib/{page.designerp.generatortree.42248e8f.mjs → page.designerp.generatortree.a26b78ae.mjs} +1 -1
  71. package/lib/{page.designerp.generatortree.e8320600.js → page.designerp.generatortree.f5ea6e0f.js} +1 -1
  72. package/lib/{page.designerp.main.8d72b4b4.js → page.designerp.main.9ac6b94e.js} +1 -1
  73. package/lib/{page.designerp.main.79f9b559.mjs → page.designerp.main.f05dd663.mjs} +1 -1
  74. package/lib/{page.designerp.properties.9e22da8e.mjs → page.designerp.properties.3bfd6455.mjs} +12 -12
  75. package/lib/{page.designerp.properties.e0e1b3c6.js → page.designerp.properties.e858d8e2.js} +1 -1
  76. package/lib/{page.designerp.propertiesbtn.40f9c7ec.mjs → page.designerp.propertiesbtn.187e7302.mjs} +1 -1
  77. package/lib/{page.designerp.propertiesbtn.1677b44b.js → page.designerp.propertiesbtn.d73a924e.js} +1 -1
  78. package/lib/{page.designerp.propertieschartbi.076e60a8.mjs → page.designerp.propertieschartbi.2d32c538.mjs} +1 -1
  79. package/lib/{page.designerp.propertieschartbi.f584d384.js → page.designerp.propertieschartbi.9b310756.js} +1 -1
  80. package/lib/{page.designerp.propertiesdrawercontainer.6aa245e7.mjs → page.designerp.propertiesdrawercontainer.40446788.mjs} +1 -1
  81. package/lib/{page.designerp.propertiesdrawercontainer.4602bd6f.js → page.designerp.propertiesdrawercontainer.4aa21503.js} +1 -1
  82. package/lib/{page.designerp.propertiesecharts.d59cc912.js → page.designerp.propertiesecharts.5002d91b.js} +1 -1
  83. package/lib/{page.designerp.propertiesecharts.517664c0.mjs → page.designerp.propertiesecharts.fcf3eaa6.mjs} +2 -2
  84. package/lib/{page.designerp.propertiesgridmenu.4113765c.js → page.designerp.propertiesgridmenu.4e7e22c0.js} +1 -1
  85. package/lib/{page.designerp.propertiesgridmenu.db55e28c.mjs → page.designerp.propertiesgridmenu.c7214ec6.mjs} +1 -1
  86. package/lib/{page.designerp.propertieslist.dda1709b.mjs → page.designerp.propertieslist.828fd439.mjs} +3 -3
  87. package/lib/{page.designerp.propertieslist.caa42641.js → page.designerp.propertieslist.c7d72d78.js} +1 -1
  88. package/lib/{page.designerp.propertiesstatistic.32f7a24d.js → page.designerp.propertiesstatistic.0f2da29f.js} +1 -1
  89. package/lib/{page.designerp.propertiesstatistic.4e14df8b.mjs → page.designerp.propertiesstatistic.a417c9e7.mjs} +1 -1
  90. package/lib/{page.designerp.propertiestable.1fdf9134.mjs → page.designerp.propertiestable.172f9499.mjs} +4 -4
  91. package/lib/{page.designerp.propertiestable.07b36fd6.js → page.designerp.propertiestable.658e0534.js} +1 -1
  92. package/lib/{page.designerp.propertiestablegrid.f606c227.mjs → page.designerp.propertiestablegrid.6b5bbe93.mjs} +5 -5
  93. package/lib/{page.designerp.propertiestablegrid.ccfbd8d6.js → page.designerp.propertiestablegrid.e208f5d1.js} +1 -1
  94. package/lib/{page.designerp.propertiestree.40f7f272.mjs → page.designerp.propertiestree.61da99df.mjs} +3 -3
  95. package/lib/{page.designerp.propertiestree.7848fdff.js → page.designerp.propertiestree.ee7014b7.js} +1 -1
  96. package/lib/page.filedocument.build.48a5874e.js +1 -0
  97. package/lib/{page.filedocument.build.c0f90ccd.mjs → page.filedocument.build.61f014b4.mjs} +130 -131
  98. package/lib/{personal.echarts.4f212a5c.mjs → personal.echarts.268fea3e.mjs} +1 -1
  99. package/lib/{personal.echarts.12a0fad6.js → personal.echarts.a78792db.js} +1 -1
  100. package/lib/{router.config.65dd255f.mjs → router.config.8be3d360.mjs} +8 -8
  101. package/lib/{router.config.77b867ce.js → router.config.e68a29e1.js} +1 -1
  102. package/lib/{search.advanced.327fd0be.mjs → search.advanced.dc688c5c.mjs} +2 -2
  103. package/lib/{search.advanced.be9d450f.js → search.advanced.ec1656d2.js} +1 -1
  104. package/lib/{solution.menu.a42e3c39.js → solution.menu.b487f819.js} +1 -1
  105. package/lib/{solution.menu.fe7037d5.mjs → solution.menu.eea5a105.mjs} +1 -1
  106. package/lib/style.css +2 -2
  107. package/lib/{sysComponents.7bcb6181.mjs → sysComponents.5cffa46d.mjs} +1 -1
  108. package/lib/{sysComponents.96b83ac9.js → sysComponents.90398324.js} +1 -1
  109. package/lib/{system.account.f43288ef.js → system.account.042e1580.js} +6 -6
  110. package/lib/{system.account.89c40faa.mjs → system.account.a315cddc.mjs} +37 -33
  111. package/lib/system.document.classifymanage.4daf3782.mjs +639 -0
  112. package/lib/system.document.classifymanage.c3771fa0.js +1 -0
  113. package/lib/system.document.recyclemanage.20503887.mjs +591 -0
  114. package/lib/system.document.recyclemanage.46e290c5.js +1 -0
  115. package/lib/{system.user.c90fd671.js → system.user.02e22feb.js} +4 -4
  116. package/lib/{system.user.3fb93f0e.mjs → system.user.98c9f5e7.mjs} +10 -4
  117. package/lib/{table.definition.btnconfig.edb31f00.mjs → table.definition.btnconfig.66fef981.mjs} +1 -1
  118. package/lib/{table.definition.btnconfig.ad94433f.js → table.definition.btnconfig.83478480.js} +1 -1
  119. package/lib/{table.definition.echartsconfig.1b55ec5a.js → table.definition.echartsconfig.02ff98ea.js} +1 -1
  120. package/lib/{table.definition.echartsconfig.11213eaa.mjs → table.definition.echartsconfig.34eea92d.mjs} +1 -1
  121. package/lib/{table.definition.fkconfig.c1f383ce.mjs → table.definition.fkconfig.a15d547f.mjs} +5 -5
  122. package/lib/{table.definition.fkconfig.0cb9807b.js → table.definition.fkconfig.cdd19291.js} +1 -1
  123. package/lib/{table.definition.formconfig.14140199.js → table.definition.formconfig.772f9395.js} +1 -1
  124. package/lib/{table.definition.formconfig.a1e3179f.mjs → table.definition.formconfig.cff793af.mjs} +2 -2
  125. package/lib/{utils.componentssys.js.0b63c908.mjs → utils.componentssys.js.539b7c3b.mjs} +12 -12
  126. package/lib/{utils.componentssys.js.85b0f05e.js → utils.componentssys.js.a28c0ac2.js} +1 -1
  127. package/lib/{view.build.c08b0135.mjs → view.build.c4c937d6.mjs} +5 -5
  128. package/lib/{view.build.9cf1f654.js → view.build.cbf165ac.js} +1 -1
  129. package/package.json +59 -107
  130. package/lib/components.iconselector.b74b573b.js +0 -1
  131. package/lib/components.table.queriesfield.49895bed.js +0 -1
  132. package/lib/form.designer.build.2b2da0f4.js +0 -1
  133. package/lib/index.d884234a.js +0 -1
  134. package/lib/main.085ed428.mjs +0 -988
  135. package/lib/page.designerp.generatorgridmenu.dfa1fbbb.js +0 -1
  136. package/lib/page.filedocument.build.54ae14c3.js +0 -1
  137. package/lib/system.document.1e100a7f.mjs +0 -1222
  138. package/lib/system.document.767210d3.js +0 -1
@@ -1 +1 @@
1
- "use strict";const r=require("./components.answerquestions.9c7165c4.js"),p=require("./http.loginmanage.326984c3.js"),E=require("vue"),k=require("./http.main.8543ccc4.js"),w=require("./utils.util.js.dffba0f0.js"),I=require("./http.filemanage.0cf7a879.js"),y=require("./http.legal.05562d70.js"),A=require("./http.noticemanage.2507d094.js"),S=s=>s&&typeof s=="object"&&"default"in s?s:{default:s},C=S(E);var m=null;const $={props:{menus:{type:Array,required:!0},collapsed:{type:Boolean,required:!1,default:!1},activeKey:{type:String,default:""}},data(){return{record:{},visible:!1,modeMenus:"singleton",name:"",appMenus:[],omodeMenus:"singleton"}},computed:{getUserFavoriteMenu(){let s=[];return this.userFavoriteMenu.forEach(e=>{s.push(e.menuid)}),s},favoriteMenus(){let s=[];return this.appMenus.map(e=>{e.children.map(t=>{t.type==1&&s.push(Object.assign(t,{menus:e})),t.children&&t.children.map(i=>{s.push(Object.assign(i,{menus:e}))})})}),s.filter(e=>this.getUserFavoriteMenu.includes(e.id))},modeList(){let s=[];return this.menus.forEach(e=>{(this.modeMenus==="singleton"&&e.code===this.record.code||this.modeMenus==="multiple")&&s.push(e.code)}),s},getMode(){let s="gd-icon-bullet-list--points-bullet-unordered-list-lists-bu";return this.modeMenus==="multiple"?s="gd-icon-application":this.modeMenus==="collect"&&(s="gd-icon-star"),s},lstyle(){let s=this.menusWidth.split("&"),e=372;if(s[0]==="secondary")e=472;else if(s[0]==="big")e=672;else if(s[0]==="custom")return`flex:0 0 ${s[1]}px`;return`flex:0 0 ${e}px`},styleds(){return{padding:this.collapsed?`0 0 0 ${this.sidebarConfig.foldWidth}px`:`0 0 0 ${this.sidebarConfig.horizontalWidth}px`}},mstyle(){return{"--bjsmenuvar":"#282c31","--bjseachvar":"#111314"}},cstyle(){return`color:${this.primaryColor}`},fadeColord(){return this.fadeColor(this.primaryColor,.1)},...r.mapGetters(["userInfo","primaryColor","menusSearchMode","userFavoriteMenu","menusWidth","theme","sidebarConfig"])},methods:{seachName(s){let e=[...this.appMenus];e.forEach((t,i)=>{t.children.forEach((o,l)=>{let h=[];o.children&&(o.children.forEach((g,x)=>{let D=this.$i18nt(`Dynamics.${g.transkey}`,g.meta.title);e[i].children[l].children[x].show=D.toLowerCase().includes(s.toLowerCase())}),h=o.children.filter(g=>g.show));let M=this.$i18nt(`Dynamics.${o.transkey}`,o.meta.title);e[i].children[l].show=h.length>0?!0:M.toLowerCase().includes(s.toLowerCase())});let a=this.$i18nt(`Dynamics.${t.transkey}`,t.name),n=t.children.filter(o=>o.show)[0];e[i].show=n!==void 0?!0:a.toLowerCase().includes(s.toLowerCase())}),this.appMenus=[...e],s===""&&this.modeMenus==="multiple"&&this.scrollToAnchor(this.record)},query(){this.seachName(this.name.trim())},changeName(s){this.seachName(s.trim())},refreshCollect(){m&&clearTimeout(m),m=setTimeout(()=>{this.getSysBookmarkPage()},2e3)},countCollect(s,e,t){let i=this.userFavoriteMenu.filter(a=>a.menuId!=s.id);e===1&&i.push(t),this.UserFavoriteMenu(i),this.refreshCollect()},collectMenu(s,e){if(m&&clearTimeout(m),e===1){this.sysBookmarkAdd(s).then(t=>{t.success&&this.countCollect(s,e,t.data)});return}this.sysBookmarkDelete(s).then(t=>{t.success&&this.countCollect(s,e)})},sysBookmarkAdd(s){let e={userId:this.userInfo.id,menuId:s.id,order:0,name:s.meta.title};return p.sysBookmarkAdd(e).then(t=>t)},sysBookmarkDelete(s){let t={id:this.userFavoriteMenu.filter(i=>i.menuid==s.id)[0].id};return p.sysBookmarkDelete(t).then(i=>i)},getSysBookmarkPage(){let s={userId:this.userInfo.id,pageNo:1,pageSize:200};p.sysBookmarkPage(s).then(e=>{e.code===200&&this.UserFavoriteMenu(e.data.rows)})},selMode(s){s!==this.modeMenus&&(this.omodeMenus=this.modeMenus==="collect"?this.omodeMenus:this.modeMenus,this.modeMenus=s,this.MenusSearchMode(s),s==="multiple"&&this.scrollToAnchor(this.record),this.$refs.popover_seach.doClose())},mouseenter(){this.$emit("mouseenter")},mouseleave(){this.$emit("mouseleave")},open(s){this.record=s,this.visible=!0,this.scrollToAnchor(s)},close(){this.visible=!1,this.$emit("close")},setAppMenus(s){this.appMenus=s},goPath(s,e,t){(s.type===void 0?e:s.type)===1&&(this.$emit("goPath",{data:t,item:s}),this.name!==""&&(this.name="",this.query()),this.modeMenus==="collect"&&(this.modeMenus=this.omodeMenus),this.close(),this.$nextTick(()=>{setTimeout(()=>{if((s.opentype!==void 0?s.opentype:1)===2){const n=s.meta.link;n&&window.open(n,s.key);return}this.$router.push({name:s.name})},0)}))},scrollToAnchor(s){this.$nextTick(()=>{let e=document.getElementById(`gd-menus-item-${s.code}`);e&&e.scrollIntoView({behavior:"auto"})})},fadeColor(s,e){let t=parseInt(s.substring(1,3),16),i=parseInt(s.substring(3,5),16),a=parseInt(s.substring(5,7),16);return`rgba(${t},${i},${a},${e})`},...r.mapActions(["MenusSearchMode","UserFavoriteMenu"])},created(){this.modeMenus=this.menusSearchMode}};var T=function(){var e=this,t=e._self._c;return t("div",{style:e.mstyle},[e.visible?t("div",{staticClass:"gd-menus",class:e.theme==="light"?"":"gd-menus-dark",style:e.styleds},[t("div",{staticClass:"gd-menus-list",style:e.lstyle,on:{mouseenter:e.mouseenter,mouseleave:e.mouseleave}},[t("div",{staticClass:"gd-seach"},[t("el-input",{staticClass:"inpu",attrs:{placeholder:e.$i18nt("gd.menu.searchModeName","\u8BF7\u8F93\u5165\u5185\u5BB9"),clearable:""},on:{input:e.changeName},model:{value:e.name,callback:function(i){e.name=i},expression:"name"}},[t("el-popover",{ref:"popover_seach",staticClass:"el-input__icon",attrs:{slot:"prefix",placement:"top-start",trigger:"hover"},slot:"prefix"},[t("div",{staticClass:"popover-hand",style:{"--dilute":e.fadeColord},on:{mouseenter:e.mouseenter}},[t("div",{staticClass:"popover-hand-name",class:e.modeMenus==="singleton"?"inpu-item-activ":"",on:{click:function(i){return i.stopPropagation(),e.selMode("singleton")}}},[t("i",{staticClass:"gd-icons gd-icon-bullet-list--points-bullet-unordered-list-lists-bu"}),e._v(" "+e._s(e.$i18nt("gd.menu.singletonMode","\u5355\u4F8B\u6A21\u5F0F"))+" ")]),t("div",{staticClass:"popover-hand-name",class:e.modeMenus==="multiple"?"inpu-item-activ":"",on:{click:function(i){return i.stopPropagation(),e.selMode("multiple")}}},[t("i",{staticClass:"gd-icons gd-icon-application"}),e._v(" "+e._s(e.$i18nt("gd.menu.multipleMode","\u591A\u4F8B\u6A21\u5F0F"))+" ")]),t("div",{staticClass:"popover-hand-name",class:e.modeMenus==="collect"?"inpu-item-activ":"",on:{click:function(i){return i.stopPropagation(),e.selMode("collect")}}},[t("i",{staticClass:"gd-icons gd-icon-star"}),e._v(" "+e._s(e.$i18nt("gd.menu.collectMode","\u6536\u85CF\u6A21\u5F0F"))+" ")])]),t("i",{staticClass:"gd-icons",class:e.getMode,staticStyle:{"line-height":"32px","padding-left":"2px",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"})]),t("i",{staticClass:"el-input__icon el-icon-search",staticStyle:{"font-size":"16px",cursor:"pointer"},attrs:{slot:"suffix"},on:{click:e.query},slot:"suffix"})],1)],1),e.modeMenus==="collect"?t("div",{staticClass:"gd-center"},[t("div",{staticClass:"gd-menus-item"},[t("div",{staticClass:"item-list"},[e._l(e.favoriteMenus,function(i){return[t("div",{staticClass:"item",on:{click:function(a){return e.goPath(i,2,i.menus)}}},[i.meta&&i.meta.icon&&i.meta.icon!=="none"?t("div",{staticClass:"iteml"},[t("i",{staticClass:"gd-icons icons-menu",class:i.meta.icon,staticStyle:{"font-size":"16px"}})]):e._e(),t("div",{staticClass:"gdtitle line1",attrs:{title:e.$i18nt(`Dynamics.${i.transkey}`,i.meta.title)}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.meta.title))+" ")]),t("div",{staticClass:"item-collect"},[t("i",{staticClass:"collect el-icon-delete",staticStyle:{color:"red"},on:{click:function(a){return a.stopPropagation(),e.collectMenu(i,2)}}})])])]})],2)])]):t("div",{staticClass:"gd-center",class:e.modeMenus==="multiple"?"gd-centerbj":""},[e._l(e.appMenus,function(i,a){return[e.modeList.includes(i.code)?t("div",{staticClass:"gd-menus-item",class:a!=0&&i.show?"gd-menus-itembj":"",attrs:{id:`gd-menus-item-${i.code}`}},[i.show&&e.modeMenus==="multiple"?t("div",{staticClass:"divider"},[t("div",{staticClass:"dividerl"},[t("i",{staticClass:"gd-icons icons-menu",class:i.icon})]),t("span",{staticClass:"gdtitle gd-bold-fonts",attrs:{title:e.$i18nt(`Dynamics.${i.transkey}`,i.name)}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.name))+" ")])]):e._e(),e._l(i.children,function(n){return[!n.hidden&&n.show?t("div",[n.type==1?t("div",{staticClass:"item-list"},[t("div",{staticClass:"item",class:n.path===e.activeKey?"itemactive":"",on:{click:function(o){return e.goPath(n,1,i)}}},[n.meta&&n.meta.icon&&n.meta.icon!=="none"?t("div",{staticClass:"iteml"},[t("i",{staticClass:"gd-icons icons-menu",class:n.meta.icon})]):e._e(),t("div",{staticClass:"gdtitle line1",attrs:{title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title))+" ")]),e.getUserFavoriteMenu.includes(n.id)?t("div",{staticClass:"item-collected"},[e.getUserFavoriteMenu.includes(n.id)?t("i",{staticClass:"gd-icons gd-icon-star-full",style:e.cstyle,on:{click:function(o){return o.stopPropagation(),e.collectMenu(n,2)}}}):t("i",{staticClass:"gd-icons gd-icon-star",style:e.cstyle,on:{click:function(o){return o.stopPropagation(),e.collectMenu(n,2)}}})]):t("div",{staticClass:"item-collect"},[t("i",{staticClass:"gd-icons collect gd-icon-star",style:e.cstyle,on:{click:function(o){return o.stopPropagation(),e.collectMenu(n,1)}}})])])]):t("div",{staticClass:"dividers"},[e.modeMenus==="singleton"?t("el-divider",{attrs:{orientation:"left","content-position":"left"}},[t("span",{staticClass:"gdtitle",class:n.path===e.activeKey?"itemactive":"",attrs:{title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)},on:{click:function(o){return e.goPath(n,2,i)}}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title))+" ")])]):t("span",{staticClass:"gdtitle",class:n.path===e.activeKey?"itemactive":"",attrs:{title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)},on:{click:function(o){return e.goPath(n,2,i)}}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title))+" ")])],1),n.children?t("div",{staticClass:"item-list"},[e._l(n.children,function(o){return[!o.hidden&&o.show?t("div",{staticClass:"item",class:o.path===e.activeKey?"itemactive":"",on:{click:function(l){return e.goPath(o,1,i)}}},[o.meta&&o.meta.icon&&o.meta.icon!=="none"?t("div",{staticClass:"iteml"},[t("i",{staticClass:"icons-menu gd-icons",class:o.meta.icon,staticStyle:{"font-size":"16px"}})]):e._e(),t("div",{staticClass:"gdtitle line1",attrs:{title:e.$i18nt(`Dynamics.${o.transkey}`,o.meta.title)}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${o.transkey}`,o.meta.title))+" ")]),e.getUserFavoriteMenu.includes(o.id)?t("div",{staticClass:"item-collected"},[e.getUserFavoriteMenu.includes(o.id)?t("i",{staticClass:"gd-icons gd-icon-star-full",style:e.cstyle,on:{click:function(l){return l.stopPropagation(),e.collectMenu(o,2)}}}):t("i",{staticClass:"gd-icons gd-icon-star",style:e.cstyle,on:{click:function(l){return l.stopPropagation(),e.collectMenu(o,2)}}})]):t("div",{staticClass:"item-collect"},[t("i",{staticClass:"gd-icons collect gd-icon-star",style:e.cstyle,on:{click:function(l){return l.stopPropagation(),e.collectMenu(o,1)}}})])]):e._e()]})],2):e._e()]):e._e()]})],2):e._e()]}),t("div",{staticClass:"zhan-bj"})],2)]),t("div",{staticClass:"gd-menus-close",on:{click:e.close}})]):e._e()])},L=[],R=r.normalizeComponent($,T,L,!1,null,"4b68d7ea",null,null);const B=R.exports;var d=null;const z={name:"GdSideNavMenu",props:{basicAttribute:{type:Object,default:()=>({})}},data(){return{defApp:"",defMenus:[],activeKey:"",defaultActive:"",activeData:{},type:"click"}},components:{UserLogo:()=>Promise.resolve().then(()=>H),SidebarMenus:B},computed:{componentItem(){const s=this.$importViewFiles();let e=`..${this.customizeNavMenu}`,t=s[e];return t?t.default:null},apps(){return this.userInfo.apps},styled(){let s=this.sidebar?`${this.sidebarConfig.foldWidth}px`:`${this.sidebarConfig.horizontalWidth}px`;return this.navMenuTheme==="fold"?s=this.sidebar?`${this.sidebarConfig.foldWidth}px`:`${this.sidebarConfig.verticalWidth}px`:this.navMenuTheme==="customize"&&(s=this.sidebar?`${this.sidebarConfig.foldWidth}px`:`${this.sidebarConfig.customizeWidth}px`),{width:s,"--bjmenuvar":"#1d2126"}},...r.mapGetters(["userInfo","addRouters","userFavoriteMenu","theme","sidebar","userFavoriteMenu","navMenuTheme","primaryColor","sidebar","sidebarConfig","customizeNavMenu"])},watch:{$route(s){this.changeRoute(s)}},methods:{selectMenus(s){if(this.defaultActive===s)return;let e={};const t=n=>(n=n.filter(o=>{const l=o.code?o.code:o.key;return s===l&&(e=o),o.children&&(o.children=t(o.children)),!0}),n);if(t(this.defMenus),(e.type===void 0?1:e.type)!==1)return;if((e.opentype!==void 0?e.opentype:1)===2){const n=e.meta.link;n&&window.open(n);return}this.$router.push({name:e.name}),this.defaultActive=e.code?e.code:e.key,this.activeData=e},getDefApp(s){let e=s&&s.name?s.name:"";this.type="";let t="";this.apps.forEach(i=>{i.menus&&i.menus.forEach(a=>{a.name&&e===a.name&&!a.hidden&&(t=i.code)})}),this.defApp=t},goPath(s){this.defApp=s.data.code,this.activeData=s.data.item},getSysBookmarkPage(){this.userInfo.bookmarks&&this.UserFavoriteMenu(this.userInfo.bookmarks);let s={userId:this.userInfo.id,pageNo:1,pageSize:200};p.sysBookmarkPage(s).then(e=>{e.code===200&&this.UserFavoriteMenu(e.data.rows)})},init(){const s=t=>(t=t.filter(i=>(i.children&&(i.children=s(i.children),i.showLeg=i.children.filter(a=>a.show).length,i.show=i.showLeg===0?!1:i.show),!0)),t);let e=[...this.apps];e.forEach((t,i)=>{const a=t.menus.map(o=>(o.show=o.meta.show,o));let n=[];this.listToTree(a,n,0),e[i].children=[...n],e[i].show=!0}),e=s(e).filter(t=>t.children.filter(a=>a.show).length===0?!1:t.show),this.defMenus=[...e],this.$nextTick(()=>{setTimeout(()=>{this.$refs.sMenu.setAppMenus(e)},100)})},mouseenterMenu(){d&&clearTimeout(d),this.type=this.type!=="click"?"mouse":this.type},mouseleaveMenu(){d&&clearTimeout(d),this.type==="mouse"&&(d=setTimeout(()=>{this.$refs.sMenu.close()},100))},mouseenter(s){d&&clearTimeout(d),this.type!=="click"&&(this.type=this.type!=="click"?"mouse":this.type,this.$refs.sMenu.open(s))},mouseleave(){d&&clearTimeout(d),this.type!=="click"&&(d=setTimeout(()=>{this.$refs.sMenu.close()},300))},changeRoute(s){this.activeKey=s.fullPath,this.activeData=s,this.getDefApp(s)},getDefApp(s){let e=s&&s.name?s.name:"";this.defaultActive=e,this.type="";let t="";this.apps.forEach(i=>{i.menus&&i.menus.forEach(a=>{a.name&&e===a.name&&!a.hidden&&(t=i.code)})}),this.defApp=t},goPath(s){this.defApp=s.data.code,this.activeData=s.data.item},selItem(s){this.type="click",this.defApp=s.code,this.$refs.sMenu.open(s)},listToTree(s,e,t){s&&s.forEach(i=>{if(i.pid==t){const a={...i,key:i.key||i.name,children:[]};this.listToTree(s,a.children,i.id),a.children.length<=0&&delete a.children,e.push(a)}})},...r.mapActions(["UserFavoriteMenu"])},created(){this.init(),this.changeRoute(this.$route),this.getSysBookmarkPage()}};var P=function(){var e=this,t=e._self._c;return t("div",[e.componentItem?t("div",{staticClass:"gd-sider",class:e.theme==="light"?"":"gd-sider-dark",style:e.styled},[t(e.componentItem,{tag:"component",attrs:{basicAttribute:e.basicAttribute,defMenus:e.defMenus,sidebar:e.sidebar,defApp:e.defApp},on:{selectMenus:e.selectMenus}})],1):t("div",{staticClass:"gd-sider",class:e.theme==="light"?"":"gd-sider-dark",style:e.styled},[e.basicAttribute.logoOpen?t("UserLogo",{attrs:{basicAttribute:e.basicAttribute}}):e._e(),e.navMenuTheme==="vertical"?t("div",{staticClass:"gd-app"},[e._l(e.defMenus,function(i,a){return[t("div",{staticClass:"item",class:[e.sidebar?"sitem":"",i.code===e.defApp?"itemactive":""],attrs:{title:e.$i18nt(`Dynamics.${i.transkey}`,i.name)},on:{click:function(n){return e.selItem(i)},mouseenter:function(n){return e.mouseenter(i)},mouseleave:e.mouseleave}},[t("i",{staticClass:"gd-icons",class:i.icon}),e.sidebar?e._e():t("div",{staticClass:"pname line1"},[e._v(" "+e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.name))+" ")]),i.code===e.defApp&&!e.sidebar?t("i",{staticClass:"el-icon-arrow-right"}):e._e()])]})],2):t("div",{staticClass:"gd-app"},[e._l(e.defMenus,function(i,a){return[t("el-menu",{staticClass:"el-menu-vertical-demo",class:[e.sidebar?"sitem":""],attrs:{"default-active":e.defaultActive,"background-color":e.theme==="light"?"#fff":"#1d2126","text-color":e.theme==="light"?"#333":"#fff","active-text-color":e.primaryColor,collapse:e.sidebar},on:{select:e.selectMenus}},[i.children&&i.children.length>0?t("el-submenu",{attrs:{index:i.code}},[t("template",{slot:"title"},[t("i",{staticClass:"gd-icons",class:i.icon,staticStyle:{"padding-right":"4px"}}),t("span",[e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.name)))])]),e._l(i.children,function(n,o){return[n.children&&n.children.length>0?t("el-submenu",{attrs:{index:n.key,title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)}},[t("template",{slot:"title"},[t("i",{staticClass:"gd-icons",class:n.icon,staticStyle:{"padding-right":"4px"}}),t("span",[e._v(e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)))])]),e._l(n.children,function(l,h){return[t("el-menu-item",{attrs:{index:l.key,title:e.$i18nt(`Dynamics.${l.transkey}`,l.meta.title)}},[t("template",{slot:"title"},[t("i",{staticClass:"gd-icons",class:l.icon,staticStyle:{"padding-right":"4px"}}),t("span",[e._v(e._s(e.$i18nt(`Dynamics.${l.transkey}`,l.meta.title)))])])],2)]})],2):t("el-menu-item",{attrs:{index:n.key,title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)}},[t("i",{staticClass:"gd-icons",class:n.icon,staticStyle:{"padding-right":"4px"}}),t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)))])])]})],2):t("el-menu-item",{attrs:{index:i.code}},[t("i",{staticClass:"gd-icons",class:i.icon,staticStyle:{"padding-right":"4px"}}),t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`,e.ite.meta.title)))])])],1)]})],2)],1),t("SidebarMenus",{ref:"sMenu",attrs:{collapsed:e.sidebar,menus:e.defMenus,activeKey:e.activeKey},on:{goPath:e.goPath,close:function(i){return e.getDefApp(e.activeData)},mouseenter:e.mouseenterMenu,mouseleave:e.mouseleaveMenu}})],1)},U=[],N=r.normalizeComponent(z,P,U,!1,null,"b5b772ef",null,null);const f=N.exports;f.install=function(s){s.component(f.name,f)};const F=Object.freeze(Object.defineProperty({__proto__:null,default:f},Symbol.toStringTag,{value:"Module"}));const Q={props:{basicAttribute:{type:Object,default:()=>({})}},data(){return{}},computed:{options(){return this.basicAttribute.logo||{}},tstyle(){return`font-size:${this.options.titleFont!==void 0?this.options.titleFont:15}px`},ystyle(){return`font-size:${this.options.subtitleFont!==void 0?this.options.subtitleFont:11}px`},...r.mapGetters(["userInfo","addRouters","userFavoriteMenu","theme","sidebar"])},methods:{}};var K=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"user-logo",class:e.theme==="light"?"":"user-logo-dark"},[e.options.mode==="imageWithText"?t("div",{staticClass:"logo"},[t("div",{staticClass:"picture"},[e.options.smallPicture?t("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:e.options.smallPicture,expression:"options.smallPicture"}],staticClass:"img",attrs:{"data-url":e.options.smallPicture,"data-load":"Y"}}):e._e()]),e.sidebar?e._e():t("div",{staticClass:"company"},[t("div",{staticClass:"title line1",style:e.tstyle},[e._v(e._s(e.options.title))]),t("div",{staticClass:"ytitle line1",style:e.ystyle},[e._v(e._s(e.options.subtitle))])])]):t("div",{staticClass:"logo"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.sidebar,expression:"sidebar"}],staticClass:"picture"},[e.options.smallPicture?t("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:e.options.smallPicture,expression:"options.smallPicture"}],staticClass:"img",attrs:{"data-url":e.options.smallPicture,"data-load":"Y"}}):e._e()]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.sidebar,expression:"!sidebar"}],staticClass:"bpicture"},[e.options.bigPicture?t("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:e.options.bigPicture,expression:"options.bigPicture"}],staticClass:"img",attrs:{"data-url":e.options.bigPicture,"data-load":"Y"}}):e._e()])])])])},j=[],O=r.normalizeComponent(Q,K,j,!1,null,"7da26c1e",null,null);const q=O.exports,H=Object.freeze(Object.defineProperty({__proto__:null,default:q},Symbol.toStringTag,{value:"Module"})),b=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],u=(()=>{if(typeof document>"u")return!1;const s=b[0],e={};for(const t of b)if((t==null?void 0:t[1])in document){for(const[a,n]of t.entries())e[s[a]]=n;return e}return!1})(),_={change:u.fullscreenchange,error:u.fullscreenerror};let c={request(s=document.documentElement,e){return new Promise((t,i)=>{const a=()=>{c.off("change",a),t()};c.on("change",a);const n=s[u.requestFullscreen](e);n instanceof Promise&&n.then(a).catch(i)})},exit(){return new Promise((s,e)=>{if(!c.isFullscreen){s();return}const t=()=>{c.off("change",t),s()};c.on("change",t);const i=document[u.exitFullscreen]();i instanceof Promise&&i.then(t).catch(e)})},toggle(s,e){return c.isFullscreen?c.exit():c.request(s,e)},onchange(s){c.on("change",s)},onerror(s){c.on("error",s)},on(s,e){const t=_[s];t&&document.addEventListener(t,e,!1)},off(s,e){const t=_[s];t&&document.removeEventListener(t,e,!1)},raw:u};Object.defineProperties(c,{isFullscreen:{get:()=>Boolean(document[u.fullscreenElement])},element:{enumerable:!0,get:()=>{var s;return(s=document[u.fullscreenElement])!=null?s:void 0}},isEnabled:{enumerable:!0,get:()=>Boolean(document[u.fullscreenEnabled])}});u||(c={isEnabled:!1});const v=c;const J={props:{basicAttribute:{type:Object,default:()=>({})}},data(){return{isFullscreen:!1,photoUrl:"",avatar:"",handletype:"1",tabsReady:!1,showDetails:!1,userLegalShow:!1,legaledClickShow:!1,defaultLegalid:"",legalHasEnable:0,legalList:[]}},components:{SettingDrawer:()=>Promise.resolve().then(()=>require("./components.settingdrawer.0eaa8a4e.js")).then(s=>s.main),XlsxImport:()=>Promise.resolve().then(()=>require("./components.xlsximport.df981b91.js")).then(s=>s.main),InformationMsg:()=>Promise.resolve().then(()=>ge)},computed:{getLegalName(){const s=this.legalList.filter(e=>e.id===this.defaultLegalid)[0];return s?s.name:"--"},hasLogout(){const s=this.options.filter(e=>e.key==="logout")[0];return s?s.statu:!0},options(){return(this.basicAttribute.menus||[]).map(e=>(e.key==="universalImport"?(e.permission="sysUser:universalImport",e.transkey="gd.menu.universalImport"):e.key==="advancedFind"?(e.permission="sysUser:advancedFind",e.transkey="gd.menu.menuAdvancedFind"):e.key==="information"?e.transkey="gd.menu.information":e.key==="theme"?e.transkey="gd.menu.themeConfiguration":e.key==="fullScreen"&&(e.transkey="gd.menu.fullScreen"),e))},menus(){const s=this.hasItems?[{disabled:!1,key:"application",name:"\u5E94\u7528",statu:!0,permission:"sysApplication:see",transkey:"gd.solution.application"}]:[],e=this.options.filter(t=>t.key!=="logout");return s.concat(e).filter(t=>t.permission?this.$hasPerm(t.permission):!0)},hasItems(){return(this.systemInfo.id?this.systemInfo:window.$systemInfo).code==="GDS_LCDP"},apps(){return this.userInfo.apps},getUserImg(){let s="/gds/"+this.userInfo.filePath+"/"+this.userInfo.fileObjectName;return`${this.$getImageUrl(s)}`},fadeColord(){return this.fadeColor(this.primaryColor,.2)},messagetypeData(){return this.getDictionary("messagetype")},...r.mapGetters(["tableLists","platformData","userInfo","primaryColor","token","systemInfo","unreadCount","theme"])},methods:{changeLegal(s){C.default.ls.set("X-Legal-Entity-Id",s),this.legaledClickShow=!1,this.$store.commit("SET_ROLES",[]),window.location.reload()},selLegaled(s){this.legaledClickShow=s},init(){const s=C.default.ls.get("X-Legal-Entity-Id");this.defaultLegalid=s||"",this.userLegalShow=!1,Promise.all([this.getLegalList(),this.getLegalEnable()]).then(e=>{this.userLegalShow=!0})},getLegalList(){y.getUserAvailLegals({}).then(s=>{s.code===200&&(this.legalList=s.data)})},getLegalEnable(){y.sysLegalEnable({}).then(s=>{s.code===200&&(this.legalHasEnable=s.data&&s.data==="true"?1:0)})},imageUrl(){I.sysFileInfoPreview({id:this.userInfo.avatar}).then(s=>{const e=new Blob([s]);this.photoUrl=window.URL.createObjectURL(e)}).catch(s=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+s.message)})},echartsManage(s){this.$router.push({name:"echartsManage"}),this.$refs[s][0].doClose()},accountSetting(s){this.$router.push({name:"accountSettings"}),this.$refs[s][0].doClose()},hand(s){s==="theme"?this.$refs.settingDrawer.toggle():s==="fullScreen"?this.toggleFullscreen():s==="application"?this.$router.push({path:"/platform/application"}):s==="universalImport"?this.$refs.xlsxImport.open():s=="information"?this.$refs.informationMsg.open():this.$router.push({path:`/${s}`})},showtabs(){this.tabsReady=!0},hidetabs(){this.tabsReady=!1},toggleFullscreen(){if(!v.isEnabled){message.error(this.$i18nt("gd.account.browserNotSupported","\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u5168\u5C4F\u6A21\u5F0F?"));return}v.toggle(),v.isFullscreen?this.isFullscreen=!1:this.isFullscreen=!0},handleLogout(){let s=this;this.$confirm(this.$i18nt("gd.account.logOutContent","\u771F\u7684\u8981\u6CE8\u9500\u767B\u5F55\u5417?"),this.$i18nt("gd.account.logOutTip","\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.menu.logOutOk","\u786E\u8BA4"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,closeOnClickModal:!1,closeOnPressEscape:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,t,i)=>{if(e!=="confirm"){i();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,s.Logout().then(a=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,setTimeout(()=>{window.location.reload(),i()},100)})}})},fadeColor(s,e){let t=parseInt(s.substring(1,3),16),i=parseInt(s.substring(3,5),16),a=parseInt(s.substring(5,7),16);return`rgba(${t},${i},${a},${e})`},handleMessage(s){this.UnreadCount(s.count)},argumentsMessage(s){this.notificationInstance(s)},getDictionary(s){return this.$options.filters.dictData(s)},messageType(s){const e=this.messagetypeData.filter(t=>t.code==String(s.messagetype))[0];return e?this.$i18nt(`Dynamics.${e.transkey}`,e.name):s.messagetype},notificationInstance(s){const e=this.$i18nt("gd.btn.markAsRead","\u6807\u8BB0\u4E3A\u5DF2\u8BFB"),t=this.$i18nt("gd.btn.del","\u5220\u9664");let i=this.messageType(s),a="#67C23A";const n=this.$notify({title:s.title,message:'<div style="display: flex; flex-direction: column; gap: 16px;cursor: pointer;"><div style="flex: 1;width:245px;" id="notificationContent"><div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;color: rgba(0, 0, 0, 0.5);font-size: 12px;border: 1px solid #d6dbe3;border-radius: 2px;background: #e9ecf1;padding: 0 12px 0 12px;line-height: 18px;width: max-content;"><span style="font-weight: 500;">'+i+'</span></div><div style="font-size: 14px; color: #606266; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; white-space: normal; word-break: break-all;">'+s.message+'</div><div style="font-size: 12px; color: #909399; text-align: left;"></div></div><div style="display: flex; gap: 8px; justify-content: flex-start;"><button id="deleteBtn" style="padding: 4px 12px; border: 1px solid #dcdfe6; border-radius: 4px; background-color: #fff; cursor: pointer; font-size: 12px;">'+t+'</button><button id="markAsReadBtn" style="padding: 4px 12px; border: 1px solid '+a+"; border-radius: 4px; background-color: #fff; cursor: pointer; font-size: 12px;color: "+a+'; ">'+e+"</button></div></div>",dangerouslyUseHTMLString:!0,type:"info",position:"bottom-right",duration:5e3,customClass:"notification-card"});setTimeout(()=>{const o=document.getElementById("deleteBtn");o&&o.addEventListener("click",()=>{n.close()});const l=document.getElementById("markAsReadBtn");l&&l.addEventListener("click",()=>{this.beaseLoadComplete(s,n)});const h=document.getElementById("notificationContent");h&&h.addEventListener("click",()=>{this.markAsReadDetail(s),n.close()})},100)},beaseLoadComplete(s,e){const t=s.targetUrl.split("?")[1];let i="";if(t&&(i=new URLSearchParams(t).get("complete_request")),i==="")return;const a=decodeURIComponent(i),n=a.indexOf("?")===-1?a:a.slice(0,a.indexOf("?")),o=w.getParamsQuery(a);k.post(n,o),e.close()},markAsReadDetail(s){this.showDetails=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.viewFormDetails.open(s.targetUrl)},100)})},closeShowDetails(){this.showDetails=!1},handleClick(s,e){this.$nextTick(()=>{setTimeout(()=>{const t=s.name==="1"?"messageDataRefun":"readMessageDataRef";this.$refs[t]&&typeof this.$refs[t].init=="function"&&this.$refs[t].init()},10)})},...r.mapActions(["Logout","UnreadCount"])},created(){this.init()},async mounted(){this.imageUrl(),await this.$socket.authenticate(this.token),this.$socket.on("receive",this.handleMessage),this.$socket.on("arguments",this.argumentsMessage)},beforeDestroy(){this.$socket.off("receive",this.handleMessage),this.$socket.off("arguments",this.argumentsMessage)}};var V=function(){var e=this,t=e._self._c;return t("div",{staticClass:"user-wrapper",class:e.theme==="doubledark"?"user-wrapper-sider":""},[e.legalHasEnable===1&&e.userLegalShow?t("div",{staticClass:"user-legal",class:e.legaledClickShow?"user-legal-active":""},[t("div",{staticClass:"user-legal-name"},[e._v(e._s(e.getLegalName))]),t("div",{staticClass:"user-legal-sel"},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"\u8BF7\u9009\u62E9",size:"mini"},on:{"visible-change":e.selLegaled,change:e.changeLegal},model:{value:e.defaultLegalid,callback:function(i){e.defaultLegalid=i},expression:"defaultLegalid"}},[e._l(e.legalList,function(i){return[t("el-option",{key:i.id,attrs:{label:i.name,value:i.id}},[t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{"min-width":"76px","padding-right":"4px"}},[e._v(e._s(i.code))]),t("div",[e._v(e._s(i.name))])])])]})],2)],1)]):e._e(),e._l(e.menus,function(i){return[i.statu?[i.key==="user"?[i.key==="user"?t("el-popover",{ref:`popover_${i.key}`,refInFor:!0,attrs:{placement:"bottom-start",trigger:"click",tabindex:9999}},[t("div",{staticClass:"selectionl-popover",style:{"--dilute":e.fadeColord}},[t("div",{staticClass:"item",on:{click:function(a){return e.accountSetting(`popover_${i.key}`)}}},[t("i",{staticClass:"gd-icon-xitongshezhi gd-icons"}),t("span",[e._v(e._s(e.$i18nt("gd.menu.accountSettings","\u8D26\u53F7\u8BBE\u7F6E")))])]),t("div",{staticClass:"item",on:{click:function(a){return e.echartsManage(`popover_${i.key}`)}}},[t("i",{staticClass:"gd-icon-zhuzhuangtu gd-icons"}),t("span",[e._v(e._s(e.$i18nt("gd.menu.echarts","\u4E2A\u4EBA\u56FE\u8868\u7BA1\u7406")))])]),t("div",{staticClass:"popover-solid"},[t("el-divider")],1),e.hasLogout?t("div",{staticClass:"item",on:{click:function(a){return e.handleLogout(`popover_${i.key}`)}}},[t("i",{staticClass:"gd-icon-tuichudenglu1 gd-icons"}),t("span",[e._v(e._s(e.$i18nt("gd.menu.logOut","\u9000\u51FA\u767B\u5F55")))])]):e._e()]),t("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"},[t("div",{staticClass:"boxshadow user-dropdown-menu"},[e.userInfo.avatar?t("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:e.userInfo.avatar,expression:"userInfo.avatar"}],staticClass:"user-img"}):e.userInfo.filePath&&e.userInfo.photoUrl==""?t("img",{staticClass:"user-img",attrs:{src:e.getUserImg}}):t("img",{staticClass:"user-img",attrs:{src:"data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDACMYGh4aFiMeHB4nJSMpNFc4NDAwNGpMUD9Xfm+E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q6hCZ8JKuiLySxi/k/Y+M8hAhCEICuEUoYds73fkJRRElLlzvmNUUY+8hCVN4IpUVjdVf+Q+UlFHR4+5VLmjzLVa7s0688TYJBg73AVwNiAKuMvdVDqHEPm6JS6cjx+Sl63MY0HmrLFq7pF/SDNgwF6GFF5s5G9aCHc1VVw/PqCfPrFhxB3keZT+dOHklLl+Exg0d1IFU2rsSgawKA6nEb0BDGXbu5wRW3K7BczwOcQd+TYedDolV7SCGocsKL+8/k9GgAKq97L+iXohw/wCS9Gl0V46/JmszDvfGeauQfi33VdMZwE9GlGmgL9wA6i71PVpRoqG/UU3CJhA9mQh8WTJnjJXiIso3L4Gj2RL7p1Kl9162XVuUxA6mOzZkyZMmeD5jwOcT0gbqm4QdDJrPXOmDM94f0Psn/m6s/wCpBwIPb/k9c2g+D3nxnu9DCi/ayt+O5W5i7PWy1Lfpkwh7j5Az2nGn7KNqVSjhD1bhmw9a/wCy972qi6TYf3T5P//Z"}})]),t("div",{staticClass:"user-name"},[e._v(" "+e._s(e.userInfo.name)+" ")])])]):e._e()]:t("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{content:e.$i18nt(i.transkey,i.name),placement:"bottom","open-delay":150}},[t("span",{staticClass:"boxshadow user-dropdown-menu",on:{click:function(a){return e.hand(i.key)}}},[i.key==="universalImport"?t("i",{staticClass:"gd-icons gd-icon-mulu"}):i.key==="information"?t("el-badge",{staticClass:"item",attrs:{slot:"reference",hidden:e.unreadCount=="",value:e.unreadCount>99?"99+":e.unreadCount},slot:"reference"},[t("i",{staticClass:"gd-icons gd-icon-a-huabanbeifen35"})]):i.key==="advancedFind"?t("i",{staticClass:"gd-icons el-icon-search"}):i.key==="theme"?t("i",{staticClass:"gd-icons gd-icon-xitongshezhi"}):i.key==="fullScreen"?t("i",{staticClass:"gd-icons",class:e.isFullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda"}):i.key==="application"?t("i",{staticClass:"gd-icons gd-icon-yemian1"}):e._e()],1)])]:e._e()]}),t("SettingDrawer",{ref:"settingDrawer"}),t("XlsxImport",{ref:"xlsxImport",attrs:{typeImport:2}}),t("InformationMsg",{ref:"informationMsg"}),e.showDetails?t("gd-view-form-details",{ref:"viewFormDetails",on:{close:e.closeShowDetails}}):e._e()],2)},Y=[],X=r.normalizeComponent(J,V,Y,!1,null,"8ef0cac6",null,null);const G=X.exports,Z=Object.freeze(Object.defineProperty({__proto__:null,default:G},Symbol.toStringTag,{value:"Module"}));const W={props:{daySet:{type:Array,default:()=>[]}},data(){return{queryParam:{readStatus:"UNREAD"},list:[],notifications:[],confirmLoading:!1,pageNo:1,pageSize:20,totalRows:0,loading:!1,observer:null}},computed:{moreTitle(){let s=this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D...");return this.loading||(s=this.list.length>=this.totalRows?this.pageNo>1?this.$i18nt("gd.https.noMoreData","\u6682\u65E0\u66F4\u591A\u6570\u636E"):"":this.$i18nt("gd.https.loadMoreData","\u70B9\u51FB\u52A0\u8F7D\u66F4\u591A")),s},messagetypeData(){return this.getDictionary("messagetype")}},methods:{elLoadMore(){const s=this.$refs.moreTitle;!s||this.observer||(this.observer=new IntersectionObserver((e,t)=>{e.forEach(i=>{i.isIntersecting&&this.loadMore()})}),this.observer.observe(s))},loadMore(){this.loading||this.list.length>=this.totalRows||(this.pageNo+=1,this.getList(!1))},getDictionary(s){return this.$options.filters.dictData(s)},messageType(s){const e=this.messagetypeData.filter(t=>t.code==String(s.messagetype))[0];return e?this.$i18nt(`Dynamics.${e.transkey}`,e.name):s.messagetype},getList(s){return this.confirmLoading=!s,this.loading=!s,A.sysMessagePage(Object.assign({},this.queryParam,{pageNo:s?1:this.pageNo,pageSize:s?this.pageNo*this.pageSize:this.pageSize})).then(e=>{e.code===200&&(this.totalRows=e.data.totalrows,this.UnreadCount(e.data.totalrows),this.list=s||this.pageNo===1?e.data.rows:this.list.concat(e.data.rows),this.handOrganize(),this.$emit("notifications",e.data.rows),this.pageNo===1&&this.$nextTick(()=>{setTimeout(()=>{this.elLoadMore()},0)})),this.confirmLoading=!1})},init(s){s?this.getList(!0):(this.pageNo=1,this.list=[],this.notifications=[],this.getList(!1))},handOrganize(){let s=[],e=[];this.list.forEach(t=>{const i=t.createdtime.split(" ")[0];s.includes(i)?e[e.length-1].messages.push(t):(s.push(i),e.push(Object.assign({},t,{groupdate:i,messages:[t]})))}),this.notifications=e,this.loading=!1},markAsRead(s){console.log(s),this.beaseLoadComplete(s)},beaseLoadComplete(s){const e=s.targeturl.split("?")[1];let t="";if(e&&(t=new URLSearchParams(e).get("complete_request")),t==="")return;const i=decodeURIComponent(t),a=i.indexOf("?")===-1?i:i.slice(0,i.indexOf("?")),n=w.getParamsQuery(i);k.post(a,n),setTimeout(()=>{this.init(!0)},1e3)},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(i=>i.code==s)[0];return t!=null&&t.colour?t.colour:null},markAsReadDetail(s){this.$emit("markAsRead",s),setTimeout(()=>{this.init(!0)},3e3)},...r.mapActions(["UnreadCount"])},beforeDestroy(){this.observer&&this.observer.disconnect()}};var ee=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"70%"}},[t("div",{staticClass:"notification-list"},[e._l(e.notifications,function(i,a){return t("div",[t("div",{staticClass:"notification-date",class:a===0?"notification-daten":""},[e.daySet[0].includes(i.groupdate)?t("span",[e._v(" "+e._s(e.$i18nt("gd.view.today","\u4ECA\u5929"))+" ")]):e.daySet[1].includes(i.groupdate)?t("span",[e._v(" "+e._s(e.$i18nt("gd.view.yesterday","\u6628\u5929"))+" ")]):t("span",[e._v(e._s(i.groupdate))])]),e._l(i.messages,function(n,o){return t("div",{key:n.id,staticClass:"notification-item",class:o===i.messages.length-1?"notification-itemn":"",on:{click:function(l){return e.markAsReadDetail(n)}}},[t("div",{staticClass:"notification-content"},[t("div",{staticClass:"notification-message"},[t("div",{staticClass:"name line1"},[e._v(e._s(n.name))]),t("div",{staticClass:"du",on:{click:function(l){return l.stopPropagation(),e.markAsRead(n)}}},[e._v(e._s(e.$i18nt("gd.menu.markAsRead","\u6807\u4E3A\u5DF2\u8BFB")))])]),t("div",{staticClass:"notification-detail line1",attrs:{title:n.content}},[e._v(e._s(n.content))]),t("div",{staticClass:"notification-nav"},[t("div",{staticClass:"notification-type"},[e._v(e._s(e.messageType(n)))]),t("div",{staticClass:"notification-time"},[e._v(e._s(n.createdtime))])])])])})],2)}),!e.confirmLoading&&e.notifications.length==0?t("div",{staticClass:"none"},[t("div",{staticClass:"empty"},[t("i",{staticClass:"el-icon-receiving"}),t("div",{staticClass:"empty-err"},[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):e._e(),e.totalRows>0?t("div",{ref:"moreTitle",staticClass:"list-more",class:{"active-item":e.totalRows>0&&e.list.length>=e.totalRows,"list-morep":e.moreTitle!==""||e.loading}},[e.loading?t("i",{staticClass:"el-icon-loading"}):e._e(),t("div",{staticClass:"more-title",on:{click:e.loadMore}},[e._v(e._s(e.moreTitle))])]):e._e()],2)])},te=[],se=r.normalizeComponent(W,ee,te,!1,null,"7ac208ea",null,null);const ie=se.exports;const ne={props:{daySet:{type:Array,default:()=>[]}},data(){return{queryParam:{readStatus:"READ"},list:[],notifications:[],confirmLoading:!1,showDetails:!1,pageNo:1,pageSize:20,totalRows:0,loading:!1,observer:null}},computed:{moreTitle(){let s=this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D...");return this.loading||(s=this.list.length>=this.totalRows?this.pageNo>1?this.$i18nt("gd.https.noMoreData","\u6682\u65E0\u66F4\u591A\u6570\u636E"):"":this.$i18nt("gd.https.loadMoreData","\u70B9\u51FB\u52A0\u8F7D\u66F4\u591A")),s},messagetypeData(){return this.getDictionary("messagetype")}},methods:{elLoadMore(){const s=this.$refs.moreTitle;!s||this.observer||(this.observer=new IntersectionObserver((e,t)=>{e.forEach(i=>{i.isIntersecting&&this.loadMore()})}),this.observer.observe(s))},loadMore(){this.loading||this.list.length>=this.totalRows||(this.pageNo+=1,this.getList(!1))},getDictionary(s){return this.$options.filters.dictData(s)},messageType(s){const e=this.messagetypeData.filter(t=>t.code==String(s.messagetype))[0];return e?this.$i18nt(`Dynamics.${e.transkey}`,e.name):s.messagetype},getList(s){return this.confirmLoading=!0,this.loading=!0,A.sysMessagePage(Object.assign({},this.queryParam,{pageNo:s?1:this.pageNo,pageSize:s?this.pageNo*this.pageSize:this.pageSize})).then(e=>{e.code===200&&(this.totalRows=e.data.totalrows,this.list=s||this.pageNo===1?e.data.rows:this.list.concat(e.data.rows),this.handOrganize(),this.$emit("notifications",e.data.rows),this.pageNo===1&&this.$nextTick(()=>{setTimeout(()=>{this.elLoadMore()},0)})),this.confirmLoading=!1})},init(s){s?this.getList(!0):(this.pageNo=1,this.list=[],this.notifications=[],this.getList(!1))},handOrganize(){let s=[],e=[];this.list.forEach(t=>{const i=t.createdtime.split(" ")[0];s.includes(i)?e[e.length-1].messages.push(t):(s.push(i),e.push(Object.assign({},t,{groupdate:i,messages:[t]})))}),this.loading=!1,this.notifications=e},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(i=>i.code==s)[0];return t!=null&&t.colour?t.colour:null},markAsRead(s){this.$emit("markAsRead",s)}},beforeDestroy(){this.observer&&this.observer.disconnect()}};var ae=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"70%"}},[t("div",{staticClass:"notification-list"},[e._l(e.notifications,function(i,a){return t("div",[t("div",{staticClass:"notification-date",class:a===0?"notification-daten":""},[e.daySet[0].includes(i.groupdate)?t("span",[e._v(" "+e._s(e.$i18nt("gd.view.today","\u4ECA\u5929"))+" ")]):e.daySet[1].includes(i.groupdate)?t("span",[e._v(" "+e._s(e.$i18nt("gd.view.yesterday","\u6628\u5929"))+" ")]):t("span",[e._v(e._s(i.groupdate))])]),e._l(i.messages,function(n,o){return t("div",{key:n.id,staticClass:"notification-item",class:o===i.messages.length-1?"notification-itemn":"",on:{click:function(l){return e.markAsRead(n)}}},[t("div",{staticClass:"notification-content"},[t("div",{staticClass:"notification-message"},[e._v(" "+e._s(n.name)+" ")]),t("div",{staticClass:"notification-detail line1",attrs:{title:n.content}},[e._v(e._s(n.content))]),t("div",{staticClass:"notification-nav"},[t("div",{staticClass:"notification-type"},[e._v(e._s(e.messageType(n)))]),t("div",{staticClass:"notification-time"},[e._v(e._s(n.createdtime))])])])])})],2)}),!e.confirmLoading&&e.notifications.length==0?t("div",{staticClass:"none"},[t("div",{staticClass:"empty"},[t("i",{staticClass:"el-icon-receiving"}),t("div",{staticClass:"empty-err"},[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):e._e(),e.totalRows>0?t("div",{ref:"moreTitle",staticClass:"list-more",class:{"active-item":e.totalRows>0&&e.list.length>=e.totalRows,"list-morep":e.moreTitle!==""||e.loading}},[e.loading?t("i",{staticClass:"el-icon-loading"}):e._e(),t("div",{staticClass:"more-title",on:{click:e.loadMore}},[e._v(e._s(e.moreTitle))])]):e._e()],2)])},oe=[],le=r.normalizeComponent(ne,ae,oe,!1,null,"2bb8f9c6",null,null);const re=le.exports;const ce={data(){return{visible:!1,width:"384px",type:"messageDataRefun",showDetails:!1,notificationsData:[]}},computed:{daySet(){const s=new Date().getTime(),e=new Date().getTime()-24*60*60*1e3;return[this.getDayNum(s),this.getDayNum(e)]},...r.mapGetters(["unreadCount"])},components:{MessageData:ie,ReadMessageData:re},methods:{notifications(s){this.notificationsData=s},closeShowDetails(){this.showDetails=!1,this.refresh(!0)},markAsRead(s,e){this.showDetails=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.viewFormDetails.open(s.targeturl)},100)})},refresh(s=!0){this.$nextTick(()=>{setTimeout(()=>{const e=this.$refs[this.type];e&&e.init(s)})})},open(){this.visible=!0,this.refresh(!1)},readOneClick(){this.$confirm(this.$i18nt("gd.https.oneClickRead","\u662F\u5426\u4E00\u952E\u5DF2\u8BFB\u6D88\u606F?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.btn.confirm","\u786E\u8BA4"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,e,t)=>{if(s!=="confirm"){t();return}this.oneClick(s,e,t)}})},oneClick(s,e,t){e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,A.sysMessageMarkAllAsRead().then(i=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,i.code==200||i.code==204?(t(),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message)})},getDayNum(s){const e=new Date(s),t=e.getFullYear(),i=e.getMonth()+1,a=e.getDate();return`${t}-${this.formatNumber(i)}-${this.formatNumber(a)}`},formatNumber(s){return s=s.toString(),s[1]?s:"0"+s}}};var de=function(){var e=this,t=e._self._c;return t("div",[t("el-drawer",{attrs:{visible:e.visible,"close-on-press-escape":!1,"append-to-body":!1,"modal-append-to-body":!0,size:e.width,"show-close":!1,modal:!1,"custom-class":"gd-drawer-msg",withHeader:!1},on:{"update:visible":function(i){e.visible=i}}},[t("div",{staticClass:"drawer-main"},[t("div",{staticClass:"title"},[t("el-radio-group",{on:{input:function(i){return e.refresh(!1)}},model:{value:e.type,callback:function(i){e.type=i},expression:"type"}},[t("el-radio-button",{attrs:{label:"messageDataRefun"}},[e._v(" "+e._s(e.$i18nt("gd.menu.unreadMessage","\u672A\u8BFB\u6D88\u606F"))+" "),e.unreadCount>0?t("span",[e._v("("+e._s(e.unreadCount)+")")]):e._e()]),t("el-radio-button",{attrs:{label:"readMessageDataRef"}},[e._v(e._s(e.$i18nt("gd.menu.readMessages","\u5DF2\u8BFB\u6D88\u606F")))])],1),e.notificationsData.length>0?t("i",{staticClass:"gd-icons gd-icon-qinglihuancun",attrs:{title:e.$i18nt("gd.menu.oneClickRead","\u4E00\u952E\u5DF2\u8BFB")},on:{click:e.readOneClick}}):e._e()],1),e.visible?t("div",{staticClass:"content"},[t("MessageData",{directives:[{name:"show",rawName:"v-show",value:e.type==="messageDataRefun",expression:"type === 'messageDataRefun'"}],ref:"messageDataRefun",attrs:{daySet:e.daySet},on:{markAsRead:e.markAsRead,notifications:e.notifications}}),t("ReadMessageData",{directives:[{name:"show",rawName:"v-show",value:e.type==="readMessageDataRef",expression:"type === 'readMessageDataRef'"}],ref:"readMessageDataRef",attrs:{daySet:e.daySet},on:{markAsRead:e.markAsRead}})],1):e._e()])]),e.showDetails?t("gd-view-form-details",{ref:"viewFormDetails",on:{close:e.closeShowDetails}}):e._e()],1)},ue=[],he=r.normalizeComponent(ce,de,ue,!1,null,"31d58d64",null,null);const me=he.exports,ge=Object.freeze(Object.defineProperty({__proto__:null,default:me},Symbol.toStringTag,{value:"Module"}));exports.index=F;exports.userMenus=Z;
1
+ "use strict";const r=require("./components.answerquestions.9c7165c4.js"),p=require("./http.loginmanage.326984c3.js"),E=require("vue"),k=require("./http.main.8543ccc4.js"),w=require("./utils.util.js.dffba0f0.js"),I=require("./http.filemanage.0cf7a879.js"),y=require("./http.legal.05562d70.js"),A=require("./http.noticemanage.2507d094.js"),S=s=>s&&typeof s=="object"&&"default"in s?s:{default:s},C=S(E);var m=null;const $={props:{menus:{type:Array,required:!0},collapsed:{type:Boolean,required:!1,default:!1},activeKey:{type:String,default:""}},data(){return{record:{},visible:!1,modeMenus:"singleton",name:"",appMenus:[],omodeMenus:"singleton"}},computed:{getUserFavoriteMenu(){let s=[];return this.userFavoriteMenu.forEach(e=>{s.push(e.menuid)}),s},favoriteMenus(){let s=[];return this.appMenus.map(e=>{e.children.map(t=>{t.type==1&&s.push(Object.assign(t,{menus:e})),t.children&&t.children.map(i=>{s.push(Object.assign(i,{menus:e}))})})}),s.filter(e=>this.getUserFavoriteMenu.includes(e.id))},modeList(){let s=[];return this.menus.forEach(e=>{(this.modeMenus==="singleton"&&e.code===this.record.code||this.modeMenus==="multiple")&&s.push(e.code)}),s},getMode(){let s="gd-icon-bullet-list--points-bullet-unordered-list-lists-bu";return this.modeMenus==="multiple"?s="gd-icon-application":this.modeMenus==="collect"&&(s="gd-icon-star"),s},lstyle(){let s=this.menusWidth.split("&"),e=372;if(s[0]==="secondary")e=472;else if(s[0]==="big")e=672;else if(s[0]==="custom")return`flex:0 0 ${s[1]}px`;return`flex:0 0 ${e}px`},styleds(){return{padding:this.collapsed?`0 0 0 ${this.sidebarConfig.foldWidth}px`:`0 0 0 ${this.sidebarConfig.horizontalWidth}px`}},mstyle(){return{"--bjsmenuvar":"#282c31","--bjseachvar":"#111314"}},cstyle(){return`color:${this.primaryColor}`},fadeColord(){return this.fadeColor(this.primaryColor,.1)},...r.mapGetters(["userInfo","primaryColor","menusSearchMode","userFavoriteMenu","menusWidth","theme","sidebarConfig"])},methods:{seachName(s){let e=[...this.appMenus];e.forEach((t,i)=>{t.children.forEach((o,l)=>{let h=[];o.children&&(o.children.forEach((g,x)=>{let D=this.$i18nt(`Dynamics.${g.transkey}`,g.meta.title);e[i].children[l].children[x].show=D.toLowerCase().includes(s.toLowerCase())}),h=o.children.filter(g=>g.show));let M=this.$i18nt(`Dynamics.${o.transkey}`,o.meta.title);e[i].children[l].show=h.length>0?!0:M.toLowerCase().includes(s.toLowerCase())});let a=this.$i18nt(`Dynamics.${t.transkey}`,t.name),n=t.children.filter(o=>o.show)[0];e[i].show=n!==void 0?!0:a.toLowerCase().includes(s.toLowerCase())}),this.appMenus=[...e],s===""&&this.modeMenus==="multiple"&&this.scrollToAnchor(this.record)},query(){this.seachName(this.name.trim())},changeName(s){this.seachName(s.trim())},refreshCollect(){m&&clearTimeout(m),m=setTimeout(()=>{this.getSysBookmarkPage()},2e3)},countCollect(s,e,t){let i=this.userFavoriteMenu.filter(a=>a.menuId!=s.id);e===1&&i.push(t),this.UserFavoriteMenu(i),this.refreshCollect()},collectMenu(s,e){if(m&&clearTimeout(m),e===1){this.sysBookmarkAdd(s).then(t=>{t.success&&this.countCollect(s,e,t.data)});return}this.sysBookmarkDelete(s).then(t=>{t.success&&this.countCollect(s,e)})},sysBookmarkAdd(s){let e={userId:this.userInfo.id,menuId:s.id,order:0,name:s.meta.title};return p.sysBookmarkAdd(e).then(t=>t)},sysBookmarkDelete(s){let t={id:this.userFavoriteMenu.filter(i=>i.menuid==s.id)[0].id};return p.sysBookmarkDelete(t).then(i=>i)},getSysBookmarkPage(){let s={userId:this.userInfo.id,pageNo:1,pageSize:200};p.sysBookmarkPage(s).then(e=>{e.code===200&&this.UserFavoriteMenu(e.data.rows)})},selMode(s){s!==this.modeMenus&&(this.omodeMenus=this.modeMenus==="collect"?this.omodeMenus:this.modeMenus,this.modeMenus=s,this.MenusSearchMode(s),s==="multiple"&&this.scrollToAnchor(this.record),this.$refs.popover_seach.doClose())},mouseenter(){this.$emit("mouseenter")},mouseleave(){this.$emit("mouseleave")},open(s){this.record=s,this.visible=!0,this.scrollToAnchor(s)},close(){this.visible=!1,this.$emit("close")},setAppMenus(s){this.appMenus=s},goPath(s,e,t){(s.type===void 0?e:s.type)===1&&(this.$emit("goPath",{data:t,item:s}),this.name!==""&&(this.name="",this.query()),this.modeMenus==="collect"&&(this.modeMenus=this.omodeMenus),this.close(),this.$nextTick(()=>{setTimeout(()=>{if((s.opentype!==void 0?s.opentype:1)===2){const n=s.meta.link;n&&window.open(n,s.key);return}this.$router.push({name:s.name})},0)}))},scrollToAnchor(s){this.$nextTick(()=>{let e=document.getElementById(`gd-menus-item-${s.code}`);e&&e.scrollIntoView({behavior:"auto"})})},fadeColor(s,e){let t=parseInt(s.substring(1,3),16),i=parseInt(s.substring(3,5),16),a=parseInt(s.substring(5,7),16);return`rgba(${t},${i},${a},${e})`},...r.mapActions(["MenusSearchMode","UserFavoriteMenu"])},created(){this.modeMenus=this.menusSearchMode}};var T=function(){var e=this,t=e._self._c;return t("div",{style:e.mstyle},[e.visible?t("div",{staticClass:"gd-menus",class:e.theme==="light"?"":"gd-menus-dark",style:e.styleds},[t("div",{staticClass:"gd-menus-list",style:e.lstyle,on:{mouseenter:e.mouseenter,mouseleave:e.mouseleave}},[t("div",{staticClass:"gd-seach"},[t("el-input",{staticClass:"inpu",attrs:{placeholder:e.$i18nt("gd.menu.searchModeName","\u8BF7\u8F93\u5165\u5185\u5BB9"),clearable:""},on:{input:e.changeName},model:{value:e.name,callback:function(i){e.name=i},expression:"name"}},[t("el-popover",{ref:"popover_seach",staticClass:"el-input__icon",attrs:{slot:"prefix",placement:"top-start",trigger:"hover"},slot:"prefix"},[t("div",{staticClass:"popover-hand",style:{"--dilute":e.fadeColord},on:{mouseenter:e.mouseenter}},[t("div",{staticClass:"popover-hand-name",class:e.modeMenus==="singleton"?"inpu-item-activ":"",on:{click:function(i){return i.stopPropagation(),e.selMode("singleton")}}},[t("i",{staticClass:"gd-icons gd-icon-bullet-list--points-bullet-unordered-list-lists-bu"}),e._v(" "+e._s(e.$i18nt("gd.menu.singletonMode","\u5355\u4F8B\u6A21\u5F0F"))+" ")]),t("div",{staticClass:"popover-hand-name",class:e.modeMenus==="multiple"?"inpu-item-activ":"",on:{click:function(i){return i.stopPropagation(),e.selMode("multiple")}}},[t("i",{staticClass:"gd-icons gd-icon-application"}),e._v(" "+e._s(e.$i18nt("gd.menu.multipleMode","\u591A\u4F8B\u6A21\u5F0F"))+" ")]),t("div",{staticClass:"popover-hand-name",class:e.modeMenus==="collect"?"inpu-item-activ":"",on:{click:function(i){return i.stopPropagation(),e.selMode("collect")}}},[t("i",{staticClass:"gd-icons gd-icon-star"}),e._v(" "+e._s(e.$i18nt("gd.menu.collectMode","\u6536\u85CF\u6A21\u5F0F"))+" ")])]),t("i",{staticClass:"gd-icons",class:e.getMode,staticStyle:{"line-height":"32px","padding-left":"2px",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"})]),t("i",{staticClass:"el-input__icon el-icon-search",staticStyle:{"font-size":"16px",cursor:"pointer"},attrs:{slot:"suffix"},on:{click:e.query},slot:"suffix"})],1)],1),e.modeMenus==="collect"?t("div",{staticClass:"gd-center"},[t("div",{staticClass:"gd-menus-item"},[t("div",{staticClass:"item-list"},[e._l(e.favoriteMenus,function(i){return[t("div",{staticClass:"item",on:{click:function(a){return e.goPath(i,2,i.menus)}}},[i.meta&&i.meta.icon&&i.meta.icon!=="none"?t("div",{staticClass:"iteml"},[t("i",{staticClass:"gd-icons icons-menu",class:i.meta.icon,staticStyle:{"font-size":"16px"}})]):e._e(),t("div",{staticClass:"gdtitle line1",attrs:{title:e.$i18nt(`Dynamics.${i.transkey}`,i.meta.title)}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.meta.title))+" ")]),t("div",{staticClass:"item-collect"},[t("i",{staticClass:"collect el-icon-delete",staticStyle:{color:"red"},on:{click:function(a){return a.stopPropagation(),e.collectMenu(i,2)}}})])])]})],2)])]):t("div",{staticClass:"gd-center",class:e.modeMenus==="multiple"?"gd-centerbj":""},[e._l(e.appMenus,function(i,a){return[e.modeList.includes(i.code)?t("div",{staticClass:"gd-menus-item",class:a!=0&&i.show?"gd-menus-itembj":"",attrs:{id:`gd-menus-item-${i.code}`}},[i.show&&e.modeMenus==="multiple"?t("div",{staticClass:"divider"},[t("div",{staticClass:"dividerl"},[t("i",{staticClass:"gd-icons icons-menu",class:i.icon})]),t("span",{staticClass:"gdtitle gd-bold-fonts",attrs:{title:e.$i18nt(`Dynamics.${i.transkey}`,i.name)}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.name))+" ")])]):e._e(),e._l(i.children,function(n){return[!n.hidden&&n.show?t("div",[n.type==1?t("div",{staticClass:"item-list"},[t("div",{staticClass:"item",class:n.path===e.activeKey?"itemactive":"",on:{click:function(o){return e.goPath(n,1,i)}}},[n.meta&&n.meta.icon&&n.meta.icon!=="none"?t("div",{staticClass:"iteml"},[t("i",{staticClass:"gd-icons icons-menu",class:n.meta.icon})]):e._e(),t("div",{staticClass:"gdtitle line1",attrs:{title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title))+" ")]),e.getUserFavoriteMenu.includes(n.id)?t("div",{staticClass:"item-collected"},[e.getUserFavoriteMenu.includes(n.id)?t("i",{staticClass:"gd-icons gd-icon-star-full",style:e.cstyle,on:{click:function(o){return o.stopPropagation(),e.collectMenu(n,2)}}}):t("i",{staticClass:"gd-icons gd-icon-star",style:e.cstyle,on:{click:function(o){return o.stopPropagation(),e.collectMenu(n,2)}}})]):t("div",{staticClass:"item-collect"},[t("i",{staticClass:"gd-icons collect gd-icon-star",style:e.cstyle,on:{click:function(o){return o.stopPropagation(),e.collectMenu(n,1)}}})])])]):t("div",{staticClass:"dividers"},[e.modeMenus==="singleton"?t("el-divider",{attrs:{orientation:"left","content-position":"left"}},[t("span",{staticClass:"gdtitle",class:n.path===e.activeKey?"itemactive":"",attrs:{title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)},on:{click:function(o){return e.goPath(n,2,i)}}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title))+" ")])]):t("span",{staticClass:"gdtitle",class:n.path===e.activeKey?"itemactive":"",attrs:{title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)},on:{click:function(o){return e.goPath(n,2,i)}}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title))+" ")])],1),n.children?t("div",{staticClass:"item-list"},[e._l(n.children,function(o){return[!o.hidden&&o.show?t("div",{staticClass:"item",class:o.path===e.activeKey?"itemactive":"",on:{click:function(l){return e.goPath(o,1,i)}}},[o.meta&&o.meta.icon&&o.meta.icon!=="none"?t("div",{staticClass:"iteml"},[t("i",{staticClass:"icons-menu gd-icons",class:o.meta.icon,staticStyle:{"font-size":"16px"}})]):e._e(),t("div",{staticClass:"gdtitle line1",attrs:{title:e.$i18nt(`Dynamics.${o.transkey}`,o.meta.title)}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${o.transkey}`,o.meta.title))+" ")]),e.getUserFavoriteMenu.includes(o.id)?t("div",{staticClass:"item-collected"},[e.getUserFavoriteMenu.includes(o.id)?t("i",{staticClass:"gd-icons gd-icon-star-full",style:e.cstyle,on:{click:function(l){return l.stopPropagation(),e.collectMenu(o,2)}}}):t("i",{staticClass:"gd-icons gd-icon-star",style:e.cstyle,on:{click:function(l){return l.stopPropagation(),e.collectMenu(o,2)}}})]):t("div",{staticClass:"item-collect"},[t("i",{staticClass:"gd-icons collect gd-icon-star",style:e.cstyle,on:{click:function(l){return l.stopPropagation(),e.collectMenu(o,1)}}})])]):e._e()]})],2):e._e()]):e._e()]})],2):e._e()]}),t("div",{staticClass:"zhan-bj"})],2)]),t("div",{staticClass:"gd-menus-close",on:{click:e.close}})]):e._e()])},R=[],B=r.normalizeComponent($,T,R,!1,null,"4b68d7ea",null,null);const L=B.exports;var d=null;const z={name:"GdSideNavMenu",props:{basicAttribute:{type:Object,default:()=>({})}},data(){return{defApp:"",defMenus:[],activeKey:"",defaultActive:"",activeData:{},type:"click"}},components:{UserLogo:()=>Promise.resolve().then(()=>H),SidebarMenus:L},computed:{componentItem(){const s=this.$importViewFiles();let e=`..${this.customizeNavMenu}`,t=s[e];return t?t.default:null},apps(){return this.userInfo.apps},styled(){let s=this.sidebar?`${this.sidebarConfig.foldWidth}px`:`${this.sidebarConfig.horizontalWidth}px`;return this.navMenuTheme==="fold"?s=this.sidebar?`${this.sidebarConfig.foldWidth}px`:`${this.sidebarConfig.verticalWidth}px`:this.navMenuTheme==="customize"&&(s=this.sidebar?`${this.sidebarConfig.foldWidth}px`:`${this.sidebarConfig.customizeWidth}px`),{width:s,"--bjmenuvar":"#1d2126"}},...r.mapGetters(["userInfo","addRouters","userFavoriteMenu","theme","sidebar","userFavoriteMenu","navMenuTheme","primaryColor","sidebar","sidebarConfig","customizeNavMenu"])},watch:{$route(s){this.changeRoute(s)}},methods:{selectMenus(s){if(this.defaultActive===s)return;let e={};const t=n=>(n=n.filter(o=>{const l=o.code?o.code:o.key;return s===l&&(e=o),o.children&&(o.children=t(o.children)),!0}),n);if(t(this.defMenus),(e.type===void 0?1:e.type)!==1)return;if((e.opentype!==void 0?e.opentype:1)===2){const n=e.meta.link;n&&window.open(n);return}this.$router.push({name:e.name}),this.defaultActive=e.code?e.code:e.key,this.activeData=e},getDefApp(s){let e=s&&s.name?s.name:"";this.type="";let t="";this.apps.forEach(i=>{i.menus&&i.menus.forEach(a=>{a.name&&e===a.name&&!a.hidden&&(t=i.code)})}),this.defApp=t},goPath(s){this.defApp=s.data.code,this.activeData=s.data.item},getSysBookmarkPage(){this.userInfo.bookmarks&&this.UserFavoriteMenu(this.userInfo.bookmarks);let s={userId:this.userInfo.id,pageNo:1,pageSize:200};p.sysBookmarkPage(s).then(e=>{e.code===200&&this.UserFavoriteMenu(e.data.rows)})},init(){const s=t=>(t=t.filter(i=>(i.children&&(i.children=s(i.children),i.showLeg=i.children.filter(a=>a.show).length,i.show=i.showLeg===0?!1:i.show),!0)),t);let e=[...this.apps];e.forEach((t,i)=>{const a=t.menus.map(o=>(o.show=o.meta.show,o));let n=[];this.listToTree(a,n,0),e[i].children=[...n],e[i].show=!0}),e=s(e).filter(t=>t.children.filter(a=>a.show).length===0?!1:t.show),this.defMenus=[...e],this.$nextTick(()=>{setTimeout(()=>{this.$refs.sMenu.setAppMenus(e)},100)})},mouseenterMenu(){d&&clearTimeout(d),this.type=this.type!=="click"?"mouse":this.type},mouseleaveMenu(){d&&clearTimeout(d),this.type==="mouse"&&(d=setTimeout(()=>{this.$refs.sMenu.close()},100))},mouseenter(s){d&&clearTimeout(d),this.type!=="click"&&(this.type=this.type!=="click"?"mouse":this.type,this.$refs.sMenu.open(s))},mouseleave(){d&&clearTimeout(d),this.type!=="click"&&(d=setTimeout(()=>{this.$refs.sMenu.close()},300))},changeRoute(s){this.activeKey=s.fullPath,this.activeData=s,this.getDefApp(s)},getDefApp(s){let e=s&&s.name?s.name:"";this.defaultActive=e,this.type="";let t="";this.apps.forEach(i=>{i.menus&&i.menus.forEach(a=>{a.name&&e===a.name&&!a.hidden&&(t=i.code)})}),this.defApp=t},goPath(s){this.defApp=s.data.code,this.activeData=s.data.item},selItem(s){this.type="click",this.defApp=s.code,this.$refs.sMenu.open(s)},listToTree(s,e,t){s&&s.forEach(i=>{if(i.pid==t){const a={...i,key:i.key||i.name,children:[]};this.listToTree(s,a.children,i.id),a.children.length<=0&&delete a.children,e.push(a)}})},...r.mapActions(["UserFavoriteMenu"])},created(){this.init(),this.changeRoute(this.$route),this.getSysBookmarkPage()}};var P=function(){var e=this,t=e._self._c;return t("div",[e.componentItem?t("div",{staticClass:"gd-sider",class:e.theme==="light"?"":"gd-sider-dark",style:e.styled},[t(e.componentItem,{tag:"component",attrs:{basicAttribute:e.basicAttribute,defMenus:e.defMenus,sidebar:e.sidebar,defApp:e.defApp},on:{selectMenus:e.selectMenus}})],1):t("div",{staticClass:"gd-sider",class:e.theme==="light"?"":"gd-sider-dark",style:e.styled},[e.basicAttribute.logoOpen?t("UserLogo",{attrs:{basicAttribute:e.basicAttribute}}):e._e(),e.navMenuTheme==="vertical"?t("div",{staticClass:"gd-app"},[e._l(e.defMenus,function(i,a){return[t("div",{staticClass:"item",class:[e.sidebar?"sitem":"",i.code===e.defApp?"itemactive":""],attrs:{title:e.$i18nt(`Dynamics.${i.transkey}`,i.name)},on:{click:function(n){return e.selItem(i)},mouseenter:function(n){return e.mouseenter(i)},mouseleave:e.mouseleave}},[t("i",{staticClass:"gd-icons",class:i.icon}),e.sidebar?e._e():t("div",{staticClass:"pname line1"},[e._v(" "+e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.name))+" ")]),i.code===e.defApp&&!e.sidebar?t("i",{staticClass:"el-icon-arrow-right"}):e._e()])]})],2):t("div",{staticClass:"gd-app"},[e._l(e.defMenus,function(i,a){return[t("el-menu",{staticClass:"el-menu-vertical-demo",class:[e.sidebar?"sitem":""],attrs:{"default-active":e.defaultActive,"background-color":e.theme==="light"?"#fff":"#1d2126","text-color":e.theme==="light"?"#333":"#fff","active-text-color":e.primaryColor,collapse:e.sidebar},on:{select:e.selectMenus}},[i.children&&i.children.length>0?t("el-submenu",{attrs:{index:i.code}},[t("template",{slot:"title"},[t("i",{staticClass:"gd-icons",class:i.icon,staticStyle:{"padding-right":"4px"}}),t("span",[e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.name)))])]),e._l(i.children,function(n,o){return[n.children&&n.children.length>0?t("el-submenu",{attrs:{index:n.key,title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)}},[t("template",{slot:"title"},[t("i",{staticClass:"gd-icons",class:n.icon,staticStyle:{"padding-right":"4px"}}),t("span",[e._v(e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)))])]),e._l(n.children,function(l,h){return[t("el-menu-item",{attrs:{index:l.key,title:e.$i18nt(`Dynamics.${l.transkey}`,l.meta.title)}},[t("template",{slot:"title"},[t("i",{staticClass:"gd-icons",class:l.icon,staticStyle:{"padding-right":"4px"}}),t("span",[e._v(e._s(e.$i18nt(`Dynamics.${l.transkey}`,l.meta.title)))])])],2)]})],2):t("el-menu-item",{attrs:{index:n.key,title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)}},[t("i",{staticClass:"gd-icons",class:n.icon,staticStyle:{"padding-right":"4px"}}),t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)))])])]})],2):t("el-menu-item",{attrs:{index:i.code}},[t("i",{staticClass:"gd-icons",class:i.icon,staticStyle:{"padding-right":"4px"}}),t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`,e.ite.meta.title)))])])],1)]})],2)],1),t("SidebarMenus",{ref:"sMenu",attrs:{collapsed:e.sidebar,menus:e.defMenus,activeKey:e.activeKey},on:{goPath:e.goPath,close:function(i){return e.getDefApp(e.activeData)},mouseenter:e.mouseenterMenu,mouseleave:e.mouseleaveMenu}})],1)},U=[],N=r.normalizeComponent(z,P,U,!1,null,"b5b772ef",null,null);const f=N.exports;f.install=function(s){s.component(f.name,f)};const F=Object.freeze(Object.defineProperty({__proto__:null,default:f},Symbol.toStringTag,{value:"Module"}));const Q={props:{basicAttribute:{type:Object,default:()=>({})}},data(){return{}},computed:{options(){return this.basicAttribute.logo||{}},tstyle(){return`font-size:${this.options.titleFont!==void 0?this.options.titleFont:15}px`},ystyle(){return`font-size:${this.options.subtitleFont!==void 0?this.options.subtitleFont:11}px`},...r.mapGetters(["userInfo","addRouters","userFavoriteMenu","theme","sidebar"])},methods:{}};var K=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"user-logo",class:e.theme==="light"?"":"user-logo-dark"},[e.options.mode==="imageWithText"?t("div",{staticClass:"logo"},[t("div",{staticClass:"picture"},[e.options.smallPicture?t("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:e.options.smallPicture,expression:"options.smallPicture"}],staticClass:"img",attrs:{"data-url":e.options.smallPicture,"data-load":"Y"}}):e._e()]),e.sidebar?e._e():t("div",{staticClass:"company"},[t("div",{staticClass:"title line1",style:e.tstyle},[e._v(e._s(e.options.title))]),t("div",{staticClass:"ytitle line1",style:e.ystyle},[e._v(e._s(e.options.subtitle))])])]):t("div",{staticClass:"logo"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.sidebar,expression:"sidebar"}],staticClass:"picture"},[e.options.smallPicture?t("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:e.options.smallPicture,expression:"options.smallPicture"}],staticClass:"img",attrs:{"data-url":e.options.smallPicture,"data-load":"Y"}}):e._e()]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.sidebar,expression:"!sidebar"}],staticClass:"bpicture"},[e.options.bigPicture?t("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:e.options.bigPicture,expression:"options.bigPicture"}],staticClass:"img",attrs:{"data-url":e.options.bigPicture,"data-load":"Y"}}):e._e()])])])])},j=[],O=r.normalizeComponent(Q,K,j,!1,null,"7da26c1e",null,null);const q=O.exports,H=Object.freeze(Object.defineProperty({__proto__:null,default:q},Symbol.toStringTag,{value:"Module"})),b=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],u=(()=>{if(typeof document>"u")return!1;const s=b[0],e={};for(const t of b)if((t==null?void 0:t[1])in document){for(const[a,n]of t.entries())e[s[a]]=n;return e}return!1})(),_={change:u.fullscreenchange,error:u.fullscreenerror};let c={request(s=document.documentElement,e){return new Promise((t,i)=>{const a=()=>{c.off("change",a),t()};c.on("change",a);const n=s[u.requestFullscreen](e);n instanceof Promise&&n.then(a).catch(i)})},exit(){return new Promise((s,e)=>{if(!c.isFullscreen){s();return}const t=()=>{c.off("change",t),s()};c.on("change",t);const i=document[u.exitFullscreen]();i instanceof Promise&&i.then(t).catch(e)})},toggle(s,e){return c.isFullscreen?c.exit():c.request(s,e)},onchange(s){c.on("change",s)},onerror(s){c.on("error",s)},on(s,e){const t=_[s];t&&document.addEventListener(t,e,!1)},off(s,e){const t=_[s];t&&document.removeEventListener(t,e,!1)},raw:u};Object.defineProperties(c,{isFullscreen:{get:()=>Boolean(document[u.fullscreenElement])},element:{enumerable:!0,get:()=>{var s;return(s=document[u.fullscreenElement])!=null?s:void 0}},isEnabled:{enumerable:!0,get:()=>Boolean(document[u.fullscreenEnabled])}});u||(c={isEnabled:!1});const v=c;const J={props:{basicAttribute:{type:Object,default:()=>({})}},data(){return{isFullscreen:!1,photoUrl:"",avatar:"",handletype:"1",tabsReady:!1,showDetails:!1,userLegalShow:!1,legaledClickShow:!1,defaultLegalid:"",legalHasEnable:0,legalList:[]}},components:{SettingDrawer:()=>Promise.resolve().then(()=>require("./components.settingdrawer.0eaa8a4e.js")).then(s=>s.main),XlsxImport:()=>Promise.resolve().then(()=>require("./components.xlsximport.df981b91.js")).then(s=>s.main),InformationMsg:()=>Promise.resolve().then(()=>ge)},computed:{getLegalName(){const s=this.legalList.filter(e=>e.id===this.defaultLegalid)[0];return s?s.name:"--"},hasLogout(){const s=this.options.filter(e=>e.key==="logout")[0];return s?s.statu:!0},options(){return(this.basicAttribute.menus||[]).map(e=>(e.key==="universalImport"?(e.permission="sysUser:universalImport",e.transkey="gd.menu.universalImport"):e.key==="advancedFind"?(e.permission="sysUser:advancedFind",e.transkey="gd.menu.menuAdvancedFind"):e.key==="information"?e.transkey="gd.menu.information":e.key==="theme"?e.transkey="gd.menu.themeConfiguration":e.key==="fullScreen"&&(e.transkey="gd.menu.fullScreen"),e))},menus(){const s=this.hasItems?[{disabled:!1,key:"application",name:"\u5E94\u7528",statu:!0,permission:"sysApplication:see",transkey:"gd.solution.application"}]:[],e=this.options.filter(t=>t.key!=="logout");return s.concat(e).filter(t=>t.permission?this.$hasPerm(t.permission):!0)},hasItems(){return(this.systemInfo.id?this.systemInfo:window.$systemInfo).code==="GDS_LCDP"},apps(){return this.userInfo.apps},getUserImg(){let s="/gds/"+this.userInfo.filePath+"/"+this.userInfo.fileObjectName;return`${this.$getImageUrl(s)}`},fadeColord(){return this.fadeColor(this.primaryColor,.2)},messagetypeData(){return this.getDictionary("messagetype")},...r.mapGetters(["tableLists","platformData","userInfo","primaryColor","token","systemInfo","unreadCount","theme"])},methods:{changeLegal(s){C.default.ls.set("X-Legal-Entity-Id",s),this.legaledClickShow=!1,this.$store.commit("SET_ROLES",[]),window.location.reload()},selLegaled(s){this.legaledClickShow=s},init(){const s=C.default.ls.get("X-Legal-Entity-Id");this.defaultLegalid=s||"",this.userLegalShow=!1,Promise.all([this.getLegalList(),this.getLegalEnable()]).then(e=>{this.userLegalShow=!0})},getLegalList(){y.getUserAvailLegals({}).then(s=>{s.code===200&&(this.legalList=s.data)})},getLegalEnable(){y.sysLegalEnable({}).then(s=>{s.code===200&&(this.legalHasEnable=s.data&&s.data==="true"?1:0)})},imageUrl(){I.sysFileInfoPreview({id:this.userInfo.avatar}).then(s=>{const e=new Blob([s]);this.photoUrl=window.URL.createObjectURL(e)}).catch(s=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+s.message)})},echartsManage(s){this.$router.push({name:"echartsManage"}),this.$refs[s][0].doClose()},accountSetting(s){this.$router.push({name:"accountSettings"}),this.$refs[s][0].doClose()},hand(s){s==="theme"?this.$refs.settingDrawer.toggle():s==="fullScreen"?this.toggleFullscreen():s==="application"?this.$router.push({path:"/platform/application"}):s==="universalImport"?this.$refs.xlsxImport.open():s=="information"?this.$refs.informationMsg.open():this.$router.push({path:`/${s}`})},showtabs(){this.tabsReady=!0},hidetabs(){this.tabsReady=!1},toggleFullscreen(){if(!v.isEnabled){message.error(this.$i18nt("gd.account.browserNotSupported","\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u5168\u5C4F\u6A21\u5F0F?"));return}v.toggle(),v.isFullscreen?this.isFullscreen=!1:this.isFullscreen=!0},handleLogout(){let s=this;this.$confirm(this.$i18nt("gd.account.logOutContent","\u771F\u7684\u8981\u6CE8\u9500\u767B\u5F55\u5417?"),this.$i18nt("gd.account.logOutTip","\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.menu.logOutOk","\u786E\u8BA4"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,closeOnClickModal:!1,closeOnPressEscape:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,t,i)=>{if(e!=="confirm"){i();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,s.Logout().then(a=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,setTimeout(()=>{window.location.reload(),i()},100)})}})},fadeColor(s,e){let t=parseInt(s.substring(1,3),16),i=parseInt(s.substring(3,5),16),a=parseInt(s.substring(5,7),16);return`rgba(${t},${i},${a},${e})`},handleMessage(s){this.UnreadCount(s.count)},argumentsMessage(s){this.notificationInstance(s)},getDictionary(s){return this.$options.filters.dictData(s)},messageType(s){const e=this.messagetypeData.filter(t=>t.code==String(s.messagetype))[0];return e?this.$i18nt(`Dynamics.${e.transkey}`,e.name):s.messagetype},notificationInstance(s){const e=this.$i18nt("gd.btn.markAsRead","\u6807\u8BB0\u4E3A\u5DF2\u8BFB"),t=this.$i18nt("gd.btn.del","\u5220\u9664");let i=this.messageType(s),a="#67C23A";const n=this.$notify({title:s.title,message:'<div style="display: flex; flex-direction: column; gap: 16px;cursor: pointer;"><div style="flex: 1;width:245px;" id="notificationContent"><div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;color: rgba(0, 0, 0, 0.5);font-size: 12px;border: 1px solid #d6dbe3;border-radius: 2px;background: #e9ecf1;padding: 0 12px 0 12px;line-height: 18px;width: max-content;"><span style="font-weight: 500;">'+i+'</span></div><div style="font-size: 14px; color: #606266; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; white-space: normal; word-break: break-all;">'+s.message+'</div><div style="font-size: 12px; color: #909399; text-align: left;"></div></div><div style="display: flex; gap: 8px; justify-content: flex-start;"><button id="deleteBtn" style="padding: 4px 12px; border: 1px solid #dcdfe6; border-radius: 4px; background-color: #fff; cursor: pointer; font-size: 12px;">'+t+'</button><button id="markAsReadBtn" style="padding: 4px 12px; border: 1px solid '+a+"; border-radius: 4px; background-color: #fff; cursor: pointer; font-size: 12px;color: "+a+'; ">'+e+"</button></div></div>",dangerouslyUseHTMLString:!0,type:"info",position:"bottom-right",duration:5e3,customClass:"notification-card"});setTimeout(()=>{const o=document.getElementById("deleteBtn");o&&o.addEventListener("click",()=>{n.close()});const l=document.getElementById("markAsReadBtn");l&&l.addEventListener("click",()=>{this.beaseLoadComplete(s,n)});const h=document.getElementById("notificationContent");h&&h.addEventListener("click",()=>{this.markAsReadDetail(s),n.close()})},100)},beaseLoadComplete(s,e){const t=s.targetUrl.split("?")[1];let i="";if(t&&(i=new URLSearchParams(t).get("complete_request")),i==="")return;const a=decodeURIComponent(i),n=a.indexOf("?")===-1?a:a.slice(0,a.indexOf("?")),o=w.getParamsQuery(a);k.post(n,o),e.close()},markAsReadDetail(s){this.showDetails=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.viewFormDetails.open(s.targetUrl)},100)})},closeShowDetails(){this.showDetails=!1},handleClick(s,e){this.$nextTick(()=>{setTimeout(()=>{const t=s.name==="1"?"messageDataRefun":"readMessageDataRef";this.$refs[t]&&typeof this.$refs[t].init=="function"&&this.$refs[t].init()},10)})},...r.mapActions(["Logout","UnreadCount"])},created(){this.init()},async mounted(){this.imageUrl(),await this.$socket.authenticate(this.token),this.$socket.on("receive",this.handleMessage),this.$socket.on("arguments",this.argumentsMessage)},beforeDestroy(){this.$socket.off("receive",this.handleMessage),this.$socket.off("arguments",this.argumentsMessage)}};var V=function(){var e=this,t=e._self._c;return t("div",{staticClass:"user-wrapper",class:e.theme==="doubledark"?"user-wrapper-sider":""},[e.legalHasEnable===1&&e.userLegalShow?t("div",{staticClass:"user-legal",class:e.legaledClickShow?"user-legal-active":""},[t("div",{staticClass:"user-legal-name"},[e._v(e._s(e.getLegalName))]),t("div",{staticClass:"user-legal-sel"},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"\u8BF7\u9009\u62E9",size:"mini"},on:{"visible-change":e.selLegaled,change:e.changeLegal},model:{value:e.defaultLegalid,callback:function(i){e.defaultLegalid=i},expression:"defaultLegalid"}},[e._l(e.legalList,function(i){return[t("el-option",{key:i.id,attrs:{label:i.name,value:i.id}},[t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{"min-width":"76px","padding-right":"4px"}},[e._v(e._s(i.code))]),t("div",[e._v(e._s(i.name))])])])]})],2)],1)]):e._e(),e._l(e.menus,function(i){return[i.statu?[i.key==="user"?[i.key==="user"?t("el-popover",{ref:`popover_${i.key}`,refInFor:!0,attrs:{placement:"bottom-start",trigger:"click",tabindex:9999}},[t("div",{staticClass:"selectionl-popover",style:{"--dilute":e.fadeColord}},[t("div",{staticClass:"item",on:{click:function(a){return e.accountSetting(`popover_${i.key}`)}}},[t("i",{staticClass:"gd-icon-xitongshezhi gd-icons"}),t("span",[e._v(e._s(e.$i18nt("gd.menu.accountSettings","\u8D26\u53F7\u8BBE\u7F6E")))])]),t("div",{staticClass:"item",on:{click:function(a){return e.echartsManage(`popover_${i.key}`)}}},[t("i",{staticClass:"gd-icon-zhuzhuangtu gd-icons"}),t("span",[e._v(e._s(e.$i18nt("gd.menu.echarts","\u4E2A\u4EBA\u56FE\u8868\u7BA1\u7406")))])]),t("div",{staticClass:"popover-solid"},[t("el-divider")],1),e.hasLogout?t("div",{staticClass:"item",on:{click:function(a){return e.handleLogout(`popover_${i.key}`)}}},[t("i",{staticClass:"gd-icon-tuichudenglu1 gd-icons"}),t("span",[e._v(e._s(e.$i18nt("gd.menu.logOut","\u9000\u51FA\u767B\u5F55")))])]):e._e()]),t("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"},[t("div",{staticClass:"boxshadow user-dropdown-menu"},[e.userInfo.avatar?t("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:e.userInfo.avatar,expression:"userInfo.avatar"}],staticClass:"user-img"}):e.userInfo.filePath&&e.userInfo.photoUrl==""?t("img",{staticClass:"user-img",attrs:{src:e.getUserImg}}):t("img",{staticClass:"user-img",attrs:{src:"data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDACMYGh4aFiMeHB4nJSMpNFc4NDAwNGpMUD9Xfm+EgnxveneLnMipi5S9lnd6ru2wvc7V4OLgh6f1//PZ/8jb4Nf/2wBDASUnJzQuNGY4OGbXj3qP19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f/wgARCADhAOEDAREAAhEBAxEB/8QAGgABAAIDAQAAAAAAAAAAAAAAAAECAwQFBv/EABgBAQEBAQEAAAAAAAAAAAAAAAABAgME/9oADAMBAAIQAxAAAADuAAAAGFOfLzqwWY6qZozG9L0kwS6pat6NmgAAAAANc5xxtS+s7abkZKRQ07daMc1FzlsrnW5nfZTZAAAAEDCed019Y2qyICkAKKJiMa7XPffjLQAAAAGI81ZTeboAAAAAIiud+ll2AAAAAY04Mul0xksKAAAACAVlyZ36KM6FAAAHOPP6mTWQAACGiAAggrnXazesoAAAHl619YhF0EEItRNiIrPy1PWYEhpMlyZ36iMoAABgPLVGs0JRV5utxKWatcxGNdrh37HHXM640/RxkxrElc69Tm7lAAAco8/qXuZFSl1mMdzM3EZ8denzbeNXXDM8zs1evHXsiWq9vN6xlABhOGuvm2l1OmZSpbNmsmNbEbeW1nexcyTLERbjmtdjndpqdc5ebLE6noLnKoHINFvq8LzuitnQ46ulrcqWiVXM2oAjNiqy45a51p9OWr1dflrmdJfpy7wIjzR1PL2tOnP688uZu51a29lmZqdSIkUERLEVMbUZusaffPT4bjfPi+nPqZiwjy/S9Xy9cvLeDfPHW3z6W0vc2ZmrJGgADKlsZUm4Ndmu5s8t03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wPqKHARUjZir2+SEIQlchEGih1KAqMtQBQl6YKewlPx/ZQyoQQMJc2m/k9MysfuMYsfcQhKysrLm0ZQzWbpEEePqJyn4+SVed/2UT+A/5NyX5ElOK5GMYxj7TwSsIS/FGBw/6wtHAVn/AN2T99g4ZKImPcvROTmK9JKCD+bssRjGPjPJAgQIQhL1UQgoADKFnFMIpQQeUnevtqo6OMpcALQaJqkL0XB5liMYkfYECBCBCEr3kUogvcWhzpFAQHY3VVe50/BRy47B2ojGJGZ7AgQgQIQhgK9RdV3Q6hCZ8JKuiLySxi/k/Y+M8hAhCEICuEUoYds73fkJRRElLlzvmNUUY+8hCVN4IpUVjdVf+Q+UlFHR4+5VLmjzLVa7s0688TYJBg73AVwNiAKuMvdVDqHEPm6JS6cjx+Sl63MY0HmrLFq7pF/SDNgwF6GFF5s5G9aCHc1VVw/PqCfPrFhxB3keZT+dOHklLl+Exg0d1IFU2rsSgawKA6nEb0BDGXbu5wRW3K7BczwOcQd+TYedDolV7SCGocsKL+8/k9GgAKq97L+iXohw/wCS9Gl0V46/JmszDvfGeauQfi33VdMZwE9GlGmgL9wA6i71PVpRoqG/UU3CJhA9mQh8WTJnjJXiIso3L4Gj2RL7p1Kl9162XVuUxA6mOzZkyZMmeD5jwOcT0gbqm4QdDJrPXOmDM94f0Psn/m6s/wCpBwIPb/k9c2g+D3nxnu9DCi/ayt+O5W5i7PWy1Lfpkwh7j5Az2nGn7KNqVSjhD1bhmw9a/wCy972qi6TYf3T5P//Z"}})]),t("div",{staticClass:"user-name"},[e._v(" "+e._s(e.userInfo.name)+" ")])])]):e._e()]:t("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{content:e.$i18nt(i.transkey,i.name),placement:"bottom","open-delay":150}},[t("span",{staticClass:"boxshadow user-dropdown-menu",on:{click:function(a){return e.hand(i.key)}}},[i.key==="universalImport"?t("i",{staticClass:"gd-icons gd-icon-mulu"}):i.key==="information"?t("el-badge",{staticClass:"item",attrs:{slot:"reference",hidden:e.unreadCount=="",value:e.unreadCount>99?"99+":e.unreadCount},slot:"reference"},[t("i",{staticClass:"gd-icons gd-icon-a-huabanbeifen35"})]):i.key==="advancedFind"?t("i",{staticClass:"gd-icons el-icon-search"}):i.key==="theme"?t("i",{staticClass:"gd-icons gd-icon-xitongshezhi"}):i.key==="fullScreen"?t("i",{staticClass:"gd-icons",class:e.isFullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda"}):i.key==="application"?t("i",{staticClass:"gd-icons gd-icon-yemian1"}):e._e()],1)])]:e._e()]}),t("SettingDrawer",{ref:"settingDrawer"}),t("XlsxImport",{ref:"xlsxImport",attrs:{typeImport:2}}),t("InformationMsg",{ref:"informationMsg"}),e.showDetails?t("gd-view-form-details",{ref:"viewFormDetails",on:{close:e.closeShowDetails}}):e._e()],2)},Y=[],X=r.normalizeComponent(J,V,Y,!1,null,"8ef0cac6",null,null);const G=X.exports,Z=Object.freeze(Object.defineProperty({__proto__:null,default:G},Symbol.toStringTag,{value:"Module"}));const W={props:{daySet:{type:Array,default:()=>[]}},data(){return{queryParam:{readStatus:"UNREAD"},list:[],notifications:[],confirmLoading:!1,pageNo:1,pageSize:20,totalRows:0,loading:!1,observer:null}},computed:{moreTitle(){let s=this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D...");return this.loading||(s=this.list.length>=this.totalRows?this.pageNo>1?this.$i18nt("gd.https.noMoreData","\u6682\u65E0\u66F4\u591A\u6570\u636E"):"":this.$i18nt("gd.https.loadMoreData","\u70B9\u51FB\u52A0\u8F7D\u66F4\u591A")),s},messagetypeData(){return this.getDictionary("messagetype")}},methods:{elLoadMore(){const s=this.$refs.moreTitle;!s||this.observer||(this.observer=new IntersectionObserver((e,t)=>{e.forEach(i=>{i.isIntersecting&&this.loadMore()})}),this.observer.observe(s))},loadMore(){this.loading||this.list.length>=this.totalRows||(this.pageNo+=1,this.getList(!1))},getDictionary(s){return this.$options.filters.dictData(s)},messageType(s){const e=this.messagetypeData.filter(t=>t.code==String(s.messagetype))[0];return e?this.$i18nt(`Dynamics.${e.transkey}`,e.name):s.messagetype},getList(s){return this.confirmLoading=!s,this.loading=!s,A.sysMessagePage(Object.assign({},this.queryParam,{pageNo:s?1:this.pageNo,pageSize:s?this.pageNo*this.pageSize:this.pageSize})).then(e=>{e.code===200&&(this.totalRows=e.data.totalrows,this.UnreadCount(e.data.totalrows),this.list=s||this.pageNo===1?e.data.rows:this.list.concat(e.data.rows),this.handOrganize(),this.$emit("notifications",e.data.rows),this.pageNo===1&&this.$nextTick(()=>{setTimeout(()=>{this.elLoadMore()},0)})),this.confirmLoading=!1})},init(s){s?this.getList(!0):(this.pageNo=1,this.list=[],this.notifications=[],this.getList(!1))},handOrganize(){let s=[],e=[];this.list.forEach(t=>{const i=t.createdtime.split(" ")[0];s.includes(i)?e[e.length-1].messages.push(t):(s.push(i),e.push(Object.assign({},t,{groupdate:i,messages:[t]})))}),this.notifications=e,this.loading=!1},markAsRead(s){console.log(s),this.beaseLoadComplete(s)},beaseLoadComplete(s){const e=s.targeturl.split("?")[1];let t="";if(e&&(t=new URLSearchParams(e).get("complete_request")),t==="")return;const i=decodeURIComponent(t),a=i.indexOf("?")===-1?i:i.slice(0,i.indexOf("?")),n=w.getParamsQuery(i);k.post(a,n),setTimeout(()=>{this.init(!0)},1e3)},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(i=>i.code==s)[0];return t!=null&&t.colour?t.colour:null},markAsReadDetail(s){this.$emit("markAsRead",s),setTimeout(()=>{this.init(!0)},3e3)},...r.mapActions(["UnreadCount"])},beforeDestroy(){this.observer&&this.observer.disconnect()}};var ee=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"70%"}},[t("div",{staticClass:"notification-list"},[e._l(e.notifications,function(i,a){return t("div",[t("div",{staticClass:"notification-date",class:a===0?"notification-daten":""},[e.daySet[0].includes(i.groupdate)?t("span",[e._v(" "+e._s(e.$i18nt("gd.view.today","\u4ECA\u5929"))+" ")]):e.daySet[1].includes(i.groupdate)?t("span",[e._v(" "+e._s(e.$i18nt("gd.view.yesterday","\u6628\u5929"))+" ")]):t("span",[e._v(e._s(i.groupdate))])]),e._l(i.messages,function(n,o){return t("div",{key:n.id,staticClass:"notification-item",class:o===i.messages.length-1?"notification-itemn":"",on:{click:function(l){return e.markAsReadDetail(n)}}},[t("div",{staticClass:"notification-content"},[t("div",{staticClass:"notification-message"},[t("div",{staticClass:"name line1"},[e._v(e._s(n.name))]),t("div",{staticClass:"du",on:{click:function(l){return l.stopPropagation(),e.markAsRead(n)}}},[e._v(e._s(e.$i18nt("gd.menu.markAsRead","\u6807\u4E3A\u5DF2\u8BFB")))])]),t("div",{staticClass:"notification-detail line1",attrs:{title:n.content}},[e._v(e._s(n.content))]),t("div",{staticClass:"notification-nav"},[t("div",{staticClass:"notification-type"},[e._v(e._s(e.messageType(n)))]),t("div",{staticClass:"notification-time"},[e._v(e._s(n.createdtime))])])])])})],2)}),!e.confirmLoading&&e.notifications.length==0?t("div",{staticClass:"none"},[t("div",{staticClass:"empty"},[t("i",{staticClass:"el-icon-receiving"}),t("div",{staticClass:"empty-err"},[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):e._e(),e.totalRows>0?t("div",{ref:"moreTitle",staticClass:"list-more",class:{"active-item":e.totalRows>0&&e.list.length>=e.totalRows,"list-morep":e.moreTitle!==""||e.loading}},[e.loading?t("i",{staticClass:"el-icon-loading"}):e._e(),t("div",{staticClass:"more-title",on:{click:e.loadMore}},[e._v(e._s(e.moreTitle))])]):e._e()],2)])},te=[],se=r.normalizeComponent(W,ee,te,!1,null,"7ac208ea",null,null);const ie=se.exports;const ne={props:{daySet:{type:Array,default:()=>[]}},data(){return{queryParam:{readStatus:"READ"},list:[],notifications:[],confirmLoading:!0,showDetails:!1,pageNo:1,pageSize:20,totalRows:0,loading:!1,observer:null}},computed:{moreTitle(){let s=this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D...");return this.loading||(s=this.list.length>=this.totalRows?this.pageNo>1?this.$i18nt("gd.https.noMoreData","\u6682\u65E0\u66F4\u591A\u6570\u636E"):"":this.$i18nt("gd.https.loadMoreData","\u70B9\u51FB\u52A0\u8F7D\u66F4\u591A")),s},messagetypeData(){return this.getDictionary("messagetype")}},methods:{elLoadMore(){const s=this.$refs.moreTitle;!s||this.observer||(this.observer=new IntersectionObserver((e,t)=>{e.forEach(i=>{i.isIntersecting&&this.loadMore()})}),this.observer.observe(s))},loadMore(){this.loading||this.list.length>=this.totalRows||(this.pageNo+=1,this.getList(!1))},getDictionary(s){return this.$options.filters.dictData(s)},messageType(s){const e=this.messagetypeData.filter(t=>t.code==String(s.messagetype))[0];return e?this.$i18nt(`Dynamics.${e.transkey}`,e.name):s.messagetype},getList(s){return this.loading=!0,A.sysMessagePage(Object.assign({},this.queryParam,{pageNo:s?1:this.pageNo,pageSize:s?this.pageNo*this.pageSize:this.pageSize})).then(e=>{e.code===200&&(this.totalRows=e.data.totalrows,this.list=s||this.pageNo===1?e.data.rows:this.list.concat(e.data.rows),this.handOrganize(),this.$emit("notifications",e.data.rows),this.pageNo===1&&this.$nextTick(()=>{setTimeout(()=>{this.elLoadMore()},0)})),this.confirmLoading=!1})},init(s){s?this.getList(!0):(this.pageNo=1,this.list=[],this.notifications=[],this.getList(!1))},handOrganize(){let s=[],e=[];this.list.forEach(t=>{const i=t.createdtime.split(" ")[0];s.includes(i)?e[e.length-1].messages.push(t):(s.push(i),e.push(Object.assign({},t,{groupdate:i,messages:[t]})))}),this.loading=!1,this.notifications=e},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(i=>i.code==s)[0];return t!=null&&t.colour?t.colour:null},markAsRead(s){this.$emit("markAsRead",s)}},beforeDestroy(){this.observer&&this.observer.disconnect()}};var ae=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"70%"}},[t("div",{staticClass:"notification-list"},[e._l(e.notifications,function(i,a){return t("div",[t("div",{staticClass:"notification-date",class:a===0?"notification-daten":""},[e.daySet[0].includes(i.groupdate)?t("span",[e._v(" "+e._s(e.$i18nt("gd.view.today","\u4ECA\u5929"))+" ")]):e.daySet[1].includes(i.groupdate)?t("span",[e._v(" "+e._s(e.$i18nt("gd.view.yesterday","\u6628\u5929"))+" ")]):t("span",[e._v(e._s(i.groupdate))])]),e._l(i.messages,function(n,o){return t("div",{key:n.id,staticClass:"notification-item",class:o===i.messages.length-1?"notification-itemn":"",on:{click:function(l){return e.markAsRead(n)}}},[t("div",{staticClass:"notification-content"},[t("div",{staticClass:"notification-message"},[e._v(" "+e._s(n.name)+" ")]),t("div",{staticClass:"notification-detail line1",attrs:{title:n.content}},[e._v(e._s(n.content))]),t("div",{staticClass:"notification-nav"},[t("div",{staticClass:"notification-type"},[e._v(e._s(e.messageType(n)))]),t("div",{staticClass:"notification-time"},[e._v(e._s(n.createdtime))])])])])})],2)}),!e.confirmLoading&&e.notifications.length==0?t("div",{staticClass:"none"},[t("div",{staticClass:"empty"},[t("i",{staticClass:"el-icon-receiving"}),t("div",{staticClass:"empty-err"},[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):e._e(),e.totalRows>0?t("div",{ref:"moreTitle",staticClass:"list-more",class:{"active-item":e.totalRows>0&&e.list.length>=e.totalRows,"list-morep":e.moreTitle!==""||e.loading}},[e.loading?t("i",{staticClass:"el-icon-loading"}):e._e(),t("div",{staticClass:"more-title",on:{click:e.loadMore}},[e._v(e._s(e.moreTitle))])]):e._e()],2)])},oe=[],le=r.normalizeComponent(ne,ae,oe,!1,null,"fbc005e7",null,null);const re=le.exports;const ce={data(){return{visible:!1,width:"384px",type:"messageDataRefun",showDetails:!1,notificationsData:[]}},computed:{daySet(){const s=new Date().getTime(),e=new Date().getTime()-24*60*60*1e3;return[this.getDayNum(s),this.getDayNum(e)]},...r.mapGetters(["unreadCount"])},components:{MessageData:ie,ReadMessageData:re},methods:{notifications(s){this.notificationsData=s},closeShowDetails(){this.showDetails=!1,this.refresh(!0)},markAsRead(s,e){this.showDetails=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.viewFormDetails.open(s.targeturl)},100)})},refresh(s=!0){this.$nextTick(()=>{setTimeout(()=>{const e=this.$refs[this.type];e&&e.init(s)})})},open(){this.visible=!0,this.refresh(!1)},readOneClick(){this.$confirm(this.$i18nt("gd.https.oneClickRead","\u662F\u5426\u4E00\u952E\u5DF2\u8BFB\u6D88\u606F?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.btn.confirm","\u786E\u8BA4"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,e,t)=>{if(s!=="confirm"){t();return}this.oneClick(s,e,t)}})},oneClick(s,e,t){e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,A.sysMessageMarkAllAsRead().then(i=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,i.code==200||i.code==204?(t(),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message)})},getDayNum(s){const e=new Date(s),t=e.getFullYear(),i=e.getMonth()+1,a=e.getDate();return`${t}-${this.formatNumber(i)}-${this.formatNumber(a)}`},formatNumber(s){return s=s.toString(),s[1]?s:"0"+s}}};var de=function(){var e=this,t=e._self._c;return t("div",[t("el-drawer",{attrs:{visible:e.visible,"close-on-press-escape":!1,"append-to-body":!1,"modal-append-to-body":!0,size:e.width,"show-close":!1,modal:!1,"custom-class":"gd-drawer-msg",withHeader:!1},on:{"update:visible":function(i){e.visible=i}}},[t("div",{staticClass:"drawer-main"},[t("div",{staticClass:"title"},[t("el-radio-group",{on:{input:function(i){return e.refresh(!1)}},model:{value:e.type,callback:function(i){e.type=i},expression:"type"}},[t("el-radio-button",{attrs:{label:"messageDataRefun"}},[e._v(" "+e._s(e.$i18nt("gd.menu.unreadMessage","\u672A\u8BFB\u6D88\u606F"))+" "),e.unreadCount>0?t("span",[e._v("("+e._s(e.unreadCount)+")")]):e._e()]),t("el-radio-button",{attrs:{label:"readMessageDataRef"}},[e._v(e._s(e.$i18nt("gd.menu.readMessages","\u5DF2\u8BFB\u6D88\u606F")))])],1),e.notificationsData.length>0?t("i",{staticClass:"gd-icons gd-icon-qinglihuancun",attrs:{title:e.$i18nt("gd.menu.oneClickRead","\u4E00\u952E\u5DF2\u8BFB")},on:{click:e.readOneClick}}):e._e()],1),e.visible?t("div",{staticClass:"content"},[t("MessageData",{directives:[{name:"show",rawName:"v-show",value:e.type==="messageDataRefun",expression:"type === 'messageDataRefun'"}],ref:"messageDataRefun",attrs:{daySet:e.daySet},on:{markAsRead:e.markAsRead,notifications:e.notifications}}),t("ReadMessageData",{directives:[{name:"show",rawName:"v-show",value:e.type==="readMessageDataRef",expression:"type === 'readMessageDataRef'"}],ref:"readMessageDataRef",attrs:{daySet:e.daySet},on:{markAsRead:e.markAsRead}})],1):e._e()])]),e.showDetails?t("gd-view-form-details",{ref:"viewFormDetails",on:{close:e.closeShowDetails}}):e._e()],1)},ue=[],he=r.normalizeComponent(ce,de,ue,!1,null,"31d58d64",null,null);const me=he.exports,ge=Object.freeze(Object.defineProperty({__proto__:null,default:me},Symbol.toStringTag,{value:"Module"}));exports.index=F;exports.userMenus=Z;
@@ -5,9 +5,9 @@ import { p as _ } from "./http.main.573b8993.mjs";
5
5
  import { b as w } from "./utils.util.js.16b83ff8.mjs";
6
6
  import { s as $ } from "./http.filemanage.237ea8fc.mjs";
7
7
  import { g as T, s as R } from "./http.legal.d2a896d7.mjs";
8
- import { s as M, a as L } from "./http.noticemanage.35c4cc03.mjs";
8
+ import { s as M, a as B } from "./http.noticemanage.35c4cc03.mjs";
9
9
  var m = null;
10
- const B = {
10
+ const L = {
11
11
  props: {
12
12
  menus: {
13
13
  type: Array,
@@ -262,7 +262,7 @@ var U = function() {
262
262
  })], 2) : e._e()];
263
263
  }), t("div", { staticClass: "zhan-bj" })], 2)]), t("div", { staticClass: "gd-menus-close", on: { click: e.close } })]) : e._e()]);
264
264
  }, z = [], N = /* @__PURE__ */ u(
265
- B,
265
+ L,
266
266
  U,
267
267
  z,
268
268
  !1,
@@ -1048,7 +1048,7 @@ const oe = {
1048
1048
  },
1049
1049
  list: [],
1050
1050
  notifications: [],
1051
- confirmLoading: !1,
1051
+ confirmLoading: !0,
1052
1052
  showDetails: !1,
1053
1053
  pageNo: 1,
1054
1054
  pageSize: 20,
@@ -1086,7 +1086,7 @@ const oe = {
1086
1086
  return e ? this.$i18nt(`Dynamics.${e.transkey}`, e.name) : s.messagetype;
1087
1087
  },
1088
1088
  getList(s) {
1089
- return this.confirmLoading = !0, this.loading = !0, M(
1089
+ return this.loading = !0, M(
1090
1090
  Object.assign({}, this.queryParam, {
1091
1091
  pageNo: s ? 1 : this.pageNo,
1092
1092
  pageSize: s ? this.pageNo * this.pageSize : this.pageSize
@@ -1141,7 +1141,7 @@ var le = function() {
1141
1141
  re,
1142
1142
  !1,
1143
1143
  null,
1144
- "2bb8f9c6",
1144
+ "fbc005e7",
1145
1145
  null,
1146
1146
  null
1147
1147
  );
@@ -1215,7 +1215,7 @@ const ue = {
1215
1215
  });
1216
1216
  },
1217
1217
  oneClick(s, e, t) {
1218
- e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, L().then((i) => {
1218
+ e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, B().then((i) => {
1219
1219
  e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, i.code == 200 || i.code == 204 ? (t(), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + i.message);
1220
1220
  });
1221
1221
  },
@@ -10,7 +10,7 @@ function F({
10
10
  done: s,
11
11
  statu: r
12
12
  }) {
13
- const l = a.options.columnName.toLowerCase(), n = a.options.effectType, o = e[l], c = t || "form", u = r === void 0 ? !0 : r;
13
+ const n = a.options.columnName.toLowerCase(), l = a.options.effectType, o = e[n], c = t || "form", u = r === void 0 ? !0 : r;
14
14
  let p = [];
15
15
  return i.forEach((d, ee) => {
16
16
  let y = [];
@@ -20,7 +20,7 @@ function F({
20
20
  let O = q({
21
21
  data: D,
22
22
  val: c === "form" ? e[D.columnComment] : o,
23
- type: n
23
+ type: l
24
24
  });
25
25
  b.push(O);
26
26
  }), y.push(W(b, f));
@@ -404,32 +404,32 @@ const V = {
404
404
  },
405
405
  init(i = "init") {
406
406
  let e = /* @__PURE__ */ new Map();
407
- this.columns.filter((n) => n.effectType === "checkbox").forEach((n) => {
408
- e.set(n.prop, []);
407
+ this.columns.filter((l) => l.effectType === "checkbox").forEach((l) => {
408
+ e.set(l.prop, []);
409
409
  });
410
410
  let a = /* @__PURE__ */ new Map();
411
411
  const t = i === "reset" ? this.querySearchParam : this.queryParam;
412
- for (let n in t) {
413
- let o = this.columns.filter((c) => c.prop === n)[0];
414
- o && ["checkbox", "selectMultiple"].includes(o.effectType) ? a.set(n, t[n] ? Array.isArray(t[n]) ? t[n] : t[n].split(",") : []) : o && ["inputnumber", "double", "currency"].includes(o.effectType) && a.set(n, t[n] ? t[n] : void 0), o && ["selectFkMultiple"].includes(o.effectType) ? a.set(n, t[n] ? Array.isArray(t[n]) ? t[n] : t[n].toString().split(",").map(Number) : []) : Array.isArray(t[n]) ? a.set(n, t[n] ? t[n] : []) : a.set(n, t[n] ? t[n] : "");
412
+ for (let l in t) {
413
+ let o = this.columns.filter((c) => c.prop === l)[0];
414
+ o && ["checkbox", "selectMultiple"].includes(o.effectType) ? a.set(l, t[l] ? Array.isArray(t[l]) ? t[l] : t[l].split(",") : []) : o && ["inputnumber", "double", "currency"].includes(o.effectType) ? a.set(l, t[l] !== void 0 ? t[l] : void 0) : o && ["selectFkMultiple"].includes(o.effectType) ? a.set(l, t[l] ? Array.isArray(t[l]) ? t[l] : t[l].toString().split(",").map(Number) : []) : Array.isArray(t[l]) ? a.set(l, t[l] ? t[l] : []) : a.set(l, t[l] ? t[l] : "");
415
415
  }
416
416
  if (this.ruleFormData = Object.assign({}, Object.fromEntries(e), Object.fromEntries(a)), this.timeOut = setTimeout(() => {
417
417
  this.oldvalue = {}, this.oldvalue = JSON.stringify(this.ruleFormData);
418
418
  }, 100), !this.openRules)
419
419
  return;
420
420
  let s = [], r = [];
421
- return this.ruleConfig = this.viewRecord.ruleconfig ? JSON.parse(this.viewRecord.ruleconfig) : [], this.columns.forEach((n) => {
421
+ return this.ruleConfig = this.viewRecord.ruleconfig ? JSON.parse(this.viewRecord.ruleconfig) : [], this.columns.forEach((l) => {
422
422
  s.push(
423
423
  Object.assign(
424
- { ...n },
424
+ { ...l },
425
425
  {
426
- rulesList: this.hitItem(n)
426
+ rulesList: this.hitItem(l)
427
427
  }
428
428
  )
429
- ), n.options.hidden && r.push(n.prop);
430
- }), this.columns.filter((n) => n.options.filter !== void 0 && n.options.filter.length > 0).forEach((n) => {
429
+ ), l.options.hidden && r.push(l.prop);
430
+ }), this.columns.filter((l) => l.options.filter !== void 0 && l.options.filter.length > 0).forEach((l) => {
431
431
  let o = [];
432
- n.options.filter.forEach((c) => {
432
+ l.options.filter.forEach((c) => {
433
433
  let u = this.columns.filter((p) => p.prop == c.columnName)[0];
434
434
  if (u) {
435
435
  let p = this.ruleFormData[u.prop];
@@ -442,13 +442,13 @@ const V = {
442
442
  });
443
443
  }
444
444
  if (o.length > 0) {
445
- let p = s.findIndex((d) => d.prop === n.prop);
445
+ let p = s.findIndex((d) => d.prop === l.prop);
446
446
  s[p].filterList = o;
447
447
  }
448
448
  });
449
- }), this.viewQueries = s, this.hideItem = [...r], this.usageAllRulesReset(), new Promise((n) => {
449
+ }), this.viewQueries = s, this.hideItem = [...r], this.usageAllRulesReset(), new Promise((l) => {
450
450
  setTimeout(() => {
451
- n();
451
+ l();
452
452
  }, 10);
453
453
  });
454
454
  },
@@ -474,10 +474,10 @@ const V = {
474
474
  this.$emit("save", Object.fromEntries(a), this.openRules ? this.viewQueries : this.columns), this.cancel();
475
475
  } else {
476
476
  let a = new Map(Object.entries(e)), t = [];
477
- for (let n of a.keys())
478
- t.push(n);
479
- const s = e[t[0]][0], r = this.columns.filter((n) => n.prop === s.field)[0], l = r ? `${this.$i18nt(`Dynamics.${r.transKey}`, r.label)} ` : s.field;
480
- this.$message.error(`${this.$i18nt("gd.https.errors", "\u6821\u9A8C\u5931\u8D25")}: ${l} ${s.message}!`);
477
+ for (let l of a.keys())
478
+ t.push(l);
479
+ const s = e[t[0]][0], r = this.columns.filter((l) => l.prop === s.field)[0], n = r ? `${this.$i18nt(`Dynamics.${r.transKey}`, r.label)} ` : s.field;
480
+ this.$message.error(`${this.$i18nt("gd.https.errors", "\u6821\u9A8C\u5931\u8D25")}: ${n} ${s.message}!`);
481
481
  }
482
482
  });
483
483
  },
@@ -575,7 +575,7 @@ var z = function() {
575
575
  G,
576
576
  !1,
577
577
  null,
578
- "36c0826c",
578
+ "661bc8b7",
579
579
  null,
580
580
  null
581
581
  );
@@ -656,8 +656,8 @@ const J = {
656
656
  });
657
657
  }), this.$nextTick(() => {
658
658
  setTimeout(() => {
659
- var l, n, o, c, u;
660
- const e = this.ruleFormData[this.column.prop], a = ((n = (l = this.column) == null ? void 0 : l.options) == null ? void 0 : n.openWidth) !== void 0 ? this.column.options.openWidth : "90", t = ((c = (o = this.column) == null ? void 0 : o.options) == null ? void 0 : c.widthUnit) !== void 0 ? this.column.options.widthUnit : "%", s = ((u = this.column) == null ? void 0 : u.viewId) !== void 0 ? this.column.viewId : "";
659
+ var n, l, o, c, u;
660
+ const e = this.ruleFormData[this.column.prop], a = ((l = (n = this.column) == null ? void 0 : n.options) == null ? void 0 : l.openWidth) !== void 0 ? this.column.options.openWidth : "90", t = ((c = (o = this.column) == null ? void 0 : o.options) == null ? void 0 : c.widthUnit) !== void 0 ? this.column.options.widthUnit : "%", s = ((u = this.column) == null ? void 0 : u.viewId) !== void 0 ? this.column.viewId : "";
661
661
  let r = {
662
662
  fkEntityName: this.column.fkEntityName,
663
663
  effectType: "participants",
@@ -698,9 +698,9 @@ const J = {
698
698
  let t = { name: i, fkEntityName: a };
699
699
  if (this.column.filterList && this.column.filterList.length > 0) {
700
700
  let r = [];
701
- this.column.filterList.forEach((l) => {
702
- let n = l.columnName === "&user&" ? this.userInfo.id : this.ruleFormData[l.columnName];
703
- const o = this.getFilterList(l, n);
701
+ this.column.filterList.forEach((n) => {
702
+ let l = n.columnName === "&user&" ? this.userInfo.id : this.ruleFormData[n.columnName];
703
+ const o = this.getFilterList(n, l);
704
704
  r = r.concat(o);
705
705
  }), r.length > 0 && Object.assign(t, { filter: r });
706
706
  }
@@ -709,8 +709,8 @@ const J = {
709
709
  filterConfig: this.column.filterConfig
710
710
  }), this.source = P(), $(t, this.source.token).then((r) => {
711
711
  if (this.loading = !1, this.source = null, r.code === 200) {
712
- const l = r.data.filter((n) => !e.includes(n.id));
713
- this.fkData = s.concat(l), this.column.fkData = this.fkData, this.$emit("setFkData", this.column, this.fkData);
712
+ const n = r.data.filter((l) => !e.includes(l.id));
713
+ this.fkData = s.concat(n), this.column.fkData = this.fkData, this.$emit("setFkData", this.column, this.fkData);
714
714
  }
715
715
  });
716
716
  },
@@ -719,12 +719,12 @@ const J = {
719
719
  const e = this.column.fkEntityName.split(",")[0];
720
720
  let a = this.ruleFormData[this.column.prop], t = [];
721
721
  a.forEach((s) => {
722
- let r = { id: s, fkEntityName: e }, l = this.getBaseFkList(r).then((n) => n);
723
- t.push(l);
722
+ let r = { id: s, fkEntityName: e }, n = this.getBaseFkList(r).then((l) => l);
723
+ t.push(n);
724
724
  }), Promise.all(t).then((s) => {
725
725
  let r = [];
726
- s.forEach((l) => {
727
- l.code === 200 && (r = r.concat(l.data));
726
+ s.forEach((n) => {
727
+ n.code === 200 && (r = r.concat(n.data));
728
728
  }), this.fkData = r, this.column.fkData = r, this.loading = !1, this.$emit("setFkData", this.column, this.fkData);
729
729
  });
730
730
  },
@@ -0,0 +1 @@
1
+ "use strict";const g=require("./components.answerquestions.9c7165c4.js"),u=require("./utils.datepicker.js.6e1c6490.js"),w=require("./http.main.8543ccc4.js"),M=require("./utils.axios.js.69442e57.js");function k({rules:i,data:e,field:a,source:t,done:s,statu:r}){const l=a.options.columnName.toLowerCase(),n=a.options.effectType,o=e[l],c=t||"form",p=r===void 0?!0:r;let d=[];return i.forEach((f,z)=>{let v=[];f.list.forEach((h,D)=>{let $=[];h.condition.list.forEach(F=>{let O=S({data:F,val:c==="form"?e[F.columnComment]:o,type:n});$.push(O)}),v.push(L($,h))});let b=v.indexOf(!0);if(b!==-1){const h=f.adapted===void 0?["form","flowsProcess"]:[...f.adapted];f.list[b].operation.list.forEach(D=>{typeof s=="function"&&s(Object.assign({},{...D}),p,c==="form"?h:[],Object.assign({},{...f}))})}}),d}function S(i){switch(i.data.rules){case"1":return _(i);case"2":return _(i);case"3":return x(i);case"4":return x(i);case"5":return T(i);case"6":return T(i);case"7":return m(i);case"8":return m(i);case"9":return m(i);case"10":return m(i)}}function _({data:i,val:e,type:a}){if(e===""||e===void 0)return!1;let t=Array.isArray(e)?e.join(","):e,s=i.val;return["currency","double","inputnumber"].includes(a)&&(t=Number(t),s=Number(s)),["switch","select","radiobox"].includes(a)&&(t=String(t),s=String(s)),i.rules==="1"?t===s:t!==s}function x({data:i,val:e}){let a=e===void 0?"":String(e),t=String(i.val);return i.rules==="3"?a.indexOf(t)!==-1:a.indexOf(t)===-1}function T({data:i,val:e}){let a=!0;return(e===null||e===""||e===void 0)&&(a=!1),i.rules==="5"?a:!a}function m({data:i,val:e,type:a}){if(e===""||e===void 0)return!1;let t=C(a,{val:e}),s=C(a,i);if(i.rules==="7")return t>s;if(i.rules==="8")return t>=s;if(i.rules==="9")return t<s;if(i.rules==="10")return t<=s}function C(i,e){let a=0;return i==="inputnumber"?a=Number(e.val):a=new Date(String(e.val)).getTime(),a}function L(i,e){let a=e.condition.list.length;if(a===0)return!0;let t=a===0?"1":e.condition.list[a-1].type,s=j(i,t);return t==="2"&&!s?!0:!!(t!=="2"&&s)}function j(i,e){return e==="2"?i.every((a,t,s)=>!a):i.every((a,t,s)=>!!a)}const E={name:"GdTableQueriesField",props:{height:{type:Number,default:0},columns:{type:Array,default:()=>[]},queryParam:{type:Object,default:()=>({})},querySearchParam:{type:Object,default:()=>({})},colse:{type:Function},visible:{type:Boolean,default:!1},openMode:{type:[String,Number],default:1},recordRelation:{type:Object,default:()=>({})},viewRecord:{type:Object,default:()=>({})},openRules:{type:Boolean,default:!1},changeTrigger:{type:Function},queriesMode:{type:String,default:"popover"}},data(){return{show:!0,ruleFormData:{},ruleConfig:[],hideItem:[],viewQueries:[],oldvalue:{},timeOut:null}},components:{SelectFkMultiple:()=>Promise.resolve().then(()=>B)},computed:{pickerIntervalOptions(){return{shortcuts:[{text:this.$i18nt("gd.view.lastWeek","\u6700\u8FD1\u4E00\u5468"),onClick(i){const e=new Date,a=new Date;a.setTime(a.getTime()-3600*1e3*24*6),i.$emit("pick",[a,e])}},{text:this.$i18nt("gd.view.lastMonth","\u6700\u8FD1\u4E00\u4E2A\u6708"),onClick(i){const e=new Date,a=new Date;a.setTime(a.getTime()-3600*1e3*24*30),i.$emit("pick",[a,e])}},{text:this.$i18nt("gd.view.pastThreeMonths","\u6700\u8FD1\u4E09\u4E2A\u6708"),onClick(i){const e=new Date,a=new Date;a.setTime(a.getTime()-3600*1e3*24*90),i.$emit("pick",[a,e])}},{text:this.$i18nt("gd.view.currentWeek","\u672C\u5468"),onClick(i){u.currentWeek(i)}},{text:this.$i18nt("gd.view.lastWeeks","\u4E0A\u4E00\u5468"),onClick(i){u.lasWeek(i)}},{text:this.$i18nt("gd.view.nextWeeks","\u4E0B\u4E00\u5468"),onClick(i){u.nextWeek(i)}},{text:this.$i18nt("gd.view.thisMonth","\u672C\u6708"),onClick(i){u.currentMonth(i)}},{text:this.$i18nt("gd.view.lastMonths","\u4E0A\u4E2A\u6708"),onClick(i){u.lastMonth(i)}},{text:this.$i18nt("gd.view.nextMonths","\u4E0B\u4E2A\u6708"),onClick(i){u.nextMonth(i)}},{text:this.$i18nt("gd.view.currentQuarter","\u672C\u5B63\u5EA6"),onClick(i){u.currentQuarter(i)}},{text:this.$i18nt("gd.view.lastQuarter","\u4E0A\u5B63\u5EA6"),onClick(i){u.lastQuarter(i)}},{text:this.$i18nt("gd.view.nextQuarter","\u4E0B\u5B63\u5EA6"),onClick(i){u.nextQuarter(i)}},{text:this.$i18nt("gd.view.currentYear","\u672C\u5E74"),onClick(i){u.yearDate(i)}},{text:this.$i18nt("gd.view.lastYear","\u53BB\u5E74"),onClick(i){u.yearDate(i,-1)}},{text:this.$i18nt("gd.view.nextYear","\u660E\u5E74"),onClick(i){u.yearDate(i,1)}}]}},pickerOptions(){return{shortcuts:[{text:this.$i18nt("gd.view.today","\u4ECA\u5929"),onClick(i){i.$emit("pick",new Date)}},{text:this.$i18nt("gd.view.yesterday","\u6628\u5929"),onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24),i.$emit("pick",e)}},{text:this.$i18nt("gd.view.daysAgo3","3\u5929\u4E4B\u524D"),onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24*3),i.$emit("pick",e)}},{text:this.$i18nt("gd.view.daysAgo5","5\u5929\u4E4B\u524D"),onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24*5),i.$emit("pick",e)}},{text:this.$i18nt("gd.view.daysAgo7","7\u5929\u4E4B\u524D"),onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24*7),i.$emit("pick",e)}}]}},style(){return this.queriesMode==="popover"?`max-height:${this.height}px;min-height:${this.height/3*2}px`:`height:${this.height}px;`},istyle(){return"margin: 0 auto;"},getColumns(){return(this.openRules?this.viewQueries:this.columns).filter(e=>(e.rules=e.rules?e.rules:[],e.show===void 0?!0:e.show))},...g.mapGetters(["tableLists"])},watch:{visible(i,e){i&&this.init()}},methods:{columnFkData(i,e){this.viewQueries=this.viewQueries.map(a=>Object.assign({...a},{fkData:a.prop===i.prop?i.fkData:a.fkData}))},fkNotice(i){this.viewQueries.filter(a=>a.effectType==="selectFkMultiple").filter(a=>a.filterList&&a.filterList.length>0).forEach(a=>{const t=a.filterList.filter(s=>s.columnName===i.prop)[0];t&&this.changeEmptying(t,a)})},changeEmptying(i,e){if(!(i.changeEmpty===void 0?!0:i.changeEmpty))return;let t=new Map;t.set(e.prop,[]),this.setData(Object.fromEntries(t),e),!this.hideItem.includes(e.prop)&&this.$nextTick(()=>{setTimeout(()=>{let s=this.$refs[`fk_${e.prop}`];s&&s[0].fkNotice()},20)})},handleChange(i){const e=i.rulesList&&i.rulesList.length>0?i.rulesList:[];e.length>0&&k({data:this.ruleFormData,rules:[{list:e}],field:{options:{columnName:i.prop,effectType:i.effectType}},source:"queries",done:this.hitRules}),this.timeOut=setTimeout(()=>{this.fkNotice(i)},20)},setData(i,e){this.ruleFormData=Object.assign({...this.ruleFormData},i),this.handleChange(e)},usageAllRulesReset(){this.ruleConfig.length!==0&&this.viewQueries.forEach(i=>{i.rulesList&&i.rulesList.length>0&&k({data:this.ruleFormData,rules:[{list:i.rulesList}],field:{options:{columnName:i.prop,effectType:i.effectType}},done:this.hitRules})})},hitRules(i){let e=this.viewQueries.filter(s=>s.id==i.columnComment)[0];if(!e)return;let a=this.hideItem.filter(s=>s!==e.prop);this.hideItem=i.val==="1"?[...a]:a.concat([e.prop]),this.$emit("hideQueryParam",this.hideItem);let t=new Map;t.set(e.prop,this.getTypeVal(e));for(let s in this.ruleFormData)this.hideItem.includes(s)||t.set(s,this.ruleFormData[s]);this.ruleFormData=Object.assign({...this.ruleFormData},Object.fromEntries(t))},getTypeVal(i){return["selectMultiple","selectFkMultiple"].includes(i.effectType)?[]:["datepicker"].includes(i.effectType)&&i.options.displayStyle!==1?[]:""},init(i="init"){let e=new Map;this.columns.filter(n=>n.effectType==="checkbox").forEach(n=>{e.set(n.prop,[])});let a=new Map;const t=i==="reset"?this.querySearchParam:this.queryParam;for(let n in t){let o=this.columns.filter(c=>c.prop===n)[0];o&&["checkbox","selectMultiple"].includes(o.effectType)?a.set(n,t[n]?Array.isArray(t[n])?t[n]:t[n].split(","):[]):o&&["inputnumber","double","currency"].includes(o.effectType)?a.set(n,t[n]!==void 0?t[n]:void 0):o&&["selectFkMultiple"].includes(o.effectType)?a.set(n,t[n]?Array.isArray(t[n])?t[n]:t[n].toString().split(",").map(Number):[]):Array.isArray(t[n])?a.set(n,t[n]?t[n]:[]):a.set(n,t[n]?t[n]:"")}if(this.ruleFormData=Object.assign({},Object.fromEntries(e),Object.fromEntries(a)),this.timeOut=setTimeout(()=>{this.oldvalue={},this.oldvalue=JSON.stringify(this.ruleFormData)},100),!this.openRules)return;let s=[],r=[];return this.ruleConfig=this.viewRecord.ruleconfig?JSON.parse(this.viewRecord.ruleconfig):[],this.columns.forEach(n=>{s.push(Object.assign({...n},{rulesList:this.hitItem(n)})),n.options.hidden&&r.push(n.prop)}),this.columns.filter(n=>n.options.filter!==void 0&&n.options.filter.length>0).forEach(n=>{let o=[];n.options.filter.forEach(c=>{let p=this.columns.filter(d=>d.prop==c.columnName)[0];if(p){let d=this.ruleFormData[p.prop];o.push({fieldName:c.fieldName,fieldValue:d,operator:c.operator,columnName:c.columnName,changeEmpty:c.changeEmpty===void 0?!0:c.changeEmpty})}if(o.length>0){let d=s.findIndex(f=>f.prop===n.prop);s[d].filterList=o}})}),this.viewQueries=s,this.hideItem=[...r],this.usageAllRulesReset(),new Promise(n=>{setTimeout(()=>{n()},10)})},hitItem(i){if(this.ruleConfig.length==0)return[];let e=[];return this.ruleConfig.forEach((a,t)=>{a.condition.list.filter(r=>r.columnComment===i.id)[0]&&e.push(a)}),e},isHitItemChecked(i,e){return i.every((a,t,s)=>a.columnComment!==e.id)},save(){this.$refs.ruleForm.validate((i,e)=>{if(i){let a=new Map;for(let t in this.ruleFormData){let s=this.columns.filter(r=>r.prop===t)[0]||{};["checkbox"].includes(s.effectType)?a.set(t,this.ruleFormData[t].join(",")):a.set(t,this.ruleFormData[t])}this.$emit("save",Object.fromEntries(a),this.openRules?this.viewQueries:this.columns),this.cancel()}else{let a=new Map(Object.entries(e)),t=[];for(let n of a.keys())t.push(n);const s=e[t[0]][0],r=this.columns.filter(n=>n.prop===s.field)[0],l=r?`${this.$i18nt(`Dynamics.${r.transKey}`,r.label)} `:s.field;this.$message.error(`${this.$i18nt("gd.https.errors","\u6821\u9A8C\u5931\u8D25")}: ${l} ${s.message}!`)}})},cancel(){this.colse()},close(){},reset(){this.init("reset"),this.$emit("reset")},getDict(i){return i.dictData?i.dictData:this.getDictionary(i)},getDictionary(i){return this.$options.filters.dictData(i.dictTypeCode)}},beforeDestroy(){this.show=!1,this.viewQueries=[],this._watcher&&this._watcher.teardown(),this.timeOut&&clearTimeout(this.timeOut),this.timeOut=null}};var I=function(){var e=this,a=e._self._c;return e.show?a("div",{staticClass:"gd-table-queries",style:e.style},[a("el-form",{ref:"ruleForm",staticClass:"gd-form table-queries-form",attrs:{model:e.ruleFormData,size:"small",labelPosition:"top"},nativeOn:{submit:function(t){t.preventDefault()}}},[e._l(e.getColumns,function(t,s){return[e.hideItem.includes(t.prop)?e._e():a("el-form-item",{style:e.istyle,attrs:{label:e.$i18nt(t.transKey,t.label),prop:t.prop,rules:t.rules},nativeOn:{submit:function(r){r.preventDefault()}}},[["inputnumber","double","currency"].includes(t.effectType)?[a("el-input-number",{staticStyle:{width:"100%","text-align":"left"},attrs:{placeholder:e.$i18nt("gd.placeholder.input"),clearable:"",min:t.min||t.min===0?t.min:-1/0,max:t.max||t.max===0?t.max:1/0,disabled:t.disabled===void 0?!1:t.disabled,"controls-position":"right"},on:{change:function(r){return e.handleChange(t)}},model:{value:e.ruleFormData[t.prop],callback:function(r){e.$set(e.ruleFormData,t.prop,r)},expression:"ruleFormData[column.prop]"}})]:t.effectType==="checkbox"?[e.ruleFormData[t.prop]?a("el-checkbox-group",{attrs:{disabled:t.disabled===void 0?!1:t.disabled},on:{change:function(r){return e.handleChange(t)}},model:{value:e.ruleFormData[t.prop],callback:function(r){e.$set(e.ruleFormData,t.prop,r)},expression:"ruleFormData[column.prop]"}},e._l(e.getDict(t),function(r){return a("el-checkbox",{key:r.code,attrs:{label:r.code,name:e.$i18nt(r.prefix?`${r.prefix}.${r.transkey}`:`Dynamics.${r.transkey}`,r.name)}},[e._v(" "+e._s(e.$i18nt(r.prefix?`${r.prefix}.${r.transkey}`:`Dynamics.${r.transkey}`,r.name))+" ")])}),1):e._e()]:t.effectType==="radio"?[a("el-radio-group",{attrs:{disabled:t.disabled===void 0?!1:t.disabled},on:{input:function(r){return e.handleChange(t)}},model:{value:e.ruleFormData[t.prop],callback:function(r){e.$set(e.ruleFormData,t.prop,r)},expression:"ruleFormData[column.prop]"}},e._l(e.getDict(t),function(r){return a("el-radio",{key:r.code,attrs:{label:r.code,name:e.$i18nt(r.prefix?`${r.prefix}.${r.transkey}`:`Dynamics.${r.transkey}`,r.name)}},[e._v(" "+e._s(e.$i18nt(r.prefix?`${r.prefix}.${r.transkey}`:`Dynamics.${r.transkey}`,r.name))+" ")])}),1)]:t.effectType==="selectMultiple"?[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",clearable:"",multiple:"",filterable:"","collapse-tags":!0,"popper-append-to-body":!0,disabled:t.disabled===void 0?!1:t.disabled},on:{change:function(r){return e.handleChange(t)}},model:{value:e.ruleFormData[t.prop],callback:function(r){e.$set(e.ruleFormData,t.prop,r)},expression:"ruleFormData[column.prop]"}},e._l(e.getDict(t),function(r){return a("el-option",{key:r.code,attrs:{value:r.code,label:e.$i18nt(r.prefix?`${r.prefix}.${r.transkey}`:`Dynamics.${r.transkey}`,r.name)}},[e._v(" "+e._s(e.$i18nt(r.prefix?`${r.prefix}.${r.transkey}`:`Dynamics.${r.transkey}`,r.name))+" ")])}),1)]:t.effectType==="select"?[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",clearable:"","collapse-tags":!0,"popper-append-to-body":!0,disabled:t.disabled===void 0?!1:t.disabled},on:{change:function(r){return e.handleChange(t)}},model:{value:e.ruleFormData[t.prop],callback:function(r){e.$set(e.ruleFormData,t.prop,r)},expression:"ruleFormData[column.prop]"}},e._l(e.getDict(t),function(r){return a("el-option",{key:r.code,attrs:{value:r.code,label:e.$i18nt(r.prefix?`${r.prefix}.${r.transkey}`:`Dynamics.${r.transkey}`,r.name)}},[e._v(" "+e._s(e.$i18nt(r.prefix?`${r.prefix}.${r.transkey}`:`Dynamics.${r.transkey}`,r.name))+" ")])}),1)]:t.effectType==="selectTable"?[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",clearable:"","collapse-tags":!0,"popper-append-to-body":!0,disabled:t.disabled===void 0?!1:t.disabled},on:{change:function(r){return e.handleChange(t)}},model:{value:e.ruleFormData[t.prop],callback:function(r){e.$set(e.ruleFormData,t.prop,r)},expression:"ruleFormData[column.prop]"}},e._l(e.tableLists,function(r){return a("el-option",{key:r.id,attrs:{label:e.$i18nt(`Dynamics.${r.transkey}`,r.busname),value:r.id}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${r.transkey}`,r.busname))+" "+e._s(r.tablename)+" ")])}),1)]:t.effectType==="selectFkMultiple"?[a("SelectFkMultiple",{ref:`fk_${t.prop}`,refInFor:!0,attrs:{column:t,ruleFormData:e.ruleFormData,visible:e.visible,recordRelation:e.recordRelation,openMode:e.openMode,changeTrigger:e.changeTrigger},on:{change:function(r){return e.handleChange(t)},setFkData:e.columnFkData}})]:t.effectType=="datepicker"?[t.options.displayStyle===1?[t.hasTimePicker?a("el-time-picker",{staticStyle:{width:"100%"},attrs:{"value-format":t.valueFormat,format:t.valueFormat,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled===void 0?!1:t.disabled},on:{change:function(r){return e.handleChange(t)}},model:{value:e.ruleFormData[t.prop],callback:function(r){e.$set(e.ruleFormData,t.prop,r)},expression:"ruleFormData[column.prop]"}}):[t.pickerType==="date"?a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:t.pickerType,"value-format":t.valueFormat,format:t.valueFormat,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled===void 0?!1:t.disabled,"picker-options":e.pickerOptions},on:{change:function(r){return e.handleChange(t)}},model:{value:e.ruleFormData[t.prop],callback:function(r){e.$set(e.ruleFormData,t.prop,r)},expression:"ruleFormData[column.prop]"}}):a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:t.pickerType,"value-format":t.valueFormat,format:t.valueFormat,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled===void 0?!1:t.disabled},on:{change:function(r){return e.handleChange(t)}},model:{value:e.ruleFormData[t.prop],callback:function(r){e.$set(e.ruleFormData,t.prop,r)},expression:"ruleFormData[column.prop]"}})]]:[t.pickerType==="month"?a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"monthrange",format:"yyyy-MM","value-format":"yyyy-MM","range-separator":"~","start-placeholder":e.$i18nt("el.datepicker.startDate","\u5F00\u59CB\u65E5\u671F"),"end-placeholder":e.$i18nt("el.datepicker.endDate","\u7ED3\u675F\u65E5\u671F"),disabled:t.disabled===void 0?!1:t.disabled},on:{change:function(r){return e.handleChange(t)}},model:{value:e.ruleFormData[t.prop],callback:function(r){e.$set(e.ruleFormData,t.prop,r)},expression:"ruleFormData[column.prop]"}}):a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"~","start-placeholder":e.$i18nt("el.datepicker.startDate","\u5F00\u59CB\u65E5\u671F"),"end-placeholder":e.$i18nt("el.datepicker.endDate","\u7ED3\u675F\u65E5\u671F"),disabled:t.disabled===void 0?!1:t.disabled,"picker-options":e.pickerIntervalOptions},on:{change:function(r){return e.handleChange(t)}},model:{value:e.ruleFormData[t.prop],callback:function(r){e.$set(e.ruleFormData,t.prop,r)},expression:"ruleFormData[column.prop]"}})]]:[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.input"),clearable:"",disabled:t.disabled===void 0?!1:t.disabled},on:{change:function(r){return e.handleChange(t)}},model:{value:e.ruleFormData[t.prop],callback:function(r){e.$set(e.ruleFormData,t.prop,r)},expression:"ruleFormData[column.prop]"}})]],2)]})],2),a("div",{staticClass:"gd-table-btom"},[a("div",{staticClass:"active-color btom-reset",on:{click:e.reset}},[a("i",{staticClass:"el-icon-brush"}),e._v(" "+e._s(e.$i18nt("gd.btn.reset","\u91CD\u7F6E"))+" ")]),a("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-document-checked"},on:{click:e.save}},[e._v(" "+e._s(e.$i18nt("gd.btn.confirm","\u786E\u8BA4"))+" ")]),a("el-button",{attrs:{type:"info",size:"mini",icon:"el-icon-error"},on:{click:e.cancel}},[e._v(e._s(e.$i18nt("gd.btn.cancel","\u53D6\u6D88")))])],1)],1):e._e()},R=[],Q=g.normalizeComponent(E,I,R,!1,null,"661bc8b7",null,null);const y=Q.exports;y.install=function(i){i.component(y.name,y)};const A={props:{column:{type:Object,default:()=>[]},ruleFormData:{type:Object,required:!0},visible:{type:Boolean,default:!1},openMode:{type:[String,Number],default:1},recordRelation:{type:Object,default:()=>({})},changeTrigger:{type:Function},tagWidth:{type:String,default:"50%"}},data(){return{fkData:[],loading:!1,firstLoading:!1,source:null}},watch:{visible(i,e){i&&this.init()}},computed:{...g.mapGetters(["userInfo","tableLists"])},methods:{fkNotice(){this.$nextTick(()=>{setTimeout(()=>{this.fkData=[],this.firstLoading=!1},10)})},handleChange(i){this.$emit("change",i)},init(){if(this.column.fkData&&this.column.fkData.length>0&&(this.fkData=this.column.fkData,this.firstLoading=!1),this.openMode!=2)return;const i=this.recordRelation.options&&this.recordRelation.options.filterList?this.recordRelation.options.filterList:[],e=this.ruleFormData[this.column.prop];e===void 0||e===""||e.length===0||!i.filter(s=>s.fieldName===this.column.prop)[0]||this.fkData.filter(s=>e.includes(s.id))[0]||(Array.isArray(e)||(this.ruleFormData[this.column.prop]=[this.ruleFormData[this.column.prop]]),this.searchDataId())},lookup(){let i=[];this.column.filterList&&this.column.filterList.length>0&&this.column.filterList.forEach(e=>{let a=e.columnName==="&user&"?this.userInfo.id:this.ruleFormData[e.columnName];a!==""&&a!==void 0&&i.push({fieldName:e.fieldName,fieldValue:a,operator:e.operator,columnName:e.columnName})}),this.$nextTick(()=>{setTimeout(()=>{var l,n,o,c,p;const e=this.ruleFormData[this.column.prop],a=((n=(l=this.column)==null?void 0:l.options)==null?void 0:n.openWidth)!==void 0?this.column.options.openWidth:"90",t=((c=(o=this.column)==null?void 0:o.options)==null?void 0:c.widthUnit)!==void 0?this.column.options.widthUnit:"%",s=((p=this.column)==null?void 0:p.viewId)!==void 0?this.column.viewId:"";let r={fkEntityName:this.column.fkEntityName,effectType:"participants",val:e||[],column:this.column,filterList:i,width:`${a}${t}`};s&&Object.assign(r,{viewId:s}),this.$refs.viewSearch.open(r)},0)})},lookupSeled(i){this.fkData=[...i.fkData],this.ruleFormData[this.column.prop]=i.data,this.$emit("change",i)},fkSearch(){this.column.prop!=="baseRecordTable"&&this.column.prop!=="matchingRecordTable"&&(this.firstLoading||(this.searchData(""),this.firstLoading=!0))},getFilterList(i,e){let a=[];return e===""||e===void 0||e===null?[]:(Object.prototype.toString.call(e)==="[object Array]"?a.push({fieldName:i.fieldName,fieldValue:e.join(","),operator:i.operator,columnName:i.columnName}):a.push({fieldName:i.fieldName,fieldValue:e,operator:i.operator,columnName:i.columnName}),a)},searchData(i){this.source&&this.source.cancel("Operation canceled by the user."),this.loading=!0;const e=this.ruleFormData[this.column.prop]?this.ruleFormData[this.column.prop]:[],a=this.column.fkEntityName.split(",")[0];let t={name:i,fkEntityName:a};if(this.column.filterList&&this.column.filterList.length>0){let r=[];this.column.filterList.forEach(l=>{let n=l.columnName==="&user&"?this.userInfo.id:this.ruleFormData[l.columnName];const o=this.getFilterList(l,n);r=r.concat(o)}),r.length>0&&Object.assign(t,{filter:r})}const s=this.fkData.filter(r=>e.includes(r.id));this.column.filterConfig&&this.column.filterConfig.tablename&&Object.assign(t,{filterConfig:this.column.filterConfig}),this.source=M.getCancelToken(),w.baseFkList(t,this.source.token).then(r=>{if(this.loading=!1,this.source=null,r.code===200){const l=r.data.filter(n=>!e.includes(n.id));this.fkData=s.concat(l),this.column.fkData=this.fkData,this.$emit("setFkData",this.column,this.fkData)}})},searchDataId(i){this.loading=!0;const e=this.column.fkEntityName.split(",")[0];let a=this.ruleFormData[this.column.prop],t=[];a.forEach(s=>{let r={id:s,fkEntityName:e},l=this.getBaseFkList(r).then(n=>n);t.push(l)}),Promise.all(t).then(s=>{let r=[];s.forEach(l=>{l.code===200&&(r=r.concat(l.data))}),this.fkData=r,this.column.fkData=r,this.loading=!1,this.$emit("setFkData",this.column,this.fkData)})},getBaseFkList(i){return w.baseFkList(i).then(e=>e)}}};var q=function(){var e=this,a=e._self._c;return a("div",{staticClass:"cao_about",style:{"--fkwidth":e.tagWidth}},[a("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:e.loading,"reserve-keyword":"",filterable:"",remote:"",clearable:"","remote-method":e.searchData,multiple:"","collapse-tags":!0,"popper-append-to-body":!0,disabled:e.column.disabled===void 0?!1:e.column.disabled},on:{focus:e.fkSearch,change:e.handleChange},model:{value:e.ruleFormData[e.column.prop],callback:function(t){e.$set(e.ruleFormData,e.column.prop,t)},expression:"ruleFormData[column.prop]"}},e._l(e.fkData,function(t){return a("el-option",{key:t.id,attrs:{label:t.transkey?e.$i18nt(`Dynamics.${t.transkey}`,t.busname):t.name,value:t.id}})}),1),a("div",{staticClass:"cao_setting",class:e.column.disabled?"pointerevents":"",on:{click:e.lookup}},[a("i",{staticClass:"el-input__icon el-icon-search"})]),a("gd-search",{ref:"viewSearch",attrs:{appendToBody:!0,modalAppendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},P=[],W=g.normalizeComponent(A,q,P,!1,null,"e503af9d",null,null);const N=W.exports,B=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=y;exports.SelectFkMultiple=N;exports.usageBusinessRules=k;