fhrons-pc-next 25.0.0

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 (183) hide show
  1. package/README.md +803 -0
  2. package/dist/assets/css/app~e2e93592.0614dcf9.css +1 -0
  3. package/dist/assets/css/app~e2e93592.0614dcf9.css.gz +0 -0
  4. package/dist/assets/css/chunk-2270175d.e0a049f6.css +1 -0
  5. package/dist/assets/css/chunk-383dbbbe.6b0d07dc.css +1 -0
  6. package/dist/assets/css/chunk-383dbbbe.6b0d07dc.css.gz +0 -0
  7. package/dist/assets/css/chunk-4498a787.03dd36cb.css +1 -0
  8. package/dist/assets/css/chunk-4498a787.03dd36cb.css.gz +0 -0
  9. package/dist/assets/css/chunk-libs~203e0718.9b00eb86.css +1 -0
  10. package/dist/assets/img/PDFView.1579d70c.png +0 -0
  11. package/dist/assets/img/app_router_i18n.68b2d569.jpg +0 -0
  12. package/dist/assets/img/changeVantLang.d31e8ca2.jpg +0 -0
  13. package/dist/assets/img/dataLang.4de8009a.jpg +0 -0
  14. package/dist/assets/img/i18n-lang.0c1ab834.jpg +0 -0
  15. package/dist/assets/img/i18n.b1e44d7c.jpg +0 -0
  16. package/dist/assets/img/noSettle.7822c351.png +0 -0
  17. package/dist/assets/img/storageLang.9e797011.jpg +0 -0
  18. package/dist/assets/img/sz_qyy.7e65edd7.jpg +0 -0
  19. package/dist/assets/js/app~e2e93592.9548d7e1.js +1 -0
  20. package/dist/assets/js/app~e2e93592.9548d7e1.js.gz +0 -0
  21. package/dist/assets/js/chunk-2270175d.22113494.js +9 -0
  22. package/dist/assets/js/chunk-2270175d.22113494.js.gz +0 -0
  23. package/dist/assets/js/chunk-2d0d6351.fbede520.js +1 -0
  24. package/dist/assets/js/chunk-383dbbbe.8a9f98f1.js +1 -0
  25. package/dist/assets/js/chunk-383dbbbe.8a9f98f1.js.gz +0 -0
  26. package/dist/assets/js/chunk-4498a787.ff39f59f.js +1 -0
  27. package/dist/assets/js/chunk-4498a787.ff39f59f.js.gz +0 -0
  28. package/dist/assets/js/chunk-libs~203e0718.3bbae965.js +13 -0
  29. package/dist/assets/js/chunk-libs~203e0718.3bbae965.js.gz +0 -0
  30. package/dist/assets/js/chunk-libs~253ae210.1cb0711c.js +34 -0
  31. package/dist/assets/js/chunk-libs~253ae210.1cb0711c.js.gz +0 -0
  32. package/dist/favicon.ico +0 -0
  33. package/dist/icon.css +1100 -0
  34. package/dist/icon.css.gz +0 -0
  35. package/dist/index.html +198 -0
  36. package/dist/index.html.gz +0 -0
  37. package/dist/loading-spin.svg +6 -0
  38. package/dist/logo.svg +10 -0
  39. package/dist/logo.svg.gz +0 -0
  40. package/dist/static/backup/axios.js +2 -0
  41. package/dist/static/backup/axios.js.gz +0 -0
  42. package/dist/static/backup/echarts.min.js +22 -0
  43. package/dist/static/backup/echarts.min.js.gz +0 -0
  44. package/dist/static/backup/lodash.min.js +140 -0
  45. package/dist/static/backup/lodash.min.js.gz +0 -0
  46. package/dist/static/backup/pdf.min.js +22 -0
  47. package/dist/static/backup/pdf.min.js.gz +0 -0
  48. package/dist/static/backup/sensorsdata.min.js +5 -0
  49. package/dist/static/backup/sensorsdata.min.js.gz +0 -0
  50. package/dist/static/backup/tinymce/icons/default/icons.min.js +1 -0
  51. package/dist/static/backup/tinymce/icons/default/icons.min.js.gz +0 -0
  52. package/dist/static/backup/tinymce/jquery.tinymce.min.js +91 -0
  53. package/dist/static/backup/tinymce/langs/README.md +3 -0
  54. package/dist/static/backup/tinymce/langs/zh-Hans.js +1 -0
  55. package/dist/static/backup/tinymce/langs/zh-Hans.js.gz +0 -0
  56. package/dist/static/backup/tinymce/license.txt +504 -0
  57. package/dist/static/backup/tinymce/plugins/advlist/plugin.min.js +9 -0
  58. package/dist/static/backup/tinymce/plugins/anchor/plugin.min.js +9 -0
  59. package/dist/static/backup/tinymce/plugins/autolink/plugin.min.js +9 -0
  60. package/dist/static/backup/tinymce/plugins/autoresize/plugin.min.js +9 -0
  61. package/dist/static/backup/tinymce/plugins/autosave/plugin.min.js +9 -0
  62. package/dist/static/backup/tinymce/plugins/bbcode/plugin.min.js +9 -0
  63. package/dist/static/backup/tinymce/plugins/charmap/plugin.min.js +9 -0
  64. package/dist/static/backup/tinymce/plugins/charmap/plugin.min.js.gz +0 -0
  65. package/dist/static/backup/tinymce/plugins/code/plugin.min.js +9 -0
  66. package/dist/static/backup/tinymce/plugins/codesample/plugin.min.js +9 -0
  67. package/dist/static/backup/tinymce/plugins/codesample/plugin.min.js.gz +0 -0
  68. package/dist/static/backup/tinymce/plugins/colorpicker/plugin.min.js +9 -0
  69. package/dist/static/backup/tinymce/plugins/contextmenu/plugin.min.js +9 -0
  70. package/dist/static/backup/tinymce/plugins/directionality/plugin.min.js +9 -0
  71. package/dist/static/backup/tinymce/plugins/emoticons/js/emojiimages.js +9424 -0
  72. package/dist/static/backup/tinymce/plugins/emoticons/js/emojiimages.js.gz +0 -0
  73. package/dist/static/backup/tinymce/plugins/emoticons/js/emojiimages.min.js +3 -0
  74. package/dist/static/backup/tinymce/plugins/emoticons/js/emojiimages.min.js.gz +0 -0
  75. package/dist/static/backup/tinymce/plugins/emoticons/js/emojis.js +9423 -0
  76. package/dist/static/backup/tinymce/plugins/emoticons/js/emojis.js.gz +0 -0
  77. package/dist/static/backup/tinymce/plugins/emoticons/js/emojis.min.js +2 -0
  78. package/dist/static/backup/tinymce/plugins/emoticons/js/emojis.min.js.gz +0 -0
  79. package/dist/static/backup/tinymce/plugins/emoticons/plugin.min.js +9 -0
  80. package/dist/static/backup/tinymce/plugins/formatpainter/plugin.js +156 -0
  81. package/dist/static/backup/tinymce/plugins/formatpainter/plugin.min.js +971 -0
  82. package/dist/static/backup/tinymce/plugins/formatpainter/plugin.min.js.gz +0 -0
  83. package/dist/static/backup/tinymce/plugins/fullpage/plugin.min.js +9 -0
  84. package/dist/static/backup/tinymce/plugins/fullscreen/plugin.min.js +9 -0
  85. package/dist/static/backup/tinymce/plugins/fullscreen/plugin.min.js.gz +0 -0
  86. package/dist/static/backup/tinymce/plugins/help/plugin.min.js +9 -0
  87. package/dist/static/backup/tinymce/plugins/help/plugin.min.js.gz +0 -0
  88. package/dist/static/backup/tinymce/plugins/hr/plugin.min.js +9 -0
  89. package/dist/static/backup/tinymce/plugins/image/plugin.min.js +9 -0
  90. package/dist/static/backup/tinymce/plugins/image/plugin.min.js.gz +0 -0
  91. package/dist/static/backup/tinymce/plugins/imagetools/plugin.min.js +9 -0
  92. package/dist/static/backup/tinymce/plugins/imagetools/plugin.min.js.gz +0 -0
  93. package/dist/static/backup/tinymce/plugins/importcss/plugin.min.js +9 -0
  94. package/dist/static/backup/tinymce/plugins/insertdatetime/plugin.min.js +9 -0
  95. package/dist/static/backup/tinymce/plugins/legacyoutput/plugin.min.js +9 -0
  96. package/dist/static/backup/tinymce/plugins/link/plugin.min.js +9 -0
  97. package/dist/static/backup/tinymce/plugins/link/plugin.min.js.gz +0 -0
  98. package/dist/static/backup/tinymce/plugins/lists/plugin.min.js +9 -0
  99. package/dist/static/backup/tinymce/plugins/lists/plugin.min.js.gz +0 -0
  100. package/dist/static/backup/tinymce/plugins/media/plugin.min.js +9 -0
  101. package/dist/static/backup/tinymce/plugins/media/plugin.min.js.gz +0 -0
  102. package/dist/static/backup/tinymce/plugins/nonbreaking/plugin.min.js +9 -0
  103. package/dist/static/backup/tinymce/plugins/noneditable/plugin.min.js +9 -0
  104. package/dist/static/backup/tinymce/plugins/pagebreak/plugin.min.js +9 -0
  105. package/dist/static/backup/tinymce/plugins/paste/plugin.min.js +9 -0
  106. package/dist/static/backup/tinymce/plugins/paste/plugin.min.js.gz +0 -0
  107. package/dist/static/backup/tinymce/plugins/powerpaste/img/spinner_96.gif +0 -0
  108. package/dist/static/backup/tinymce/plugins/powerpaste/js/wordimport.js +9098 -0
  109. package/dist/static/backup/tinymce/plugins/powerpaste/js/wordimport.js.gz +0 -0
  110. package/dist/static/backup/tinymce/plugins/powerpaste/langs/zh_CN.js +18 -0
  111. package/dist/static/backup/tinymce/plugins/powerpaste/plugin.min.js +7 -0
  112. package/dist/static/backup/tinymce/plugins/powerpaste/plugin.min.js.gz +0 -0
  113. package/dist/static/backup/tinymce/plugins/preview/plugin.min.js +9 -0
  114. package/dist/static/backup/tinymce/plugins/print/plugin.min.js +9 -0
  115. package/dist/static/backup/tinymce/plugins/quickbars/plugin.min.js +9 -0
  116. package/dist/static/backup/tinymce/plugins/save/plugin.min.js +9 -0
  117. package/dist/static/backup/tinymce/plugins/searchreplace/plugin.min.js +9 -0
  118. package/dist/static/backup/tinymce/plugins/searchreplace/plugin.min.js.gz +0 -0
  119. package/dist/static/backup/tinymce/plugins/spellchecker/plugin.min.js +9 -0
  120. package/dist/static/backup/tinymce/plugins/tabfocus/plugin.min.js +9 -0
  121. package/dist/static/backup/tinymce/plugins/table/plugin.min.js +9 -0
  122. package/dist/static/backup/tinymce/plugins/table/plugin.min.js.gz +0 -0
  123. package/dist/static/backup/tinymce/plugins/template/plugin.min.js +9 -0
  124. package/dist/static/backup/tinymce/plugins/textcolor/plugin.min.js +9 -0
  125. package/dist/static/backup/tinymce/plugins/textpattern/plugin.min.js +9 -0
  126. package/dist/static/backup/tinymce/plugins/textpattern/plugin.min.js.gz +0 -0
  127. package/dist/static/backup/tinymce/plugins/toc/plugin.min.js +9 -0
  128. package/dist/static/backup/tinymce/plugins/visualblocks/plugin.min.js +9 -0
  129. package/dist/static/backup/tinymce/plugins/visualchars/plugin.min.js +9 -0
  130. package/dist/static/backup/tinymce/plugins/wordcount/plugin.min.js +9 -0
  131. package/dist/static/backup/tinymce/plugins/wordcount/plugin.min.js.gz +0 -0
  132. package/dist/static/backup/tinymce/skins/content/dark/content.min.css +7 -0
  133. package/dist/static/backup/tinymce/skins/content/default/content.min.css +7 -0
  134. package/dist/static/backup/tinymce/skins/content/document/content.min.css +7 -0
  135. package/dist/static/backup/tinymce/skins/content/writer/content.min.css +7 -0
  136. package/dist/static/backup/tinymce/skins/ui/oxide/content.inline.min.css +7 -0
  137. package/dist/static/backup/tinymce/skins/ui/oxide/content.inline.min.css.gz +0 -0
  138. package/dist/static/backup/tinymce/skins/ui/oxide/content.min.css +7 -0
  139. package/dist/static/backup/tinymce/skins/ui/oxide/content.min.css.gz +0 -0
  140. package/dist/static/backup/tinymce/skins/ui/oxide/content.mobile.min.css +7 -0
  141. package/dist/static/backup/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
  142. package/dist/static/backup/tinymce/skins/ui/oxide/skin.min.css +7 -0
  143. package/dist/static/backup/tinymce/skins/ui/oxide/skin.min.css.gz +0 -0
  144. package/dist/static/backup/tinymce/skins/ui/oxide/skin.mobile.min.css +7 -0
  145. package/dist/static/backup/tinymce/skins/ui/oxide/skin.mobile.min.css.gz +0 -0
  146. package/dist/static/backup/tinymce/skins/ui/oxide/skin.shadowdom.min.css +7 -0
  147. package/dist/static/backup/tinymce/skins/ui/oxide-dark/content.inline.min.css +7 -0
  148. package/dist/static/backup/tinymce/skins/ui/oxide-dark/content.inline.min.css.gz +0 -0
  149. package/dist/static/backup/tinymce/skins/ui/oxide-dark/content.min.css +7 -0
  150. package/dist/static/backup/tinymce/skins/ui/oxide-dark/content.min.css.gz +0 -0
  151. package/dist/static/backup/tinymce/skins/ui/oxide-dark/content.mobile.min.css +7 -0
  152. package/dist/static/backup/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
  153. package/dist/static/backup/tinymce/skins/ui/oxide-dark/skin.min.css +7 -0
  154. package/dist/static/backup/tinymce/skins/ui/oxide-dark/skin.min.css.gz +0 -0
  155. package/dist/static/backup/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +7 -0
  156. package/dist/static/backup/tinymce/skins/ui/oxide-dark/skin.mobile.min.css.gz +0 -0
  157. package/dist/static/backup/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
  158. package/dist/static/backup/tinymce/themes/mobile/theme.min.js +9 -0
  159. package/dist/static/backup/tinymce/themes/mobile/theme.min.js.gz +0 -0
  160. package/dist/static/backup/tinymce/themes/silver/theme.min.js +9 -0
  161. package/dist/static/backup/tinymce/themes/silver/theme.min.js.gz +0 -0
  162. package/dist/static/backup/tinymce/tinymce.d.ts +3036 -0
  163. package/dist/static/backup/tinymce/tinymce.min.js +9 -0
  164. package/dist/static/backup/tinymce/tinymce.min.js.gz +0 -0
  165. package/dist/static/backup/vue-router.min.js +11 -0
  166. package/dist/static/backup/vue-router.min.js.gz +0 -0
  167. package/dist/static/backup/vue.js +12014 -0
  168. package/dist/static/backup/vue.js.gz +0 -0
  169. package/dist/static/backup/vue.min.js +6 -0
  170. package/dist/static/backup/vue.min.js.gz +0 -0
  171. package/dist/static/backup/vuex.min.js +6 -0
  172. package/dist/static/backup/vuex.min.js.gz +0 -0
  173. package/dist/static/css/font-family.css +110 -0
  174. package/dist/static/ttf/Times New Roman.ttf +0 -0
  175. package/dist/static/ttf/Times%20New%20Roman.ttf.gz +0 -0
  176. package/dist/static/ttf/heiTi/FZZHJW.TTF +0 -0
  177. package/dist/static/ttf/songti/STSongti-SC-Black-01.ttf +0 -0
  178. package/dist/static/ttf/songti/STSongti-SC-Black-01.ttf.gz +0 -0
  179. package/dist/static/ttf//344/273/277/345/256/213.ttf +0 -0
  180. package/dist/static/ttf//344/273/277/345/256/213.ttf.gz +0 -0
  181. package/dist/static/ttf//346/245/267/344/275/223.ttf +0 -0
  182. package/dist/static/ttf//346/245/267/344/275/223.ttf.gz +0 -0
  183. package/package.json +77 -0
@@ -0,0 +1 @@
1
+ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-383dbbbe","chunk-4498a787"],{"030b":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"OrgTreeTest"}},[n("OrgTree",{ref:"OrgTree",attrs:{"tree-data":e.treeData,"method-list":e.methodList,collapsable:e.collapsable,"label-class-name":e.labelClassName,horizontal:e.horizontal},on:{onNodeClick:e.onNodeClick}}),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlStrArr.slice(1).join("")))}}),e._v("\n ")])])],1)},r=[],o=n("c197"),i=n.n(o),l=n("2af9"),s=(n("a878"),{name:"OrgTreeTest",components:{OrgTree:l["p"]},data:function(){return{treeData:{sorted:1,children:[{sorted:1,children:[{sorted:1,children:[{sorted:1,children:[{sorted:1,id:115,label:"生产技术部工艺员",level:"5",parentId:123,desc:""},{sorted:2,children:[{sorted:1,children:[{sorted:2,children:[{sorted:1,id:125,label:"中控操作员",level:"8",parentId:116,desc:""},{sorted:2,id:121,label:"前操操作员",level:"8",parentId:116,desc:""},{sorted:3,id:120,label:"环氧操作员",level:"8",parentId:116,desc:""},{sorted:4,id:127,label:"催化剂操作员",level:"8",parentId:116,desc:""},{sorted:8,id:118,label:"内操",level:"8",parentId:116,desc:""},{sorted:9,id:119,label:"外操",level:"8",parentId:116,desc:""}],id:116,label:"一二工段班长",level:"7",parentId:124,desc:""}],id:124,label:"聚合工段段长",level:"6",parentId:114,desc:""},{sorted:2,children:[{sorted:3,children:[{sorted:1,id:128,label:"切片操作员",level:"8",parentId:117,desc:""},{sorted:2,id:129,label:"切片工段叉车员",level:"8",parentId:117,desc:""},{sorted:3,id:130,label:"切片工段看料操作员",level:"8",parentId:117,desc:""},{sorted:4,id:131,label:"切片工段检斤操作员",level:"8",parentId:117,desc:""}],id:117,label:"切片工段班长",level:"7",parentId:126,desc:""}],id:126,label:"切片工段段长",level:"6",parentId:114,desc:""}],id:114,label:"单体车间主任",level:"5",parentId:123,desc:""},{sorted:3,children:[{sorted:2,children:[{sorted:1,children:[{sorted:1,id:133,label:"碳酸酯内操操作员",level:"8",parentId:132,desc:""},{sorted:2,id:93,label:"碳酸酯外操操作员",level:"8",parentId:132,desc:""},{sorted:3,id:134,label:"碳酸酯包装员",level:"8",parentId:132,desc:""},{sorted:4,id:135,label:"碳酸酯叉车员",level:"8",parentId:132,desc:""}],id:132,label:"碳酸酯班长",level:"7",parentId:92,desc:""}],id:92,label:"碳酸酯值班班长",level:"6",parentId:85,desc:""},{sorted:2,id:91,label:"工艺员",level:"6",parentId:85,desc:""}],id:85,label:"碳酸酯车间主任",level:"5",parentId:123,desc:"部长"},{sorted:4,children:[{sorted:1,children:[{sorted:1,children:[{sorted:1,id:139,label:"减水剂一工段操作员",level:"8",parentId:137,desc:""},{sorted:2,id:140,label:"减水剂一工段叉车员",level:"8",parentId:137,desc:""},{sorted:3,id:141,label:"减水剂一工段发货员",level:"8",parentId:137,desc:""}],id:137,label:"减水剂一工段班长",level:"7",parentId:136,desc:""},{sorted:2,children:[{sorted:1,id:142,label:"减水剂二工段操作员",level:"8",parentId:138,desc:""},{sorted:2,id:143,label:"减水剂二工段叉车员",level:"8",parentId:138,desc:""},{sorted:3,id:144,label:"减水剂二工段发货员",level:"8",parentId:138,desc:""}],id:138,label:"减水剂二工段班长",level:"7",parentId:136,desc:""}],id:136,label:"减水剂车间副主任",level:"6",parentId:122,desc:""}],id:122,label:"减水剂车间主任",level:"5",parentId:123,desc:""}],id:123,label:"生产技术部部长",level:"4",parentId:83,desc:""},{sorted:2,children:[{sorted:1,id:101,label:"安全员1",level:"5",parentId:87,desc:""},{sorted:2,id:145,label:"安全员2",level:"5",parentId:87,desc:""},{sorted:3,id:146,label:"安全员3",level:"5",parentId:87,desc:""},{sorted:4,id:147,label:"QA专员",level:"5",parentId:87,desc:""},{sorted:5,id:148,label:"门卫",level:"5",parentId:87,desc:""}],id:87,label:"质安环部部长",level:"4",parentId:83,desc:""},{sorted:5,children:[{sorted:1,children:[{sorted:1,children:[{sorted:1,id:150,label:"钳工技师",level:"7",parentId:149,desc:""},{sorted:3,id:97,label:"仪表技师",level:"7",parentId:149,desc:""},{sorted:5,id:96,label:"电气技师",level:"7",parentId:149,desc:""},{sorted:6,id:98,label:"焊工技师",level:"7",parentId:149,desc:""}],id:149,label:"维修经理",level:"6",parentId:95,desc:""}],id:95,label:"设备部副部长",level:"5",parentId:86,desc:""}],id:86,label:"设备部部长",level:"4",parentId:83,desc:""},{sorted:6,children:[{sorted:1,id:100,label:"管理员1",level:"5",parentId:99,desc:""},{sorted:2,id:151,label:"管理员2",level:"5",parentId:99,desc:""}],id:99,label:"工程部部长",level:"4",parentId:83,desc:""},{sorted:7,children:[{sorted:1,id:152,label:"产品库保管理员",level:"5",parentId:88,desc:""},{sorted:2,id:153,label:"产品库发货员",level:"5",parentId:88,desc:""},{sorted:3,id:154,label:"装卸工",level:"5",parentId:88,desc:""},{sorted:4,id:155,label:"叉车工",level:"5",parentId:88,desc:""},{sorted:5,id:156,label:"备品备件库保管员",level:"5",parentId:88,desc:""}],id:88,label:"仓储部部长",level:"4",parentId:83,desc:""},{sorted:8,children:[{sorted:1,id:105,label:"采购员",level:"5",parentId:90,desc:""},{sorted:2,id:157,label:"采购内勤",level:"5",parentId:90,desc:""}],id:90,label:"采购部部长",level:"4",parentId:83,desc:""},{sorted:9,children:[{sorted:9,id:89,label:"化验员",level:"5",parentId:158,desc:""}],id:158,label:"化验室主任",level:"4",parentId:83,desc:""},{sorted:10,children:[{sorted:9,children:[{sorted:1,id:159,label:"研发实验员",level:"6",parentId:110,desc:""}],id:110,label:"研发中心副主任",level:"5",parentId:108,desc:""}],id:108,label:"研发中心主任",level:"4",parentId:83,desc:""},{sorted:11,children:[{sorted:1,id:107,label:"产品实验员",level:"5",parentId:106,desc:""}],id:106,label:"售后中心主任",level:"4",parentId:83,desc:""},{sorted:12,children:[{sorted:1,id:160,label:"保洁员",level:"5",parentId:94,desc:""},{sorted:2,id:161,label:"食堂员工",level:"5",parentId:94,desc:""},{sorted:3,id:162,label:"财务专员",level:"5",parentId:94,desc:""},{sorted:4,id:109,label:"档案员",level:"5",parentId:94,desc:""},{sorted:5,id:163,label:"司机",level:"5",parentId:94,desc:""}],id:94,label:"综合办主任",level:"4",parentId:83,desc:""},{sorted:13,children:[{sorted:1,id:165,label:"人事专员",level:"5",parentId:164,desc:""},{sorted:2,id:166,label:"it专员",level:"5",parentId:164,desc:""}],id:164,label:"人力资源部部长",level:"4",parentId:83,desc:""},{sorted:14,children:[{sorted:1,id:168,label:"组员",level:"5",parentId:167,desc:""}],id:167,label:"标准化小组组长",level:"4",parentId:83,desc:""},{sorted:16,id:84,label:"生产调度",level:"4",parentId:83,desc:"生产调度"}],id:83,label:"生产厂长/安全总监",level:"3",parentId:10,desc:""}],id:10,label:"总经理",level:"2",parentId:9,desc:""}],id:9,label:"董事长",level:"1",parentId:1,desc:""},methodList:[{command:"addShow",name:"添加"},{command:"delTreeSel",name:"删除"}],horizontal:!1,collapsable:!1,labelClassName:"bg-none",htmlStrArr:['\n<template>\n <div id="OrgTreeTest">\n <OrgTree ref="OrgTree" :tree-data="treeData" :method-list="methodList" :collapsable="collapsable" :label-class-name="labelClassName" :horizontal="horizontal" @onNodeClick="onNodeClick" />\n </div>\n</template>',"\n<script>\nexport default {\n // 组件名称\n name: 'OrgTree',\n // 组件参数 接收来自父组件的数据\n props: {},\n // 组件状态值\n data() {\n return {\n treeData: {\n 'sorted': 1,\n 'children': [\n {\n 'sorted': 1,\n 'children': [\n {\n 'sorted': 1,\n 'children': [\n {\n 'sorted': 1,\n 'children': [\n {\n 'sorted': 1,\n 'id': 115,\n 'label': '生产技术部工艺员',\n 'level': '5',\n 'parentId': 123,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'children': [\n {\n 'sorted': 1,\n 'children': [\n {\n 'sorted': 2,\n 'children': [\n {\n 'sorted': 1,\n 'id': 125,\n 'label': '中控操作员',\n 'level': '8',\n 'parentId': 116,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'id': 121,\n 'label': '前操操作员',\n 'level': '8',\n 'parentId': 116,\n 'desc': ''\n },\n {\n 'sorted': 3,\n 'id': 120,\n 'label': '环氧操作员',\n 'level': '8',\n 'parentId': 116,\n 'desc': ''\n },\n {\n 'sorted': 4,\n 'id': 127,\n 'label': '催化剂操作员',\n 'level': '8',\n 'parentId': 116,\n 'desc': ''\n },\n {\n 'sorted': 8,\n 'id': 118,\n 'label': '内操',\n 'level': '8',\n 'parentId': 116,\n 'desc': ''\n },\n {\n 'sorted': 9,\n 'id': 119,\n 'label': '外操',\n 'level': '8',\n 'parentId': 116,\n 'desc': ''\n }\n ],\n 'id': 116,\n 'label': '一二工段班长',\n 'level': '7',\n 'parentId': 124,\n 'desc': ''\n }\n ],\n 'id': 124,\n 'label': '聚合工段段长',\n 'level': '6',\n 'parentId': 114,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'children': [\n {\n 'sorted': 3,\n 'children': [\n {\n 'sorted': 1,\n 'id': 128,\n 'label': '切片操作员',\n 'level': '8',\n 'parentId': 117,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'id': 129,\n 'label': '切片工段叉车员',\n 'level': '8',\n 'parentId': 117,\n 'desc': ''\n },\n {\n 'sorted': 3,\n 'id': 130,\n 'label': '切片工段看料操作员',\n 'level': '8',\n 'parentId': 117,\n 'desc': ''\n },\n {\n 'sorted': 4,\n 'id': 131,\n 'label': '切片工段检斤操作员',\n 'level': '8',\n 'parentId': 117,\n 'desc': ''\n }\n ],\n 'id': 117,\n 'label': '切片工段班长',\n 'level': '7',\n 'parentId': 126,\n 'desc': ''\n }\n ],\n 'id': 126,\n 'label': '切片工段段长',\n 'level': '6',\n 'parentId': 114,\n 'desc': ''\n }\n ],\n 'id': 114,\n 'label': '单体车间主任',\n 'level': '5',\n 'parentId': 123,\n 'desc': ''\n },\n {\n 'sorted': 3,\n 'children': [\n {\n 'sorted': 2,\n 'children': [\n {\n 'sorted': 1,\n 'children': [\n {\n 'sorted': 1,\n 'id': 133,\n 'label': '碳酸酯内操操作员',\n 'level': '8',\n 'parentId': 132,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'id': 93,\n 'label': '碳酸酯外操操作员',\n 'level': '8',\n 'parentId': 132,\n 'desc': ''\n },\n {\n 'sorted': 3,\n 'id': 134,\n 'label': '碳酸酯包装员',\n 'level': '8',\n 'parentId': 132,\n 'desc': ''\n },\n {\n 'sorted': 4,\n 'id': 135,\n 'label': '碳酸酯叉车员',\n 'level': '8',\n 'parentId': 132,\n 'desc': ''\n }\n ],\n 'id': 132,\n 'label': '碳酸酯班长',\n 'level': '7',\n 'parentId': 92,\n 'desc': ''\n }\n ],\n 'id': 92,\n 'label': '碳酸酯值班班长',\n 'level': '6',\n 'parentId': 85,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'id': 91,\n 'label': '工艺员',\n 'level': '6',\n 'parentId': 85,\n 'desc': ''\n }\n ],\n 'id': 85,\n 'label': '碳酸酯车间主任',\n 'level': '5',\n 'parentId': 123,\n 'desc': '部长'\n },\n {\n 'sorted': 4,\n 'children': [\n {\n 'sorted': 1,\n 'children': [\n {\n 'sorted': 1,\n 'children': [\n {\n 'sorted': 1,\n 'id': 139,\n 'label': '减水剂一工段操作员',\n 'level': '8',\n 'parentId': 137,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'id': 140,\n 'label': '减水剂一工段叉车员',\n 'level': '8',\n 'parentId': 137,\n 'desc': ''\n },\n {\n 'sorted': 3,\n 'id': 141,\n 'label': '减水剂一工段发货员',\n 'level': '8',\n 'parentId': 137,\n 'desc': ''\n }\n ],\n 'id': 137,\n 'label': '减水剂一工段班长',\n 'level': '7',\n 'parentId': 136,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'children': [\n {\n 'sorted': 1,\n 'id': 142,\n 'label': '减水剂二工段操作员',\n 'level': '8',\n 'parentId': 138,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'id': 143,\n 'label': '减水剂二工段叉车员',\n 'level': '8',\n 'parentId': 138,\n 'desc': ''\n },\n {\n 'sorted': 3,\n 'id': 144,\n 'label': '减水剂二工段发货员',\n 'level': '8',\n 'parentId': 138,\n 'desc': ''\n }\n ],\n 'id': 138,\n 'label': '减水剂二工段班长',\n 'level': '7',\n 'parentId': 136,\n 'desc': ''\n }\n ],\n 'id': 136,\n 'label': '减水剂车间副主任',\n 'level': '6',\n 'parentId': 122,\n 'desc': ''\n }\n ],\n 'id': 122,\n 'label': '减水剂车间主任',\n 'level': '5',\n 'parentId': 123,\n 'desc': ''\n }\n ],\n 'id': 123,\n 'label': '生产技术部部长',\n 'level': '4',\n 'parentId': 83,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'children': [\n {\n 'sorted': 1,\n 'id': 101,\n 'label': '安全员1',\n 'level': '5',\n 'parentId': 87,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'id': 145,\n 'label': '安全员2',\n 'level': '5',\n 'parentId': 87,\n 'desc': ''\n },\n {\n 'sorted': 3,\n 'id': 146,\n 'label': '安全员3',\n 'level': '5',\n 'parentId': 87,\n 'desc': ''\n },\n {\n 'sorted': 4,\n 'id': 147,\n 'label': 'QA专员',\n 'level': '5',\n 'parentId': 87,\n 'desc': ''\n },\n {\n 'sorted': 5,\n 'id': 148,\n 'label': '门卫',\n 'level': '5',\n 'parentId': 87,\n 'desc': ''\n }\n ],\n 'id': 87,\n 'label': '质安环部部长',\n 'level': '4',\n 'parentId': 83,\n 'desc': ''\n },\n {\n 'sorted': 5,\n 'children': [\n {\n 'sorted': 1,\n 'children': [\n {\n 'sorted': 1,\n 'children': [\n {\n 'sorted': 1,\n 'id': 150,\n 'label': '钳工技师',\n 'level': '7',\n 'parentId': 149,\n 'desc': ''\n },\n {\n 'sorted': 3,\n 'id': 97,\n 'label': '仪表技师',\n 'level': '7',\n 'parentId': 149,\n 'desc': ''\n },\n {\n 'sorted': 5,\n 'id': 96,\n 'label': '电气技师',\n 'level': '7',\n 'parentId': 149,\n 'desc': ''\n },\n {\n 'sorted': 6,\n 'id': 98,\n 'label': '焊工技师',\n 'level': '7',\n 'parentId': 149,\n 'desc': ''\n }\n ],\n 'id': 149,\n 'label': '维修经理',\n 'level': '6',\n 'parentId': 95,\n 'desc': ''\n }\n ],\n 'id': 95,\n 'label': '设备部副部长',\n 'level': '5',\n 'parentId': 86,\n 'desc': ''\n }\n ],\n 'id': 86,\n 'label': '设备部部长',\n 'level': '4',\n 'parentId': 83,\n 'desc': ''\n },\n {\n 'sorted': 6,\n 'children': [\n {\n 'sorted': 1,\n 'id': 100,\n 'label': '管理员1',\n 'level': '5',\n 'parentId': 99,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'id': 151,\n 'label': '管理员2',\n 'level': '5',\n 'parentId': 99,\n 'desc': ''\n }\n ],\n 'id': 99,\n 'label': '工程部部长',\n 'level': '4',\n 'parentId': 83,\n 'desc': ''\n },\n {\n 'sorted': 7,\n 'children': [\n {\n 'sorted': 1,\n 'id': 152,\n 'label': '产品库保管理员',\n 'level': '5',\n 'parentId': 88,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'id': 153,\n 'label': '产品库发货员',\n 'level': '5',\n 'parentId': 88,\n 'desc': ''\n },\n {\n 'sorted': 3,\n 'id': 154,\n 'label': '装卸工',\n 'level': '5',\n 'parentId': 88,\n 'desc': ''\n },\n {\n 'sorted': 4,\n 'id': 155,\n 'label': '叉车工',\n 'level': '5',\n 'parentId': 88,\n 'desc': ''\n },\n {\n 'sorted': 5,\n 'id': 156,\n 'label': '备品备件库保管员',\n 'level': '5',\n 'parentId': 88,\n 'desc': ''\n }\n ],\n 'id': 88,\n 'label': '仓储部部长',\n 'level': '4',\n 'parentId': 83,\n 'desc': ''\n },\n {\n 'sorted': 8,\n 'children': [\n {\n 'sorted': 1,\n 'id': 105,\n 'label': '采购员',\n 'level': '5',\n 'parentId': 90,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'id': 157,\n 'label': '采购内勤',\n 'level': '5',\n 'parentId': 90,\n 'desc': ''\n }\n ],\n 'id': 90,\n 'label': '采购部部长',\n 'level': '4',\n 'parentId': 83,\n 'desc': ''\n },\n {\n 'sorted': 9,\n 'children': [\n {\n 'sorted': 9,\n 'id': 89,\n 'label': '化验员',\n 'level': '5',\n 'parentId': 158,\n 'desc': ''\n }\n ],\n 'id': 158,\n 'label': '化验室主任',\n 'level': '4',\n 'parentId': 83,\n 'desc': ''\n },\n {\n 'sorted': 10,\n 'children': [\n {\n 'sorted': 9,\n 'children': [\n {\n 'sorted': 1,\n 'id': 159,\n 'label': '研发实验员',\n 'level': '6',\n 'parentId': 110,\n 'desc': ''\n }\n ],\n 'id': 110,\n 'label': '研发中心副主任',\n 'level': '5',\n 'parentId': 108,\n 'desc': ''\n }\n ],\n 'id': 108,\n 'label': '研发中心主任',\n 'level': '4',\n 'parentId': 83,\n 'desc': ''\n },\n {\n 'sorted': 11,\n 'children': [\n {\n 'sorted': 1,\n 'id': 107,\n 'label': '产品实验员',\n 'level': '5',\n 'parentId': 106,\n 'desc': ''\n }\n ],\n 'id': 106,\n 'label': '售后中心主任',\n 'level': '4',\n 'parentId': 83,\n 'desc': ''\n },\n {\n 'sorted': 12,\n 'children': [\n {\n 'sorted': 1,\n 'id': 160,\n 'label': '保洁员',\n 'level': '5',\n 'parentId': 94,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'id': 161,\n 'label': '食堂员工',\n 'level': '5',\n 'parentId': 94,\n 'desc': ''\n },\n {\n 'sorted': 3,\n 'id': 162,\n 'label': '财务专员',\n 'level': '5',\n 'parentId': 94,\n 'desc': ''\n },\n {\n 'sorted': 4,\n 'id': 109,\n 'label': '档案员',\n 'level': '5',\n 'parentId': 94,\n 'desc': ''\n },\n {\n 'sorted': 5,\n 'id': 163,\n 'label': '司机',\n 'level': '5',\n 'parentId': 94,\n 'desc': ''\n }\n ],\n 'id': 94,\n 'label': '综合办主任',\n 'level': '4',\n 'parentId': 83,\n 'desc': ''\n },\n {\n 'sorted': 13,\n 'children': [\n {\n 'sorted': 1,\n 'id': 165,\n 'label': '人事专员',\n 'level': '5',\n 'parentId': 164,\n 'desc': ''\n },\n {\n 'sorted': 2,\n 'id': 166,\n 'label': 'it专员',\n 'level': '5',\n 'parentId': 164,\n 'desc': ''\n }\n ],\n 'id': 164,\n 'label': '人力资源部部长',\n 'level': '4',\n 'parentId': 83,\n 'desc': ''\n },\n {\n 'sorted': 14,\n 'children': [\n {\n 'sorted': 1,\n 'id': 168,\n 'label': '组员',\n 'level': '5',\n 'parentId': 167,\n 'desc': ''\n }\n ],\n 'id': 167,\n 'label': '标准化小组组长',\n 'level': '4',\n 'parentId': 83,\n 'desc': ''\n },\n {\n 'sorted': 16,\n 'id': 84,\n 'label': '生产调度',\n 'level': '4',\n 'parentId': 83,\n 'desc': '生产调度'\n }\n ],\n 'id': 83,\n 'label': '生产厂长/安全总监',\n 'level': '3',\n 'parentId': 10,\n 'desc': ''\n }\n ],\n 'id': 10,\n 'label': '总经理',\n 'level': '2',\n 'parentId': 9,\n 'desc': ''\n }\n ],\n 'id': 9,\n 'label': '董事长',\n 'level': '1',\n 'parentId': 1,\n 'desc': ''\n },\n methodList: [{ command: 'addShow', name: '添加' }, { command: 'delTreeSel', name: '删除' }],\n horizontal: false,\n collapsable: false,\n labelClassName: 'bg-none',\n };\n },\n // 侦听器\n computed: {\n },\n watch: {},\n created() {\n },\n mounted() {\n console.log(this.treeData);\n },\n methods: {\n onNodeClick(command, data) {\n if (command === 'addShow') {\n // 新增\n // console.log('新增');\n console.log(this.$refs);\n this.$refs.OrgTree.append(data, '新增的');// 增加元素\n // console.log(this.treeData);\n } else if (command === 'delTreeSel') {\n const treeDataArr = [this.treeData];\n this.delId = data.id;\n this.parentId = data.parentId;\n if (this.parentId === 1) {\n this.treeData = {};\n } else {\n this.$refs.OrgTree.filterTree(treeDataArr);\n }\n }\n },\n }\n};\n</scr","ipt>\n"]}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{onNodeClick:function(e,t){if("addShow"===e)console.log(this.$refs),this.$refs.OrgTree.append(t,"新增的");else if("delTreeSel"===e){var n=[this.treeData];this.delId=t.id,this.parentId=t.parentId,1===this.parentId?this.treeData={}:this.$refs.OrgTree.filterTree(n)}},toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}}),c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"f5575a36",null);t["default"]=d.exports},"0314":function(e,t,n){},"04b8":function(e,t,n){},"0524":function(e,t,n){"use strict";n("0712")},"0584":function(e,t,n){},"0712":function(e,t,n){},"07c5":function(e,t,n){},"0852":function(e){e.exports=JSON.parse('{"changelog":[{"version":"24.3.1-1.1","BugFixes":[],"Features":["统一上传文件命名方式"]},{"version":"24.3.1-0.2","BugFixes":[],"Features":["上传方法target默认值增加生产环境域名判断"]},{"version":"24.3.0-9.2","BugFixes":[],"Features":["上传组件新增自定义文件名称的方式,可传Func"]},{"version":"24.3.0-8.1","BugFixes":[],"Features":["自定义上传时如果超出了限制数量且限制数量为1时,会替换原有图片"]},{"version":"24.3.0-7.1","BugFixes":["去掉上传组件禁用时的置灰效果,同时支持点击放大图标进行放大查看"],"Features":[]},{"version":"24.3.2-8.1","BugFixes":["修复key的大小写带来的文件名undefined问题,同时兼容key和Key"],"Features":[]},{"version":"24.3.2-5.2","BugFixes":["修复部分项目不带请求拦截的情况下,接口出参找不到的bug"],"Features":[]},{"version":"24.3.1-9.1","BugFixes":["修复亚马逊上传文件名带中文导致链接失效的bug"],"Features":[]},{"version":"24.3.1-8.2","BugFixes":["传参方式改为只传两个,第一个是对象,包含file、target、project、keyFunc、needWholeRes,还是原来的属性只是放在了对象里;第二个是接受上传进度的回调函数,参数是数值,范围0-100."],"Features":["新增接收上传进度的回调函数,参数为数值(0-100)","增加needWholeRes参数,如果业务中需要完整的上传出参可传true,文件链接使用fileUrl键名返回;如不需要则传false,出参为图片链接。"]},{"version":"24.3.1-8.1","BugFixes":["修复亚马逊上传返回的图片链接失效的bug"],"Features":[]}]}')},"08a9":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"WebFHIframeTest"}},[n("strong",{staticClass:"ft16"},[e._v("这里注意的是需要嵌入别人的系统页面(例如我想嵌入crm的基础标签管理页面),需要做的几个步骤:")]),e._m(0),n("strong",{staticClass:"line-height32"},[e._v("3、具体使用")]),n("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"实际使用",name:"normal"}},[n("WebIframePage",{staticStyle:{width:"100%",height:"700px"}}),n("WebFHIframeTestHtml",{attrs:{type:"normal"}})],1),n("el-tab-pane",{attrs:{label:"本地调试可传要去的系统的本地连接调试",name:"local"}},[n("WebIframePage",{staticStyle:{width:"100%",height:"700px"},attrs:{"localhost-url":e.localhostUrl}}),n("WebFHIframeTestHtml",{attrs:{type:"local"}})],1)],1)],1)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"line-height32"},[n("strong",[e._v('1、如果是在租户上配置路由的系统,租户路由里面配置上要去的系统的路由,这里原则是"项目名/路由路径",即crm/portraitManage')]),n("img",{staticStyle:{width:"100%",height:"400px"},attrs:{src:"https://uploaduat-10051630.cos.ap-shanghai.myqcloud.com/fhronspc/img/1689249524227/1689249524133/469751689249483_.pic.jpg",alt:""}}),n("p",{staticClass:"c-f56c6c"},[e._v("这里的路由路径写嵌入的系统的路由")]),n("p",{staticClass:"c-f56c6c"},[e._v("这里的组件路径写当前嵌入的自己项目的组件的路径,截图对应的是平台配置系统的组件路径(iframePage/IframePage),我们本案例应该是写testPage/iframeTest/WebFHIframeTest,这个就是根据自己创建的vue文件路径去动态写就行")]),n("strong",[e._v("2、要去被嵌入的系统里面的路由文件(router.js),mainWhiteRouter数组里面写上改页面的路由(原因是这个页面被嵌入是不需要头部和左边侧边栏的,所以要配置成跟main同层级的路由)")]),n("img",{staticStyle:{width:"100%",height:"200px"},attrs:{src:"https://uploaduat-10051630.cos.ap-shanghai.myqcloud.com/fhronspc/img/1689250308232/1689250308055/469771689250279_.pic.jpg",alt:""}})])}],o=(n("b0c0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"iframe-box",staticStyle:{width:"100%",height:"100%"}},[n("IframeTemplate",{directives:[{name:"show",rawName:"v-show",value:e.$route.fullPath===e.iframeId,expression:"$route.fullPath === iframeId"}],attrs:{src:e.url,"iframe-style":e.iframeStyle}})],1)}),i=[],l=(n("99af"),n("caad"),n("8a79"),n("2532"),n("2ca0"),n("0b6e")),s=n("0d25"),c=n("cebe"),u=n.n(c),d={name:"WebIframePage",components:{IframeTemplate:s["a"]},props:{iframeStyle:{type:Object,default:function(){return{width:"100%",height:"100%"}}},localhostUrl:{type:String,default:""},isMainWhiteRouter:{type:Boolean,default:!0}},data:function(){return{url:"",iframeId:"",loading:!1}},watch:{$route:{deep:!0,immediate:!0,handler:function(e,t){if(e&&!t||t&&(null===e||void 0===e?void 0:e.path)!==(null===t||void 0===t?void 0:t.path))if(e.fullPath.includes("SmartBI/"))this.fetchPage();else{var n=e.fullPath.includes("?")?"&":"?",a=(e.fullPath.startsWith("/")?"":"/")+e.fullPath+"".concat(n,"iframeCode=").concat(Object(l["d"])({name:"platformCode"})||"","&isMainWhiteRouter=").concat(this.isMainWhiteRouter);if(window.location.origin.includes("localhost")){var r=this.localhostUrl||"https://smng.fhrons.com";r=r.endsWith("/")?r.substring(0,r.length-1):r,this.url=r+a}else this.url=window.location.origin+a;this.iframeId=e.fullPath}}}},created:function(){},methods:{fetchPage:function(){var e=this,t=this.$route.path,n=t.split("SmartBI/")||[];if(n.length>0){var a=Object(l["d"])({name:"userInfo"})||{},r={resid:n[1],userId:a.id,mobile:a.mobile,userroles:1};this.loading=!0,u.a.post("/funapi/cbsportrait/portraitLogin/userLogin",r).then((function(t){e.url=t.resUrl,e.iframeId=e.$route.fullPath,e.loading=!1})).catch((function(){e.url="",e.$message.warning(e.$t("webiframepage.index.q7t983")),e.loading=!1}))}}}},p=d,f=(n("ad09"),n("2877")),m=Object(f["a"])(p,o,i,!1,null,null,null),h=m.exports;h.install=function(e){e.component(h.name,h)};var g=h,b=n("5cf2"),v={name:"WebFHIframeTest",components:{WebIframePage:g,WebFHIframeTestHtml:b["default"]},data:function(){return{activeName:"normal",localhostUrl:"http://localhost:8082/"}},methods:{handleClick:function(){}}},y=v,C=Object(f["a"])(y,a,r,!1,null,"7225ba63",null);t["default"]=C.exports},"0927":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"MiniFHDialog"}},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.btnClick(e.miniDialog)}}},[e._v("mini的弹框")]),e.miniDialog.showDialog?n("FHDialog",{attrs:{"dialog-obj":e.miniDialog},on:{confirmClick:function(t){return e.confirmClick(e.miniDialog)},cancelClick:function(t){return e.cancelClick(e.miniDialog)}}},[n("p",[e._v("mini弹框适用于提示")])]):e._e()],1)},r=[],o=n("3709"),i={name:"MiniFHDialog",components:{FHDialog:o["a"]},props:{},data:function(){return{miniDialog:{title:"mini弹框",size:"mini"}}},watch:{},created:function(){},mounted:function(){},methods:{confirmClick:function(e){this.$set(e,"showDialog",!1)},cancelClick:function(e){this.$set(e,"showDialog",!1)},btnClick:function(e){this.$set(e,"showDialog",!0)}}},l=i,s=n("2877"),c=Object(s["a"])(l,a,r,!1,null,"851dc33c",null);t["default"]=c.exports},"0c7d":function(e,t,n){},"0cd8":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"line-height24",attrs:{id:"CommonNoDataTest"}},[a("p",[e._v("1、可选无数据图基础类型:")]),a("div",{staticClass:"flex-wrap"},e._l(e.typeArr,(function(t,n){return a("div",{key:n,staticClass:"box border"},[a("pre",n?{staticClass:"language-html mtb0",domProps:{innerHTML:e._s(e.toHtml("<CommonNoData type='"+t+"' />"))}}:{staticClass:"language-html mtb0",domProps:{innerHTML:e._s(e.toHtml("<CommonNoData />"))}}),e._v(" "),a("CommonNoData",{staticClass:"box-item",attrs:{type:t,size:"mini","no-data-style":"ptb0"}})],1)})),0),a("p",[e._v("2、带刷新或者自定义图片文字按钮:")]),a("div",{staticClass:"flex"},[a("div",{staticClass:"w-300 border mr20"},[a("pre",{staticClass:"language-html mtb0",domProps:{innerHTML:e._s(e.toHtml("<CommonNoData :need-refresh='true' />"))}}),e._v(" "),a("CommonNoData",{staticClass:"box2-item",attrs:{size:"mini","no-data-style":"ptb0","need-refresh":!0}})],1),a("div",{staticClass:"box2 border"},[a("pre",{staticClass:"language-html mtb0",domProps:{innerHTML:e._s(e.toHtml(e.htmlCont))}}),e._v(" "),a("CommonNoData",{staticClass:"box2-item",attrs:{size:"mini","no-data-style":"ptb0",source:{img:n("aee4"),text:"我是自定义文字",customBtn:"自定义按钮"}}})],1)]),a("p",[e._v("3、自定义样式和尺寸:")]),a("div",{staticClass:"flex"},[a("div",{staticClass:"w-300"},[a("pre",{staticClass:"language-html mtb0",domProps:{innerHTML:e._s(e.toHtml("<CommonNoData />"))}}),e._v(" "),a("CommonNoData",{staticClass:"box2-item border"})],1),a("div",{staticClass:"ml20"},[a("pre",{staticClass:"language-html mtb0",domProps:{innerHTML:e._s(e.toHtml("<CommonNoData size='mini' no-data-style='ptb0' />"))}}),e._v(" "),a("CommonNoData",{staticClass:"box2-item border",attrs:{size:"mini","no-data-style":"ptb0"}})],1)])])},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),n("2af9")),s={name:"CommonNoDataTest",components:{CommonNoData:l["f"]},props:{},data:function(){return{typeArr:[void 0,"customer","data","file","indent","log","network","people","search","settle","team"],htmlCont:"<CommonNoData :source=\"{ img: require('../../assets/img/noData/noSettle.png'), text: '我是自定义文字', customBtn: '自定义按钮'}\" />"}},watch:{},created:function(){},mounted:function(){},methods:{toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")}}},c=s,u=(n("9b78"),n("2877")),d=Object(u["a"])(c,a,r,!1,null,"2023f032",null);t["default"]=d.exports},"0d25":function(e,t,n){"use strict";n("b0c0");var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{id:"IframeTemplate"}},[n("iframe",{ref:"iframe",style:e.iframeStyle,attrs:{id:"iframe",src:e.src,frameborder:"0"}})])},r=[],o={name:"IframeTemplate",props:{src:{type:String,default:""},iframeStyle:{type:Object,default:function(){}}},data:function(){return{loading:!1}},created:function(){},mounted:function(){this.iframeInit()},methods:{iframeInit:function(){var e=this;this.$nextTick((function(){if(e.$refs&&e.$refs.iframe){e.loading=!0;var t=e.$refs.iframe;t.attachEvent?t.attachEvent("onload",(function(){e.loading=!1})):t.onload=function(){e.loading=!1}}}))}}},i=o,l=(n("6a1f"),n("2877")),s=Object(l["a"])(i,a,r,!1,null,null,null),c=s.exports;c.install=function(e){e.component(c.name,c)};t["a"]=c},"0e3a":function(e,t,n){"use strict";n("62d1")},"0f6b":function(e,t,n){},"0fb6":function(e,t,n){},"0fd0":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"CustomFHDialog"}},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.btnClick(e.customDialog)}}},[e._v("自定义关闭事件的弹框")]),e.customDialog.showDialog?n("FHDialog",{attrs:{"dialog-obj":e.customDialog,"custom-before-close":function(t){return e.customDialog.customClose&&e.customBeforeClose(t,e.customDialog)}},on:{confirmClick:function(t){return e.confirmClick(e.customDialog)},cancelClick:function(t){return e.cancelClick(e.customDialog)}}},[n("p",[e._v("自定义关闭的弹框,点X看效果")])]):e._e()],1)},r=[],o=n("3709"),i={name:"CustomFHDialog",components:{FHDialog:o["a"]},props:{},data:function(){return{customDialog:{customClose:!0,type:"mini",title:"关闭确认弹框",size:"mini",htmlArr:[]}}},methods:{customBeforeClose:function(e,t){var n=this;this.$confirm("确认关闭?").then((function(a){e(),n.$set(t,"showDialog",!1)})).catch((function(e){}))},confirmClick:function(e){this.$set(e,"showDialog",!1)},cancelClick:function(e){this.$set(e,"showDialog",!1)},btnClick:function(e){this.$set(e,"showDialog",!0)}}},l=i,s=n("2877"),c=Object(s["a"])(l,a,r,!1,null,null,null);t["default"]=c.exports},1061:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"PackagingTable"}},[n("h1",{staticClass:"pb20"},[e._v("封装接口请求的FHTable")]),e._m(0),n("FHTableCode")],1)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"c-f mb20"},[e._v("FHTable封装了接口请求,查询,分页,对接口入参、出参有要求 "),n("span",{staticClass:"c-f56c6c"},[e._v("(入参分页字段必须是limit、offset,出参是total)")])])}],o=n("4907"),i={name:"PackagingTable",components:{FHTableCode:o["default"]},props:{},data:function(){return{}},watch:{},created:function(){},mounted:function(){},methods:{}},l=i,s=n("2877"),c=Object(s["a"])(l,a,r,!1,null,"e226539a",null);t["default"]=c.exports},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"13b9":function(e,t,n){"use strict";n("7dab")},"154f":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"RichTextEditorTest"}},[n("RichTextEditor",{attrs:{readonly:!1},on:{saveContent:e.saveContent,input:e.handleInput,exceed:e.handleExceed},model:{value:e.model.docContent,callback:function(t){e.$set(e.model,"docContent",t)},expression:"model.docContent"}}),n("RichTextEditor",{attrs:{readonly:!1},on:{saveContent:e.saveContent,input:e.handleInput,exceed:e.handleExceed},model:{value:e.model.docContent1,callback:function(t){e.$set(e.model,"docContent1",t)},expression:"model.docContent1"}}),n("RichTextEditorCode")],1)},r=[],o=n("2af9"),i=n("9722"),l={name:"RichTextEditorTest",components:{RichTextEditor:o["r"],RichTextEditorCode:i["default"]},data:function(){return{model:{docContent:"",docContent1:""},value:"",cosBucket:"upload-10051630",cosRegion:"ap-shanghai"}},watch:{value:function(e){console.log(e)}},mounted:function(){this.mockContent()},methods:{mockContent:function(){var e=this;setTimeout((function(t){e.model.docContent='<!DOCTYPE html>\n <html>\n <head>\n </head>\n <body>\n <p>asdasdasdawdasdasdasdadwdawdsdzxd</p>\n <p style="text-align: center;"><span style="color: #ba372a;"><strong>asdawdadsadsd</strong></span></p>\n <p style="text-align: right;"><span style="color: #ba372a;"><strong>asdawdasd</strong></span></p>\n </body>\n </html>'}),1e3)},saveContent:function(e){alert(e),console.log(e)},handleExceed:function(e,t,n){console.log("超出部分事件",arguments)},handleInput:function(e,t,n){console.log("输入事件",arguments)}}},s=l,c=n("2877"),u=Object(c["a"])(s,a,r,!1,null,"285136e4",null);t["default"]=u.exports},1592:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"InputEnterTest"}},[n("p",{staticClass:"line-height30"},[e._v("输入文字后可以尝试一下回车搜索")]),n("el-input",{staticClass:"input-with-select",staticStyle:{width:"400px"},attrs:{placeholder:"请输入",size:"small",clearable:!0},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchClick(t)}},model:{value:e.keyword,callback:function(t){e.keyword="string"===typeof t?t.trim():t},expression:"keyword"}},[n("el-button",{attrs:{slot:"append",size:"small",icon:"el-icon-search"},on:{click:e.searchClick},slot:"append"})],1),n("p",{staticClass:"line-height48 c-f56c6c"},[e._v("注意:这里的关键实现input回车搜索的是@keyup.enter.native")]),n("InputEnterHtml")],1)},r=[],o=n("3a85"),i={name:"InputEnterTest",components:{InputEnterHtml:o["default"]},props:{},data:function(){return{keyword:""}},methods:{searchClick:function(){alert("正在搜索")}}},l=i,s=n("2877"),c=Object(s["a"])(l,a,r,!1,null,"39b7f07a",null);t["default"]=c.exports},1598:function(e,t,n){"use strict";n("e401")},"16f2":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"TreeSelectTest"}},[n("h1",[e._v("组织树内容")]),n("el-tabs",{staticClass:"mtb20",attrs:{type:"border-card"}},[n("el-tab-pane",{attrs:{label:"单选"}},[n("el-tabs",{staticClass:"mtb20"},[n("el-tab-pane",{attrs:{label:"常规单选"}},[n("div",{staticClass:"border pd20 br8 mb20"},[n("div",{staticClass:"w-30"},[n("p",{staticClass:"mb10"},[e._v(" 常规单选带select框")]),n("TreeSelect",{attrs:{value:e.value1,filterable:"",data:e.list,"filter-able":!0},on:{"update:value":function(t){e.value1=t}}})],1),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlCont(1)+e.jsCont(1))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlCont(1)))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.jsCont(1)))}}),e._v("\n ")])])])]),n("el-tab-pane",{attrs:{label:"单选禁用"}},[n("div",{staticClass:"border pd20 br8 mb20"},[n("div",{staticClass:"w-30"},[n("TreeSelect",{attrs:{value:e.value2,filterable:"",data:e.list1,"filter-able":!0},on:{"update:value":function(t){e.value2=t}}})],1),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlCont(1)+e.jsCont(2))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlCont(1)))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.jsCont(2)))}}),e._v("\n ")])])])]),n("el-tab-pane",{attrs:{label:"单选平铺"}},[n("div",{staticClass:"border pd20 br8 mb20"},[n("div",{staticClass:"w-30"},[n("p",{staticClass:"mb10"},[e._v(" 常规单选平铺不带select框")]),n("TreeSelect",{attrs:{value:e.value3,filterable:"",data:e.list,"need-select":!1},on:{"update:value":function(t){e.value3=t},updateValue:e.updateValue}})],1),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlCont(2)+e.jsCont(1))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlCont(2)))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.jsCont(1)))}}),e._v("\n ")])])])])],1)],1),n("el-tab-pane",{attrs:{label:"多选"}},[n("el-tabs",{staticClass:"mtb20"},[n("el-tab-pane",{attrs:{label:"多选(父子关联)"}},[n("div",{staticClass:"border pd20 br8 mb20"},[n("div",{staticClass:"w-30"},[n("TreeSelect",{attrs:{value:e.value4,filterable:"",data:e.list,multiple:!0,"filter-able":!0},on:{"update:value":function(t){e.value4=t}}})],1),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlCont(3)+e.jsCont(1))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlCont(3)))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.jsCont(1)))}}),e._v("\n ")])])])]),n("el-tab-pane",{attrs:{label:"多选禁用(父子关联)"}},[n("div",{staticClass:"border pd20 br8 mb20"},[n("div",{staticClass:"w-30"},[n("TreeSelect",{attrs:{value:e.value5,filterable:"",data:e.list1,multiple:!0,"filter-able":!0},on:{"update:value":function(t){e.value5=t}}})],1),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlCont(3)+e.jsCont(2))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlCont(3)))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.jsCont(2)))}}),e._v("\n ")])])])]),n("el-tab-pane",{attrs:{label:"多选(父子不关联)"}},[n("div",{staticClass:"border pd20 br8 mb20"},[n("div",{staticClass:"w-30"},[n("TreeSelect",{attrs:{value:e.value6,filterable:"",data:e.list,multiple:!0,"filter-able":!0,relate:!0,"need-slot":!0},on:{"update:value":function(t){e.value6=t}}})],1),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlCont(4)+e.jsCont(1))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlCont(4)))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.jsCont(1)))}}),e._v("\n ")])])])]),n("el-tab-pane",{attrs:{label:"多选禁用(父子不关联)"}},[n("div",{staticClass:"border pd20 br8 mb20"},[n("div",{staticClass:"w-30"},[n("TreeSelect",{attrs:{value:e.value7,filterable:"",data:e.list1,multiple:!0,"filter-able":!0,relate:!0,"need-slot":!0},on:{"update:value":function(t){e.value7=t}}})],1),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlCont(4)+e.jsCont(2))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlCont(4)))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.jsCont(2)))}}),e._v("\n ")])])])])],1)],1)],1)],1)},r=[],o=n("8e33"),i=n("4348"),l=n("c197"),s=n.n(l),c=(n("a878"),{name:"TreeSelectTest",components:{TreeSelect:o["a"]},props:{},data:function(){return{list:i["I"],list1:i["J"],value1:"",value2:"",value3:"",value4:"",value5:"",value6:"",value7:""}},watch:{},created:function(){},mounted:function(){},methods:{updateValue:function(){console.log(this.value3)},toHtml:function(e){return s.a.highlight(e,s.a.languages.html,"html")},toJs:function(e){return s.a.highlight(e,s.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))},htmlCont:function(e){var t="";switch(e){case 1:t='<TreeSelect :value.sync="value" filterable :data="list" :filter-able="true" />';break;case 2:t='<TreeSelect :value.sync="value" filterable :data="list" :need-select="false" />';break;case 3:t='<TreeSelect :value.sync="value" filterable :data="list" :filter-able="true" :multiple="true" />';break;case 4:t='<TreeSelect :value.sync="value" filterable :data="list" :filter-able="true" :multiple="true" :relate="true" :need-slot="true" />';break;default:break}return'\n<template>\n <div id="">\n '.concat(t,"\n </div>\n</template>\n")},jsCont:function(e){var t="";switch(e){case 1:t=i["K"];break;case 2:t=i["L"];break;default:break}return"\n<script>\n\nexport default {\n data() {\n return {\n value: '',\n list: ".concat(t,"\n };\n }\n};\n</scr")+"ipt>"}}}),u=c,d=(n("ff42"),n("2877")),p=Object(d["a"])(u,a,r,!1,null,"4121c592",null);t["default"]=p.exports},"1a6f":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"EditTableTest"}},[n("div",{staticClass:"mb20"},[n("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{size:"small"},on:{click:e.handleEditClick}},[e._v("编 辑")]),n("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{size:"small",type:"primary"},on:{click:e.handleClick}},[e._v("保 存")])],1),n("CommonTable",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"commonTable",attrs:{"has-checkbox":!0,"table-obj":e.tableObj,"not-tool-tip":!0},on:{handleTableClick:e.handleTableClick,formItemChange:e.formItemChange}}),e.tableObj.data&&e.tableObj.data.length?n("div",{staticClass:"ta-r mt24"},[n("CommonPagination",{attrs:{"page-size":e.limit,total:e.total,"current-page":e.currentPage},on:{handleSizeChange:e.handleSizeChange,handleCurrentChange:e.handleCurrentChange}})],1):e._e()],1)},r=[],o=n("4348"),i=n("2af9"),l=n("267e"),s={name:"EditTableTest",components:{CommonTable:i["h"],CommonPagination:i["g"]},props:{},data:function(){return{tableObj:Object(o["p"])(),loading:!1,offset:l["f"].pageOffset,limit:l["f"].pageSize,total:l["f"].total,currentPage:l["f"].currentPage}},watch:{},created:function(){},mounted:function(){},methods:{formItemChange:function(e){var t=e.val,n=e.item,a=e.index;this.tableObj["data"][a][n.prop]=t},handleTableClick:function(e){this.tableObj,e.row,e.type,e.item},handleSizeChange:function(e){this.limit=e,this.offset=0},handleCurrentChange:function(e){this.offset=(e-1)*this.limit,this.currentPage=e},handleClick:function(){},handleEditClick:function(){}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"76abe574",null);t["default"]=d.exports},"1be7":function(e,t,n){"use strict";n("9e77")},"1cb1":function(e,t,n){"use strict";n("7764")},"1d0c":function(e,t,n){"use strict";n("3918")},"1f23":function(e,t,n){},"20f3":function(e,t,n){"use strict";n("b719")},"222d":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"DialogTest"}},[n("div",{staticClass:"demo-block pd24 mb24"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.btnClick(!1)}}},[e._v("点击弹出弹框")]),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlStrArr.slice(1).join("")))}}),e._v("\n ")])])],1),n("div",{staticClass:"demo-block pd24"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.btnClick(!0)}}},[e._v("点击弹出表单弹框")]),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.dialogHtmlArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.dialogHtmlArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.dialogHtmlArr.slice(1).join("")))}}),e._v("\n ")])])],1),n("el-dialog",{attrs:{width:"540px",title:"新增",visible:e.dialogVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){return e.close()}}},[e.formFlag?n("div",[n("CommonForm",{ref:"commonForm",attrs:{model:e.formModel},on:{changeFormItem:e.changeFormItem,submitForm:e.submitForm,cancel:e.cancel}})],1):n("div",[n("div",[e._v("需要注意的是内容是默认不居中的")]),n("div",{staticClass:"ta-r mt24",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("确 定")])],1)])])],1)},r=[],o=n("2af9"),i=n("4348"),l=n("c197"),s=n.n(l),c=(n("a878"),{name:"DialogTest",components:{CommonForm:o["e"]},props:{},data:function(){return{dialogVisible:!1,formFlag:!1,formModel:this.deepClone(Object(i["s"])()),htmlStrArr:['\n<template>\n <div>\n <el-button type="primary" size="small" @click="btnClick()">点击弹出弹框</el-button>\n <el-dialog width="540px" title="新增" :visible.sync="dialogVisible" :close-on-click-modal="false" @close="close()">\n <div>需要注意的是内容是默认不居中的</div>\n <div slot="footer" class="ta-r mt24">\n <el-button size="small" @click="dialogVisible = false">取 消</el-button>\n <el-button size="small" type="primary" @click="dialogVisible = false">确 定</el-button>\n </div>\n </el-dialog>\n </div>\n</template>',"\n<script>\n\nexport default {\n data() {\n return {\n dialogVisible: false\n };\n },\n methods: {\n btnClick() {\n this.dialogVisible = true;\n },\n close() {\n this.dialogVisible = false;\n }\n }\n};\n</scr","ipt>"],dialogHtmlArr:['\n<template>\n <div>\n <el-button type="primary" size="small" @click="btnClick()">点击弹出表单弹框</el-button>\n <el-dialog width="540px" title="新增" :visible.sync="dialogVisible" :close-on-click-modal="false" @close="close()">\n <CommonForm ref="commonForm" :model="formModel" @changeFormItem="changeFormItem" @submitForm="submitForm" @cancel="cancel" />\n </el-dialog>\n </div>\n</template>',"\n<script>\nexport function getFormDataObj() {\n return {\n form: {\n platformName: '',\n platformCode: '',\n plattype: '',\n terminalName: '',\n systemName: '',\n systemCode: '',\n saasName: '',\n saasCode: ''\n },\n rules: {\n platformName: nameRule\n },\n formArr: [\n { label: '平台名称', prop: 'platformName', val: '' },\n { label: '平台编码', prop: 'platformCode', val: '' },\n { label: '平台类型', prop: 'plattype', val: '' },\n { label: '终端类型', prop: 'terminalName', type: 'select', val: '', options: [{ name: 'WEB端', value: '1' }, { name: 'App', value: '2' }] },\n { label: '系统名称', prop: 'systemName', val: '' },\n { label: '系统编码', prop: 'systemCode', val: '' },\n { label: '租户名称', prop: 'saasName', val: '' },\n { label: '租户编码', prop: 'saasCode', val: '' }\n ]\n };\n} '@/views/testPage/dataSource/testPageData';\nexport default {\n data() {\n return {\n dialogVisible: false,\n formModel: this.deepClone(getFormDataObj())\n };\n },\n methods: {\n btnClick() {\n this.dialogVisible = true;\n },\n close() {\n this.dialogVisible = false;\n },\n changeFormItem(formObj) {\n this.formModel.form[formObj.prop] = formObj.val;\n console.log('this.formModel', this.formModel);\n },\n // 提交\n submitForm() {\n console.log(this.formModel.form);\n this.cancel();\n },\n // 取消\n cancel() {\n this.resetForm();\n this.close();\n },\n // 重置数据\n resetForm() {\n this.formModel = this.deepClone(getFormDataObj());\n this.$nextTick(() => {\n // 重置表单数据\n if (this.$refs && this.$refs['commonForm']) {\n this.$refs['commonForm'].resetFormValidate();\n }\n });\n }\n }\n};\n</scr","ipt>"]}},watch:{},created:function(){},mounted:function(){},methods:{btnClick:function(e){this.dialogVisible=!0,this.formFlag=e},close:function(){this.dialogVisible=!1},changeFormItem:function(e){this.formModel.form[e.prop]=e.val,console.log("this.formModel",this.formModel)},submitForm:function(){console.log(this.formModel.form),this.cancel()},cancel:function(){this.resetForm(),this.close()},resetForm:function(){var e=this;this.formModel=this.deepClone(Object(i["s"])()),this.$nextTick((function(){e.$refs&&e.$refs["commonForm"]&&e.$refs["commonForm"].resetFormValidate()}))},toHtml:function(e){return s.a.highlight(e,s.a.languages.html,"html")},toJs:function(e){return s.a.highlight(e,s.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}}),u=c,d=(n("fbdc"),n("2877")),p=Object(d["a"])(u,a,r,!1,null,"074224d4",null);t["default"]=p.exports},"225c":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"DialogHtml"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlArr.slice(1).join("")))}}),e._v("\n ")])])])},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),n("4fca")),s={name:"DialogHtml",components:{},props:{type:{type:String,default:"custom"}},data:function(){return{htmlArr:[]}},watch:{type:{immediate:!0,handler:function(e){this.htmlArr=l["e"][e]}}},created:function(){},mounted:function(){},methods:{toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"284bc4ca",null);t["default"]=d.exports},2265:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pt55 flex",attrs:{id:"HomePage"}},[n("div",{staticClass:"ta-c flex-column-center-start testarea"},[n("h1",{staticClass:"ft40 title-h1"},[e._v("欢迎来到后台管理系统")]),e._m(0),n("p",[e._v("本系统基于UI库element封装集成,官网链接"),n("a",{staticClass:"ft20 mlr10 fw-500",attrs:{href:"https://element.eleme.cn/#/zh-CN/component/installation",target:"blank"}},[e._v("Element官网")]),n("span",{staticClass:"ft12 pointer",on:{click:e.toTest}},[e._v("测试")])]),n("div",{staticClass:"flex-column-center cont-box"},[n("div",{staticClass:"marketing flex-center"},[n("div",{staticClass:"box flex-wrap"},e._l(e.dataArr,(function(t,a){return n("div",{key:a,staticClass:"item-box pd20 mlr20 flex-column-center-start mb40"},[n("strong",{staticClass:"ft18 title mb10"},[e._v(e._s(t.title))]),t.link?n("a",{attrs:{href:t.link,target:"blank"}},[e._v(e._s(t.content))]):n("p",[e._v(e._s(t.content))])])})),0)])])]),n("div",{staticClass:"changelogs ps-r pd20 c-303133 flex1"},[n("div",{staticClass:"ps-f log-container"},[n("h2",[e._v("版本修改记录")]),e._l(e.changelogs,(function(t,a){return n("div",{key:a,staticClass:"mt30"},[n("h3",{staticClass:"c-theme"},[e._v(e._s(t.version)+" "),n("span",{staticClass:"c-303133"},[e._v("("+e._s(e._f("getDateByVersion")(t.version))+")")])]),n("el-divider",{staticClass:"mt0"}),t.BugFixes&&t.BugFixes.length?n("h4",{staticClass:"mb10"},[e._v("Bug Fixes")]):e._e(),n("ul",e._l(t.BugFixes,(function(t,a){return n("li",{key:a},[e._v(e._s(t))])})),0),t.Features&&t.Features.length?n("h4",[e._v("Features")]):e._e(),n("ul",e._l(t.Features,(function(t,a){return n("li",{key:a},[e._v(e._s(t))])})),0)],1)}))],2)])])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex"},[n("span",{staticClass:"ptb20 ft20 fw-500 mlr20"},[n("a",{attrs:{href:"https://kdocs.cn/l/ch3GQdixOGkw",target:"blank"}},[e._v("web框架说明手册")])]),n("span",{staticClass:"ptb20 ft20 fw-500 mlr20"},[n("a",{attrs:{href:"https://docs.qq.com/flowchart/DZVZ2T1R0aFp2RVlK",target:"blank"}},[e._v("web框架架构图")])])])}],o=(n("99af"),n("ac1f"),n("5319"),n("a4ed")),i={name:"HomePage",filters:{getDateByVersion:function(e){console.log(e);var t=e.split("."),n="20".concat(t[0]),a=t[1],r=t[2].replace("-","");return"".concat(n,"-").concat(a,"-").concat(r)}},components:{},props:{},data:function(){return{changelogs:o.changelog,dataArr:[{title:"培训视频",content:"腾讯会议录制视频",link:"https://meeting.tencent.com/v2/cloud-record/share?id=861d0cc7-7a04-4bac-b4c6-38d6c450db25&from=3"},{title:"组件标准",content:"常用,3次以上,UI库无法直接使用,需要封装支持的"},{title:"需求标准",content:"复杂交互样式,特殊功能需求,申请前端人力支援"},{title:"申请流程",content:"满足标准发邮件,需要提前至少一周提出,前端给出计划时间"},{title:"发送邮件",content:"刘颖liuying06@fhrons.com"},{title:"抄送邮件",content:"刘洋君liuyj07@fanhuaholdings.com"}]}},watch:{},created:function(){},mounted:function(){},methods:{toTest:function(){}}},l=i,s=(n("70e5"),n("2877")),c=Object(s["a"])(l,a,r,!1,null,"b3f5e876",null);t["default"]=c.exports},2465:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"FilterQueryTest"}},[n("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.handleActive},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[n("el-tab-pane",{attrs:{label:"常规案例"}},[n("FilterQuery",{attrs:{model:e.formItem},on:{formItemChange:e.formItemChange,searchClick:e.searchClick,resetClick:e.resetClick,updateValue:e.updateValue}}),n("div",{staticClass:"mb20"},[n("p",{staticClass:"c-f56c6c mr20"},[e._v("使用场景:一般跟着table表单进行综合使用,所以真正使用的时候可直接复制增删查改的页面直接使用(formItemChange、searchClick、resetClick代码方法被封装到公共mixin里面)")]),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.$router.push("/fhtabletest")}}},[e._v("跳转FHTable页面查看")])],1),n("div",{staticClass:"mb20"},[n("span",{staticClass:"c-f56c6c mr20"},[e._v("FilterQuery数据源:input输入框、inputNum数字输入框、select下拉选择、selectSearch下拉搜索、cascader级联选择器、时间选择、定制数据框,支持自定义拓展)")])]),n("div",{staticClass:"pd20 border br8 bgc-f5f5f5 fw-500"},[n("el-tabs",{staticClass:"mtb20"},[n("el-tab-pane",{attrs:{label:"页面代码"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlStrArr.slice(1).join("")))}}),e._v("\n ")])])]),n("el-tab-pane",{attrs:{label:"数据源"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.dataStr1)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.dataStr1))}})])])],1)],1)],1),n("el-tab-pane",{attrs:{label:"插槽测试"}},[n("FilterQuery",{attrs:{model:e.formItem},on:{formItemChange:e.formItemChange,searchClick:e.searchClick,resetClick:e.resetClick,updateValue:e.updateValue},scopedSlots:e._u([{key:"otherFilterType",fn:function(t){return["slotTest"===t.item.type?n("div",[n("el-input",{attrs:{clearable:"",type:"textarea",rows:"1"},model:{value:t.form[t.item.prop],callback:function(n){e.$set(t.form,t.item.prop,n)},expression:"scope.form[scope.item.prop]"}})],1):e._e()]}}])}),n("div",{staticClass:"mb20"},[n("p",{staticClass:"c-f56c6c mr20"},[e._v("使用场景:一般跟着table表单进行综合使用,所以真正使用的时候可直接复制增删查改的页面直接使用(formItemChange、searchClick、resetClick代码方法被封装到公共mixin里面)")]),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.$router.push("/fhtabletest")}}},[e._v("跳转FHTable页面查看")])],1),n("div",{staticClass:"mb20"},[n("span",{staticClass:"c-f56c6c mr20"},[e._v("FilterQuery数据源:input输入框、inputNum数字输入框、select下拉选择、selectSearch下拉搜索、cascader级联选择器、时间选择、定制数据框,支持自定义拓展)")])]),n("div",{staticClass:"pd20 border br8 bgc-f5f5f5 fw-500"},[n("el-tabs",{staticClass:"mtb20"},[n("el-tab-pane",{attrs:{label:"页面代码"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.slotHtml+e.htmlStrArr.slice(1).join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.slotHtml))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlStrArr.slice(1).join("")))}}),e._v("\n ")])])]),n("el-tab-pane",{attrs:{label:"数据源"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.dataStr)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.dataStr))}})])])],1)],1)],1)],1)],1)},r=[],o=(n("4de4"),n("d3b7"),n("2af9")),i=n("4348"),l=n("c197"),s=n.n(l),c=(n("a878"),n("7719")),u={name:"FilterQueryTest",components:{FilterQuery:o["m"]},props:{},data:function(){return{formItem:{},tempFormItem:{},active:"0",slotHtml:i["d"],htmlStrArr:i["c"],dataStr1:i["b"],dataStr:i["a"]}},watch:{},created:function(){this.getData()},mounted:function(){},methods:{getData:function(){this.handleFormItem(),this.formItem.filterArr=this.formItem.filterArr.filter((function(e){return"slotTest"!==e.type})),this.tempFormItem=Object(c["e"])(this.formItem)},handleFormItem:function(){this.formItem=Object(c["e"])(Object(i["t"])()),this.formItem.form["dateVal"]=new Date,this.formItem.form["dateRangeVal"]=Object(c["i"])()},formItemChange:function(e){e.prop,e.val;this.formItem.form[e.prop]=e.val},searchClick:function(){},resetClick:function(){this.formItem=Object(c["e"])(this.tempFormItem),this.formItem.form["dateVal"]=new Date,this.formItem.form["dateRangeVal"]=Object(c["i"])()},toHtml:function(e){return s.a.highlight(e,s.a.languages.html,"html")},toJs:function(e){return s.a.highlight(e,s.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))},updateValue:function(e,t){this.formItem.form[t]=e},handleActive:function(){"1"===this.active?this.handleFormItem():this.formItem.filterArr=this.formItem.filterArr.filter((function(e){return"testSlot"!==e.type}))}}},d=u,p=n("2877"),f=Object(p["a"])(d,a,r,!1,null,"7a0a4a21",null);t["default"]=f.exports},2668:function(e,t,n){e.exports=n.p+"assets/img/dataLang.4de8009a.jpg"},"26f6":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"CustomWDialog"}},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.btnClick(e.dialogObj)}}},[e._v("自定义宽度的弹框")]),e.dialogObj.showDialog?n("FHDialog",{attrs:{"dialog-obj":e.dialogObj},on:{confirmClick:function(t){return e.confirmClick(e.dialogObj)},cancelClick:function(t){return e.cancelClick(e.dialogObj)}}},[n("p",[e._v("通过传width来设置弹框的宽度")])]):e._e(),e.customDialog.showDialog?n("FHDialog",{attrs:{"dialog-obj":e.customDialog},on:{confirmClick:function(t){return e.confirmClick(e.customDialog)},cancelClick:function(t){return e.cancelClick(e.customDialog)}}},[n("p",[e._v("通过传width来设置弹框的宽度")])]):e._e()],1)},r=[],o=n("3709"),i={name:"CustomWDialog",components:{FHDialog:o["a"]},data:function(){return{dialogObj:{type:"customWidth",title:"自定义宽度的弹框",width:"500px",needCustomConfirm:!0},customDialog:{customClose:!0,type:"mini",title:"关闭确认弹框",size:"mini",htmlArr:[]}}},methods:{confirmClick:function(e){this.$set(this.customDialog,"showDialog",!0),this.customDialog.showDialog=!0},cancelClick:function(e){this.$set(e,"showDialog",!1)},btnClick:function(e){this.$set(e,"showDialog",!0)}}},l=i,s=n("2877"),c=Object(s["a"])(l,a,r,!1,null,null,null);t["default"]=c.exports},2795:function(e,t,n){"use strict";n("dcb3")},"281f":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"FhPresetImageCode"}},[n("CommonCode",[n("div",[n("p",[n("span",{staticClass:"inline-code"},[e._v("FHImage")]),e._v("组件主要接收一个"),n("span",{staticClass:"inline-code"},[e._v("backupSrc")]),e._v("参数,这个参数用作兜底展示的图片,如果租户自定义的图片出现未上传、链接失效等状况时会自动加载"),n("span",{staticClass:"inline-code"},[e._v("backupSrc")]),e._v("中的图片。")]),e._v(" 其余的参数同"),n("span",{staticClass:"inline-code"},[e._v("element-ui")]),e._v("的"),n("span",{staticClass:"inline-code"},[e._v("el-image")]),e._v("组件。 ")]),n("code",[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.htmlStrObj["template"])}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrObj["template"]))}}),e._v("\n "),e._v("\n ")])])]),n("ul",{staticStyle:{"margin-top":"0px","margin-bottom":"0px"}},[n("li",{staticClass:"MsoNormal"},[n("span",{staticStyle:{"font-family":"宋体","font-size":"10.5000pt"}},[n("span",{staticStyle:{"font-family":"宋体"}},[e._v("需要上传国际化图片的地方")])])])]),n("p",{staticStyle:{margin:"0pt 0pt 0.0001pt","text-align":"justify","font-family":"Calibri","font-size":"10.5pt"}},[n("a",{attrs:{href:"https://doc.weixin.qq.com/sheet/e3_ANEAKQbmAIAjz110aEPRbyrErehwe?scode=ABAAggfeAAYBISoFGiANwASga8AB8&force_open_in_wx=1"}},[n("u",[n("span",{staticClass:"15",staticStyle:{"font-family":"宋体",color:"#0000ff","text-decoration":"underline"}},[n("span",{staticStyle:{"font-family":"Calibri"}},[e._v("https://doc.weixin.qq.com/sheet/e3_ANEAKQbmAIAjz110aEPRbyrErehwe?scode=ABAAggfeAAYBISoFGiANwASga8AB8&force_open_in_wx=1")])])])])]),n("p",{staticStyle:{margin:"0pt 0pt 0.0001pt","text-align":"justify","font-family":"Calibri","font-size":"10.5pt"}},[n("span",{staticStyle:{"font-family":"宋体","font-size":"10.5000pt"}},[n("span",{staticStyle:{"font-family":"宋体"}},[e._v("需要上传图片筛选")])])]),n("p",{staticStyle:{margin:"0pt 0pt 0.0001pt","text-align":"justify","font-family":"Calibri","font-size":"10.5pt"}},[n("span",{staticStyle:{"font-family":"Calibri","font-size":"10.5000pt"}},[e._v(" "),n("img",{attrs:{src:"http://uploaduat-10051630.file.myqcloud.com/fhronspc/uploadfile_1711332576742image.png",width:"573",height:"305"}})])]),n("ul",{staticStyle:{"margin-top":"0px","margin-bottom":"0px"}},[n("li",{staticClass:"MsoNormal"},[n("span",{staticStyle:{"font-family":"宋体","font-size":"10.5000pt"}},[n("span",{staticStyle:{"font-family":"宋体"}},[e._v("上传国际化图片")])])])]),n("p",{staticStyle:{margin:"0pt 0pt 0.0001pt","text-align":"justify","font-family":"Calibri","font-size":"10.5pt"}},[n("span",{staticStyle:{"font-family":"宋体","font-size":"10.5000pt"}},[n("span",{staticStyle:{"font-family":"宋体"}},[e._v("生产环境上传")]),n("span",{staticStyle:{"font-family":"Calibri"}},[e._v("https://smng.fhrons.com/saasmanage/materialManagement")])])]),n("p",{staticStyle:{margin:"0pt 0pt 0.0001pt","text-align":"justify","font-family":"Calibri","font-size":"10.5pt"}},[n("img",{attrs:{src:"http://uploaduat-10051630.file.myqcloud.com/fhronspc/uploadfile_1711332665012image.png",width:"738",height:"324"}})]),n("p",{staticStyle:{margin:"0pt 0pt 0.0001pt","text-align":"justify","font-family":"Calibri","font-size":"10.5pt"}},[n("span",{staticStyle:{"font-family":"宋体","font-size":"10.5000pt"}},[n("span",{staticStyle:{"font-family":"宋体"}},[e._v("生成随机的")]),n("span",{staticStyle:{"font-family":"Calibri"}},[e._v("id")])])]),n("ul",{staticStyle:{"margin-top":"0px","margin-bottom":"0px"}},[n("li",{staticClass:"MsoNormal",staticStyle:{"margin-left":"0px"}},[n("span",{staticStyle:{"font-family":"宋体","font-size":"10.5000pt"}},[n("span",{staticStyle:{"font-family":"宋体"}},[e._v("使用")]),n("span",{staticStyle:{"font-family":"Calibri"}},[e._v("^24.2.1-8.2")]),n("span",{staticStyle:{"font-family":"宋体"}},[e._v("以上的版本")])])])]),n("p",{staticStyle:{"text-align":"left","line-height":"19pt",background:"#1f1f1f",margin:"0pt 0pt 0.0001pt","font-family":"Calibri","font-size":"10.5pt"}},[n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v('"fhrons-pc"')]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v(": ")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v('"^24.2.1-8.2"')]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v(",")])]),n("p",{staticStyle:{margin:"0pt 0pt 0.0001pt","text-align":"justify","font-family":"Calibri","font-size":"10.5pt"}},[n("span",{staticStyle:{"font-family":"宋体","font-size":"10.5000pt"}},[n("span",{staticStyle:{"font-family":"宋体"}},[e._v("例如:")])])]),n("p",{staticStyle:{"text-align":"left","line-height":"19pt",background:"#1f1f1f",margin:"0pt 0pt 0.0001pt","font-family":"Calibri","font-size":"10.5pt"}},[n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v("<")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v("img")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}}),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v("src")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v("=")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v('"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/get_top.png"')]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}}),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v("class")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v("=")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v('"full-width"')]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v(">")])]),n("p",{staticStyle:{margin:"0pt 0pt 0.0001pt","text-align":"justify","font-family":"Calibri","font-size":"10.5pt"}},[n("span",{staticStyle:{"font-family":"宋体","font-size":"10.5000pt"}},[n("span",{staticStyle:{"font-family":"宋体"}},[e._v("替换成")])])]),n("p",{staticStyle:{"text-align":"left","line-height":"19pt",background:"#1f1f1f",margin:"0pt 0pt 0.0001pt","font-family":"Calibri","font-size":"10.5pt"}},[n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v("<")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v("FHPresetImage")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v(" :")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v("id")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v('="')]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v("'1ab067d6a2367a40eaa9492a1ac787b2'")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v('" ')]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v("class")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v("=")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v('"full-width"')]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v(" /")]),n("span",{staticStyle:{"font-family":"Consolas","font-weight":"normal","font-size":"8.0000pt",background:"#1f1f1f",color:"#ffffff"}},[e._v(">")])]),n("p",{staticStyle:{margin:"0pt 0pt 0.0001pt","text-align":"justify","font-family":"Calibri","font-size":"10.5pt"}},[n("span",{staticStyle:{"font-family":"宋体",color:"#e54c5e","font-size":"10.5000pt"}},[n("span",{staticStyle:{"font-family":"宋体"}},[e._v("这里的")]),n("span",{staticStyle:{"font-family":"Calibri"}},[e._v("id")]),n("span",{staticStyle:{"font-family":"宋体"}},[e._v("直接用字符串传入就行,例子中的")]),n("span",{staticStyle:{"font-family":"Calibri"}},[e._v("id")]),n("span",{staticStyle:{"font-family":"宋体"}},[e._v("是需要做条件判断才使用")]),n("span",{staticStyle:{"font-family":"Calibri"}},[e._v("v-bind")]),n("span",{staticStyle:{"font-family":"宋体"}},[e._v("绑定")])])]),n("p",{staticStyle:{margin:"0pt 0pt 0.0001pt","text-align":"justify","font-family":"Calibri","font-size":"10.5pt"}},[n("span",{staticStyle:{"font-family":"宋体",color:"#e54c5e","font-size":"10.5000pt"}},[n("span",{staticStyle:{"font-family":"宋体"}},[e._v("需要额外指定样式来确定图片的展示尺寸")])])]),n("p",{staticStyle:{margin:"0pt 0pt 0.0001pt","text-align":"justify","font-family":"Calibri","font-size":"10.5pt"}},[n("span",{staticStyle:{"font-family":"宋体","font-size":"10.5000pt"}},[n("span",{staticStyle:{"font-family":"Calibri"}},[e._v("Id")]),n("span",{staticStyle:{"font-family":"宋体"}},[e._v("取值")])])]),n("p",{staticStyle:{margin:"0pt 0pt 0.0001pt","text-align":"justify","font-family":"Calibri","font-size":"10.5pt"}},[n("span",{staticStyle:{"font-family":"Calibri","font-size":"10.5000pt"}},[n("img",{attrs:{src:"http://uploaduat-10051630.file.myqcloud.com/fhronspc/uploadfile_1711332683613image.png",width:"742",height:"322"}})])]),n("p",{staticStyle:{margin:"0pt 0pt 0.0001pt","text-align":"justify","font-family":"Calibri","font-size":"10.5pt"}},[n("span",{staticStyle:{"font-family":"宋体","font-size":"10.5000pt"}},[n("span",{staticStyle:{"font-family":"宋体"}},[e._v("可以实现不同语言对应不同的图片")])])])])],1)},r=[],o=n("2af9"),i=n("c197"),l=n.n(i),s=(n("a878"),n("4fca")),c={name:"FhPresetImageCode",components:{CommonCode:o["c"]},data:function(){return{htmlStrObj:s["F"]}},methods:{toHtml:function(e){return l.a.highlight(e,l.a.languages.html,"html")},toJs:function(e){return l.a.highlight(e,l.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}},u=c,d=n("2877"),p=Object(d["a"])(u,a,r,!1,null,null,null);t["default"]=p.exports},"2aaf":function(e,t,n){"use strict";n("e813")},"2af9":function(e,t,n){"use strict";n.d(t,"c",(function(){return Et})),n.d(t,"k",(function(){return jt})),n.d(t,"j",(function(){return bt})),n.d(t,"v",(function(){return ut})),n.d(t,"o",(function(){return nt})),n.d(t,"i",(function(){return Qe["a"]})),n.d(t,"n",(function(){return Ge})),n.d(t,"r",(function(){return $e})),n.d(t,"q",(function(){return Te})),n.d(t,"t",(function(){return d["a"]})),n.d(t,"h",(function(){return p["a"]})),n.d(t,"e",(function(){return h["a"]})),n.d(t,"m",(function(){return m["a"]})),n.d(t,"g",(function(){return g["a"]})),n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return I})),n.d(t,"l",(function(){return f["a"]})),n.d(t,"d",(function(){return K})),n.d(t,"f",(function(){return u})),n.d(t,"u",(function(){return se})),n.d(t,"p",(function(){return he})),n.d(t,"s",(function(){return ze}));n("b0c0");var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full-content flex-column-center border-box",class:[e.noDataStyle,e.size],attrs:{id:"CommonNoData"}},[n("div",{staticClass:"ps-r flex-column-center"},[n("img",{staticClass:"no-data",attrs:{src:e.source.img||e.noDataArr[e.type].img}}),n("p",{staticClass:"c-08a ft12 ps-a bottom17"},[e._v(" "+e._s(e.source.text||e.noDataArr[e.type].text)+" ")])]),e.needRefresh?n("button",{staticClass:"refresh-btn bgc-theme-5 c-theme mt16",on:{click:e.refreshPage}},[e._v(e._s(e.$t("commonnodata.index.t9n2pf")))]):e._e(),e.source.customBtn?n("button",{staticClass:"refresh-btn bgc-theme-5 c-theme mt16",on:{click:e.customBtnClick}},[e._v(e._s(e.source.customBtn))]):e._e()])},r=[],o={name:"CommonNoData",components:{},props:{type:{type:String,default:"content"},source:{type:Object,default:function(){return{img:"",text:"",customBtn:""}}},needRefresh:{type:Boolean,default:!1},noDataStyle:{type:String,default:"ptb50"},size:{type:String,default:""}},data:function(){return{}},computed:{noDataArr:function(){return{content:{img:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/noData/noContent.png",text:this.$t("commonnodata.index.3nrr96")},customer:{img:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/noData/noCustomer.png",text:this.$t("commonnodata.index.yw2t25")},data:{img:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/noData/noData.png",text:this.$t("commonnodata.index.gr2ed1")},file:{img:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/noData/noFile.png",text:this.$t("commonnodata.index.3e29r2")},indent:{img:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/noData/noIndent.png",text:this.$t("commonnodata.index.sg52q6")},log:{img:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/noData/noLog.png",text:this.$t("commonnodata.index.gmu5e7")},network:{img:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/noData/noNetwork.png",text:this.$t("commonnodata.index.0i5q19")},people:{img:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/noData/noPeople.png",text:this.$t("commonnodata.index.yw2t25")},search:{img:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/noData/noSearch.png",text:this.$t("commonnodata.index.i7t382")},settle:{img:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/noData/noSettle.png",text:this.$t("commonnodata.index.165786")},team:{img:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/noData/noTeam.png",text:this.$t("commonnodata.index.6cl67u")}}}},watch:{},created:function(){},mounted:function(){},methods:{refreshPage:function(){this.$emit("refreshPage")},customBtnClick:function(){this.$emit("customBtnClick")}}},i=o,l=(n("6df6"),n("2877")),s=Object(l["a"])(i,a,r,!1,null,"f6d96f8c",null),c=s.exports;c.install=function(e){e.component(c.name,c)};var u=c,d=n("adb8"),p=n("d805"),f=n("fc4b"),m=n("4481"),h=n("b512"),g=n("853c"),b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{id:"CommonAudio",title:e.title,"close-on-click-modal":!1,"before-close":e.closeDialog,visible:e.audioDialogVisible,width:"30%",center:""},on:{"update:visible":function(t){e.audioDialogVisible=t}}},[n("div",{staticClass:"main-wrap ptb10"},[n("audio",{ref:"audio",staticClass:"display-none",attrs:{src:e.url,preload:e.audio.preload},on:{play:e.onPlay,error:e.onError,waiting:e.onWaiting,pause:e.onPause,timeupdate:e.onTimeupdate,loadedmetadata:e.onLoadedmetadata}}),n("div",{staticClass:"ta-c"},[n("div",{staticClass:"c-606266 mtb15 flex-center con-slider"},[n("span",{staticClass:"curtime"},[e._v(e._s(e._f("formatSecond")(e.audio.currentTime)))]),n("el-slider",{directives:[{name:"show",rawName:"v-show",value:!e.controlList.noProcess,expression:"!controlList.noProcess"}],staticClass:"slider time-range",attrs:{"format-tooltip":e.formatProcessToolTip},on:{change:e.changeCurrentTime},model:{value:e.sliderTime,callback:function(t){e.sliderTime=t},expression:"sliderTime"}}),n("span",{staticClass:"totaltime"},[e._v(e._s(e._f("formatSecond")(e.audio.maxTime)))])],1),n("div",{staticClass:"play-speed ft12 c-606266"},e._l(e.speeds,(function(t,a){return n("span",{key:"speed"+a,staticClass:"pointer",class:t==e.audio.speed?"c-f56c6c":"",on:{click:function(n){return e.changeSpeed(t)}}},[e._v(e._s(t)+"X")])})),0)]),n("div",{staticClass:"flex-center play-control"},[n("span",{staticClass:"play-control-left"},[n("img",{attrs:{src:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/f3.png"},on:{click:e.goBack}})]),n("span",{staticClass:"play-control-play"},[n("img",{attrs:{src:e.audioPlayImg},on:{click:e.startPlayOrPause}})]),n("span",{staticClass:"play-control-right"},[n("img",{attrs:{src:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/f4.png"},on:{click:e.goNext}})]),e.audio.waiting?n("a",{staticClass:"download pointer ft14",attrs:{href:e.url,target:"_blank",download:""}},[e._v(e._s(e.$t("commonaudio.index.2t7w8c")))]):e._e()])])])},v=[],y=n("2909"),C=n("53ca");n("fb6a"),n("d3b7"),n("159b");function x(e){var t=Object(C["a"])(e);if("number"===t||"string"===t){e=parseInt(e);var n=Math.floor(e/3600);e-=3600*n;var a=Math.floor(e/60);return e-=60*a,("0"+n).slice(-2)+":"+("0"+a).slice(-2)+":"+("0"+e).slice(-2)}return"00:00:00"}var _={name:"CommonAudio",filters:{formatSecond:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return x(e)}},props:{theUrl:{type:String,default:""},audioDialogVisible:{type:Boolean,default:!1}},data:function(){return{url:"",audio:{currentTime:0,maxTime:0,playing:!1,muted:!1,speed:1,waiting:!0,preload:"meta"},theControlList:"onlyOnePlaying",sliderTime:0,volume:100,speeds:[1,1.25,1.5,2],controlList:{noProcess:!1,onlyOnePlaying:!1,noSpeed:!1},audioPlayImg:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/f1.png"}},computed:{title:function(){return this.$t("mixins.querytablemixin.f949cw")}},watch:{theUrl:function(e){this.url=e},"audio.playing":function(e){this.audioPlayImg=e?"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/f2.png":"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/f1.png"}},created:function(){this.url=this.theUrl,this.setControlList()},methods:{setControlList:function(){var e=this,t=this.theControlList.split(" ");t.forEach((function(t){void 0!==e.controlList[t]&&(e.controlList[t]=!0)}))},changeSpeed:function(e){this.audio.speed=e,this.$refs.audio.playbackRate=this.audio.speed},startMutedOrNot:function(){this.$refs.audio.muted=!this.$refs.audio.muted,this.audio.muted=this.$refs.audio.muted},formatProcessToolTip:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e=parseInt(this.audio.maxTime/100*e),this.$t("commonaudio.index.b86d5y")+x(e)},changeCurrentTime:function(e){this.$refs.audio.currentTime=parseInt(e/100*this.audio.maxTime)},startPlayOrPause:function(){return this.audio.playing?this.pausePlay():this.startPlay()},startPlay:function(){var e=this;this.$nextTick((function(){e.$refs.audio.src=e.url,e.$refs.audio.load(),e.$refs.audio.play()}))},pausePlay:function(){this.$refs.audio.pause()},onPause:function(){this.audio.playing=!1},onError:function(){this.audio.waiting=!0,this.url&&this.$message.warning(this.$t("commonaudio.index.dy4zit"))},onWaiting:function(e){},onPlay:function(e){if(this.audio.playing=!0,this.audio.loading=!1,this.controlList.onlyOnePlaying){var t=e.target,n=document.getElementsByTagName("audio");Object(y["a"])(n).forEach((function(e){e!==t&&e.pause()}))}},onTimeupdate:function(e){this.audio.currentTime=e.target.currentTime,this.sliderTime=parseInt(this.audio.currentTime/this.audio.maxTime*100)},onLoadedmetadata:function(e){this.audio.waiting=!1,this.audio.maxTime=parseInt(e.target.duration)},goBack:function(){this.$refs.audio.currentTime=this.$refs.audio.currentTime-3},goNext:function(){this.$refs.audio.currentTime=this.$refs.audio.currentTime+3},closeDialog:function(){this.$refs.audio.currentTime=0,this.pausePlay(),this.$emit("closeAudioDialog",!1)}}},w=_,k=(n("cdb0"),Object(l["a"])(w,b,v,!1,null,"85686152",null)),T=k.exports;T.install=function(e){e.component(T.name,T)};var j=T,P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"c-23242e full-width",attrs:{id:"CommonAudioRow"}},[n("audio",{ref:"audio",attrs:{src:e.url,preload:"meta"},on:{play:e.onPlay,error:e.onError,waiting:e.onWaiting,pause:e.onPause,timeupdate:e.onTimeupdate,loadedmetadata:e.onLoadedmetadata}}),n("div",{staticClass:"play-cont flex-start-center"},[n("img",{staticClass:"pr4 play-img",class:e.audio.waiting?"filter":"pointer",attrs:{src:e.audio.playing?"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/pause.svg":"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/play.svg"},on:{click:e.startPlayOrPause}}),n("el-slider",{staticClass:"mlr4 flex1",attrs:{"format-tooltip":e.formatProcessToolTip},on:{change:e.changeCurrentTime},model:{value:e.sliderTime,callback:function(t){e.sliderTime=t},expression:"sliderTime"}}),""!==e.url?n("div",{staticClass:"c-606266 ft12 point pl4 cont-speed pointer",on:{click:e.changeSpeed}},[e._v(e._s(e.audio.speed)+"X")]):e._e(),n("div",{staticClass:"ft12 cont-time pl4"},[n("span",[e._v(e._s(e._f("formatSecond")(e.audio.currentTime)))]),e._v(" / "),n("span",{staticClass:"c-606266"},[e._v(e._s(e._f("formatSecond")(e.audio.maxTime)))])]),""!==e.url?n("a",{staticClass:"ft12 c-1677ff pointer",attrs:{href:e.url,target:"_blank",download:""}},[e._v(e._s(e.$t("commonaudiorow.index.5btn84")))]):e._e(),e.data.length>1?n("div",{staticClass:"flex-center"},[n("i",{staticClass:"el-icon-arrow-left ft14 pointer bold",on:{click:e.turnPre}}),n("span",[e._v(e._s(e.currentVoice)+"/"+e._s(e.data.length))]),n("i",{staticClass:"el-icon-arrow-right ft14 pointer bold",on:{click:e.turnNext}})]):e._e()],1)])},S=[];function F(e){var t=Object(C["a"])(e);if("number"===t||"string"===t){e=parseInt(e);var n=Math.floor(e/3600);e-=3600*n;var a=Math.floor(e/60);return e-=60*a,("0"+n).slice(-2)+":"+("0"+a).slice(-2)+":"+("0"+e).slice(-2)}return"00:00:00"}var O={name:"CommonAudioRow",filters:{formatSecond:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return F(e)}},props:{url:{type:String,default:""},data:{type:Array,default:function(){return[]}},clearAudio:{type:Boolean,default:!1}},data:function(){return{audio:{currentTime:0,maxTime:0,playing:!1,waiting:!0,speed:1},theControlList:"onlyOnePlaying",sliderTime:0,controlList:{onlyOnePlaying:!1},currentVoice:1}},watch:{clearAudio:function(e){e&&(this.$refs.audio.currentTime=0,this.pausePlay())}},created:function(){this.setControlList()},methods:{setControlList:function(){var e=this,t=this.theControlList.split(" ");t.forEach((function(t){void 0!==e.controlList[t]&&(e.controlList[t]=!0)}))},formatProcessToolTip:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e=parseInt(this.audio.maxTime/100*e),this.$t("commonaudio.index.b86d5y")+F(e)},changeCurrentTime:function(e){this.$refs.audio.currentTime=parseInt(e/100*this.audio.maxTime)},startPlayOrPause:function(){return this.audio.playing?this.pausePlay():this.startPlay()},startPlay:function(){this.$refs.audio.play()},pausePlay:function(){this.$refs.audio.pause()},onPause:function(){this.audio.playing=!1},onError:function(){this.audio.waiting=!0,this.audio.maxTime=0},onWaiting:function(e){},onPlay:function(e){if(this.audio.playing=!0,this.controlList.onlyOnePlaying){var t=e.target,n=document.getElementsByTagName("audio");Object(y["a"])(n).forEach((function(e){e!==t&&e.pause()}))}},onTimeupdate:function(e){this.audio.currentTime=e.target.currentTime,this.sliderTime=parseInt(this.audio.currentTime/this.audio.maxTime*100)},onLoadedmetadata:function(e){this.audio.waiting=!1,this.audio.maxTime=parseInt(e.target.duration)},turnPre:function(){this.currentVoice>1&&(this.currentVoice--,this.$emit("voiceCurrent",this.currentVoice-1))},turnNext:function(){this.currentVoice<this.data.length&&(this.currentVoice++,this.$emit("voiceCurrent",this.currentVoice-1))},changeSpeed:function(){this.audio.speed<2?this.audio.speed+=.5:this.audio.speed=1,this.$refs.audio.playbackRate=this.audio.speed}}},L=O,E=(n("4cca"),Object(l["a"])(L,P,S,!1,null,"0dde094b",null)),$=E.exports;$.install=function(e){e.component($.name,$)};var I=$,D=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isExternal?n("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):n("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[n("use",{attrs:{"xlink:href":e.iconName}})])},A=[];n("e9c4"),n("ac1f"),n("00b4"),n("466d"),n("498a");function N(e){return/^(13|14|15|16|17|18|19)\d{9}$/.test(e)}function H(e){return/^(https?:|mailto:|tel:)/.test(e)}function M(){return function(e,t,n){return t?N(t)?n():n(new Error("请输入正确的手机号哦!")):""===t?n(new Error("请输入手机号!")):void 0}}M();var z={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return H(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},R=z,V=(n("fd30"),Object(l["a"])(R,D,A,!1,null,"70cb49f2",null)),q=(V.exports,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:{height:e.height,width:e.width},attrs:{id:"CommonEcharts"}})}),B=[],U={props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},chartOption:{type:Object,default:function(){}}},data:function(){return{chart:null}},computed:{},watch:{width:function(e){var t=this;this.$nextTick((function(){t.initChart()}))},height:function(e){var t=this;this.$nextTick((function(){t.initChart()}))},chartOption:function(){var e=this;this.$nextTick((function(){e.initChart()}))}},beforeDestroy:function(){window.removeEventListener("resize",this.resizeLogic),this.chart&&(this.chart.dispose(),this.chart=null)},mounted:function(){this.initChart()},methods:{reloadChart:function(){this.setChartOptions()},initChart:function(){this.chart=echarts.init(this.$el),this.setChartOptions(),window.addEventListener("resize",this.resizeLogic,!1)},setChartOptions:function(){},resizeLogic:function(){var e=this,t=setTimeout((function(){e.chart&&e.chart.resize(),e.clearScreenTimer(t)}),100)},clearScreenTimer:function(e){clearTimeout()}}},W={name:"CommonEcharts",components:{},mixins:[U],props:{},data:function(){return{}},watch:{},created:function(){},mounted:function(){},methods:{setChartOptions:function(){this.chart.setOption(this.chartOption)}}},J=W,G=Object(l["a"])(J,q,B,!1,null,"6894233e",null),Q=G.exports;Q.install=function(e){e.component(Q.name,Q)};var K=Q,Y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"commonUploadFile",attrs:{id:"UploadFile"}},[n("el-upload",{ref:"upload",class:[e.fileComputed||e.uploadProps.disabled&&e.uploadProps.hideBtnOnDisabled?"hide-upload-btn":"",e.uploadProps.disabled?"upload-disabled":"","picture-card"===e.uploadProps.listType?"picture-card-box":"",e.uploadProps.className,"avatar"===e.uploadProps.uploadType?"avatar-uploader":""],attrs:{"on-remove":e.handleRemove,"on-change":e.changeFile,"before-upload":e.beforeUpload,"on-exceed":e.onExceed,"file-list":e.fileList,limit:e.uploadProps.limit||1,"list-type":e.uploadProps.listType||"text","show-file-list":"avatar"!==e.uploadProps.uploadType&&(""+e.uploadProps.showFileList==="undefined"||e.uploadProps.showFileList),action:"#",disabled:e.uploadProps.disabled,drag:e.uploadProps.drag,"http-request":e.upload,accept:e.uploadProps.acceptAttribute,multiple:1!==e.uploadProps.limit&&e.uploadProps.multiple},scopedSlots:e._u([{key:"file",fn:function(t){var a=t.file;return n("div",{attrs:{id:a.uid}},["picture-card"===e.uploadProps.listType||"picture"===e.uploadProps.listType?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:a.url,alt:""}}):e._e(),"picture-card"===e.uploadProps.listType?n("span",{staticClass:"el-upload-list__item-actions"},[n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePreview(a)}}},[n("i",{staticClass:"el-icon-zoom-in"})]),e.judgeEmpty(e.fileList)&&!e.uploadProps.disabled?n("span",{staticClass:"el-upload-list__item-delete aaaaa",on:{click:function(t){return e.handleRemove(a)}}},[n("i",{staticClass:"el-icon-delete"})]):e._e()]):e._e(),"picture-card"!==e.uploadProps.listType?[n("a",{staticClass:"el-upload-list__item-name",on:{click:function(t){return e.handleFileClick(a)}}},[n("i",{staticClass:"el-icon-document"}),e._v(" "+e._s(a.name)+" ")]),a.showPercent?e._e():n("label",{staticClass:"el-upload-list__item-status-label"},[n("i",{staticClass:"el-icon-upload-success el-icon-check"})]),a.showPercent?e._e():n("i",{staticClass:"el-icon-close",on:{click:function(t){return e.handleRemove(a)}}}),a.showPercent?e._e():n("i",{staticClass:"el-icon-close-tip"},[e._v(e._s(e.$t("uploadfile.index.gy6kvj")))])]:e._e(),a.showPercent?n("el-progress",{attrs:{type:"picture-card"===e.uploadProps.listType?"circle":"line","stroke-width":"picture-card"===e.uploadProps.listType?6:2,percentage:a.percentage}}):e._e()],2)}}])},[e.uploadProps.uploadType&&"custom"===e.uploadProps.uploadType?n("div",[e._t("uploadWidget")],2):e.uploadProps.uploadType&&"avatar"===e.uploadProps.uploadType?n("div",[e.avatarUrl?n("img",{staticClass:"avatar",attrs:{src:e.avatarUrl}}):n("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]):"picture-card"===e.uploadProps.listType?n("div",{staticClass:"ps-r upload-btn-card"},[n("i",{staticClass:"el-icon-plus"}),n("div",{staticClass:"ft12 c-799 line-height20 sub-tip"},[e._v(e._s(e.uploadProps.subTip))])]):"picture-card"===e.uploadProps.listType||e.uploadProps.drag?n("div",{staticClass:"el-upload-dragger"},[n("i",{staticClass:"el-icon-upload"}),n("div",{staticClass:"el-upload__text"},[e._v(" "+e._s(e.$t("uploadfile.index.v1o381"))+" "),n("em",[e._v(e._s(e.$t("uploadfile.index.fo3gs2")))])]),e.judgeEmpty(e.uploadProps.subTip)?n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(e._s(e.uploadProps.subTip))]):e._e()]):n("div",{staticClass:"other-list-type",class:e.uploadProps.btnClass},[e._t("uploadWidget",[n("el-button",{attrs:{size:"mini",type:"primary",disabled:e.fileList.length>=(e.uploadProps.limit||1)||e.uploadProps.disabled}},[e._v(" "+e._s(e.uploadProps.buttonName||e.$t("uploadfile.index.fo3gs2"))+" ")])]),e.judgeEmpty(e.uploadProps.subTip)?n("div",{staticClass:"ft12 c-799 line-height20 mt5 sub-tip",attrs:{slot:"tip"},on:{click:function(e){e.stopPropagation()}},slot:"tip"},[e._v(e._s(e.uploadProps.subTip))]):e._e()],2)]),n("el-dialog",{attrs:{title:e.$t("uploadfile.index.aijt36"),visible:e.showDialog,"append-to-body":""},on:{"update:visible":function(t){e.showDialog=t}}},[n("img",{staticClass:"dialog-img",attrs:{src:e.imgUrl}})]),n("el-dialog",{attrs:{title:e.$t("componentsfile.uploadfile.2hih6y"),visible:e.copperDialogVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.copperDialogVisible=t}}},[n("div",{staticClass:"cropper-content"},[n("div",{staticClass:"cropper"},[e.option.img?n("vueCropper",{ref:"cropper",attrs:{img:e.option.img,"output-size":e.option.outputSize,"output-type":e.option.outputType,info:e.option.info,"can-scale":e.option.canScale,"auto-crop":e.option.autoCrop,"auto-crop-width":e.option.autoCropWidth,"auto-crop-height":e.option.autoCropHeight,fixed:e.option.fixed,"fixed-box":e.option.fixedBox,"fixed-number":e.option.fixedNumber}}):e._e()],1)]),n("div",{staticClass:"dialog-footer ta-r mt24",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:e.cancel}},[e._v(e._s(e.$t("lib.zh-cn.5e1b1l")))]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.finish}},[e._v(e._s(e.$t("mixins.querytablemixin.9h62k8")))])],1)])],1)},X=[],Z=n("1da1"),ee=(n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("4de4"),n("caad"),n("d81d"),n("b64b"),n("0c47"),n("23dc"),n("3410"),n("131a"),n("2532"),n("3ca3"),n("c7cd"),n("ddb0"),n("2b3d"),n("bf19"),n("9861"),n("7719")),te=n("cebe"),ne=n.n(te);function ae(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ae=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),l=new L(a||[]);return r(i,"_invoke",{value:P(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",m="executing",h="completed",g={};function b(){}function v(){}function y(){}var x={};c(x,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&a.call(w,i)&&(x=w);var k=y.prototype=b.prototype=Object.create(x);function T(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(r,o,i,l){var s=d(e[r],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Object(C["a"])(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var o;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return o=o?o.then(r,r):r()}})}function P(t,n,a){var r=p;return function(o,i){if(r===m)throw Error("Generator is already running");if(r===h){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=S(l,a);if(s){if(s===g)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===p)throw r=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=m;var c=d(t,n,a);if("normal"===c.type){if(r=a.done?h:f,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=h,a.method="throw",a.arg=c.arg)}}}function S(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function F(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(F,this),this.reset(!0)}function E(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Object(C["a"])(t)+" is not iterable")}return v.prototype=y,r(k,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},T(j.prototype),c(j.prototype,l,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new j(u(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(k),c(k,s,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=E,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:E(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}window.AWS||Object(ee["n"])("https://dop-pro-1251973116.file.myqcloud.com/upload/jsfile/funzg/aws-sdk-2.1562.0.min.js",(function(){console.log("aws-sdk 加载成功")})),window.COS||Object(ee["n"])("https://dop-pro-1251973116.file.myqcloud.com/upload/jsfile/funzg/cos-js-sdk-v5.min.js",(function(){console.log("腾讯cos 加载成功")})),window["vue-cropper"]||Object(ee["n"])("https://dop-pro-1251973116.file.myqcloud.com/upload/jsfile/vue-cropper@0.4.9/vue-cropper.js",(function(){console.log("vue-cropper 加载成功")}));var re={name:"UploadFile",props:{needCropper:{type:Boolean,default:!1},uploadProps:{type:Object,default:function(){}},defaultFileList:{type:Array,default:function(){return[]}},defaultImage:{type:String,default:""},queryPortUrl:{type:String,default:""},queryParams:{type:Object,default:function(){}},target:{type:String,validator:function(e){return["tencent","amazon"].includes(e)},default:location.origin.includes("https://smnguat.fhrons.net")||location.origin.includes("https://openuat.fhrons.net")||location.origin.includes("https://smng.avantech.io")||location.origin.includes("https://open.avantech.io")||"production".includes("hk")?"amazon":"tencent"},project:{type:String,validator:function(e){return["0","1","2"].includes(e)},default:"0"},appName:{type:String,default:"fhronspc"},cropperOption:{type:Object,default:function(){}}},data:function(){return{fileList:[],showDialog:!1,avatarUrl:"",imgUrl:"",copperDialogVisible:!1,option:{file:{},img:"",info:!0,outputSize:.8,outputType:"jpeg",canScale:!1,autoCrop:!0,autoCropWidth:this.cropWidth,autoCropHeight:this.cropHeight,fixedBox:!1,fixed:this.fixed,fixedNumber:this.cropRate,full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,canMove:!0}}},computed:{fileComputed:function(){return 1===this.uploadProps.limit&&1===this.fileList.length&&!1!==this.uploadProps.showFileList}},watch:{defaultFileList:{handler:function(e,t){Object(ee["o"])(e)&&e[0].url?this.fileList=e:this.fileList=[]},deep:!0,immediate:!0},cropperOption:function(e){Object(ee["o"])(e)&&(this.option=Object.assign(this.option,e))},fileList:{handler:function(e){Object(ee["o"])(e)&&e[0].url&&"avatar"===this.uploadProps.uploadType&&(this.uploadClearFiles(),this.avatarUrl=e[0].url)},deep:!0,immediate:!0}},created:function(){},methods:{onExceed:function(e,t){var n=e[0];n.uid=(new Date).valueOf();var a=this.uploadProps.limit;1===a&&(this.$set(this,"fileList",[n]),this.beforeUpload(n)&&this.upload({file:n}))},handleFileClick:function(e){this.$emit("handleFileClick",e)},uploadClearFiles:function(){var e=this;this.$nextTick((function(){e.$refs&&e.$refs["upload"]&&e.$refs["upload"].clearFiles()}))},clearFiles:function(){var e=this;this.$nextTick((function(){e.$refs&&e.$refs["upload"]&&(e.$refs["upload"].clearFiles(),e.fileList=[])}))},handlePreview:function(e){if("img"!==this.uploadProps.type||"picture"!==this.uploadProps.listType&&"picture-card"!==this.uploadProps.listType){if(!e.url)return;var t=document.createElement("a");t.style.display="none",t.href=e.url,t.target="_blank",t.setAttribute("download",e.name),document.body.appendChild(t),t.click(),t.remove()}else this.imgUrl=e.url,this.showDialog=!0},handleRemove:function(e){var t=this.fileList.filter((function(t){return t.uid!==e.uid}));this.fileList=t,this.$emit("removeFile",this.fileList)},changeFile:function(e,t){this.fileList=t.map((function(e){return e}))},beforeUpload:function(e){var t=this;if(e.name.length>this.uploadProps.urlMaxLength)return this.$message.error(this.$t("uploadfile.index.rrb145",[this.uploadProps.urlMaxLength])),!1;var n=e.name.lastIndexOf("."),a=e.name.substr(n),r=this.uploadProps.acceptAttribute.split(",");if(-1===r.indexOf(a.toLowerCase()))return this.$message.error(this.$t("uploadfile.index.1ruy82")),!1;var o=e.size/1024/1024<this.uploadProps.fileSize;return o?!(this.uploadProps.beforeUpload&&!this.uploadProps.beforeUpload(e))&&("img"===this.uploadProps.type&&this.needCropper?(Object(ee["b"])(e).then((function(n){return t.copperDialogVisible=!0,t.option.img=n,t.option.file=e,t.setPercentStatusValue(e,!0,0),!0})),!1):(this.setPercentStatusValue(e,!0,0),!0)):(this.$message.error(this.$t("uploadfile.index.h632ln",[this.uploadProps.fileSize])),!1)},validWidthAndHeight:function(e){var t=this;return Object(Z["a"])(ae().mark((function n(){var a,r;return ae().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=parseFloat(t.uploadProps.limitWidth),r=parseFloat(t.uploadProps.limitHeight),n.prev=2,n.next=5,new Promise((function(n,o){var i=window.URL||window.webkitURL,l=new Image;l.src=i.createObjectURL(e),l.onload=function(){var e=l.width<=a&&l.height<=r;return e?n(!0):(r>0&&a>0?t.$message.warning(t.$t("uploadfile.index.1a594d",[a,r])):a>0?t.$message.warning(t.$t("uploadfile.index.1rqy1b",[a])):t.$message.warning(t.$t("uploadfile.index.rrb144",[r])),o(!1))}}));case 5:return n.abrupt("return",n.sent);case 8:return n.prev=8,n.t0=n["catch"](2),n.abrupt("return",n.t0);case 11:case"end":return n.stop()}}),n,null,[[2,8]])})))()},upload:function(e){var t=this;return Object(Z["a"])(ae().mark((function n(){var a,r,o,i,l,s,c,u,d,p,f;return ae().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=e.file,r=t.uploadProps.type||"file",o=parseFloat(t.uploadProps.limitWidth),i=parseFloat(t.uploadProps.limitHeight),"img"!==r||!(i>0||o>0)){n.next=12;break}return n.next=7,t.validWidthAndHeight(a);case 7:if(l=n.sent,l){n.next=12;break}return t.handlePercentHidden(a),s=setTimeout((function(){t.handleRemove(a),clearTimeout(s),s=null}),1e3),n.abrupt("return");case 12:if(t.uploadProps.methods&&"cos"!==t.uploadProps.methods){n.next=16;break}t.handleCosRequest(a,r),n.next=35;break;case 16:if("formData"!==t.uploadProps.methods){n.next=35;break}return c=Math.floor(30*Math.random())+1,t.setPercentStatusValue(a,!0,c),u=new FormData,u.append("file",a),d=Object.keys(t.queryParams),d&&d.forEach((function(e){u.append(e,t.queryParams[e])})),n.prev=23,n.next=26,ne.a.post(t.queryPortUrl,u,{onUploadProgress:function(e){var n=e.loaded,r=e.total,o=100*parseInt(n/r);t.setPercentStatusValue(a,!0,o)}});case 26:p=n.sent,f=setTimeout((function(){t.handlePercentHidden(a),clearTimeout(f),f=null}),800),t.$emit("uploadSuccess",p),n.next=35;break;case 31:n.prev=31,n.t0=n["catch"](23),t.handlePercentHidden(a),t.handleRemove(a);case 35:case"end":return n.stop()}}),n,null,[[23,31]])})))()},handleCosRequest:function(e,t){var n=this;return Object(Z["a"])(ae().mark((function t(){var a,r,o,i;return ae().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={file:e,project:n.project,keyFunc:function(){if(Object(ee["o"])(n.uploadProps.filePath)){if("string"===typeof n.uploadProps.filePath)return n.uploadProps.filePath;if("function"===typeof n.uploadProps.filePath)return n.uploadProps.filePath(e.name)}},needWholeRes:!0},t.prev=1,t.next=4,FHCommon.upload(a,(function(t){n.setPercentStatusValue(e,!0,t)}));case 4:r=t.sent,o=r.fileUrl,n.fileList.forEach((function(t){t.uid===e.uid&&(t["url"]=o,t["upload"]=!0)})),n.copperDialogVisible=!1,"avatar"===n.uploadProps.uploadType&&(n.avatarUrl=n.fileList[0].url,n.$refs.upload.clearFiles()),n.needCropper?n.handlePercentHidden(e):n.$emit("uploadSuccess",n.fileList,r),t.next=17;break;case 12:t.prev=12,t.t0=t["catch"](1),console.error(t.t0),n.handlePercentHidden(e),n.$nextTick((function(t){n.handleRemove(e)}));case 17:i=setTimeout((function(){n.handlePercentHidden(e),clearTimeout(i),i=null}),800);case 18:case"end":return t.stop()}}),t,null,[[1,12]])})))()},setPercentStatusValue:function(e,t,n){var a=this;this.fileList.forEach((function(r){r.uid===e.uid&&(a.$set(r,"showPercent",t),a.$set(r,"percentage",n))}))},handlePercentHidden:function(e){this.setPercentStatusValue(e,!1,0)},cancel:function(){this.copperDialogVisible=!1},finish:function(){var e=this;this.$refs.cropper.getCropBlob((function(t){t["raw"]=e.option.file,t["uid"]=e.option.file["uid"],t["name"]=e.option.file["name"],e.uploadProps.uploadType&&"avatar"===e.uploadProps.uploadType&&(e.fileList=[]),e.fileList.push(t),e.handleCosRequest(t,"img")}))}}},oe=re,ie=(n("13b9"),Object(l["a"])(oe,Y,X,!1,null,"46bd791d",null)),le=ie.exports;le.install=function(e){e.component(le.name,le)};var se=le,ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"OrgTree"}},[n("vue2-org-tree",{attrs:{name:"test",data:e.treeData,collapsable:e.collapsable,horizontal:e.horizontal,"label-class-name":e.labelClassName,"render-content":e.renderContent},on:{"on-expand":e.onExpand,"on-node-click":e.onNodeClick}})],1)},ue=[],de={name:"OrgTree",props:{treeData:{type:Object,default:function(){}},labelClassName:{type:String,default:""},horizontal:{type:Boolean,default:!1},collapsable:{type:Boolean,default:!1},methodList:{type:Array,default:function(){}}},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{renderContent:function(e,t){var n=this;return e("el-dropdown",{attrs:{trigger:"click"},on:{command:function(a){return n.handleAddDel(a,e,t)}}},[e("a",[t.label]),e("el-dropdown-menu",{slot:"dropdown"},[this.methodList.map((function(t){return e("el-dropdown-item",{attrs:{command:t.command}},[t.name])}))])])},onExpand:function(e,t){"expand"in t?!t.expand&&t.children&&this.collapse(t.children):this.$set(t,"expand",!0)},onNodeClick:function(e,t){},handleAddDel:function(e,t,n){this.$emit("onNodeClick",e,n)},filterTree:function(e){var t=this,n=e.filter((function(e){return e.id!==t.delId}));return n.forEach((function(e){return e.children&&(e.children=t.filterTree(e.children))})),n},append:function(e,t){var n={id:e.id+e.children.length+1,label:t,level:+e.level+1,parentId:e.id,children:[]};e.children||this.$set(e,"children",[]),this.$nextTick((function(){e.children.push(n)}))}}},pe=de,fe=Object(l["a"])(pe,ce,ue,!1,null,"0a4a6456",null),me=fe.exports;me.install=function(e){e.component(me.name,me)};var he=me,ge=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pdf-viewer"},[n("div",{staticClass:"pdf-viewer-container"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pdfLoading,expression:"pdfLoading"}],staticClass:"pdf-viewer-main"},[n("canvas",{ref:"pdfCanvas"})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showToolbar&&!e.pdfLoading,expression:"showToolbar && !pdfLoading"}],staticClass:"pdf-viewer-toolbar bottom-toolbar"},[n("el-button",{staticClass:"pdf-viewer-toolbar-item",attrs:{icon:"el-icon-zoom-out"},on:{click:e.zoomOut}},[e._v(e._s(e.$t("pdfviewer.index.sdx914")))]),n("el-button",{staticClass:"pdf-viewer-toolbar-item",attrs:{icon:"el-icon-zoom-in"},on:{click:e.zoomIn}},[e._v(e._s(e.$t("pdfviewer.index.y8w163")))]),n("el-button",{staticClass:"pdf-viewer-toolbar-item",attrs:{icon:"el-icon-refresh-left"},on:{click:e.rotateLeft}},[e._v(e._s(e.$t("pdfviewer.index.u5p583")))]),n("el-button",{staticClass:"pdf-viewer-toolbar-item",attrs:{icon:"el-icon-refresh-right"},on:{click:e.rotateRight}},[e._v(e._s(e.$t("pdfviewer.index.8b5c5j")))]),n("el-button",{staticClass:"pdf-viewer-toolbar-item",attrs:{icon:"el-icon-download"},on:{click:e.downloadPDF}},[e._v(e._s(e.$t("commonaudiorow.index.5btn84")))])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showSideToolbar,expression:"showSideToolbar"}],staticClass:"pdf-viewer-toolbar left-toolbar"},[n("el-button",{staticClass:"pdf-viewer-toolbar-item",attrs:{icon:"el-icon-full-screen"},on:{click:e.fullScreen}},[e._v(e._s(e.$t("pdfviewer.index.j42283")))]),n("el-button",{staticClass:"pdf-viewer-toolbar-item",attrs:{icon:"el-icon-printer"},on:{click:e.print}},[e._v(e._s(e.$t("pdfviewer.index.7l5uun")))]),n("el-button",{staticClass:"pdf-viewer-toolbar-item",attrs:{icon:"el-icon-menu"},on:{click:e.handleOutline}},[e._v(e._s(e.$t("pdfviewer.index.31fzna")))]),e.showOutline?n("el-tree",{attrs:{data:e.outline,props:e.defaultProps},on:{"node-click":e.goToOutline}}):e._e(),n("el-button",{staticClass:"pdf-viewer-toolbar-item",attrs:{icon:"el-icon-film"},on:{click:e.flip}},[e._v(e._s(e.$t("pdfviewer.index.obsruq")))])],1)]),e.showThumbnails?n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.thumbnailsLoaded,expression:"thumbnailsLoaded"}],staticClass:"pdf-viewer-thumbnails"},[n("div",{staticClass:"pdf-viewer-thumbnails-swiper"},[n("swiper",{staticClass:"full-height",attrs:{options:e.swiperOptions}},e._l(e.pureThumbnailUrls,(function(t,a){return n("swiper-slide",{key:a,staticClass:"swiper-item",class:{active:e.currentPage===a+1}},[t?n("img",{staticClass:"full-height ",attrs:{src:t},on:{click:function(t){return e.goToPage(a+1)}}}):e._e()])})),1)],1),n("div",{staticClass:"swiper-button swiper-button-prev",on:{click:e.prevPage}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("div",{staticClass:"swiper-button swiper-button-next",on:{click:e.nextPage}},[n("i",{staticClass:"el-icon-arrow-right"})])]):e._e()])},be=[],ve=VueAwesomeSwiper,ye=ve.swiper,Ce=ve.swiperSlide,xe={name:"PDFViewer",components:{swiper:ye,swiperSlide:Ce},props:{src:{type:String,required:!0},showThumbnails:{type:Boolean,default:!0},showSideToolbar:{type:Boolean,default:!1},showToolbar:{type:Boolean,default:!0}},data:function(){return{currentPage:1,totalPages:0,pdfDoc:null,pdfCanvas:null,pdfContext:null,pdfScale:1,thumbnailUrls:[],outline:[],showOutline:!1,swiperOptions:{slidesPerView:"auto",spaceBetween:12,centeredSlides:!1,loop:!0,grabCursor:!0,pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},on:{}},defaultProps:{children:"items",label:"title"},filename:"",rotateInfo:0,pdfBase64:"",pdfLoading:!0}},computed:{pureThumbnailUrls:function(){return this.thumbnailUrls.filter((function(e){return e}))},thumbnailsLoaded:function(){return this.pureThumbnailUrls.length!==this.totalPages}},mounted:function(){this.loadPDF()},methods:{loadPDF:function(){var e=this;pdfjsLib.getDocument({url:this.src,cMapUrl:"https://dop-pro-1251973116.file.myqcloud.com/upload/jsfile/funzg/pdfjs-dist@2.10.377/cmaps/",cMapPacked:!0}).promise.then((function(t){e.filename=e.src.substring(e.src.lastIndexOf("/")+1,e.src.lastIndexOf(".")),e.pdfDoc=t,e.totalPages=t.numPages,e.loadPage(1),e.loadThumbnails(),e.loadOutline()})).catch((function(e){console.error(e)}))},loadPage:function(e){var t=this,n={scale:this.pdfScale,rotation:this.rotateInfo};this.pdfDoc.getPage(e).then((function(a){var r=a.getViewport(n),o=t.$refs.pdfCanvas;o.width=r.width,o.height=r.height,t.pdfContext=o.getContext("2d"),a.render({canvasContext:t.pdfContext,viewport:r}).promise.then((function(){t.currentPage=e,t.pdfLoading=!1;var n=o.toDataURL();t.$emit("onLoaded",n)}))})).catch((function(e){console.error(e)}))},loadThumbnails:function(){for(var e=this,t=function(t){e.pdfDoc.getPage(t).then((function(n){var a=n.getViewport({scale:.5}),r=document.createElement("canvas");r.width=a.width,r.height=a.height;var o=r.getContext("2d");n.render({canvasContext:o,viewport:a}).promise.then((function(){e.$set(e.thumbnailUrls,t,r.toDataURL())}))}))},n=1;n<=this.totalPages;n++)t(n)},loadOutline:function(){var e=this;this.pdfDoc.getOutline().then((function(t){t&&(e.outline=t)})).catch((function(e){console.error(e)}))},prevPage:function(){this.currentPage>1&&this.loadPage(this.currentPage-1)},nextPage:function(){this.currentPage<this.totalPages&&this.loadPage(this.currentPage+1)},zoomIn:function(){this.pdfScale<3&&(this.pdfScale+=.1,this.loadPage(this.currentPage))},zoomOut:function(){this.pdfScale>.5&&(this.pdfScale-=.1,this.loadPage(this.currentPage))},rotateLeft:function(){this.rotateInfo=this.rotateInfo-90,this.renderPage(this.currentPage)},rotateRight:function(){this.rotateInfo=this.rotateInfo+90,this.renderPage(this.currentPage)},flip:function(){this.rotateInfo=this.rotateInfo+180,this.renderPage(this.currentPage)},renderPage:function(e){var t=this;this.pdfDoc.getPage(e).then((function(n){var a=n.getViewport({scale:t.pdfScale,rotation:t.rotateInfo});t.pdfContext.canvas.width=a.width,t.pdfContext.canvas.height=a.height,t.pdfContext.clearRect(0,0,a.width,a.height),n.render({canvasContext:t.pdfContext,viewport:a}),t.currentPage=e}))},fullScreen:function(){document.fullscreenElement?document.exitFullscreen():this.$refs.pdfCanvas.requestFullscreen()},print:function(){window.print()},handleOutline:function(){this.showOutline=!this.showOutline},goToPage:function(e){e>=1&&e<=this.totalPages&&this.loadPage(e)},goToOutline:function(e){if(e.dest){var t=e.dest[0];this.goToPage(t)}},downloadPDF:function(){var e=this;this.pdfDoc.getData().then((function(t){var n=new Blob([t],{type:"application/pdf"}),a=URL.createObjectURL(n),r=document.createElement("a");r.href=a,r.download=e.filename,document.body.appendChild(r),r.click()}))}}},_e=xe,we=(n("f5cc"),Object(l["a"])(_e,ge,be,!1,null,"687a265a",null)),ke=we.exports;ke.install=function(e){e.component(ke.name,ke)};var Te=ke,je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"full-content",attrs:{id:"RichTextEditor"}},[n("textarea",{ref:"editor"+e.currentTime,attrs:{id:"editor"+e.currentTime},domProps:{value:e.value}})])},Pe=[];n("a9e3");function Se(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Se=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),l=new L(a||[]);return r(i,"_invoke",{value:P(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",m="executing",h="completed",g={};function b(){}function v(){}function y(){}var x={};c(x,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&a.call(w,i)&&(x=w);var k=y.prototype=b.prototype=Object.create(x);function T(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(r,o,i,l){var s=d(e[r],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Object(C["a"])(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var o;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return o=o?o.then(r,r):r()}})}function P(t,n,a){var r=p;return function(o,i){if(r===m)throw Error("Generator is already running");if(r===h){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=S(l,a);if(s){if(s===g)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===p)throw r=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=m;var c=d(t,n,a);if("normal"===c.type){if(r=a.done?h:f,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=h,a.method="throw",a.arg=c.arg)}}}function S(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function F(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(F,this),this.reset(!0)}function E(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Object(C["a"])(t)+" is not iterable")}return v.prototype=y,r(k,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},T(j.prototype),c(j.prototype,l,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new j(u(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(k),c(k,s,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=E,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:E(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}var Fe={name:"RichTextEditor",props:{readonly:{type:Boolean,default:function(){return!1}},value:{type:String,default:null,required:!0},wordCountMax:{type:Number,default:null}},data:function(){return{loading:!1,currentHtml:"",currentTime:""}},watch:{value:{handler:function(e,t){var n=tinymce.get("editor".concat(this.currentTime));e!==this.currentHtml&&n.setContent(e)}}},created:function(){this.currentTime=(new Date).valueOf()},activated:function(){this.$refs&&this.$refs["editor".concat(this.currentTime)]&&(this.initTinymce(),this.loading=!1)},deactivated:function(){var e=tinymce.get("editor".concat(this.currentTime));e&&e.remove()},mounted:function(){console.log("tinymce-------------------------------",tinymce,this.$refs["editor".concat(this.currentTime)].id),this.$refs&&this.$refs["editor".concat(this.currentTime)]&&(this.initTinymce(),this.loading=!1)},beforeDestroy:function(){var e=tinymce.get("editor".concat(this.currentTime));e&&e.remove()},methods:{handleTextareaChange:function(){console.log(arguments)},initTinymce:function(){this.loading=!0;var e=this;tinymce.init({selector:"#".concat(this.$refs["editor".concat(this.currentTime)].id),language:"zh-Hans",menubar:"",image_caption:!0,readonly:e.readonly,imagetools_toolbar:"editimage | rotateleft rotateright | flipv fliph | imageoptions",plugins:["advlist autolink link image imagetools quickbars lists charmap preview hr anchor formatpainter pagebreak","searchreplace wordcount visualblocks visualchars fullpage code fullscreen insertdatetime media nonbreaking","table directionality powerpaste emoticons autosave codesample spellchecker help "],toolbar:["code undo redo restoredraft | formatpainter cut copy paste pastetext searchreplace| forecolor backcolor bold italic underline strikethrough | alignleft aligncenter alignright alignjustify outdent indent bullist numlist |\n formatselect | fontselect | fontsizeselect | fullscreen | bdmap indent2em lineheight axupimgs | \n table image editimage media charmap emoticons hr pagebreak insertdatetime print preview | wordcount codesample link blockquote subscript superscript removeformat anchor "],font_formats:"\n 系统字体=sans-serif;\n 宋体=SongTi;\n 黑体=HeiTi;\n 楷体=KaiTi;\n 仿宋=FangSong;\n 新罗马字体=TimesNewRoman",powerpaste_word_import:"propmt",powerpaste_html_import:"propmt",powerpaste_allow_local_images:!0,autosave_ask_before_unload:!0,paste_data_images:!1,auto_focus:!0,autosave_interval:"30s",autosave_restore_when_empty:!1,setup:function(e){console.log("ID为: "+e.id+" 的编辑器即将初始化.")},init_instance_callback:function(t){console.log("ID为: "+t.id+" 的编辑器已初始化完成.");var n=function(n){var a=t.getContent({format:"text"}),r=t.getContent({format:"html"});return n&&(e.$emit("input",r,a),e.$emit("update:value",r)),e.currentHtml=r,{content:a,html:r}};t.on("change",(function(){n(!0)}))},branding:!1,contextmenu:"link image editimage imagetools table spellchecker bold copy editfile",draggable_modal:!0,elementpath:!1,fixed_toolbar_container:"#editor".concat(this.currentTime),fixed_toolbar_container_target:this.$refs.editor,placeholder:"请输入内容",quickbars_insert_toolbar:"quickimage quicktable",quickbars_selection_toolbar:"bold italic | fontselect | fontsizeselect |quicklink h2 h3 blockquote",skin:"oxide",statusbar:!1,toolbar_sticky:!1,height:650,min_height:400,resize:!0,images_upload_handler:function(){var t=Object(Z["a"])(Se().mark((function t(n,a,r,o){var i,l,s,c,u,d,p,f;return Se().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=n.blob,l=void 0===i?null:i,s=n.base64,void 0===s?null:s,c=n.filename,void 0===c?null:c,t.next=3,e.uploadfile(l());case 3:if(u=t.sent,d=u.result,p=u.status,f=u.message,"success"===p){t.next=11;break}return e.$message(f),r(f),t.abrupt("return");case 11:a(d);case 12:case"end":return t.stop()}}),t)})));function n(e,n,a,r){return t.apply(this,arguments)}return n}(),a11y_advanced_options:!0,images_reuse_filename:!0,file_picker_types:"file image media",file_picker_callback:function(t,n,a){var r=".pdf, .txt, .zip, .rar, .7z, .doc, .docx, .xls, .xlsx, .ppt, .pptx, .mp3, .mp4, .jpg, .jpeg, .gif, .bmp, .png",o=document.createElement("input");o.setAttribute("type","file"),o.setAttribute("accept",r),o.click(),o.onchange=Object(Z["a"])(Se().mark((function r(){var o,i,l,s,c;return Se().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=this.files[0],tinymce.activeEditor.execCommand("mceEditImage"),r.next=4,e.uploadfile(o);case 4:if(i=r.sent,l=i.result,s=i.status,c=i.message,console.log(o,l,n,a),"success"===s){r.next=12;break}return e.$message(c),r.abrupt("return");case 12:t(l);case 13:case"end":return r.stop()}}),r,this)})))}})},uploadfile:function(e){return Object(Z["a"])(Se().mark((function t(){var n;return Se().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,FHCommon.upload({file:e});case 3:return n=t.sent,t.abrupt("return",Promise.resolve({status:"success",message:"上传成功",result:n}));case 7:return t.prev=7,t.t0=t["catch"](0),t.abrupt("return",Promise.reject({status:"failed",message:"上传失败"}));case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()}}},Oe=Fe,Le=(n("bbf7"),n("a084"),Object(l["a"])(Oe,je,Pe,!1,null,"6cb98b3a",null)),Ee=Le.exports;Ee.install=function(e){e.component(Ee.name,Ee)};var $e=Ee,Ie=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"SecondTabs"}},[e.tabDataArr.length?n("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},e._l(e.tabDataArr,(function(t,a){return n("el-tab-pane",{key:a,attrs:{label:t.label},on:{click:function(n){return e.handleBtn(t)}}},e._l(t.child,(function(a,r){return n("el-button",{key:r,attrs:{type:t.active===r?"primary":"default",size:"small"},on:{click:function(n){return e.handleBtn(t,r)}}},[e._v(e._s(a.label))])})),1)})),1):e._e()],1)},De=[],Ae={name:"SecondTabs",components:{},props:{active:{type:Number,default:0},tabArr:{type:Array,default:function(){return[]}}},data:function(){return{activeTab:0,tabDataArr:[]}},watch:{active:{handler:function(e){this.activeTab=e||0},immediate:!0,deep:!0},tabArr:{handler:function(e){var t=Object(ee["e"])(e)||[];t.forEach((function(e){e["active"]=e["active"]||0})),this.tabDataArr=t},immediate:!0,deep:!0}},created:function(){},mounted:function(){},methods:{handleClick:function(e,t){var n=this.tabDataArr[this.activeTab],a=n.active,r={firstLevel:n,SecondLevel:n.child[a]};this.$emit("tabChange",r)},handleBtn:function(e,t){e.active=t;var n={firstLevel:e,SecondLevel:e.child[t]};this.$emit("tabChange",n)}}},Ne=Ae,He=Object(l["a"])(Ne,Ie,De,!1,null,"98eb83e2",null),Me=He.exports;Me.install=function(e){e.component(Me.name,Me)};var ze=Me,Re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"pdfContainer",staticClass:"pdf-container",style:{height:e.height,background:"#c8c9cc"},attrs:{id:"lazyPDFViewer"},on:{scroll:e.handleScroll}},[n("div",{ref:"pdf-pages",staticClass:"pdf-pages"})])},Ve=[];n("c740");function qe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qe=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),l=new L(a||[]);return r(i,"_invoke",{value:P(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",m="executing",h="completed",g={};function b(){}function v(){}function y(){}var x={};c(x,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&a.call(w,i)&&(x=w);var k=y.prototype=b.prototype=Object.create(x);function T(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(r,o,i,l){var s=d(e[r],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Object(C["a"])(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var o;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return o=o?o.then(r,r):r()}})}function P(t,n,a){var r=p;return function(o,i){if(r===m)throw Error("Generator is already running");if(r===h){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=S(l,a);if(s){if(s===g)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===p)throw r=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=m;var c=d(t,n,a);if("normal"===c.type){if(r=a.done?h:f,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=h,a.method="throw",a.arg=c.arg)}}}function S(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function F(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(F,this),this.reset(!0)}function E(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Object(C["a"])(t)+" is not iterable")}return v.prototype=y,r(k,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},T(j.prototype),c(j.prototype,l,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new j(u(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(k),c(k,s,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=E,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:E(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}var Be={name:"LazyPDFViewer",props:{src:{type:String,required:!0,default:""},buffer:{type:Number,default:2},height:{type:String||Number,default:"100vh"},scale:{type:Number,default:1},marginBottom:{type:Number,default:24}},data:function(){return{pdf:null,visiblePages:[],renderedPages:[],currentPageNum:0,scrolledPages:0,pageHeight:0,ticking:!1,totalPages:0}},computed:{middlePageNum:function(){return this.visiblePages[this.visiblePages.length-(this.buffer+1)]}},watch:{middlePageNum:{handler:function(e,t){var n=this.$refs["pdf-pages"],a=this.visiblePages[0],r=this.visiblePages[this.visiblePages.length-1];if(a&&r&&n)if(e>t)console.log("向下滚动"),1===a?n.childNodes.length<this.visiblePages.length&&this.renderPage(r,"append"):(n.removeChild(n.firstChild),this.renderPage(r,"append"));else{if(console.log("向上滚动"),1===e)return;e>=this.buffer+1?(this.renderPage(a,"unshift"),n.childNodes.length===1+2*this.buffer&&n.removeChild(n.lastChild)):e<this.buffer+1&&this.visiblePages.length>=this.buffer+1&&n.childNodes.length&&n.removeChild(n.lastChild)}},immediate:!0}},mounted:function(){var e=this;this.$watch("src",(function(t,n){t&&e.renderPdf()}),{deep:!0,immediate:!0})},methods:{renderPdf:function(){var e=this;return Object(Z["a"])(qe().mark((function t(){var n,a;return qe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$refs.pdfContainer,console.log(e.src,n),a=pdfjsLib.getDocument({url:e.src,cMapUrl:"https://dop-pro-1251973116.file.myqcloud.com/upload/jsfile/funzg/pdfjs-dist@2.10.377/cmaps/",cMapPacked:!0}),t.prev=3,t.next=6,a.promise;case 6:return e.pdf=t.sent,e.totalPages=e.pdf.numPages,t.next=10,e.getVisiblePages(n);case 10:return t.next=12,e.renderVisiblePages();case 12:t.next=17;break;case 14:t.prev=14,t.t0=t["catch"](3),console.error("Error rendering PDF:",t.t0);case 17:case"end":return t.stop()}}),t,null,[[3,14]])})))()},handleScroll:function(e){var t=this;return Object(Z["a"])(qe().mark((function e(){var n;return qe().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.pageHeight){e.next=3;break}return e.next=3,t.getPageHeight();case 3:n=t.$refs.pdfContainer,console.log(n.scrollTop),t.getVisiblePages(n);case 6:case"end":return e.stop()}}),e)})))()},renderVisiblePages:function(){var e=this;return Object(Z["a"])(qe().mark((function t(){return qe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.visiblePages.forEach((function(t,n){t>e.totalPages||e.renderPage(t,"append")}));case 1:case"end":return t.stop()}}),t)})))()},getVisiblePages:function(e){var t=this;return Object(Z["a"])(qe().mark((function n(){var a,r;return qe().wrap((function(n){while(1)switch(n.prev=n.next){case 0:a=e.scrollTop,a=t.middlePageNum>=2?(t.middlePageNum-2)*t.pageHeight+a:a,r=~~(a/t.pageHeight),3!==r&&2!==r||console.log(a,t.pageHeight,r),t.currentPageNum=r+1,t.visiblePages=t.generateArray(r+1,t.buffer);case 6:case"end":return n.stop()}}),n)})))()},getPageHeight:function(){var e=this;return Object(Z["a"])(qe().mark((function t(){var n,a,r,o,i;return qe().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.pdf.getPage(1);case 2:return n=t.sent,a=e.$refs["pdf-pages"],r=n.getViewport({scale:e.scale}),o=a.clientWidth,i=o*(r.height/r.width),e.pageHeight=i+e.marginBottom,t.abrupt("return",i);case 9:case"end":return t.stop()}}),t)})))()},renderPage:function(e,t){var n=this;return Object(Z["a"])(qe().mark((function a(){var r,o,i,l,s,c,u;return qe().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!(e>n.totalPages)){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,n.pdf.getPage(e);case 4:return r=a.sent,o=r.getViewport({scale:n.scale}),i=document.createElement("div"),i.setAttribute("id","pdf-canvas-"+e),i.setAttribute("class","pdf-page"),i.style.marginBottom=n.marginBottom+"px",l=document.createElement("canvas"),l.setAttribute("id","canvas-".concat(e)),s=l.getContext("2d"),l.width=o.width,l.height=o.height,l.style.width="100%",l.style.height="auto",c={canvasContext:s,viewport:o,renderingIntent:"high-quality"},a.next=20,r.render(c);case 20:i.appendChild(l),u=n.$refs["pdf-pages"],console.log(i,u),"append"===t?u.appendChild(i):u.insertBefore(i,u.firstChild);case 24:case"end":return a.stop()}}),a)})))()},generateArray:function(e,t){for(var n=[],a=e-t;a<=e+t&&a<=this.totalPages;a++)a>0&&n.push(a);return n},findArrayDifferences:function(e,t){var n=[];return e.forEach((function(e){-1===t.findIndex((function(t){return e===t}))&&n.push(e)})),n}}},Ue=Be,We=(n("1d0c"),Object(l["a"])(Ue,Re,Ve,!1,null,"77e2de6a",null)),Je=We.exports;Je.install=function(e){e.component(Je.name,Je)};var Ge=Je,Qe=n("3709"),Ke=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"MindMap"}},[e._v(" 思维导图 ")])},Ye=[],Xe={name:"MindMap",props:{mindData:{type:Array,default:function(){return[]},required:!0}},data:function(){return{}},mounted:function(){this.initMindMap()},methods:{initMindMap:function(){var e={container:"MindMap",editable:!1,theme:"orange"};console.log(jsMind);var t=new jsMind(e);t.show()}}},Ze=Xe,et=(n("0e3a"),Object(l["a"])(Ze,Ke,Ye,!1,null,"5e52b022",null)),tt=et.exports;tt.install=function(e){e.component(tt.name,tt)};var nt=tt,at=n("2638"),rt=n.n(at),ot=(n("99af"),n("7db0"),n("a15b"),n("f634")),it=n("8e33");function lt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */lt=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),l=new L(a||[]);return r(i,"_invoke",{value:P(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",m="executing",h="completed",g={};function b(){}function v(){}function y(){}var x={};c(x,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(E([])));w&&w!==n&&a.call(w,i)&&(x=w);var k=y.prototype=b.prototype=Object.create(x);function T(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(r,o,i,l){var s=d(e[r],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Object(C["a"])(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var o;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return o=o?o.then(r,r):r()}})}function P(t,n,a){var r=p;return function(o,i){if(r===m)throw Error("Generator is already running");if(r===h){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=S(l,a);if(s){if(s===g)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===p)throw r=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=m;var c=d(t,n,a);if("normal"===c.type){if(r=a.done?h:f,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=h,a.method="throw",a.arg=c.arg)}}}function S(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function F(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(F,this),this.reset(!0)}function E(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Object(C["a"])(t)+" is not iterable")}return v.prototype=y,r(k,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},T(j.prototype),c(j.prototype,l,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new j(u(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(k),c(k,s,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=E,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:E(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}var st={pageOffset:0,pageSize:10,total:0,currentPage:1},ct={name:"VDomEditTable",components:{TooltipOver:d["a"]},props:{tableProps:{type:Object,default:function(){return{name:""}},required:!0},queryTableData:{type:Function,required:!0},queryParams:{type:Object,default:function(){return{}}},pageSizes:{type:Array,default:function(){return[10,20,50,100]}},pageSize:{type:Number,default:10},pagerCount:{type:Number,default:7},showPagination:{type:Boolean,default:!0},listMapName:{type:String,default:"list"},hoverShow:{type:Boolean,default:!1},hasCheckbox:{type:Boolean,default:!1},checkboxFixed:{type:String,default:""},notToolTip:{type:Boolean,default:!1},hasTableChildren:{type:Boolean,default:!1}},data:function(){return{tableData:[],tableProp:[],defaultExpandAll:!1,rowKey:"",lazy:!1,treeProps:{},total:st.total,currentPage:st.currentPage,listArr:[],offset:0,limit:10,loading:!1}},computed:{modelObj:function(){var e=this.tableProps.tableProp,t={};return e.forEach((function(e){if(t[e.prop]=e.default,"operates"===e.prop){var n=[{type:"edit",text:"保存"},{type:"info",text:"查看"},{type:"history",text:"历史版本"}];t[e.prop]=[{btns:t[e.prop].concat(n)}]}})),t.isEdit=!0,t}},watch:{tableProps:{handler:function(){this.handleData()},immediate:!0,deep:!0},tableProp:{handler:function(e){e.forEach((function(e){"date"!==e.type&&"week"!==e.type&&"month"!==e.type&&"year"!==e.type&&"dates"!==e.type&&"datetime"!==e.type&&"daterange"!==e.type&&"datetimerange"!==e.type&&"time"!==e.type&&"monthrange"!==e.type&&"daterangepicker"!==e.type||(e["dateType"]="datePicker")}))},immediate:!0,deep:!0}},methods:{queryTableStatus:function(e){return"input"===e.type||"inputNum"===e.type||"select"===e.type||"cascader"===e.type||"datePicker"===e.dateType||"checkbox"===e.type||"textarea"===e.type||"treeSelect"===e.type},cascaderBlur:function(e,t,n){var a="form".concat(n.$index).concat(t.type).concat(t.prop);Object(ee["o"])(this.$refs[a])&&Object(ee["o"])(this.$refs[a].length>0)&&this.$refs[a][this.$refs[a].length-1].validateField(t.prop)},handleSelectionChange:function(e){this.$emit("handleSelectionChange",e)},addNewRow:function(){this.listArr.unshift(Object(ee["e"])(this.modelObj)),this.$emit("handleTableList",this.listArr)},getTableList:function(){var e=this;return Object(Z["a"])(lt().mark((function t(){var n,a,r,o,i;return lt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=Object.assign({limit:e.limit,offset:(e.currentPage-1)*e.limit},Object(ee["s"])(e.queryParams)),e.loading=!0,t.prev=2,t.next=5,e.queryTableData(n);case 5:a=t.sent,e.total=a.total,e.listArr=a[e.listMapName],r=e.tableProps["tableProp"],o=r.filter((function(e){return"htmlType"===e.type})),i={},r.forEach((function(e){var t=["cascader","checkbox","operates"],n=["datePicker","input","textarea"];"select"===e.prop&&(e.multiple?t.push(e.prop):n.push(e.prop)),i[e.prop]=-1!==t.indexOf(e.prop)?[]:-1!==n.indexOf(e.prop)?"":null,"remark"===e.prop&&(i[e.prop]="")})),console.log(i),e.listArr.forEach((function(t,n){t.isEdit=!1,e.listArr[n]=Object.assign({},i,t,{remark:"测试测试",cascader:[1,7,9],checkbox:["web","小程序","web"],input:"asdasdwdasd",textarea:"asdw啊实打实大无多撒错",datePicker:["2023-10-09","2023-10-31"],inputNum:"12346549843621",treeSelectVal:6,treeSelectValue:"4,9,10",select:"101"}),o.forEach((function(e){var n="xss"+e.prop,a=""===t[e.prop]||null===t[e.prop]||void 0===t[e.prop]?"--":t[e.prop];t[n]=Object(ee["c"])(e.color||"#1677ff",a)}))})),console.log(e.listArr),e.loading=!1,e.$emit("handleTableList",e.listArr),t.next=23;break;case 19:t.prev=19,t.t0=t["catch"](2),console.log("error",t.t0),e.loading=!1;case 23:case"end":return t.stop()}}),t,null,[[2,19]])})))()},handleSortChange:function(e){this.$emit("handleSortChange",e)},loadNode:function(e,t,n){this.$emit("handLoadNode",{tree:e,treeNode:t,resolve:n})},selectableFunc:function(e){return void 0===e.selectable||!!e.selectable},handleSizeChange:function(e){this.limit=e,this.offset=0,this.getTableList()},handleCurrentChange:function(e){this.offset=(e-1)*this.limit,this.currentPage=e,this.getTableList()},handleData:function(){this.tableData=[].concat(this.tableProps["data"]||[]),this.tableProp=this.tableProps["tableProp"]||[]},handleCut:function(e){this.$emit("handleCut",e)},handleCounterChange:function(e,t){var n={val:e,row:t};this.$emit("handleCounterChange",n)},handlePlus:function(e){this.$emit("handlePlus",e)},handlePeek:function(e){this.$emit("handlePeek",e)},handleTableClick:function(e,t,n,a){var r={row:e,type:t,item:n,idx:a};this.$emit("handleTableClick",r)},handleCommand:function(e){this.$emit("handleTableClick",e)},formItemChange:function(e,t,n){this.tableProps["data"][n.$index][t.prop]=e;var a={val:e,item:t,index:n.$index};this.$emit("formItemChange",a)},updateValue:function(e,t,n){var a={prop:t},r={val:e,item:a,index:n.$index};n[t]=e,this.tableProps["data"][n.$index][a.prop]=e,this.tableData=this.tableProps["data"]||[],this.$emit("formItemChange",r)}},render:function(e){var t=this,n={functional:!0,render:function(e,n,a,r,o){return e("el-button",{attrs:{type:"text",disabled:n["disabled"],size:"small",icon:a.icon},class:"ptb0",style:{fontSize:"20px"},on:{click:function(){return t.handleTableClick(n,a.type)}}})}},a={functional:!0,render:function(e,n,a,r,o){return e("el-button",{attrs:{disabled:n["disabled"],type:a.btnType},on:{click:function(){return t.handleTableClick(n,a.type)}}},[n[a.prop]])}},r={functional:!0,render:function(e,n,a,r,o){return e("div",{class:"more-operate-btns"},[n[a.prop].map((function(o,i){return e("div",{key:"".concat(a.prop).concat(r,"btns").concat(i)},[o.btns.map((function(r,l){return e("el-button",{key:"".concat(r.text).concat(i).concat(l),attrs:{disabled:o.disabled,type:a.btnType},class:"single-wrap"===a.btnShowType||t.isAppScreen?"single-button":"",on:{click:function(){return t.handleTableClick(n,r.type,r,l)}}},[e("span",{class:"pointer"},[r.text,"single-wrap"!==a.btnShowType&&!t.isAppScreen&&(l<o.btns.length-1||t.judgeEmpty(o.moreBtns))?e("i",{class:"mlr5 c-e4e7ed"},["|"]):null])])})),t.judgeEmpty(o.moreBtns)?e("el-dropdown",{attrs:{size:"medium"},class:"more-btn",on:{command:t.handleCommand}},[e("span",{class:"el-dropdown-link more-text"},["更多"]),e("el-dropdown-menu",{slot:"dropdown"},[o.moreBtns.map((function(t,a){return e("el-dropdown-item",{key:"".concat(t.text).concat(a),attrs:{command:{row:n,type:t.type,item:t,idx:r}}},[t.text])}))])]):null])}))])}},o={functional:!0,render:function(e,n,a,r,o){return e("div",{class:"flex-vertical-center"},[e("div",{class:"mr15"},[e("div",{class:"counter"},[e("el-button",{attrs:{icon:"el-icon-remove-outline",circle:!0,size:"mini"},class:"counter-icon",on:{click:function(){return t.handleCut(n,a)}}}),e("el-input",{directives:[{name:"model",value:n[a.prop],arg:"number"}],class:"inputWidth-30",attrs:{size:"mini",max:"10"},on:{input:function(e){return t.handleCounterChange(e,n,a)}}}),e("el-button",{attrs:{icon:"el-icon-circle-plus-outline",circle:!0,size:"mini"},class:"counter-icon",on:{click:function(){return t.handlePlus(n,a)}}})]),e("p",{class:"count-limit c-323233 ft14 ta-c"},[n[a.prop]?n[a.prop]:0,"/",n.surplusNum])]),e("el-button",{attrs:{type:"text"},on:{click:function(){return t.handlePeek(n,a)}}},["取数"])])}},i={functional:!0,render:function(e,n,a,r,o){return e("div",{class:"avatar-label-box ps-r"},[e("el-avatar",{class:"avatar-img",attrs:{shape:"circle",size:20,src:n["url"]}}),e(d["a"],{attrs:{"hover-show":t.hoverShow,content:n[a.prop],"ref-name":"avatarLabel".concat(a.prop)}})])}},l={functional:!0,render:function(e,t,n,a,r){return e("div",{class:"flex-center-start"},[e("el-tooltip",{attrs:{effect:"light",content:t["customerName"],disabled:t["customerName"]&&t["customerName"].length<6,placement:"top-start"}},[e("p",{class:"over-flow max-width-tooltip pointer"},[t["customerName"]])]),t["icon"]?e("img",{class:"ml10",attrs:{src:t["icon"],alt:""}}):null])}},s={functional:!0,render:function(e,t,n,a,r){return e("div",{class:"fix"},[e("el-avatar",{class:"left mr10",attrs:{shape:"square",size:44,src:t["headImg"]}},[e("img",{class:"avatar-info-img",attrs:{src:t["headImg"],alt:""}})]),e("div",{class:"left"},[e("div",{class:"flex-center-start"},[e("el-tooltip",{attrs:{effect:"light",content:t["name"],disabled:t["name"]&&t["name"].length<6,placement:"top-start"}},[e("p",{class:"over-flow max-width-tooltip pointer"},[t["name"]])]),t["customerStar"]?e("div",[Object(y["a"])(Array(Number(t["customerStar"]))).map((function(t,n){return e("i",{key:"customerStar".concat(n),class:"el-icon-star-on c-fad20c"})}))]):null,t["icon"]?e("img",{class:"ml-4",attrs:{src:t["icon"],alt:""}}):null]),e("div",{class:""},[t["ageSex"]])])])}},c={functional:!0,render:function(e,n,a,r,o){return e("el-input",{attrs:{size:"small",maxlength:a.maxlength,"show-word-limit":a.showWordLimit,clearable:!0,autocomplete:"off",placeholder:a.isNoPlaceholder?"":"".concat(a.placeholder||"请输入"),disabled:a.disabled},class:a.class,on:{input:function(e){return t.formItemChange(e,a,o)}},model:{value:n[a.prop],callback:function(e){t.$set(n,a.prop,e)}}})}},u=c,p={functional:!0,render:function(e,n,a,r,o){return e("el-input",{attrs:{size:"small",maxlength:a.maxlength,"show-word-limit":a.showWordLimit,clearable:!0,autocomplete:"off",placeholder:a.isNoPlaceholder?"":"".concat(a.placeholder||"请输入"),disabled:a.disabled},on:{input:["value=value.replace(/^.+|[^d.]/g,'')",function(e){return t.formItemChange(e,a,o)}]},class:a.class,model:{value:n[a.prop],callback:function(e){t.$set(n,a.prop,e)}}})}},f={functional:!0,render:function(e,n,a,r,o){return e("el-select",{class:[a.class,"full-width"],attrs:{size:"small",clearable:!0,disabled:a.disabled,placeholder:a.isNoPlaceholder?"":"".concat(a.placeholder||"请选择"),multiple:a.multiple,"multiple-limit":a.multipleLimit,filterable:a.filterable},on:{change:function(e){return t.formItemChange(e,a,o)}},model:{value:n[a.prop],callback:function(e){t.$set(n,a.prop,e)}}},[a.options.map((function(t,n){return e("el-option",{key:"options".concat(a.prop).concat(n),attrs:{label:t.name,value:t.value}})}))])}},m={functional:!0,render:function(e,n,a,r,o){return e("el-cascader",rt()([{key:a.refresh,attrs:{size:"small"}},{props:{checkStrictly:!0}},{class:[a.class,"full-width"],attrs:{options:a.options,"show-all-levels":!1,clearable:!0,disabled:a.disabled},on:{change:function(e){return t.formItemChange(e,a,o)},blur:function(e){return t.cascaderBlur(e,a,o)}},model:{value:n[a.prop],callback:function(e){t.$set(n,a.prop,e)}}}]))}},h={functional:!0,render:function(e,n,a,r,o){return e(ot["a"],{ref:"DatePicker",attrs:{type:a.type,size:"small","select-date-range":a.selectDateRange,"total-date-range":a.totalDateRange,"value-format":a.valueFormat,"default-time":a.defaultTime,prop:a.prop,"date-range":n[a.prop],"is-limit-date-range":a.isLimitDateRange,"has-date-picker":a.hasDatePicker,"initial-value":a.initialValue,"has-quick-item":a.hasQuickItem,width:a.width,disabled:a.disabled,"select-type":a.selectType,"picker-options":a.pickerOptions,placeholder:a.isNoPlaceholder?"":a.placeholder?a.placeholder:"请选择"},class:a.class,on:{getDateRange:function(e){return t.formItemChange(e,a,o)}}})}},g={functional:!0,render:function(e,n,a,r,o){return e("el-checkbox-group",{class:[a.class,"flex"],attrs:{size:"mini"},on:{change:function(e){return t.formItemChange(e,a,o)}},model:{value:n[a.prop],callback:function(e){t.$set(n,a.prop,e)}}},[a.options.map((function(t,n){return e("el-checkbox",{key:"options".concat(a.prop).concat(n),attrs:{label:t.value,disabled:t.disabled}},[t.name])}))])}},b={functional:!0,render:function(e,n,a,r,o){return e("el-input",{attrs:{disabled:a.disabled,clearable:!0,size:"small",type:"textarea",placeholder:a.isNoPlaceholder?"":"".concat(a.placeholder||"请输入"),rows:a.rows,autosize:a.autosize,"show-word-limit":a.showWordLimit,maxlength:a.maxlength},class:a.class,on:{change:function(e){return t.formItemChange(e,a,o)}},model:{value:n[a.prop],callback:function(e){t.$set(n,a.prop,e)}}})}},v={functional:!0,render:function(e,n,a,r,o){return e(it["a"],rt()([{attrs:{value:n[a.prop],filterable:!0,"item-prop":a.prop,data:a.options,"filter-able":a.filterable,multiple:a.multiple,relate:a.relate,"need-slot":a.needSlot,"node-key":a.nodeKey,disabled:a.disabled,"need-select":a.needSelect,"parent-node":!0}},t.$attrs,{},t.$listeners,{on:{updateValue:function(e,n){return t.updateValue(e,n,o)}}}]))}},C={AudioX:n,ButtonX:a,ButtonsX:r,CounterX:o,AvatarLabelX:i,MarkX:l,InformationX:s,InputX:c,HtmlTypeX:u,InputNumX:p,SelectX:f,CascaderX:m,DatePickerX:h,CheckboxX:g,TextareaX:b,TreeSelectX:v};return this.tableProp.forEach((function(e,n){var a="datePicker"===e.dataType?e.dateType:e.type;t.tableProp[n].component=C[a.charAt(0).toUpperCase()+a.slice(1)+"X"]})),e("div",{attrs:{id:"VDomEditTable"},class:"flex1 over-hidden flex-column"},[e("el-table",{ref:"FHTable",directives:[{name:"loading",value:this.loading}],attrs:{headerCellStyle:{color:"#909399",fontSize:"14px",background:"#F0f2f5"},cellStyle:{fontSize:"14px",color:"#323233",padding:"10px 0"},data:this.tableData,"default-expand-all":this.defaultExpandAll,rowKey:this.rowKey,lazy:this.lazy,load:this.loadNode,treeProps:this.treeProps},style:"width: 100%",class:[this.tableProps.name,this.hasTableChildren?"table-children-box":""],on:{"selection-change":this.handleSelectionChange,"sort-change":this.handleSortChange}},[this.hasCheckbox&&e("el-table-column",{class:"table-checkbox",attrs:{type:"selection",width:"55",fixed:this.checkboxFixed,selectable:this.selectableFunc}}),this.tableProp.map((function(n,a){return e("el-table-column",{key:"specialProp".concat(n.prop).concat(a),attrs:{label:n.label,prop:n.prop,width:t.isAppScreen?"":n.labelWidth,sortable:n.sortable}},[function(r){var o=r.row,i=!o.isEdit&&t.queryTableStatus(n)&&"operates"!==n.prop;return"operates"===n.prop&&console.log(i),e("div",[i||!t.judgeEmpty(n.type)?e(d["a"],{attrs:{hoverShow:t.hoverShow,content:""===o[n.prop]||null===o[n.prop]||void 0===o[n.prop]?"--":n.formatter?n.formatter(r.row,n.prop,n):Array.isArray(o[n.prop])?n.options&&n.options.length?o[n.prop].map((function(e){var t;return null===(t=n.options.find((function(t){return t.value===e})))||void 0===t?void 0:t.name})).filter((function(e){return e})).join(","):o[n.prop].join(","):o[n.prop],notToolTip:t.notToolTip,refName:"label".concat(n.prop)},class:[n.labelClass,"name-tip-box"],on:{"tooltip-click":function(){return t.handleTableClick(o,n.type,n,a)}}}):o.isEdit||"htmlType"!==n.type?n.component.render(e,o,n,a,r):e(d["a"],rt()([{attrs:{isHtml:!0,hoverShow:t.hoverShow,xssContent:t.$xss(o["xss".concat(n.prop)]),notToolTip:t.notToolTip,content:""===o[n.prop]||null===o[n.prop]||void 0===o[n.prop]?"--":Array.isArray(o[n.prop])?o[n.prop].join(","):o[n.prop],refName:"htmlType".concat(n.prop),"current-row":o},class:n.labelClass},t.$attrs,{},t.$listeners,{on:{"tooltip-click":function(){return t.handleTableClick(o,n.type,n,a)}}}]))])}])}))]),this.showPagination&&this.judgeEmpty(this.listArr)&&e("div",{class:"ta-r mt16"},[e("el-pagination",{attrs:{background:!0,total:this.total,"page-sizes":this.pageSizes,"pager-count":this.pagerCount,"current-page":this.currentPage,"page-size":this.pageSize,layout:"sizes, total, prev, pager, next, jumper"},on:{"size-change":this.handleSizeChange,"current-change":this.handleCurrentChange}})])])},install:function(e){e.component(ct.name,ct)}},ut=ct,dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.noError?n("img",e._b({attrs:{src:e.currentSrc},on:{load:function(t){return e.$emit("load")},error:e.handleError}},"img",e.$attrs,!1)):n("i",{staticClass:"iconfont icon-zhanyehaibao c-08a full-content"})},pt=[],ft={name:"DefaultImage",props:{src:{type:String,default:"",required:!0},backupSrc:{type:String,default:"",required:!1}},data:function(){return{currentSrc:"",noError:!0}},created:function(){this.currentSrc=this.src},methods:{handleError:function(){this.currentSrc!==this.backupSrc?(this.currentSrc=this.backupSrc,this.$emit("error")):this.noError=!1}}},mt=ft,ht=(n("2d59"),Object(l["a"])(mt,dt,pt,!1,null,"04e40599",null)),gt=ht.exports;gt.install=function(e){e.component(gt.name,gt)};var bt=gt,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("FHImage",e._b({attrs:{src:e.src,"backup-src":e.backupSrc}},"FHImage",e.$attrs,!1))},yt=[],Ct=n("0b6e"),xt="https://frcdapcdn.fhrons.com",_t={name:"FHPresetImage",components:{FHImage:bt},props:{id:{type:String,default:"",required:!0}},data:function(){return{src:"",backupSrc:""}},created:function(){var e=Object(Ct["d"])({name:"platformCode"})||"00",t=Object(Ct["d"])({name:"language"})||"zh_CN";this.src="".concat(xt,"/saasmanage/front/").concat(e,"/").concat(t,"/").concat(this.id,".png"),this.backupSrc="".concat(xt,"/saasmanage/front/00/").concat(t,"/").concat(this.id,".png")}},wt=_t,kt=Object(l["a"])(wt,vt,yt,!1,null,"17a202e0",null),Tt=kt.exports;Tt.install=function(e){e.component(Tt.name,Tt)};var jt=Tt,Pt=(n("2116"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ps-r",attrs:{id:"CommonCode"}},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})]),e.moreFlag?n("div",{staticClass:"ft16 line-height36 pd20"},[e._t("default")],2):e._e()])}),St=[],Ft={name:"CommonCode",data:function(){return{moreFlag:!0}},methods:{handleMore:function(){this.moreFlag=!this.moreFlag}}},Ot=Ft,Lt=(n("735a"),Object(l["a"])(Ot,Pt,St,!1,null,"423dc275",null)),Et=Lt.exports},"2b54":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"DefaultImage"}},[n("FHImage",{staticClass:"test-image",attrs:{src:e.rightSrc,"backup-src":e.wrongSrc},on:{error:e.onError,load:e.onLoaded}}),n("DefaultImageCode")],1)},r=[],o=n("2af9"),i=n("dd17"),l={name:"DefaultImage",components:{FHImage:o["j"],DefaultImageCode:i["default"]},data:function(){return{rightSrc:"https://frcdapcdn.fhrons.com/saasmanage/front/462c99e9dd181d4412d866cd371f9360/000000/zh_CN/score-signBtn.png",wrongSrc:"https://frcdapcdn.fhrons.com/saasmanage/front/60f73cbc460eb445b64bbce470bce5a2/000000/zh_CN/scoreMission_mall.png"}},methods:{onError:function(){console.log("加载失败")},onLoaded:function(){console.log("加载成功")}}},s=l,c=(n("bbbf"),n("2877")),u=Object(c["a"])(s,a,r,!1,null,"7000f5aa",null);t["default"]=u.exports},"2b68":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAZpJREFUWEftl79OwlAUxs/hj2g0gQfwEdicsbdYSLrVyUETN30AR5cujj6AbiY6ONmtCTRwG16BR+ABINEo8uczaiCCSNsbQh3asT3nO7/75d7Tc5kUHwAsypXrz3TZqF8wM1SkWCXJNM3cy9vgjoCjr3zmx+3N7Knruv2oepEBDMPID4bkgCB+FmNimc2Q5XleLwpEJABhmrt4HbggFBcVYeI2b2VN6bqdsBChAUS1WsT7yAXR7jJxJurwRtqUtVo7DEQoAF2vaGOMHRAVQop2U5yyms26HxQfCCBsO0OydQzm3FQMKIHoZHYP0D0xtybvGOiTKD1I2x4GOBbE+Pu7phtnAG5mAJjP/aZ3G1Ut0IFFgglA4oBWrhwScDmzP5iv/Eb9aS2bMGqRpcdwXxwo/cVWBcEJgK5X91Zlp4qOUidUKfRXjhJA7Mcw6YSJA2t14F+MZMIwBEbkAMiH6QHM3OM0WdLzZFB86D4Q61g+WUWsF5MphGUVxr1nhwBtbiDxU/kdSzpON8j2uXE+Svh3bKyX0wnuqq7nH+ZM/lzn9FblAAAAAElFTkSuQmCC"},"2beb":function(e,t,n){},"2c97":function(e,t,n){e.exports=n.p+"assets/img/PDFView.1579d70c.png"},"2d59":function(e,t,n){"use strict";n("4c43")},"2f95":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"line-height36",attrs:{id:"IconFontCss"}},[n("p",{staticClass:"ft18 fw-500 mt24"},[e._v("1、public文件下放icon.css文件 ")]),n("el-button",{staticClass:"ml24",attrs:{type:"primary",size:"small"}},[n("a",{staticClass:"ft14 fw-400 c-fff",attrs:{href:"https://frcdap-dev-1251973116.cos.ap-shanghai-fsi.myqcloud.com/sassmanage/file/dev/iconLinkCss/icon.css",target:"_blank"}},[e._v("下载地址")])]),n("p",[e._v("下载方法1:复制在线地址,对源码直接复制,保存到记事本,并更改文件名称为icon.css")]),n("p",[e._v("下载方法2:复制在线地址,右键另存为,保存到本地,并更改文件名称为icon.css")]),n("p",{staticClass:"ft18 fw-500 mt24"},[e._v("2、index.html 加上以下代码:")]),n("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.codeStr.join("")))}}),e._v(" "),n("p",{staticClass:"ft18 fw-500 mt24"},[e._v("3、环境变量加上图标文件的线上cos地址")]),n("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.codeStr1))}})],1)},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),{name:"IconFontCss",components:{},props:{},data:function(){return{codeStr:["<scr","ipt>\n function sheetError() {\n const link = document.createElement('link');\n const head = document.getElementsByTagName('head')[0];\n link.rel = 'stylesheet';\n link.href = '<%= BASE_URL %>icon.css';\n head.appendChild(link);\n }\n</scr",'ipt>\n<link rel="stylesheet" href="<%= VUE_APP_ICONCSS_PATH %>" onerror="sheetError()"/>'],codeStr1:"VUE_APP_ICONCSS_PATH = 'https://frcdap-dev-1251973116.cos.ap-shanghai-fsi.myqcloud.com/sassmanage/file/dev/iconLinkCss/icon.css'"}},watch:{},created:function(){},mounted:function(){},methods:{toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")}}}),s=l,c=n("2877"),u=Object(c["a"])(s,a,r,!1,null,"7e7c5bf0",null);t["default"]=u.exports},3217:function(e,t,n){"use strict";n("04b8")},3285:function(e,t,n){},"330a":function(e,t,n){},3378:function(e,t,n){},"34e7":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"FHDialogTest"}},[n("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"自定义关闭的弹框",name:"custom"}},[n("CustomFHDialog"),n("DialogHtml",{attrs:{type:"custom"}})],1),n("el-tab-pane",{attrs:{label:"mini的弹框",name:"mini"}},[n("MiniFHDialog"),n("DialogHtml",{attrs:{type:"mini"}})],1),n("el-tab-pane",{attrs:{label:"small的弹框",name:"small"}},[n("SmallFHDialog"),n("DialogHtml",{attrs:{type:"small"}})],1),n("el-tab-pane",{attrs:{label:"medium的弹框",name:"medium"}},[n("MediumFHDialog"),n("DialogHtml",{attrs:{type:"medium"}})],1),n("el-tab-pane",{attrs:{label:"large的弹框",name:"large"}},[n("LargeFHDialog"),n("DialogHtml",{attrs:{type:"large"}})],1),n("el-tab-pane",{attrs:{label:"自定义宽度的弹框",name:"customWidth"}},[n("CustomWDialog"),n("DialogHtml",{attrs:{type:"customWidth"}})],1)],1)],1)},r=[],o=n("225c"),i=n("0fd0"),l=n("0927"),s=n("e6e8"),c=n("3d1e"),u=n("bcdd"),d=n("26f6"),p={name:"FHDialogTest",components:{DialogHtml:o["default"],CustomFHDialog:i["default"],MiniFHDialog:l["default"],SmallFHDialog:s["default"],MediumFHDialog:c["default"],LargeFHDialog:u["default"],CustomWDialog:d["default"]},props:{},data:function(){return{activeName:"custom"}},watch:{},created:function(){},mounted:function(){},methods:{handleClick:function(){}}},f=p,m=n("2877"),h=Object(m["a"])(f,a,r,!1,null,"eb08249a",null);t["default"]=h.exports},3550:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"PairArrCode"}},e._l(e.pairDataArr,(function(t,a){return n("div",{key:"filter"+a,staticClass:"pl20"},[n("p",[e._v(e._s(t.name))]),n("div",{staticClass:"pl20"},[e._v("{ "),n("PairCode",{attrs:{"pair-code-arr":t.pairArr}}),e.judgeEmpty(t.children)?n("PairArrCode",{staticClass:"pl20",attrs:{"pair-data-arr":t.children}}):e._e()],1),n("p",{staticClass:"pl20"},[n("span",[e._v("}")]),a<e.pairDataArr.length-1?n("span",[e._v(",")]):e._e()]),t.end?n("p",[e._v("]"),t.hasDh?n("span",[e._v(",")]):e._e()]):e._e()])})),0)},r=[],o=n("e880"),i={name:"PairArrCode",components:{PairArrCode:u,PairCode:o["default"]},props:{pairDataArr:{type:Array,default:function(){return[]}}},data:function(){return{}},watch:{},created:function(){},mounted:function(){},methods:{}},l=i,s=n("2877"),c=Object(s["a"])(l,a,r,!1,null,"d3e19590",null),u=t["default"]=c.exports},3613:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"EditTableCode"}},[n("p",{staticClass:"fw-500 mb20"},[e._v("进来就是编辑状态的table列表,点击单条保存保存单条,点击大的保存按钮批量保存")]),n("EditTableTest",{staticClass:"border pd20 br8"})],1)},r=[],o=n("1a6f"),i={name:"EditTableCode",components:{EditTableTest:o["default"]},props:{},data:function(){return{}},watch:{},created:function(){},mounted:function(){},methods:{}},l=i,s=n("2877"),c=Object(s["a"])(l,a,r,!1,null,"0f616622",null);t["default"]=c.exports},"361a":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"ColorTest"}},[n("el-tabs",{attrs:{type:"border-card"}},[n("el-tab-pane",{attrs:{label:"字体颜色"}},[n("code",[n("div",{staticClass:"flex-wrap"},e._l(e.colorArr,(function(t,a){return n("div",{key:a,staticClass:"c-box flex-column-center br8 mr8 mb12",style:{backgroundColor:""+t.value},on:{click:function(n){return e.handleCopy(t.key)}}},[n("span",{class:t.color},[e._v(e._s(t.title||"文字颜色"))]),n("p",{staticClass:"ft16 fw-500",class:t.color},[e._v(e._s(t.key))])])})),0)])]),n("el-tab-pane",{attrs:{label:"背景颜色"}},[n("code",[n("div",{staticClass:"flex-wrap"},e._l(e.bgcArr,(function(t,a){return n("div",{key:"bgc-"+a,staticClass:"c-box flex-column-center br8 mr8 mb12",class:t.key,on:{click:function(n){return e.handleCopy(t.key)}}},[n("span",{class:t.color},[e._v(e._s(t.title||"背景颜色"))]),n("p",{staticClass:"ft16 fw-500",class:t.color},[e._v(e._s(t.key))])])})),0)])])],1)],1)},r=[],o={name:"ColorTest",components:{},props:{},data:function(){return{colorArr:[{key:"c-1677ff",value:"#fff",color:"c-1677ff"},{key:"c-fff",value:"#303133",color:"c-fff"},{key:"c-f56c6c",value:"#fff",color:"c-f56c6c"},{key:"c-e6a23c",value:"#fff",color:"c-e6a23c"},{key:"c-67c23a",value:"#fff",color:"c-67c23a"},{key:"c-303133",value:"#fff",color:"c-303133"},{key:"c-606266",value:"#fff",color:"c-606266"},{key:"c-909399",value:"#fff",color:"c-909399"},{key:"c-c0c4cc",value:"#fff",color:"c-c0c4cc"},{key:"c-dcdfe6",value:"#fff",color:"c-dcdfe6"},{title:"主题色",key:"c-theme",value:"#fff",color:"c-theme"},{title:"主题透明度为30%",key:"c-theme-30",value:"#fff",color:"c-theme-30"},{title:"主题透明度为5%",key:"c-theme-5",value:"#fff",color:"c-theme-5"}],bgcArr:[{key:"bgc-fff",color:"c-303133"},{key:"bgc-f8fafb",color:"c-303133"},{key:"bgc-f5f5f5",color:"c-303133"},{key:"bgc-f2f6fc",color:"c-303133"},{key:"bgc-f7f8fa",color:"c-303133"},{key:"bgc-1677ff",color:"c-fff"},{key:"bgc-67c23a",color:"c-fff"},{key:"bgc-e6a23c",color:"c-fff"},{key:"bgc-f56c6c",color:"c-fff"},{key:"bgc-909399",color:"c-fff"},{title:"主题背景色",key:"bgc-theme",color:"c-fff"},{title:"透明度为30%的背景色",key:"bgc-theme-30",color:"c-303133"},{title:"透明度为10%的背景色",key:"bgc-theme-10",color:"c-303133"},{title:"透明度为5%的背景色",key:"bgc-theme-5",color:"c-303133"}]}},watch:{},created:function(){},mounted:function(){},methods:{handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}},i=o,l=(n("73d4"),n("2877")),s=Object(l["a"])(i,a,r,!1,null,"4e9e3904",null);t["default"]=s.exports},3709:function(e,t,n){"use strict";n("b0c0");var a=n("c7ea");a["a"].install=function(e){e.component(a["a"].name,a["a"])},t["a"]=a["a"]},3918:function(e,t,n){},"3a85":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"InputEnterHtml"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlArr.slice(1).join("")))}}),e._v("\n ")])])])},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),n("4fca")),s={name:"InputEnterHtml",components:{},props:{},data:function(){return{htmlArr:l["K"]}},watch:{},created:function(){},mounted:function(){},methods:{toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"f5e5747a",null);t["default"]=d.exports},"3be0":function(e,t,n){},"3d1e":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"MediumFHDialog"}},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.btnClick(e.dialogObj)}}},[e._v("medium的弹框")]),n("FHDialog",{attrs:{"dialog-obj":e.dialogObj},on:{confirmClick:function(t){return e.confirmClick(e.dialogObj)},cancelClick:function(t){return e.cancelClick(e.dialogObj)}}},[n("FHTable",{ref:"FHTable",attrs:{id:"mediumTable","has-checkbox":!0,"max-height":e.maxHeight,"query-table-data":e.queryTableData,"query-params":e.queryParams,"table-props":e.tableProps,"list-map-name":"smSaasPlatformList"},on:{handleTableList:e.handleTableList,handleTableClick:e.handleTableClick,handleSelectionChange:e.handleSelectionChange}})],1)],1)},r=[],o=(n("99af"),n("4de4"),n("caad"),n("d81d"),n("d3b7"),n("2532"),n("159b"),n("3709")),i=n("fc4b"),l=n("f6ab"),s=n("1b62"),c=n("4348"),u={name:"MediumFHDialog",components:{FHTable:i["a"],FHDialog:o["a"]},mixins:[s["c"],s["a"]],props:{},data:function(){return{dialogObj:{type:"medium",title:"medium弹框适用于table表格",size:"medium"}}},watch:{list:{handler:function(e){this.tableProps["data"]=this.deepClone(e),this.tableProps["data"].forEach((function(e){e["platformNameStr"]="测试插槽"})),this.maxHeight=this.getTableHeight("mediumTable")}}},created:function(){},mounted:function(){},methods:{handleTableList:function(e){var t=this;e.forEach((function(e){var n=[{type:"terminalManage",text:"终端管理"}];if(!e.id.includes("_")){var a=[{type:"edit",text:"编辑"},{type:"relevance",text:"关联机构"},{type:"delete",text:"删除"}];e["operates"]=[{btns:n.concat(a)}]}e.platformCode&&(e.platformCode=t.handlePlatCode(e.platformCode))})),this.list=this.deepClone(e)},handlePlatCode:function(e){return c["E"][e]?c["E"][e]:"未知的平台码"},handleTableClick:function(e){var t=e.row||{};if("delete"===e.type){var n=this.list.filter((function(e){return e.id!==t.id}));this.list=this.deepClone(n)}else"terminalManage"===e.type||"edit"===e.type||e.type},handleSelectionChange:function(e){this.idArr=e.map((function(e){var t=e.id;return t}))},getData:function(){this.tableProps=this.deepClone(Object(c["r"])()),this.queryParams={saasId:"ff5a67337b6611e89feafa163eb3e537",userId:"27775e0e494447bf94a5292252262870"},this.tempQueryParams=this.deepClone(this.queryParams),this.getTableList()},queryTableData:function(e){return l["a"].queryPlatformList({params:e})},confirmClick:function(e){this.$set(e,"showDialog",!1)},cancelClick:function(e){this.$set(e,"showDialog",!1)},btnClick:function(e){this.getData(),this.$set(e,"showDialog",!0)}}},d=u,p=n("2877"),f=Object(p["a"])(d,a,r,!1,null,"045f8244",null);t["default"]=f.exports},"3d57":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"IframeTest"}},[n("IframeTemplate",{attrs:{src:e.src,"iframe-style":e.iframeStyle}}),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlStrArr.slice(1).join("")))}}),e._v("\n ")])])]):e._e()],1)},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),n("0d25")),s={name:"IframeTest",components:{IframeTemplate:l["a"]},props:{},data:function(){return{moreFlag:!0,src:"",iframeStyle:{width:"100%",height:"100%"},htmlStrArr:['\n<template>\n <div id="IframeTest">\n /*\n * IframeTemplate封装了NProgress加载样式\n * 入参说明\n * src: \'需要嵌入的第三方的地址\',\n * iframeStyle: \'嵌入进来的样式\'\n */\n <template>\n <IframeTemplate :src="src" :iframe-style="iframeStyle" />\n </template>\n </div>\n</template>',"\n<script>\n\nexport default {\n // 组件名称\n name: 'IframeTest',\n // 局部注册的组件\n components: { IframeTemplate },\n // 组件参数 接收来自父组件的数据\n props: {},\n // 组件状态值\n data() {\n return {\n src: '',\n iframeStyle: {\n width: '100%',\n height: '100%'\n }\n };\n },\n created() {\n this.src = 'https://element.eleme.cn/#/zh-CN/component/installation';\n }\n};\n</scr","ipt>"]}},watch:{},created:function(){this.src="https://element.eleme.cn/#/zh-CN/component/installation"},mounted:function(){},methods:{toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")},handleMore:function(){this.moreFlag=!this.moreFlag},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"5a1f4aa3",null);t["default"]=d.exports},"3fbb":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"UploadFileTest"}},[n("div",{staticClass:"testarea"},[n("UploadFuncTest"),n("CompressTest"),n("CustomUploadWidgetTest"),e._l(e.uploadEg,(function(t,a){return n("div",{key:a,staticClass:"demo-block pd24 mb24"},[n("span",{staticClass:"ft32 fw-500 mt12"},[e._v(e._s(t.title))]),"自定义上传按钮"===t.title?n("UploadFile",{attrs:{"upload-props":e.customUploadBtn,"query-port-url":e.queryPortUrl},on:{uploadSuccess:function(t,n){return e.uploadSuccess({},t,n)},removeFile:e.removeFile},scopedSlots:e._u([{key:"uploadBtn",fn:function(){return[n("el-button",{attrs:{type:"primary",size:"mini"}},[e._v("这是按钮的内容")])]},proxy:!0}],null,!0)}):n("UploadFile",{attrs:{"upload-props":t.prop,"need-cropper":t.needCropper,target:"amazon","default-file-list":t.defaultFileList,"query-params":e.queryParams,"query-port-url":e.queryPortUrl},on:{uploadSuccess:function(n,a){return e.uploadSuccess(t,n,a)},removeFile:e.removeFile}}),e._m(0,!0),e._m(1,!0),e._m(2,!0),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(n){e.handleCopy(t.codeStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(""+t.codeStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(t.codeStrArr.slice(1).join("")))}}),e._v("\n ")])])],1)}))],2),n("div",{staticClass:"changelogs ps-r pd20 c-303133"},[n("div",{staticClass:"ps-f log-container"},[n("h2",[e._v("版本修改记录")]),e._l(e.changelogs,(function(t,a){return n("div",{key:a,staticClass:"mt30"},[n("h3",{staticClass:"c-theme"},[e._v(e._s(t.version)+" "),n("span",{staticClass:"c-303133"},[e._v("("+e._s(e._f("getDateByVersion")(t.version))+")")])]),n("el-divider",{staticClass:"mt0"}),t.BugFixes&&t.BugFixes.length?n("h4",{staticClass:"mb10"},[e._v("Bug Fixes")]):e._e(),n("ul",e._l(t.BugFixes,(function(t,a){return n("li",{key:a},[e._v(e._s(t))])})),0),t.Features&&t.Features.length?n("h4",[e._v("Features")]):e._e(),n("ul",e._l(t.Features,(function(t,a){return n("li",{key:a},[e._v(e._s(t))])})),0)],1)}))],2)])])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h4",{staticStyle:{"line-height":"2"}},[e._v("从 "),n("span",{staticStyle:{"background-color":"#3598db",color:"#ffffff"}},[e._v("@24.2.2-9.1")]),e._v(" 版本往后,组件中新增了两个参数")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",[n("li",{staticStyle:{"line-height":"1.5"}},[n("span",{staticStyle:{"background-color":"#c2e0f4"}},[n("strong",[e._v("target ")])]),e._v("此参数表示上传的目标云存储,目前包含腾讯和亚马逊,对应的参数值是"),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("'tencent' ")]),e._v("和 "),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("'amazon'")])]),n("li",{staticStyle:{"line-height":"1.5"}},[n("span",{staticStyle:{"background-color":"#c2e0f4"}},[n("strong",[e._v("project ")])]),e._v("此参数表示上传的所属项目,"),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("0")]),e._v("全局,"),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("1")]),e._v("课程,"),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("2")]),e._v("开放平台 ")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",{staticStyle:{"line-height":"2"}},[e._v("也可以不传这两个参数,不传的时候默认值分别是 "),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("'tencent'")]),e._v(" 和 "),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("'0'")])])}],o=(n("99af"),n("ac1f"),n("5319"),n("2af9")),i=n("c197"),l=n.n(i),s=(n("a878"),n("4fca")),c=n("5c97"),u=n("d166"),d=n("9fa2"),p=n("0852"),f={name:"UploadFileTest",filters:{getDateByVersion:function(e){console.log(e);var t=e.split("."),n="20".concat(t[0]),a=t[1],r=t[2].replace("-","");return"".concat(n,"-").concat(a,"-").concat(r)}},components:{UploadFile:o["u"],UploadFuncTest:c["default"],CompressTest:u["default"],CustomUploadWidgetTest:d["default"]},props:{},data:function(){return{changelogs:p.changelog,cropperImgListProps:{acceptAttribute:".jpg,.png",fileSize:5,type:"img",subTip:"只能上传jpg/png文件,且不超过5M",limit:999,listType:"picture-card",multiple:!0},cropperImgProps:{showFileList:!1,uploadType:"avatar",acceptAttribute:".jpg,.png",fileSize:5,type:"img",defaultFileList:[{url:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/header.png"}],subTip:"只能上传jpg/png文件,且不超过5M"},picListProps:{acceptAttribute:".jpg,.png",fileSize:5,type:"img",subTip:"只能上传jpg/png文件,且不超过5M",limit:999,limitWidth:5e3,limitHeight:5e3,drag:!0,className:"pic-list-box",defaultFileList:[{url:"https://frcdap-dev-1251973116.cos.ap-shanghai-fsi.myqcloud.com/fhronspc/img/1670227671997/352781669776922_.pic.jpg"}],listType:"picture"},fileListProps:{acceptAttribute:".jpg,.png,.txt,.js,.xlsx,.xls",fileSize:5,subTip:"只能上传jpg/png/txt/xlsx/xls文件,且不超过5M",limit:999,limitWidth:5e3,limitHeight:5e3,className:"pic-list-box",btnClass:"ta-l"},fileListWebProps:{methods:"formData",acceptAttribute:".jpg,.png,.txt,.js,.xlsx,.xls",fileSize:5,subTip:"只能上传jpg/png/txt/xlsx/xls文件,且不超过5M",limit:999,limitWidth:5e3,limitHeight:5e3,className:"pic-list-box",btnClass:"ta-l"},picCardProps:{acceptAttribute:".jpg,.png",fileSize:5,type:"img",subTip:"只能上传jpg/png文件,且不超过5M",limit:999,limitWidth:5e3,limitHeight:5e3,listType:"picture-card",multiple:!0,disabled:!1,urlMaxLength:12,hideBtnOnDisabled:!1},imgProps:{acceptAttribute:".jpg,.png",fileSize:5,type:"img",subTip:"只能上传jpg/png文件,且不超过5M",limit:1,listType:"picture-card",limitWidth:5e3,limitHeight:5e3,defaultFileList:[{url:"https://frcdap-dev-1251973116.cos.ap-shanghai-fsi.myqcloud.com/fhronspc/img/1670227671997/352781669776922_.pic.jpg"}]},avatarProps:{showFileList:!1,acceptAttribute:".jpg,.png",fileSize:5,type:"img",subTip:"只能上传jpg/png文件,且不超过5M",limitWidth:5e3,limitHeight:5e3,defaultFileList:[{url:"https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/header.png"}],uploadType:"avatar"},customUploadWidget:{uploadType:"custom",acceptAttribute:".jpg,.png,.txt,.js,.xlsx,.xls",fileSize:5,showFileList:!1},testProp:{prop:{uploadType:"custom",showFileList:!1,acceptAttribute:".doc,.docx,.pdf,.js",fileSize:10,type:"file",limit:1},title:"测试",defaultFileList:[{url:"https://frcdap-dev-1251973116.cos.ap-shanghai-fsi.myqcloud.com/sassmanage/pdf/1712480270079/11.pdf"}]},queryParams:{},queryPortUrl:"/funapi/insure/channelAgent/uploadAgentReportDataByChannel",uploadEg:[]}},watch:{},created:function(){this.queryParams={deptInnerCode:"1018018002001",deptName:"联兴山东济南历城区服务部",platformSaasId:"ff5a67337b6611e89feafa163eb3e537",saasId:"ff5a67337b6611e89feafa163eb3e537",channel:"C"},this.uploadEg=[{title:"单张图片",prop:this.imgProps,codeStrArr:s["p"],defaultFileList:this.imgProps.defaultFileList},{title:"禁用图片",prop:Object.assign({},this.imgProps,{disabled:!0}),codeStrArr:s["x"],defaultFileList:[]},{title:"头像上传",prop:this.avatarProps,codeStrArr:s["q"],defaultFileList:this.avatarProps.defaultFileList},{title:"文件缩略图",prop:this.picCardProps,codeStrArr:s["r"]},{title:"上传到后台不到腾讯云的文件列表",prop:this.fileListWebProps,codeStrArr:s["s"]},{title:"上传到腾讯云的文件列表",prop:this.fileListProps,codeStrArr:s["t"]},{title:"图片列表缩略图",prop:this.picListProps,codeStrArr:s["u"]},{title:"图片裁剪",prop:this.cropperImgProps,codeStrArr:s["v"],needCropper:!0,defaultFileList:this.cropperImgProps.defaultFileList},{title:"列表图片裁剪",prop:this.cropperImgListProps,codeStrArr:s["w"],needCropper:!0}]},mounted:function(){},methods:{uploadSuccess:function(e,t,n){console.log(e,t,n,"uploadSuccess",e.prop)},removeFile:function(e){console.log(e,"removeFile")},toHtml:function(e){return l.a.highlight(e,l.a.languages.html,"html")},toJs:function(e){return l.a.highlight(e,l.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}},m=f,h=(n("bd96"),n("2877")),g=Object(h["a"])(m,a,r,!1,null,"5476113a",null);t["default"]=g.exports},4312:function(e,t,n){"use strict";n("5546")},4348:function(e,t,n){"use strict";n.d(t,"t",(function(){return i})),n.d(t,"p",(function(){return l})),n.d(t,"u",(function(){return s})),n.d(t,"v",(function(){return c})),n.d(t,"s",(function(){return u})),n.d(t,"q",(function(){return d})),n.d(t,"r",(function(){return p})),n.d(t,"l",(function(){return f})),n.d(t,"g",(function(){return m})),n.d(t,"m",(function(){return h})),n.d(t,"F",(function(){return g})),n.d(t,"k",(function(){return b})),n.d(t,"h",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"f",(function(){return C})),n.d(t,"A",(function(){return x})),n.d(t,"B",(function(){return _})),n.d(t,"C",(function(){return w})),n.d(t,"D",(function(){return k})),n.d(t,"n",(function(){return T})),n.d(t,"o",(function(){return j})),n.d(t,"G",(function(){return P})),n.d(t,"H",(function(){return S})),n.d(t,"I",(function(){return F})),n.d(t,"K",(function(){return O})),n.d(t,"J",(function(){return L})),n.d(t,"L",(function(){return E})),n.d(t,"E",(function(){return $})),n.d(t,"w",(function(){return I})),n.d(t,"x",(function(){return D})),n.d(t,"j",(function(){return A})),n.d(t,"i",(function(){return N})),n.d(t,"d",(function(){return H})),n.d(t,"c",(function(){return M})),n.d(t,"b",(function(){return z})),n.d(t,"a",(function(){return R})),n.d(t,"z",(function(){return V})),n.d(t,"y",(function(){return q}));n("99af"),n("7db0"),n("a15b"),n("d81d"),n("b0c0"),n("d3b7");var a=n("8ed2"),r=n("7719"),o=n("267e");function i(){return{form:{inputVal:"",inputNumVal:"",selectVal:"",dateVal:"",dateRangeVal:[],dateTimeRangeVal:[],dateRangePickerVal:[],minSpecial:"",maxSpecial:"",treeSelectVal:"",treeSelectValue:""},rules:{dateRangeVal:[{required:!0,message:"不能为空",trigger:"blur"}]},filterArr:[{label:"输入框",prop:"inputVal",val:"",placeholder:"测试placeholder"},{label:"插槽测试",type:"slotTest",prop:"testSlot",val:""},{label:"数字输入",type:"inputNum",prop:"inputNumVal",val:""},{label:"下拉选择",prop:"selectVal",type:"select",val:"",filterable:!0,options:[{value:"选项1",label:"黄金糕"},{value:"选项2",label:"双皮奶"}]},{label:"级联选择器",prop:"cascaderCont",type:"cascader",val:"",options:[{value:1,label:"东南",children:[{value:2,label:"上海",children:[{value:3,label:"普陀"},{value:4,label:"黄埔"},{value:5,label:"徐汇"}]},{value:7,label:"江苏",children:[{value:8,label:"南京"},{value:9,label:"苏州"},{value:10,label:"无锡"}]}]}],refresh:0,filterable:!0},{label:"日期选择器",prop:"dateVal",type:"date",val:"",valueFormat:"yyyy-MM-dd"},{label:"日期范围选择器",prop:"dateRangeVal",type:"daterange",required:!0,val:[],valueFormat:"yyyy-MM-dd"},{label:"时间范围选择器",prop:"dateTimeRangeVal",type:"datetimerange",val:[]},{label:"分段式年份范围选择器",prop:"dateRangePickerVal",type:"daterangepicker",val:""},{label:"定制输入框",type:"specialInput",minProp:"minSpecial",maxProp:"maxSpecial",minPlaceholder:"请输入最小值",maxPlaceholder:"请输入最大值",val:{minSpecial:"",maxSpecial:""}},{label:"单选结构树",type:"treeSelect",prop:"treeSelectVal",filterable:!0,options:[{label:"系统",id:1,children:[{label:"用户",id:2,children:[{label:"用户1",id:14}]},{label:"用户组",id:3},{label:"角色",id:4},{label:"菜单",id:5},{label:"组织架构",id:6}]},{label:"商品",id:7,children:[{label:"列表",id:8},{label:"添加",id:9},{label:"修改",id:10},{label:"删除",id:11},{label:"商品分类",id:12},{label:"分类修改",id:13}]}]},{label:"多选结构树",type:"treeSelect",prop:"treeSelectValue",filterable:!0,multiple:!0,needSlot:!0,relate:!0,options:[{label:"系统",id:1,children:[{label:"用户",id:2,children:[{label:"用户1",id:14},{label:"用户2",id:15,children:[{label:"用户3",id:21},{label:"用户3",id:22}]},{label:"用户3",id:16},{label:"用户4",id:17}]},{label:"用户组",id:3},{label:"角色",id:4},{label:"菜单",id:5},{label:"组织架构",id:6}]},{label:"商品",id:7,children:[{label:"列表",id:8},{label:"添加",id:9},{label:"修改",id:10},{label:"删除",id:11},{label:"商品分类",id:12},{label:"分类修改",id:13}]}]}]}}function l(){return{data:[{input:"",inputNum:null,textarea:"",select:"",cascader:[],datePicker:"",checkbox:[],operates:[{btns:[{text:"保存",type:"save"}]}]}],tableProp:[{label:"输入框",prop:"input",type:"input",fixed:"left",rules:[{required:!0,message:"请输入",trigger:"blur"}],labelWidth:"200px"},{label:"数字输入框",prop:"inputNum",type:"inputNum",rules:[{required:!0,message:"请输入",trigger:"blur"}],labelWidth:"200px"},{label:"文本输入框",prop:"textarea",type:"textarea",rows:1,labelWidth:"200px"},{label:"下拉选择框",prop:"select",type:"select",rules:[{required:!0,message:"请选择",trigger:"change"}],labelWidth:"200px"},{label:"级联选择器",prop:"cascader",type:"cascader",options:[{value:1,label:"东南",children:[{value:2,label:"上海",children:[{value:3,label:"普陀"},{value:4,label:"黄埔"},{value:5,label:"徐汇"}]},{value:7,label:"江苏",children:[{value:8,label:"南京"},{value:9,label:"苏州"},{value:10,label:"无锡"}]}]}],refresh:0,filterable:!0,rules:[{type:"array",required:!0,message:"请选择",trigger:["blur","change"]},{validator:function(e,t,n){console.log("value",t),t?n():n(new Error("请选择"))},trigger:["blur","change"]}],labelWidth:"200px"},{label:"时间选择",prop:"datePicker",type:"datetimerange",labelWidth:"420px",rules:[{required:!0,message:"请选择时间",trigger:"blur"}]},{label:"多选框",prop:"checkbox",type:"checkbox",options:[{value:"web",name:"web"},{value:"小程序",name:"pub"}],labelWidth:"200px"},{label:"单选结构树",type:"treeSelect",prop:"treeSelectVal",filterable:!0,options:[{label:"系统",id:1,children:[{label:"用户",id:2,children:[{label:"用户1",id:14}]},{label:"用户组",id:3},{label:"角色",id:4},{label:"菜单",id:5},{label:"组织架构",id:6}]},{label:"商品",id:7,children:[{label:"列表",id:8},{label:"添加",id:9},{label:"修改",id:10},{label:"删除",id:11},{label:"商品分类",id:12},{label:"分类修改",id:13}]}]},{label:"多选结构树",type:"treeSelect",prop:"treeSelectValue",filterable:!0,multiple:!0,needSlot:!0,relate:!0,options:[{label:"系统",id:1,children:[{label:"用户",id:2,children:[{label:"用户1",id:14},{label:"用户2",id:15,children:[{label:"用户3",id:21},{label:"用户3",id:22}]},{label:"用户3",id:16},{label:"用户4",id:17}]},{label:"用户组",id:3},{label:"角色",id:4},{label:"菜单",id:5},{label:"组织架构",id:6}]},{label:"商品",id:7,children:[{label:"列表",id:8},{label:"添加",id:9},{label:"修改",id:10},{label:"删除",id:11},{label:"商品分类",id:12},{label:"分类修改",id:13}]}]},{label:"操作",prop:"operates",type:"buttons",btnType:"text",fixed:"right",labelWidth:"80",btnShowType:"horizontal-no-wrap"}]}}function s(){return{data:[],tableProp:[{label:"测试hover",prop:"testHoverTip",fixed:"left",sortable:"custom",type:"htmlType",labelClass:"pointer",labelWidth:"120px"},{label:"客户姓名",prop:"nickName",fixed:"left",sortable:"custom",type:"htmlType",labelClass:"pointer",labelWidth:"120px"},{label:"客户姓名Str",prop:"nickNameStr",sortable:"custom",type:"slotSpan",labelWidth:"120"},{label:"客户ID",prop:"clientNewId"},{label:"类型",prop:"batchApplyMode",type:"htmlType",labelWidth:"120",labelClass:"pointer"},{label:"归属销售",prop:"agentUserName"},{label:"客户来源",prop:"dataSourceName"},{label:"进入时间",prop:"enterTime",sortable:"custom"},{label:"操作",prop:"operate",type:"buttons",btnType:"text",fixed:"right",labelWidth:"230",btnShowType:"horizontal-no-wrap"},{label:"操作",prop:"operate2",type:"buttons",btnType:"text",fixed:"right",labelWidth:"160",btnShowType:"more-wrap"},{label:"操作",prop:"operate3",type:"buttons",btnType:"text",fixed:"right",labelWidth:"140",btnShowType:"single-wrap"}]}}var c="export function getTableObj() {\n return {\n data: [],\n tableProp: [\n { label: '客户姓名', prop: 'nickName', fixed: 'left', sortable: 'custom' },\n { label: '客户姓名Str', prop: 'nickNameStr', fixed: 'left', sortable: 'custom', type: 'slotSpan' },\n { label: '客户ID', prop: 'clientNewId' },\n { label: '类型', prop: 'batchApplyMode', type: 'htmlType', labelWidth: '120' },\n { label: '归属销售', prop: 'agentUserName' },\n { label: '客户来源', prop: 'dataSourceName' },\n { label: '进入时间', prop: 'enterTime', sortable: 'custom' },\n { label: '操作', prop: 'operate', type: 'buttons', btnType: 'text', fixed: 'right', labelWidth: '230', btnShowType: 'horizontal-no-wrap' },\n { label: '操作', prop: 'operate2', type: 'buttons', btnType: 'text', fixed: 'right', labelWidth: '160', btnShowType: 'more-wrap' },\n { label: '操作', prop: 'operate3', type: 'buttons', btnType: 'text', fixed: 'right', labelWidth: '140', btnShowType: 'single-wrap' }\n ]\n };\n}\n// 分页枚举(不用删除)\nexport const pagination = {\n pageOffset: 0,\n pageSize: 10,\n total: 0,\n currentPage: 1\n};\n// 客户来源-客户类型\nexport const batchApplyModeType = {\n '1': '分配客户',\n '2': '取数客户',\n '3': '自建客户',\n '4': '扫码客户',\n '6': '转介绍客户',\n '7': '智能外呼客户',\n '0': '--'\n};";function u(){return{form:{platformName:"",platformCode:"",plattype:"",terminalName:"",systemName:"",systemCode:"",saasName:"",saasCode:""},rules:{platformName:a["e"]},formArr:[{label:"平台名称",prop:"platformName",val:""},{label:"平台编码",prop:"platformCode",val:""},{label:"平台类型",prop:"plattype",val:""},{label:"终端类型",prop:"terminalName",type:"select",val:"",options:[{name:"WEB端",value:"1"},{name:"App",value:"2"}]},{label:"系统名称",prop:"systemName",val:""},{label:"系统编码",prop:"systemCode",val:""},{label:"租户名称",prop:"saasName",val:""},{label:"租户编码",prop:"saasCode",val:""},{label:"平台名称",prop:"platformName",val:""},{label:"平台编码",prop:"platformCode",val:""},{label:"平台类型",prop:"plattype",val:""},{label:"终端类型",prop:"terminalName",type:"select",val:"",options:[{name:"WEB端",value:"1"},{name:"App",value:"2"}]},{label:"系统名称",prop:"systemName",val:""},{label:"系统编码",prop:"systemCode",val:""},{label:"租户名称",prop:"saasName",val:""},{label:"租户编码",prop:"saasCode",val:""},{label:"平台名称",prop:"platformName",val:""},{label:"平台编码",prop:"platformCode",val:""},{label:"平台类型",prop:"plattype",val:""},{label:"终端类型",prop:"terminalName",type:"select",val:"",options:[{name:"WEB端",value:"1"},{name:"App",value:"2"}]},{label:"系统名称",prop:"systemName",val:""},{label:"系统编码",prop:"systemCode",val:""},{label:"租户名称",prop:"saasName",val:""},{label:"租户编码",prop:"saasCode",val:""}]}}function d(){return{filterButtons:[{label:"查询",type:"primary",click:"searchClick"},{label:"重置",click:"resetClick"}],rules:{platformName:a["e"]},form:{platformName:"",platformCode:"",plattype:"",terminalName:null,systemName:"",systemCode:"",saasName:"",saasCode:""},filterArr:[{label:"平台名称",prop:"platformName",val:"",required:!0},{label:"平台编码",prop:"platformCode",val:""},{label:"平台类型",prop:"plattype",val:""},{label:"终端类型",prop:"terminalName",type:"select",val:"",options:[]},{label:"系统名称",prop:"systemName",val:""},{label:"系统编码",prop:"systemCode",val:""},{label:"租户名称",prop:"saasName",val:""},{label:"租户编码",prop:"saasCode",val:""}]}}function p(){return{data:[],tableProp:[{label:"平台名称平台名称平台名称平台名称平台名称",prop:"platformName",type:"htmlType",fixed:"left"},{label:"平台编码",prop:"platformCode"},{label:"平台类型",prop:"platformType"},{label:"终端类型",prop:"terminalName"},{label:"系统名称",prop:"systemName"},{label:"系统编码",prop:"saasCode"},{label:"租户名称",prop:"saasName",type:"htmlType",labelWidth:"120",color:"#f10"},{label:"租户编码",prop:"saasCode"},{label:"操作",prop:"operates",type:"buttons",btnType:"text",fixed:"right",labelWidth:"250"}]}}var f={row:{title:"横向布局",applyTo:"father",type:"single",arr:["flex","flex-between","flex-around","flex-start","flex-end","flex-align-stretch","flex-align-start","flex-align-end","flex-start-center","flex-between-end","flex-between-start","flex-between-baseline","flex-baseline"]},col:{title:"纵向布局",applyTo:"father",type:"single",arr:["flex-column","flex-column-center","flex-column-center-start","flex-column-center-around","flex-column-center-between","flex-column-jus-around","flex-column-jus-between","flex-column-start","flex-column-start-center","flex-column-start-around","flex-column-start-between","flex-column-end-between","flex-justify-content-end","flex-align-content-center"]},center:{title:"flex居中",applyTo:"father",type:"single",arr:["flex-center","flex-center-baseline","flex-end-center","flex-center-vertical","flex-center-horizontal","flex-around-center","flex-between-center"]},warp:{title:"flex换行",applyTo:"father",type:"multi",arr:["flex-nowrap","flex-wrap","flex-start-wrap","flex-between-wrap"]},basis:{title:"子项目占比",applyTo:"item",type:"cutom",arr:["flex1","flex2","flex1-5","flex1-3","flex1-2"]}},m={margin:{title:"margin",type:"margin",arr:[{title:"上",arr:["mt0","mt1","mt2","mt3","mt4","mt5","mt6","mt7","mt8","mt9","mt10","mt12","mt13","mt14","mt15","mt16","mt18","mt20","mt21","mt23","mt24","mt27","mt28","mt30","mt32","mt40","mt44","mt42","mt45","mt75","mt46","mt48","mt53","mt58","mt61","mt65","mt80","mt90","mt120","mt144","mt200"]},{title:"左",arr:["ml-auto","ml2","ml4","ml5","ml6","ml7","ml8","ml10","ml11","ml12","ml15","ml16","ml18","ml20","ml22","ml24","ml32","ml48"]},{title:"右",arr:["mr0","mr2","mr4","mr5","mr6","mr8","mr10","mr12","mr14","mr15","mr16","mr17","mr18","mr20","mr24","mr30","mr32","mr35","mr40"]},{title:"下",arr:["mb0","mb2","mb3","mb4","mb5","mb6","mb7","mb8","mb9","mb10","mb12","mb13","mb14","mb15","mb16","mb20","mb24","mb28","mb16","mb30","mb32","mb35","mb40","mb44","mb48","mb60","mb64","mb72","mb80"]},{title:"mtb",arr:["mtb4","mtb6","mtb8","mtb10","mtb12","mtb15","mtb16","mtb18","mtb20","mtb30"]},{title:"mlr",arr:["mlr2","mlr4","mlr5","mlr8","mlr10","mlr12","mlr15","mlr16","mlr20","mlr41"]},{title:"自适应",arr:["m0a"]}]},padding:{title:"padding",type:"padding",arr:[{title:"上",arr:["pt0","pt2","pt3","pt4","pt5","pt6","pt8","pt10","pt12","pt13","pt14","pt15","pt16","pt18","pt20","pt22","pt24","pt25","pt30","pt34","pt36","pt40","pt44","pt45","pt48","pt55","pt56","pt58","pt60","pt65","pt70","pt87","pt90","pt91","pt97","pt100"]},{title:"下",arr:["pb0","pb1","pb2","pb4","pb5","pb6","pb8","pb10","pb12","pb13","pb15","pb14","pb16","pb18","pb20","pb24","pb30","pb36","pb37","pb48","pb50","pb60","pb54","pb64","pb80","pb90","pb100","pb106","pb125","pb200","pb150","pb170"]},{title:"左",arr:["pl0","pl2","pl4","pl6","pl7","pl8","pl10","pl11","pl12","pl13","pl14","pl16","pl18","pl20","pl24","pl30","pl32","pl40"]},{title:"右",arr:["pr0","pr4","pr5","pr6","pr7","pr8","pr10","pr11","pr12","pr13","pr14","pr15","pr16","pr18","pr20","pr24","pr28","pr30"]},{title:"pd",arr:["pd0","pd2","pd3","pd4","pd5","pd6","pd8","pd9","pd10","pd12","pd14","pd15","pd16","pd18","pd20","pd24","pd24","pd25"]},{title:"ptb",arr:["ptb0","ptb1","ptb2","ptb3","ptb4","ptb5","ptb6","ptb7","ptb8","ptb9","ptb10","ptb11","ptb12","ptb14","ptb15","ptb16","ptb19","ptb20","ptb24","ptb25","ptb30","ptb32","ptb33","ptb45","ptb50","ptb70"]},{title:"plr",arr:["plr0","plr1","plr2","plr3","plr4","plr5","plr6","plr8","plr10","plr12","plr14","plr15","plr16","plr18","plr20","plr24","plr30","plr46","plr60","plr80","plr148"]}]},border:{title:"border",type:"border",arr:[{needRadio:!0,arr:["border","border-none","border-top","border-bottom","border-right"]}]},br:{title:"圆角",type:"br",arr:[{needRadio:!0,arr:["br2","br3","br4","br6","br8","br10","br12","br14","br15","br16","br18","br20","br22","br25","br24","br50","br4-rightbottom","br12-right","br8-top","br8-bottom","circle"]}]}},h={fontSize:{title:"字体大小",arr:["ft10","ft11","ft12","ft13","ft14","ft15","ft16","ft17","ft18","ft19","ft20","ft21","ft22","ft23","ft24","ft26","ft28","ft32","ft36","ft40","ft46","ft60"]},lineHeight:{title:"行高",arr:["line-height-normal","line-height12","line-height13","line-height14","line-height15","line-height16","line-height18","line-height20","line-height21","line-height22","line-height23","line-height24","line-height25","line-height26","line-height27","line-height28","line-height30","line-height32","line-height33","line-height34","line-height35","line-height36","line-height40","line-height44","line-height45","line-height46","line-height48","line-height52","line-height56"]},fontWeight:{title:"字体粗细",arr:["fw-400","fw-500","fw-600","fw-700","fw-900"]},textAlign:{title:"文本对齐",arr:["ta-l","ta-c","ta-r"]}},g={sticky:{title:"定位",arr:["ps-s","ps-r","ps-a"]},top:{title:"距离上方",applyTo:"item",arr:["top0","top3","top30","top44"]},right:{title:"距离右边",applyTo:"item",arr:["right0"]},bottom:{title:"距离下方",applyTo:"item",arr:["bottom0","bottom80"]},left:{title:"距离左边",applyTo:"item",arr:["left0"]}},b=[{label:"我是一行省略的文字我是一行省略的文字我是一行省略的文字",value:"one-line"},{label:"我是两行省略的文字我是两行省略的文字我是两行省略的文字我是两行省略的文字我是两行省略的文字我是两行省略的文字",value:"over-flow-two"},{label:"我是三行省略的文字我是三行省略的文字我是三行省略的文字我是三行省略的文字我是三行省略的文字我是三行省略的文字",value:"over-flow-three"}],v={form:{textStr1:"字符串类型",cname:"",slotName:"",mobile:"",multi:"",terminalName:"",enterDate:"",selectVal:"",dateVal:"",dateRangVal:[],dateTimeRangeVal:[],dateRangePickerVal:[],treeSelectVal:"",treeSelectValue:""},rules:{cname:a["e"],mobile:a["d"]},formArr:[{label:"文字Str1",prop:"textStr1",placeholder:"",type:"textStr",formItemClass:"str-line",class:""},{label:"姓名",prop:"cname",placeholder:""},{label:"手机号",prop:"mobile",type:"inputNum",placeholder:"",maxlength:11},{label:"这是两行的样式样式",prop:"multi",type:"textarea",placeholder:""},{label:"下拉选择",prop:"selectVal",type:"select",val:"",options:[{value:"选项1",label:"黄金糕"},{value:"选项2",label:"双皮奶"}]},{label:"级联选择器",prop:"cascaderCont",type:"cascader",val:"",options:[{value:1,label:"东南",children:[{value:2,label:"上海",children:[{value:3,label:"普陀"},{value:4,label:"黄埔"},{value:5,label:"徐汇"}]},{value:7,label:"江苏",children:[{value:8,label:"南京"},{value:9,label:"苏州"},{value:10,label:"无锡"}]}]}],refresh:0,filterable:!0},{label:"日期选择器",prop:"dateVal",type:"date",val:"",valueFormat:"yyyy-MM-dd"},{label:"日期范围选择器",prop:"dateRangeVal",type:"daterange",val:""},{label:"时间范围选择器",prop:"dateTimeRangeVal",type:"datetimerange",val:""},{label:"可选年份月份的日期范围选择器",prop:"dateRangePickerVal",type:"daterangepicker",val:"",width:932},{label:"单选结构树",type:"treeSelect",prop:"treeSelectVal",filterable:!0,options:[{label:"系统",id:1,children:[{label:"用户",id:2,children:[{label:"用户1",id:14}]},{label:"用户组",id:3},{label:"角色",id:4},{label:"菜单",id:5},{label:"组织架构",id:6}]},{label:"商品",id:7,children:[{label:"列表",id:8},{label:"添加",id:9},{label:"修改",id:10},{label:"删除",id:11},{label:"商品分类",id:12},{label:"分类修改",id:13}]}]},{label:"多选结构树",type:"treeSelect",prop:"treeSelectValue",filterable:!0,multiple:!0,needSlot:!0,relate:!0,options:[{label:"系统",id:1,children:[{label:"用户",id:2,children:[{label:"用户1",id:14},{label:"用户2",id:15,children:[{label:"用户3",id:21},{label:"用户3",id:22}]},{label:"用户3",id:16},{label:"用户4",id:17}]},{label:"用户组",id:3},{label:"角色",id:4},{label:"菜单",id:5},{label:"组织架构",id:6}]},{label:"商品",id:7,children:[{label:"列表",id:8},{label:"添加",id:9},{label:"修改",id:10},{label:"删除",id:11},{label:"商品分类",id:12},{label:"分类修改",id:13}]}]},{label:"这是测试插槽",prop:"slotName",placeholder:"",type:"slotTextarea"}]},y={color:o["g"],grid:{right:"10%",left:"10%"},legend:{show:!0,data:["销售额","取数量","成单量"],left:"center",textStyle:{fontSize:11},itemWidth:8,itemHeight:8},xAxis:[{type:"category",data:["周一","周二","周三","周四","周五","周六"],axisPointer:{type:"shadow"},axisLine:{show:!1,lineStyle:{color:"#7F808A"}},axisTick:{show:!1},axisLabel:{interval:0,textStyle:{fontSize:12},formatter:function(e){var t="",n=2,a=e.length,r=Math.ceil(a/n);if(r>1){for(var o=0;o<r;o++){var i="",l=o*n,s=l+n;i=e.substring(l,s)+"\n",t+=i}return t}return e}}}],yAxis:[{type:"value",name:"/次",min:0,max:100,interval:Math.ceil(20),axisLine:{show:!1,lineStyle:{color:"#7F808A"}},axisTick:{show:!1},axisLabel:{formatter:"{value}"},splitLine:{show:!0,lineStyle:{color:"#E8E8E8"}},nameTextStyle:{align:"right"}},{type:"value",name:"/人",min:0,max:100,interval:20,axisLine:{show:!1,lineStyle:{color:"#7F808A"}},axisTick:{show:!1},axisLabel:{formatter:"{value}"},splitLine:{show:!0,lineStyle:{color:"#E8E8E8"}},nameTextStyle:{align:"left"}}],series:[{name:"分享次数",type:"bar",barWidth:"30%",data:[15,20,80,50,35,70]},{name:"访问量",type:"bar",barWidth:"30%",data:[20,30,40,50,25,10]}]},C="{\n color: pieColors,\n grid: {\n right: '10%',\n left: '10%'\n },\n legend: {\n show: true,\n // 图例,每一个系列独有一个图例,注意:图例的名字必须跟下面series数组里面的name一致。\n data: ['销售额', '取数量', '成单量'],\n left: 'center', // left、right、center、百分比\n textStyle: {\n fontSize: 11\n },\n itemWidth: 8,\n itemHeight: 8\n },\n xAxis: [\n {\n type: 'category',\n data: ['周一', '周二', '周三', '周四', '周五', '周六'],\n axisPointer: {\n type: 'shadow'\n },\n axisLine: { show: false, lineStyle: { color: '#7F808A' }},\n axisTick: { show: false },\n axisLabel: {\n interval: 0,\n textStyle: {\n fontSize: 12 // 更改坐标轴文字大小\n },\n formatter: function(value) {\n var str = '';\n var num = 2; // 每行显示字数\n var valLength = value.length; // 该项x轴字数\n var rowNum = Math.ceil(valLength / num); // 行数\n if (rowNum > 1) {\n for (var i = 0; i < rowNum; i++) {\n var temp = '';\n var start = i * num;\n var end = start + num;\n temp = value.substring(start, end) + '';\n str += temp;\n }\n return str;\n }\n return value;\n }\n }\n }\n ],\n yAxis: [\n {\n type: 'value',\n name: '/次',\n min: 0,\n max: 100,\n interval: Math.ceil(100 / 5), // 平均分为5份\n axisLine: { show: false, lineStyle: { color: '#7F808A' }},\n axisTick: { show: false },\n axisLabel: {\n formatter: '{value}'\n },\n splitLine: {\n show: true,\n lineStyle: {\n color: '#E8E8E8'\n }\n },\n nameTextStyle: {\n align: 'right'\n }\n },\n {\n type: 'value',\n name: '/人',\n min: 0,\n max: 100,\n interval: 20, // 平均分为5份\n axisLine: { show: false, lineStyle: { color: '#7F808A' }},\n axisTick: { show: false },\n axisLabel: {\n formatter: '{value}'\n },\n splitLine: {\n show: true,\n lineStyle: {\n // 使用深浅的间隔色\n color: '#E8E8E8'\n }\n },\n nameTextStyle: {\n align: 'left'\n }\n }\n ],\n series: [\n {\n name: '分享次数',\n type: 'bar',\n barWidth: '30%',\n data: [15, 20, 80, 50, 35, 70]\n },\n {\n name: '访问量',\n type: 'bar',\n barWidth: '30%',\n data: [20, 30, 40, 50, 25, 10]\n }\n ]\n }",x={color:o["g"],grid:{right:"10%",left:"10%"},legend:{show:!0,data:["销售额","取数量","成单量"],left:"center",textStyle:{fontSize:11},itemWidth:8,itemHeight:8},xAxis:[{type:"category",data:["周一","周二","周三","周四","周五","周六"],axisPointer:{type:"shadow"},axisLine:{show:!1,lineStyle:{color:"#7F808A"}},axisTick:{show:!1},axisLabel:{interval:0,textStyle:{fontSize:12},formatter:function(e){var t="",n=2,a=e.length,r=Math.ceil(a/n);if(r>1){for(var o=0;o<r;o++){var i="",l=o*n,s=l+n;i=e.substring(l,s)+"\n",t+=i}return t}return e}}}],yAxis:[{type:"value",name:"/次",min:0,max:100,interval:Math.ceil(20),axisLine:{show:!1,lineStyle:{color:"#7F808A"}},axisTick:{show:!1},axisLabel:{formatter:"{value}"},splitLine:{show:!0,lineStyle:{color:"#E8E8E8"}},nameTextStyle:{align:"right"}},{type:"value",name:"/人",min:0,max:100,interval:20,axisLine:{show:!1,lineStyle:{color:"#7F808A"}},axisTick:{show:!1},axisLabel:{formatter:"{value}"},splitLine:{show:!0,lineStyle:{color:"#E8E8E8"}},nameTextStyle:{align:"left"}}],series:[{name:"分享次数",type:"line",data:[15,20,80,50,35,70]},{name:"访问量",type:"line",data:[20,30,40,50,25,10]}]},_="{\n color: pieColors,\n grid: {\n right: '10%',\n left: '10%'\n },\n legend: {\n show: true,\n // 图例,每一个系列独有一个图例,注意:图例的名字必须跟下面series数组里面的name一致。\n data: ['销售额', '取数量', '成单量'],\n left: 'center', // left、right、center、百分比\n textStyle: {\n fontSize: 11\n },\n itemWidth: 8,\n itemHeight: 8\n },\n xAxis: [\n {\n type: 'category',\n data: ['周一', '周二', '周三', '周四', '周五', '周六'],\n axisPointer: {\n type: 'shadow'\n },\n axisLine: { show: false, lineStyle: { color: '#7F808A' }},\n axisTick: { show: false },\n axisLabel: {\n interval: 0,\n textStyle: {\n fontSize: 12 // 更改坐标轴文字大小\n },\n formatter: function(value) {\n var str = '';\n var num = 2; // 每行显示字数\n var valLength = value.length; // 该项x轴字数\n var rowNum = Math.ceil(valLength / num); // 行数\n if (rowNum > 1) {\n for (var i = 0; i < rowNum; i++) {\n var temp = '';\n var start = i * num;\n var end = start + num;\n temp = value.substring(start, end) + '';\n str += temp;\n }\n return str;\n }\n return value;\n }\n }\n }\n ],\n yAxis: [\n {\n type: 'value',\n name: '/次',\n min: 0,\n max: 100,\n interval: Math.ceil(100 / 5), // 平均分为5份\n axisLine: { show: false, lineStyle: { color: '#7F808A' }},\n axisTick: { show: false },\n axisLabel: {\n formatter: '{value}'\n },\n splitLine: {\n show: true,\n lineStyle: {\n color: '#E8E8E8'\n }\n },\n nameTextStyle: {\n align: 'right'\n }\n },\n {\n type: 'value',\n name: '/人',\n min: 0,\n max: 100,\n interval: 20, // 平均分为5份\n axisLine: { show: false, lineStyle: { color: '#7F808A' }},\n axisTick: { show: false },\n axisLabel: {\n formatter: '{value}'\n },\n splitLine: {\n show: true,\n lineStyle: {\n // 使用深浅的间隔色\n color: '#E8E8E8'\n }\n },\n nameTextStyle: {\n align: 'left'\n }\n }\n ],\n series: [\n {\n name: '分享次数',\n type: 'line',\n data: [15, 20, 80, 50, 35, 70]\n },\n {\n name: '访问量',\n type: 'line',\n data: [20, 30, 40, 50, 25, 10]\n }\n ]\n }",w={color:o["g"],tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},toolbox:{show:!0},legend:{itemlength:20,itemWidth:15,orient:"vertical",right:"0%",align:"left",top:"middle",textStyle:{color:"#909399"},height:150},series:[{label:{show:!1},name:"设备分布",type:"pie",radius:[0,75],data:[{value:35,name:"3#"},{value:20,name:"24#"},{value:25,name:"19#"},{value:25,name:"12#"},{value:20,name:"智能"},{value:12,name:"其他"}]}]},k="{\n color: pieColors,\n tooltip: {\n trigger: 'item',\n formatter: '{a} <br/>{b} : {c} ({d}%)'\n },\n toolbox: {\n show: true\n },\n legend: {\n itemlength: 20,\n itemWidth: 15,\n orient: 'vertical',\n right: '0%',\n align: 'left',\n top: 'middle',\n textStyle: {\n color: '#909399'\n },\n height: 150\n },\n series: [\n {\n label: {\n show: false\n },\n name: '设备分布',\n type: 'pie',\n radius: [0, 75],\n data: [\n { value: 35, name: '3#' },\n { value: 20, name: '24#' },\n { value: 25, name: '19#' },\n { value: 25, name: '12#' },\n { value: 20, name: '智能' },\n { value: 12, name: '其他' }\n ]\n }\n ]\n }",T={color:o["g"],tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c}%"},legend:{data:["Show","Click","Visit","Inquiry"]},series:[{name:"Expected",type:"funnel",left:"10%",width:"80%",label:{formatter:"{b}Expected"},labelLine:{show:!1},itemStyle:{opacity:.7},emphasis:{label:{position:"inside",formatter:"{b}Expected: {c}%"}},data:[{value:60,name:"Visit"},{value:40,name:"Inquiry"},{value:80,name:"Click"},{value:100,name:"Show"}]},{name:"Actual",type:"funnel",left:"10%",width:"80%",maxSize:"80%",label:{position:"inside",formatter:"{c}%",color:"#fff"},itemStyle:{opacity:.5,borderColor:"#fff",borderWidth:2},emphasis:{label:{position:"inside",formatter:"{b}Actual: {c}%"}},data:[{value:30,name:"Visit"},{value:10,name:"Inquiry"},{value:50,name:"Click"},{value:80,name:"Show"}],z:100}]},j="{\n color: pieColors,\n tooltip: {\n trigger: 'item',\n formatter: '{a} <br/>{b} : {c}%'\n },\n legend: {\n data: ['Show', 'Click', 'Visit', 'Inquiry']\n },\n series: [\n {\n name: 'Expected',\n type: 'funnel',\n left: '10%',\n width: '80%',\n label: {\n formatter: '{b}Expected'\n },\n labelLine: {\n show: false\n },\n itemStyle: {\n opacity: 0.7\n },\n emphasis: {\n label: {\n position: 'inside',\n formatter: '{b}Expected: {c}%'\n }\n },\n data: [\n { value: 60, name: 'Visit' },\n { value: 40, name: 'Inquiry' },\n { value: 80, name: 'Click' },\n { value: 100, name: 'Show' }\n ]\n },\n {\n name: 'Actual',\n type: 'funnel',\n left: '10%',\n width: '80%',\n maxSize: '80%',\n label: {\n position: 'inside',\n formatter: '{c}%',\n color: '#fff'\n },\n itemStyle: {\n opacity: 0.5,\n borderColor: '#fff',\n borderWidth: 2\n },\n emphasis: {\n label: {\n position: 'inside',\n formatter: '{b}Actual: {c}%'\n }\n },\n data: [\n { value: 30, name: 'Visit' },\n { value: 10, name: 'Inquiry' },\n { value: 50, name: 'Click' },\n { value: 80, name: 'Show' }\n ],\n z: 100\n }\n ]\n }",P={color:o["g"],title:[{text:"62.9%",subtext:"通过率",x:"center",y:"center"}],polar:{radius:["0%","100%"],center:["50%","50%"]},angleAxis:{max:100,clockwise:!1,show:!1,startAngle:0},radiusAxis:{type:"category",show:!0,axisLabel:{show:!1},axisLine:{show:!1},axisTick:{show:!1}},series:[{type:"bar",barWidth:"14%",showBackground:!0,backgroundStyle:{color:"rgba(66, 66, 66, .2)"},data:[88],coordinateSystem:"polar"}]},S="{\n color: pieColors,\n title: [{\n text: '62.9%',\n subtext: '通过率',\n x: 'center',\n y: 'center'\n }],\n\n polar: {\n radius: ['0%', '100%'],\n center: ['50%', '50%']\n },\n angleAxis: {\n max: 100,\n clockwise: false, // 逆时针\n show: false,\n startAngle: 0 // startAngle表示起始角度\n },\n radiusAxis: {\n type: 'category',\n show: true,\n axisLabel: {\n show: false\n },\n axisLine: {\n show: false\n },\n axisTick: {\n show: false\n }\n },\n series: [\n {\n type: 'bar',\n barWidth: '14%',\n showBackground: true,\n backgroundStyle: {\n color: 'rgba(66, 66, 66, .2)'\n },\n data: [88],\n coordinateSystem: 'polar'\n }\n ]\n }",F=[{label:"系统",id:1,children:[{label:"用户",id:2,children:[{label:"用户1",id:14}]},{label:"用户组",id:3},{label:"角色",id:4},{label:"菜单",id:5},{label:"组织架构",id:6}]},{label:"商品",id:7,children:[{label:"列表",id:8},{label:"添加",id:9},{label:"修改",id:10},{label:"删除",id:11},{label:"商品分类",id:12},{label:"分类修改",id:13}]}],O="[{\n label: '系统',\n id: 1,\n children: [\n {\n label: '用户', id: 2, children: [{\n label: '用户1',\n id: 14\n }]\n },\n { label: '用户组', id: 3 },\n { label: '角色', id: 4 },\n { label: '菜单', id: 5 },\n { label: '组织架构', id: 6 }\n ]\n },\n {\n label: '商品',\n id: 7,\n children: [\n { label: '列表', id: 8 },\n { label: '添加', id: 9 },\n { label: '修改', id: 10 },\n { label: '删除', id: 11 },\n { label: '商品分类', id: 12 },\n { label: '分类修改', id: 13 }\n ]\n }]",L=[{label:"系统",id:1,children:[{label:"用户",id:2,children:[{label:"用户1",id:14,disabled:!0}]},{label:"用户组",id:3,disabled:!0},{label:"角色",id:4},{label:"菜单",id:5},{label:"组织架构",id:6}]},{label:"商品",id:7,children:[{label:"列表",id:8}]}],E="[{\n label: '系统',\n id: 1,\n children: [\n {\n label: '用户', id: 2,\n children: [{\n label: '用户1',\n id: 14,\n disabled: true\n }]\n },\n {\n label: '用户组',\n id: 3,\n disabled: true\n },\n { label: '角色', id: 4 },\n { label: '菜单', id: 5 },\n { label: '组织架构', id: 6 }\n ]\n },\n {\n label: '商品',\n id: 7,\n children: [\n { label: '列表', id: 8 }\n ]\n }]",$={1:"懒掌柜1",2:"懒掌柜2",3:"懒掌柜3",111838:"新平台",56:"创作者中心",55:"保单服务",54:"规则服务",53:"同屏讲解",51:"新团险",111421:"邮核系统",111420:"客户数字资产",111418:"CRM",111304:"销售管理测试"};function I(){return{rowKey:"id",lazy:!0,treeProps:{children:"children",hasChildren:"hasChildren"},data:[{id:1,date:"2016-05-02",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄",hasChildren:!0},{id:2,date:"2016-05-04",name:"王小虎",address:"上海市普陀区金沙江路 1517 弄",hasChildren:!0},{id:3,date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1519 弄",hasChildren:!0},{id:4,date:"2016-05-03",name:"王小虎",address:"上海市普陀区金沙江路 1516 弄"}],tableProp:[{label:"客户姓名",prop:"name",fixed:"left"},{label:"进入时间",prop:"date",sortable:"custom"},{label:"地址",prop:"address"}]}}var D="export function getTableTreeObj() {\n return {\n rowKey: 'id',\n lazy: true,\n treeProps: { children: 'children', hasChildren: 'hasChildren' },\n data: [\n {\n id: 1,\n date: '2016-05-02',\n name: '王小虎',\n address: '上海市普陀区金沙江路 1518 弄',\n hasChildren: true\n },\n {\n id: 2,\n date: '2016-05-04',\n name: '王小虎',\n address: '上海市普陀区金沙江路 1517 弄',\n hasChildren: true\n },\n {\n id: 3,\n date: '2016-05-01',\n name: '王小虎',\n address: '上海市普陀区金沙江路 1519 弄',\n hasChildren: true\n },\n {\n id: 4,\n date: '2016-05-03',\n name: '王小虎',\n address: '上海市普陀区金沙江路 1516 弄'\n }\n ],\n tableProp: [\n { label: '客户姓名', prop: 'name', fixed: 'left' },\n { label: '进入时间', prop: 'date', sortable: 'custom' },\n { label: '地址', prop: 'address' }\n ]\n };\n};",A="export function getTableObj() {\n return {\n data: [],\n tableProp: [\n { label: '客户姓名', prop: 'nickName', fixed: 'left', sortable: 'custom', type: 'htmlType', labelClass: 'pointer', notToolTip: true },\n { label: '客户ID', prop: 'clientNewId' },\n { label: '类型', prop: 'batchApplyMode', type: 'htmlType', labelWidth: '120', labelClass: 'pointer' },\n { label: '归属销售', prop: 'agentUserName' },\n { label: '客户来源', prop: 'dataSourceName' },\n { label: '进入时间', prop: 'enterTime', sortable: 'custom' },\n { label: '操作', prop: 'operate', type: 'buttons', btnType: 'text', fixed: 'right', labelWidth: '200', btnShowType: 'horizontal-no-wrap' },\n { label: '操作', prop: 'operate2', type: 'buttons', btnType: 'text', fixed: 'right', labelWidth: '160', btnShowType: 'more-wrap' },\n { label: '操作', prop: 'operate3', type: 'buttons', btnType: 'text', fixed: 'right', labelWidth: '140', btnShowType: 'single-wrap' }\n ]\n };\n}\n// 分页枚举(不用删除)\nexport const pagination = {\n pageOffset: 0,\n pageSize: 10,\n total: 0,\n currentPage: 1\n};\n// 客户来源-客户类型\nexport const batchApplyModeType = {\n '1': '分配客户',\n '2': '取数客户',\n '3': '自建客户',\n '4': '扫码客户',\n '6': '转介绍客户',\n '7': '智能外呼客户',\n '0': '--'\n};\nexport const commonTableNormalData = [\n {\n testHover: '测试hover', nickName: '思捷', nickNameStr: '测试插槽', clientNewId: 1, batchApplyMode: '1', agentUserName: '刘开开',\n dataSourceName: '微信', enterTime: '2021-08-05 16:55:55',\n operate: [{\n btns: [\n { text: '下架', type: 'soldOut' },\n { text: '上首页', type: 'goTop' },\n { text: '预览', type: 'preview' }]\n }],\n operate2: [\n { btns: [{ text: '下架', type: 'soldOut' }, { text: '预览', type: 'preview' }] },\n { btns: [{ text: '上架', type: 'putWay' }, { text: '复制活动', type: 'copy' }] }\n ],\n operate3: [{\n btns: [\n { text: '下架', type: 'soldOut' },\n { text: '上首页', type: 'goTop' },\n { text: '预览', type: 'preview' }]\n }]\n },\n {\n testHover: '测试hover2', nickName: '思捷2', nickName1: '思捷', nickName2: '思捷', nickName3: '思捷', nickNameStr: '测试插槽',\n clientNewId: 2, batchApplyMode: '1', agentUserName: '刘开开2', dataSourceName: 'QQ', enterTime: '2021-08-03 16:55:55',\n operate: [ {\n btns: [\n { text: '下架', type: 'soldOut' },\n { text: '上首页', type: 'goTop' },\n { text: '预览', type: 'preview' }],\n moreBtns: [\n { text: '查看详情', type: 'details' },\n { text: '删除', type: 'delete' },\n { text: '增加', type: 'add' }]\n }],\n operate2: [\n { btns: [{ text: '下架', type: 'soldOut' }, { text: '预览', type: 'preview' }] },\n { btns: [{ text: '上架', type: 'putWay' }, { text: '复制活动', type: 'copy' }] },\n { moreBtns: [\n { text: '查看详情', type: 'details' },\n { text: '删除', type: 'delete' },\n { text: '增加', type: 'add' } \n ] \n }\n ],\n operate3: [{\n btns: [{ text: '下架', type: 'soldOut' }, { text: '预览', type: 'preview' }],\n moreBtns: [\n { text: '查看详情', type: 'details' },\n { text: '删除', type: 'delete' },\n { text: '增加', type: 'add' }]\n }]\n }\n]",N=[{testHover:"测试hover",nickName:"思捷",nickNameStr:"测试插槽",clientNewId:1,batchApplyMode:"1",agentUserName:"刘开开",dataSourceName:"微信",enterTime:"2021-08-05 16:55:55",operate:[{btns:[{text:"下架",type:"soldOut"},{text:"上首页",type:"goTop"},{text:"预览",type:"preview"}]}],operate2:[{btns:[{text:"下架",type:"soldOut"},{text:"预览",type:"preview"}]},{btns:[{text:"上架",type:"putWay"},{text:"复制活动",type:"copy"}]}],operate3:[{btns:[{text:"下架",type:"soldOut"},{text:"上首页",type:"goTop"},{text:"预览",type:"preview"}]}]},{testHover:"测试hover2",nickName:"思捷2",nickName1:"思捷",nickName2:"思捷",nickName3:"思捷",nickNameStr:"测试插槽",clientNewId:2,batchApplyMode:"1",agentUserName:"刘开开2",dataSourceName:"QQ",enterTime:"2021-08-03 16:55:55",operate:[{btns:[{text:"下架",type:"soldOut"},{text:"上首页",type:"goTop"},{text:"预览",type:"preview"}],moreBtns:[{text:"查看详情",type:"details"},{text:"删除",type:"delete"},{text:"增加",type:"add"}]}],operate2:[{btns:[{text:"下架",type:"soldOut"},{text:"预览",type:"preview"}]},{btns:[{text:"上架",type:"putWay"},{text:"复制活动",type:"copy"}]},{moreBtns:[{text:"查看详情",type:"details"},{text:"删除",type:"delete"},{text:"增加",type:"add"}]}],operate3:[{btns:[{text:"下架",type:"soldOut"},{text:"预览",type:"preview"}],moreBtns:[{text:"查看详情",type:"details"},{text:"删除",type:"delete"},{text:"增加",type:"add"}]}]}],H='\n<template>\n <FilterQuery :model="formItem" @formItemChange="formItemChange" @searchClick="searchClick" @resetClick="resetClick" @updateValue="updateValue">\n <template #otherFilterType="scope">\n <div v-if="scope.item.type === \'slotTest\'">\n <el-input v-model="scope.form[scope.item.prop]" clearable type="textarea" rows="1" />\n </div>\n </template>\n </FilterQuery>\n</template>',M=['\n<template>\n <FilterQuery :model="formItem" @formItemChange="formItemChange" @searchClick="searchClick" @resetClick="resetClick" @updateValue="updateValue" />\n</template>',"\n\n<script>\nimport { getFormQueryObj } from '@/views/testPage/dataSource/testPageData'; // 数据源文件,根据自己的页面去写\nimport { deepClone } from 'fhrons-pc/plugins/tool/func';\nexport default {\n data() {\n return {\n formItem: { },\n tempFormItem: {},\n };\n },\n created() {\n this.getData();\n },\n methods: {\n getData() {\n this.handleFormItem();\n this.tempFormItem = deepClone(this.formItem);\n },\n handleFormItem() {\n this.formItem = deepClone(getFormQueryObj());\n this.formItem.form['dateVal'] = new Date();\n this.formItem.form['dateRangeVal'] = getLast3Month();\n },\n formItemChange(formItemObj) {\n this.formItem.form[formItemObj.prop] = formItemObj.val;\n },\n searchClick() {\n console.log('搜索按钮点击了');\n // do something....\n },\n resetClick() {\n console.log('搜索按钮点击了');\n this.formItem = deepClone(this.tempFormItem);\n this.formItem.form['dateVal'] = new Date();\n this.formItem.form['dateRangeVal'] = getLast3Month();\n // do something....\n },\n updateValue(val, key) {\n console.log('updateValue-----', val, key);\n this.formItem.form[key] = val;\n }\n }\n};\n</scr","ipt>\n"],z="export function getFormQueryObj() {\n return {\n form: {\n inputVal: '', // 输入框\n inputNumVal: '', // 数字输入\n selectVal: '', // 下拉选择\n dateVal: '',\n dateRangeVal: [],\n dateTimeRangeVal: [],\n dateRangePickerVal: [],\n minSpecial: '',\n maxSpecial: '',\n treeSelectVal: '',\n treeSelectValue: ''\n },\n rules: {\n dateRangeVal: [{ required: true, message: '不能为空', trigger: 'blur' }]\n },\n filterArr: [\n { label: '输入框', prop: 'inputVal', val: '', placeholder: '测试placeholder' },\n { label: '数字输入', type: 'inputNum', prop: 'inputNumVal', val: '' },\n { label: '下拉选择', prop: 'selectVal', type: 'select', val: '', filterable: true,\n options: [\n { value: '选项1', label: '黄金糕' },\n { value: '选项2', label: '双皮奶' }\n ]\n },\n { label: '级联选择器', prop: 'cascaderCont', type: 'cascader', val: '',\n options: [\n { value: 1, label: '东南', children: [\n { value: 2, label: '上海', children: [ \n { value: 3, label: '普陀' },\n { value: 4, label: '黄埔' },\n { value: 5, label: '徐汇' } \n ] \n },\n { value: 7, label: '江苏', children: [\n { value: 8, label: '南京' }, \n { value: 9, label: '苏州' }, \n { value: 10, label: '无锡' }\n ]\n }\n ]\n }\n ],\n refresh: 0,\n filterable: true\n },\n { label: '日期选择器', prop: 'dateVal', type: 'date', val: '', valueFormat: 'yyyy-MM-dd' },\n { label: '日期范围选择器', prop: 'dateRangeVal', type: 'daterange', required: true, val: [], valueFormat: 'yyyy-MM-dd' },\n { label: '时间范围选择器', prop: 'dateTimeRangeVal', type: 'datetimerange', val: [] },\n { label: '分段式年份范围选择器', prop: 'dateRangePickerVal', type: 'daterangepicker', val: '' },\n { label: '定制输入框', type: 'specialInput', minProp: 'minSpecial', maxProp: 'maxSpecial', minPlaceholder: '请输入最小值', maxPlaceholder: '请输入最大值', val: { minSpecial: '', maxSpecial: '' } },\n { label: '单选结构树', type: 'treeSelect', prop: 'treeSelectVal', filterable: true,\n options: [\n { label: '系统', id: 1, children: [ \n { label: '用户', id: 2, children: [\n { label: '用户1', id: 14 }] }, \n { label: '用户组', id: 3 }, \n { label: '角色', id: 4 }, \n { label: '菜单', id: 5 }, \n { label: '组织架构', id: 6 }\n ]\n },\n { label: '商品', id: 7, children: [\n { label: '列表', id: 8 },\n { label: '添加', id: 9 },\n { label: '修改', id: 10 },\n { label: '删除', id: 11 },\n { label: '商品分类', id: 12 },\n { label: '分类修改', id: 13 }\n ]\n }]\n },\n { label: '多选结构树', type: 'treeSelect', prop: 'treeSelectValue', filterable: true, multiple: true, needSlot: true, relate: true,\n options: [{ label: '系统', id: 1, children: [\n { label: '用户', id: 2, children: [\n {\n label: '用户1',\n id: 14\n },\n { label: '用户2', id: 15, children: [\n { label: '用户3', id: 21 },\n { label: '用户3', id: 22 }\n ]\n },\n { label: '用户3', id: 16 },\n { label: '用户4', id: 17 }\n ]\n },\n { label: '用户组', id: 3 },\n { label: '角色', id: 4 },\n { label: '菜单', id: 5 },\n { label: '组织架构', id: 6 }\n ]\n },\n {\n label: '商品',\n id: 7,\n children: [\n { label: '列表', id: 8 },\n { label: '添加', id: 9 },\n { label: '修改', id: 10 },\n { label: '删除', id: 11 },\n { label: '商品分类', id: 12 },\n { label: '分类修改', id: 13 }\n ]\n }]\n }\n ]\n };\n}",R="export function getFormQueryObj() {\n return {\n form: {\n inputVal: '', // 输入框\n inputNumVal: '', // 数字输入\n selectVal: '', // 下拉选择\n dateVal: '',\n dateRangeVal: [],\n dateTimeRangeVal: [],\n dateRangePickerVal: [],\n minSpecial: '',\n maxSpecial: '',\n treeSelectVal: '',\n treeSelectValue: ''\n },\n rules: {\n dateRangeVal: [{ required: true, message: '不能为空', trigger: 'blur' }]\n },\n filterArr: [\n { label: '输入框', prop: 'inputVal', val: '', placeholder: '测试placeholder' },\n { label: '插槽测试', type: 'slotTest', prop: 'testSlot', val: '' },\n { label: '数字输入', type: 'inputNum', prop: 'inputNumVal', val: '' },\n { label: '下拉选择', prop: 'selectVal', type: 'select', val: '', filterable: true,\n options: [\n { value: '选项1', label: '黄金糕' },\n { value: '选项2', label: '双皮奶' }\n ]\n },\n { label: '级联选择器', prop: 'cascaderCont', type: 'cascader', val: '',\n options: [\n { value: 1, label: '东南', children: [\n { value: 2, label: '上海', children: [ \n { value: 3, label: '普陀' },\n { value: 4, label: '黄埔' },\n { value: 5, label: '徐汇' } \n ] \n },\n { value: 7, label: '江苏', children: [\n { value: 8, label: '南京' }, \n { value: 9, label: '苏州' }, \n { value: 10, label: '无锡' }\n ]\n }\n ]\n }\n ],\n refresh: 0,\n filterable: true\n },\n { label: '日期选择器', prop: 'dateVal', type: 'date', val: '', valueFormat: 'yyyy-MM-dd' },\n { label: '日期范围选择器', prop: 'dateRangeVal', type: 'daterange', required: true, val: [], valueFormat: 'yyyy-MM-dd' },\n { label: '时间范围选择器', prop: 'dateTimeRangeVal', type: 'datetimerange', val: [] },\n { label: '分段式年份范围选择器', prop: 'dateRangePickerVal', type: 'daterangepicker', val: '' },\n { label: '定制输入框', type: 'specialInput', minProp: 'minSpecial', maxProp: 'maxSpecial', minPlaceholder: '请输入最小值', maxPlaceholder: '请输入最大值', val: { minSpecial: '', maxSpecial: '' } },\n { label: '单选结构树', type: 'treeSelect', prop: 'treeSelectVal', filterable: true,\n options: [\n { label: '系统', id: 1, children: [ \n { label: '用户', id: 2, children: [\n { label: '用户1', id: 14 }] }, \n { label: '用户组', id: 3 }, \n { label: '角色', id: 4 }, \n { label: '菜单', id: 5 }, \n { label: '组织架构', id: 6 }\n ]\n },\n { label: '商品', id: 7, children: [\n { label: '列表', id: 8 },\n { label: '添加', id: 9 },\n { label: '修改', id: 10 },\n { label: '删除', id: 11 },\n { label: '商品分类', id: 12 },\n { label: '分类修改', id: 13 }\n ]\n }]\n },\n { label: '多选结构树', type: 'treeSelect', prop: 'treeSelectValue', filterable: true, multiple: true, needSlot: true, relate: true,\n options: [{ label: '系统', id: 1, children: [\n { label: '用户', id: 2, children: [\n {\n label: '用户1',\n id: 14\n },\n { label: '用户2', id: 15, children: [\n { label: '用户3', id: 21 },\n { label: '用户3', id: 22 }\n ]\n },\n { label: '用户3', id: 16 },\n { label: '用户4', id: 17 }\n ]\n },\n { label: '用户组', id: 3 },\n { label: '角色', id: 4 },\n { label: '菜单', id: 5 },\n { label: '组织架构', id: 6 }\n ]\n },\n {\n label: '商品',\n id: 7,\n children: [\n { label: '列表', id: 8 },\n { label: '添加', id: 9 },\n { label: '修改', id: 10 },\n { label: '删除', id: 11 },\n { label: '商品分类', id: 12 },\n { label: '分类修改', id: 13 }\n ]\n }]\n }\n ]\n };\n}";function V(){return{filterButtons:[{label:"查询",type:"primary",click:"searchClick"}],form:{riskCode:"",editFlag:""},filterArr:[{label:"险种编码",prop:"riskCode",type:"select",val:"",options:[{name:"000000-000000-所有险种",label:"所有险种",value:"000000-000000-所有险种"},{name:"105706001-00110700-信泰智富宝终生寿险万能型A款",label:"信泰智富宝终生寿险万能型A款",value:"105706001-00110700-信泰智富宝终生寿险万能型A款"},{name:"105711006-00121100-信泰世纪星辰个人住院医疗保险",label:"信泰世纪星辰个人住院医疗保险",value:"105711006-00121100-信泰世纪星辰个人住院医疗保险"},{name:"105702020-31A00080-信泰附加百万无忧两全保险",label:"信泰附加百万无忧两全保险",value:"105702020-31A00080-信泰附加百万无忧两全保险"},{name:"105703019-00116800-信泰爱恒远年金保险分红型C款",label:"信泰爱恒远年金保险分红型C款",value:"105703019-00116800-信泰爱恒远年金保险分红型C款"},{name:"105711007-00126600-信泰附加爱驾宝意外住院津贴医疗保险",label:"信泰附加爱驾宝意外住院津贴医疗保险",value:"105711007-00126600-信泰附加爱驾宝意外住院津贴医疗保险"},{name:"105704021-13F00190-信泰百万无忧重大疾病保险",label:"信泰百万无忧重大疾病保险",value:"105704021-13F00190-信泰百万无忧重大疾病保险"},{name:"105702008-00112700-信泰抗癌保家两全保险A款",label:"信泰抗癌保家两全保险A款",value:"105702008-00112700-信泰抗癌保家两全保险A款"},{name:"105703018-00118200-信泰富贵人生两全保险分红型A款",label:"信泰富贵人生两全保险分红型A款",value:"105703018-00118200-信泰富贵人生两全保险分红型A款"},{name:"105703007-00110500-信泰恒嘉少儿两全保险分红型",label:"信泰恒嘉少儿两全保险分红型",value:"105703007-00110500-信泰恒嘉少儿两全保险分红型"},{name:"105704015-13C00010-信泰百万终身护理保险",label:"信泰百万终身护理保险",value:"105704015-13C00010-信泰百万终身护理保险"}]},{label:"修改状态",prop:"editFlag",type:"select",val:"",options:[{name:"新增",value:"1"},{name:"修改",value:"2"},{name:"删除",value:"3"},{name:"未操作",value:"0"}]}]}}function q(){return{data:[],tableProp:[{label:"费率模板类型",prop:"rateModelType",type:"select",options:[],formatter:function(e,t){var n;return(null===(n=this.options.find((function(n){return n.value===e[t]})))||void 0===n?void 0:n.name)||"--"},required:!0,disabled:!1,default:"",sortable:!0},{label:"费率模板名称",prop:"protocolname",type:"input",required:!0,disabled:!1,default:""},{label:"法人",prop:"managecom",type:"select",options:[{name:"业务合作",value:"101"},{name:"产品补充",value:"102"},{name:"费用项补充",value:"103"},{name:"费用补充",value:"104"},{name:"法人授权",value:"105"}],required:!0,disabled:!1,default:""},{label:"输入框",prop:"input",type:"input",fixed:"left",rules:[{required:!0,message:"请输入",trigger:"blur"}],labelWidth:"200px",default:""},{label:"数字输入框",prop:"inputNum",type:"inputNum",rules:[{required:!0,message:"请输入",trigger:"blur"}],labelWidth:"200px",default:""},{label:"文本输入框",prop:"textarea",type:"textarea",rows:1,labelWidth:"200px",default:""},{label:"下拉选择框",prop:"select",type:"select",options:[],rules:[{required:!0,message:"请选择",trigger:"change"}],labelWidth:"200px",formatter:function(e,t){var n;return(null===(n=this.options.find((function(n){return n.value===e[t]})))||void 0===n?void 0:n.name)||"--"},default:""},{label:"级联选择器",prop:"cascader",type:"cascader",options:[{value:1,label:"东南",children:[{value:2,label:"上海",children:[{value:3,label:"普陀"},{value:4,label:"黄埔"},{value:5,label:"徐汇"}]},{value:7,label:"江苏",children:[{value:8,label:"南京"},{value:9,label:"苏州"},{value:10,label:"无锡"}]}]}],formatter:function(e,t){var n=Object(r["g"])(this.options,"value","children",e[t]);return n.length?n.map((function(e){return e.label})).join(","):"--"},refresh:0,filterable:!0,rules:[{type:"array",required:!0,message:"请选择",trigger:["blur","change"]},{validator:function(e,t,n){console.log("value",t),t?n():n(new Error("请选择"))},trigger:["blur","change"]}],labelWidth:"200px",default:[]},{label:"时间选择",prop:"datePicker",dataType:"datePicker",type:"datetimerange",labelWidth:"420px",rules:[{required:!0,message:"请选择时间",trigger:"blur"}],formatter:function(e,t){return"datetimerange"===this.type?e[t].length?"从".concat(e[t][0],"到").concat(e[t][1]):"--":e[t]},default:[]},{label:"多选框",prop:"checkbox",type:"checkbox",options:[{value:"web",name:"web"},{value:"小程序",name:"pub"}],labelWidth:"100px",default:[]},{label:"单选结构树",type:"treeSelect",prop:"treeSelectVal",filterable:!0,nodeKey:"id",options:[{label:"系统",id:1,children:[{label:"用户",id:2,children:[{label:"用户1",id:14}]},{label:"用户组",id:3},{label:"角色",id:4},{label:"菜单",id:5},{label:"组织架构",id:6}]},{label:"商品",id:7,children:[{label:"列表",id:8},{label:"添加",id:9},{label:"修改",id:10},{label:"删除",id:11},{label:"商品分类",id:12},{label:"分类修改",id:13}]}],formatter:function(e,t){var n;return(null===(n=Object(r["g"])(this.options,"id","children",e[t]))||void 0===n?void 0:n.label)||"--"},default:""},{label:"多选结构树",type:"treeSelect",prop:"treeSelectValue",filterable:!0,multiple:!0,needSlot:!0,relate:!0,options:[{label:"系统",id:1,children:[{label:"用户",id:2,children:[{label:"用户1",id:14},{label:"用户2",id:15,children:[{label:"用户3",id:21},{label:"用户3",id:22}]},{label:"用户3",id:16},{label:"用户4",id:17}]},{label:"用户组",id:3},{label:"角色",id:4},{label:"菜单",id:5},{label:"组织架构",id:6}]},{label:"商品",id:7,children:[{label:"列表",id:8},{label:"添加",id:9},{label:"修改",id:10},{label:"删除",id:11},{label:"商品分类",id:12},{label:"分类修改",id:13}]}],formatter:function(e,t){var n=Object(r["g"])(this.options,"id","children",e[t].split(","));return n.length?n.map((function(e){return e.label})).join(","):e[t]},default:""},{label:"保险公司",prop:"supplierName",type:"select",options:[],disabled:!1,default:""},{label:"模板说明",color:"#f10",labelWidth:"120",prop:"remark",type:"htmlType",disabled:!1,default:""},{label:"险种",prop:"riskCount",type:"input",disabled:!0,default:""},{label:"费用项",prop:"interestCount",type:"input",disabled:!0,default:""},{label:"操作人",prop:"operator",type:"input",disabled:!0,default:""},{label:"操作时间",prop:"modifydate",type:"input",disabled:!1,default:""},{label:"模板状态",prop:"status",type:"select",options:[],disabled:!1,default:""},{label:"操作",prop:"operates",type:"buttons",btnType:"text",fixed:"right",labelWidth:"240",default:[]}],rowTemp:[]}}},4481:function(e,t,n){"use strict";n("b0c0");var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ps-r mb32",class:[e.hasMoreFilter?"more-filter-box":"normal-box pb12",e.moreFlag?"spread-filter":"pack-up-filter"],attrs:{id:"FilterQuery"}},[n("div",{staticClass:"filter-query-box full-width ps-r border-box",class:e.moreFlag?"spread-height":"pack-up-height"},[n("el-form",{ref:"ruleForm",staticClass:"full-width",class:e.model.formClass,attrs:{"label-position":"right",model:e.form,rules:e.rules,inline:"","validate-on-rule-change":!1,size:"small"}},e._l(e.filterArr,(function(t,a){return n("el-form-item",{key:a,class:t.formItemClass,attrs:{prop:t.prop}},[n("span",{attrs:{slot:"label"},slot:"label"},[e.judgeEmpty(t.label)?n("TooltipOver",{staticClass:"label-tooltip-over",attrs:{"hover-show":e.hoverShow,content:""+t.label,"label-required":t.required,"ref-name":"label"+t.prop}}):e._e()],1),"input"!==t.type&&e.judgeEmpty(t.type)?"inputNum"===t.type?n("el-input",{class:t.class,attrs:{oninput:"value=value.replace(/^\\.+|[^\\d.]/g,'')",maxlength:t.maxlength,disabled:t.disabled,"show-word-limit":t.showWordLimit,clearable:"",autocomplete:"off",placeholder:t.isNoPlaceholder?"":""+(t.placeholder||e.$t("commonform.index.6d1re6"))},on:{change:function(n){return e.formItemChange(n,t)}},model:{value:e.form[t.prop],callback:function(n){e.$set(e.form,t.prop,n)},expression:"form[item.prop]"}}):"select"===t.type?n("el-select",{attrs:{clearable:"",disabled:t.disabled,placeholder:t.isNoPlaceholder?"":""+(t.placeholder||e.$t("lib.zh-cn.acri49")),multiple:t.multiple,"multiple-limit":t.multipleLimit,filterable:t.filterable},on:{change:function(n){return e.formItemChange(n,t)}},model:{value:e.form[t.prop],callback:function(n){e.$set(e.form,t.prop,n)},expression:"form[item.prop]"}},e._l(t.options,(function(e,a){return n("el-option",{key:"options"+t.prop+a,attrs:{label:e.name,value:e.value}})})),1):"cascader"===t.type?n("el-cascader",{key:t.refresh,staticClass:"full-width",attrs:{filterable:t.filterable,disabled:t.disabled,props:t.props||{checkStrictly:!0},options:t.options,"multiple-limit":t.multipleLimit,"show-all-levels":!!t.showAllLevels,"collapse-tags":!!t.collapseTags,clearable:""},on:{change:function(n){return e.formItemChange(n,t)}},model:{value:e.form[t.prop],callback:function(n){e.$set(e.form,t.prop,n)},expression:"form[item.prop]"}}):"datePicker"===t.dateType?n("DatePicker",{ref:"DatePicker",refInFor:!0,attrs:{type:t.type,"select-date-range":t.selectDateRange,"total-date-range":t.totalDateRange,"value-format":t.valueFormat,"default-time":t.defaultTime,prop:t.prop,"date-range":e.form[t.prop],disabled:t.disabled,"is-limit-date-range":t.isLimitDateRange,"has-date-picker":t.hasDatePicker,"initial-value":t.initialValue,"has-quick-item":t.hasQuickItem,width:t.width,"select-type":t.selectType,"picker-options":t.pickerOptions,placeholder:t.isNoPlaceholder?"":t.placeholder?t.placeholder:e.$t("lib.zh-cn.acri49")},on:{getDateRange:function(n){return e.formItemChange(n,t)}}}):"specialInput"===t.type?n("div",{staticClass:"border flex-center inline-block special-input-box"},[n("el-input",{staticClass:"border-none min-input",attrs:{clearable:"",autocomplete:"off",placeholder:t.isNoPlaceholder?"":""+(t.minPlaceholder||e.$t("commonform.index.6d1re6"))},on:{change:function(n){return e.formItemChange(n,t)}},model:{value:e.form[t.minProp],callback:function(n){e.$set(e.form,t.minProp,n)},expression:"form[item.minProp]"}}),n("span",[e._v("-")]),n("el-input",{staticClass:"border-none max-input",attrs:{clearable:"",autocomplete:"off",placeholder:t.isNoPlaceholder?"":""+(t.maxPlaceholder||e.$t("commonform.index.6d1re6"))},on:{change:function(n){return e.formItemChange(n,t)}},model:{value:e.form[t.maxProp],callback:function(n){e.$set(e.form,t.maxProp,n)},expression:"form[item.maxProp]"}})],1):"treeSelect"===t.type?n("TreeSelect",e._g(e._b({attrs:{value:e.form[t.prop],filterable:"","item-prop":t.prop,data:t.options,props:t.props,"filter-able":t.filterable,multiple:t.multiple,relate:t.relate,"need-slot":t.needSlot,"node-key":t.nodeKey,disabled:t.disabled,"need-select":t.needSelect,"parent-node":!0,"expanded-keys":!0},on:{"update:value":function(n){return e.$set(e.form,t.prop,n)}}},"TreeSelect",e.$attrs,!1),e.$listeners)):e._e():n("el-input",{class:t.class,attrs:{maxlength:t.maxlength,disabled:t.disabled,"show-word-limit":t.showWordLimit,clearable:"",autocomplete:"off",placeholder:t.isNoPlaceholder?"":""+(t.placeholder||e.$t("commonform.index.6d1re6"))},on:{change:function(n){return e.formItemChange(n,t)}},model:{value:e.form[t.prop],callback:function(n){e.$set(e.form,t.prop,n)},expression:"form[item.prop]"}}),e._t("otherFilterType",null,{item:t,form:e.form})],2)})),1),e.judgeEmpty(e.queryButtons)?n("div",{staticClass:"flex btn-box",class:e.model.queryBtnsClass},e._l(e.queryButtons,(function(t,a){return n("div",{key:t.key,class:a<e.queryButtons.length-1?"mr10":""},[n("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],class:t.class,attrs:{size:"small",type:t.type,disabled:t.isDisabled,icon:t.icon},on:{click:function(n){return e.handleClick(t)}}},[e._v(" "+e._s(t.label)+" ")])],1)})),0):e._e()],1),n("div",{staticClass:"more-box border-bottom ta-c bgc-fff"},[e.hasMoreFilter?n("span",{staticClass:"handle-more pointer ft12",on:{click:e.handleMore}},[e._v(e._s(e.moreFlag?e.$t("fhweblogin.index.9803s5"):e.$t("filterquery.index.1y36e2"))+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})]):e._e()])])},r=[],o=n("2909"),i=(n("99af"),n("d3b7"),n("159b"),n("f634")),l=n("8e33"),s=n("46bb"),c=n("7ddf"),u=n("7719"),d=n("adb8"),p=[{label:s["b"].t("filterquery.index.put3gz"),type:"primary",click:"searchClick"},{label:s["b"].t("filterquery.index.uu4200"),click:"resetClick"}],f={name:"FilterQuery",components:{DatePicker:i["a"],TooltipOver:d["a"],TreeSelect:l["a"]},mixins:[c["a"]],props:{model:{type:Object,default:function(){}},hoverShow:{type:Boolean,default:!1},openMoreFlag:{type:Boolean,default:!1}},data:function(){return{form:{},tempModel:{},queryButtons:[],filterArr:[],tempFilterArr:[],moreFilterArr:[],moreFlag:!1,rules:{}}},watch:{model:{handler:function(e){this.tempModel=this.deepClone(e),this.tempFilterArr=this.tempModel["filterArr"]||[],this.handleData()},deep:!0,immediate:!0},filterArr:{handler:function(e){e.forEach((function(e){"date"!==e.type&&"week"!==e.type&&"month"!==e.type&&"year"!==e.type&&"dates"!==e.type&&"datetime"!==e.type&&"daterange"!==e.type&&"datetimerange"!==e.type&&"time"!==e.type&&"monthrange"!==e.type&&"daterangepicker"!==e.type||(e["dateType"]="datePicker")}))},deep:!0,immediate:!0},openMoreFlag:{handler:function(e){this.moreFlag=e},deep:!0,immediate:!0}},mounted:function(){},methods:{handleData:function(){this.form=this.model.form||{},this.rules=this.model["rules"]||{},this.filterArr=Object(o["a"])(this.tempFilterArr),this.computedFilterQueryHeight(),this.getFilterButtons()},handleMore:function(){this.moreFlag=!this.moreFlag},resetFormValidate:function(){var e=this;this.$nextTick((function(){e.$refs["ruleForm"].clearValidate()}))},formItemChange:function(e,t){if(t.prop){var n={prop:t.prop,val:e};this.$emit("formItemChange",n)}},validateForm:function(){var e=!1;return this.$refs["ruleForm"].validate((function(t){e=t})),e},handleClick:function(e){if("resetClick"===e.click)this.$refs["DatePicker"]&&this.$refs["DatePicker"].length&&this.$refs["DatePicker"].forEach((function(e){e.clear()})),this.resetFormValidate(),this.$emit(e.click);else if("searchClick"===e.click){var t=this.validateForm();t&&this.$emit(e.click)}},getFilterButtons:function(){Object(u["m"])(this.model["filterButtons"])&&!this.model["isNotFilterButtons"]?this.queryButtons=[].concat(p):this.queryButtons=Object(o["a"])(this.model["filterButtons"])}}},m=f,h=(n("1cb1"),n("2877")),g=Object(h["a"])(m,a,r,!1,null,"1229e0ae",null),b=g.exports;b.install=function(e){e.component(b.name,b)};t["a"]=b},"44ae":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vxe-toolbar",{ref:"toolbarRef",attrs:{refresh:{queryMethod:e.searchMethod},export:"",print:"",custom:""},scopedSlots:e._u([{key:"buttons",fn:function(){return[n("vxe-button",{on:{click:e.insertEvent}},[e._v("新增")]),n("vxe-button",{on:{click:e.getInsertEvent}},[e._v("获取新增")]),n("vxe-button",{on:{click:e.getRemoveEvent}},[e._v("获取删除")]),n("vxe-button",{on:{click:e.getUpdateEvent}},[e._v("获取修改")])]},proxy:!0}])}),n("vxe-table",{ref:"tableRef",attrs:{"show-overflow":"","keep-source":"","row-config":{keyField:"id"},"column-config":{resizable:!0},"print-config":{},"export-config":{},loading:e.loading,"tree-config":{transform:!0,rowField:"id",parentField:"parentId"},"edit-config":{trigger:"click",mode:"row",showStatus:!0},data:e.tableData}},[n("vxe-column",{attrs:{type:"checkbox",width:"60"}}),n("vxe-column",{attrs:{field:"name",title:"Name","tree-node":""}}),n("vxe-column",{attrs:{field:"size",title:"Size",width:"100","edit-render":{}},scopedSlots:e._u([{key:"edit",fn:function(t){var a=t.row;return[n("vxe-input",{attrs:{type:"text"},model:{value:a.size,callback:function(t){e.$set(a,"size",t)},expression:"row.size"}})]}}])}),n("vxe-column",{attrs:{field:"date",title:"Date","edit-render":{}},scopedSlots:e._u([{key:"edit",fn:function(t){var a=t.row;return[n("vxe-input",{attrs:{type:"date",transfer:""},model:{value:a.date,callback:function(t){e.$set(a,"date",t)},expression:"row.date"}})]}}])}),n("vxe-column",{attrs:{title:"操作",width:"640"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("vxe-button",{attrs:{type:"text",status:"primary"},on:{click:function(t){return e.insertRow(a,"current")}}},[e._v("当前位置插入节点")]),n("vxe-button",{attrs:{type:"text",status:"primary"},on:{click:function(t){return e.insertNextRow(a,"current")}}},[e._v("下一行位置插入新节点")]),n("vxe-button",{attrs:{type:"text",status:"primary"},on:{click:function(t){return e.insertRow(a,"top")}}},[e._v("顶部插入子节点")]),n("vxe-button",{attrs:{type:"text",status:"primary"},on:{click:function(t){return e.insertRow(a,"bottom")}}},[e._v("尾部插入子节点")]),n("vxe-button",{attrs:{type:"text",status:"danger"},on:{click:function(t){return e.removeRow(a)}}},[e._v("删除节点")])]}}])})],1)],1)},r=[],o=(n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("fb6a"),n("b0c0"),n("0c47"),n("23dc"),n("3410"),n("131a"),n("3ca3"),n("159b"),n("ddb0"),n("53ca")),i=n("1da1");n("d3b7");function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,a){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),l=new E(a||[]);return r(i,"_invoke",{value:S(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m="suspendedStart",h="suspendedYield",g="executing",b="completed",v={};function y(){}function C(){}function x(){}var _={};d(_,s,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w($([])));k&&k!==n&&a.call(k,s)&&(_=k);var T=x.prototype=y.prototype=Object.create(_);function j(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(r,i,l,s){var c=f(e[r],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Object(o["a"])(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(o,i){if(r===g)throw Error("Generator is already running");if(r===b){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=F(l,a);if(s){if(s===v)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=b,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=g;var c=f(t,n,a);if("normal"===c.type){if(r=a.done?b:h,c.arg===v)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=b,a.method="throw",a.arg=c.arg)}}}function F(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,F(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var o=f(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function $(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Object(o["a"])(t)+" is not iterable")}return C.prototype=x,r(T,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:C,configurable:!0}),C.displayName=d(x,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===C||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,u,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},j(P.prototype),d(P.prototype,c,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new P(p(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(T),d(T,u,"Generator"),d(T,s,(function(){return this})),d(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=$,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:$(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}var s={data:function(){return{loading:!1,tableData:[]}},created:function(){var e=this;this.$nextTick((function(){var t=e.$refs.tableRef,n=e.$refs.toolbarRef;t&&n&&t.connect(n)})),this.findList()},methods:{findList:function(){var e=this;return this.loading=!0,new Promise((function(t){setTimeout((function(){e.tableData=[{id:1e4,parentId:null,name:"vxe-table test abc1",type:"mp3",size:1024,date:"2020-08-01"},{id:10050,parentId:null,name:"Test2",type:"mp4",size:0,date:"2021-04-01"},{id:24300,parentId:10050,name:"Test3",type:"avi",size:1024,date:"2020-03-01"},{id:20045,parentId:24300,name:"vxe-table test abc4",type:"html",size:600,date:"2021-04-01"},{id:10053,parentId:24300,name:"vxe-table test abc96",type:"avi",size:0,date:"2021-04-01"},{id:24330,parentId:10053,name:"vxe-table test abc5",type:"txt",size:25,date:"2021-10-01"},{id:21011,parentId:10053,name:"Test6",type:"pdf",size:512,date:"2020-01-01"},{id:22200,parentId:10053,name:"Test7",type:"js",size:1024,date:"2021-06-01"},{id:23666,parentId:null,name:"Test8",type:"xlsx",size:2048,date:"2020-11-01"},{id:23677,parentId:23666,name:"Test7",type:"js",size:1024,date:"2021-06-01"},{id:23671,parentId:23677,name:"Test7",type:"js",size:1024,date:"2021-06-01"},{id:23672,parentId:23677,name:"Test7",type:"js",size:1024,date:"2021-06-01"},{id:23688,parentId:23666,name:"Test7",type:"js",size:1024,date:"2021-06-01"},{id:23681,parentId:23688,name:"Test7",type:"js",size:1024,date:"2021-06-01"},{id:23682,parentId:23688,name:"Test7",type:"js",size:1024,date:"2021-06-01"},{id:24555,parentId:null,name:"vxe-table test abc9",type:"avi",size:224,date:"2020-10-01"},{id:24566,parentId:24555,name:"Test7",type:"js",size:1024,date:"2021-06-01"},{id:24577,parentId:24555,name:"Test7",type:"js",size:1024,date:"2021-06-01"}],e.loading=!1,t()}),300)}))},searchMethod:function(){var e=this.$refs.tableRef;return e?(e.clearAll(),this.findList()):Promise.resolve()},insertEvent:function(){var e=this.$refs.tableRef,t=Date.now(),n={name:"新数据".concat(t),id:t,date:XEUtils.toDateString(new Date,"yyyy-MM-dd")};e.insert(n).then((function(t){var n=t.row;return e.setActiveRow(n)}))},insertRow:function(e,t){var n=this;return Object(i["a"])(l().mark((function a(){var r,o,i,s,c,u,d,p,f,m,h;return l().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(r=n.$refs.tableRef,o=Date.now(),"current"!==t){a.next=12;break}return i={name:"新数据".concat(o),id:o,parentId:e.parentId,date:XEUtils.toDateString(new Date,"yyyy-MM-dd")},a.next=6,r.insertAt(i,e);case 6:return s=a.sent,c=s.row,a.next=10,r.setActiveRow(c);case 10:a.next=34;break;case 12:if("top"!==t){a.next=24;break}return u={name:"新数据".concat(o),id:o,parentId:e.id,date:XEUtils.toDateString(new Date,"yyyy-MM-dd")},a.next=16,r.insert(u);case 16:return d=a.sent,p=d.row,a.next=20,r.setTreeExpand(e,!0);case 20:return a.next=22,r.setActiveRow(p);case 22:a.next=34;break;case 24:if("bottom"!==t){a.next=34;break}return f={name:"新数据".concat(o),id:o,parentId:e.id,date:XEUtils.toDateString(new Date,"yyyy-MM-dd")},a.next=28,r.insertAt(f,-1);case 28:return m=a.sent,h=m.row,a.next=32,r.setTreeExpand(e,!0);case 32:return a.next=34,r.setActiveRow(h);case 34:case"end":return a.stop()}}),a)})))()},insertNextRow:function(e,t){var n=this;return Object(i["a"])(l().mark((function a(){var r,o,i,s,c;return l().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(r=n.$refs.tableRef,o=Date.now(),"current"!==t){a.next=10;break}return i={name:"新数据".concat(o),id:o,parentId:e.parentId,date:XEUtils.toDateString(new Date,"yyyy-MM-dd")},a.next=6,r.insertAt(i,e);case 6:return s=a.sent,c=s.row,a.next=10,r.setActiveRow(c);case 10:case"end":return a.stop()}}),a)})))()},removeRow:function(e){var t=this;return Object(i["a"])(l().mark((function n(){var a;return l().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=t.$refs.tableRef,n.next=3,a.remove(e);case 3:case"end":return n.stop()}}),n)})))()},getInsertEvent:function(){var e=this.$refs.tableRef,t=e.getInsertRecords();VXETable.modal.alert(t.length)},getRemoveEvent:function(){var e=this.$refs.tableRef,t=e.getRemoveRecords();VXETable.modal.alert(t.length)},getUpdateEvent:function(){var e=this.$refs.tableRef,t=e.getUpdateRecords();VXETable.modal.alert(t.length)}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,null,null);t["default"]=d.exports},4720:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"QueryTableMixinTest"}},[n("code",[e._v(" // 此mixin里面的代码不需要更改 "),n("CodeBuild",{attrs:{"script-obj":e.scriptMixinObj}},[n("pre",{attrs:{slot:"methods"},slot:"methods"},[e._v(" // 获取列表数据\n getTableList() {\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".$nextTick("),n("font",{staticClass:"keyword-tag"},[e._v("async")]),e._v("() => {\n if ("),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".$refs && "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".$refs["),n("font",{staticClass:"string-tag"},[e._v("'FHTable'")]),e._v("]) {\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".$refs["),n("font",{staticClass:"string-tag"},[e._v("'FHTable'")]),e._v("].getTableList();\n }\n });\n },\n // 查询的表单条件\n formItemChange("),n("font",{staticClass:"string-tag"},[e._v("formItemObj")]),e._v(") {\n // 根据prop的类型来判断是哪个搜索框的数据需要处理\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".formItem.form["),n("font",{staticClass:"string-tag"},[e._v("formItemObj.prop")]),e._v("] = formItemObj.val;\n },\n // 搜索按钮点击\n searchClick() {\n // 请求接口\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".queryParams = "),n("font",{staticClass:"value-tag"},[e._v("Object.assign")]),e._v("("),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".queryParams, "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".formItem.form);\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".getTableList();\n },\n // 重置\n resetClick() {\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".queryParams = "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".deepClone("),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".tempQueryParams);\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".formItem.form = {};\n if ("),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".$refs && "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".$refs["),n("font",{staticClass:"string-tag"},[e._v("'FHTable'")]),e._v("]) {\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".$refs["),n("font",{staticClass:"string-tag"},[e._v("'FHTable'")]),e._v("].offset = "),n("font",{staticClass:"value-tag"},[e._v("0")]),e._v(";\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".$refs["),n("font",{staticClass:"string-tag"},[e._v("'FHTable'")]),e._v("].currentPage = "),n("font",{staticClass:"value-tag"},[e._v("1")]),e._v(";\n }\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".searchClick();\n }")],1)])],1)])},r=[],o=n("b01e"),i={name:"QueryTableMixinTest",components:{CodeBuild:o["default"]},props:{},data:function(){return{scriptMixinObj:{script:"false",dataArr:[{key:"formItem",value:"{ }"},{key:"queryParams",value:"{ }",note:"查询的数据源"},{key:"tempQueryParams",value:"{ }",note:"保存初始查询的数据源"},{key:"tableProps",value:"{ }"},{key:"list",value:"{ }"}],exportObj:"const queryTableMixin ="}}},watch:{},created:function(){},mounted:function(){},methods:{}},l=i,s=n("2877"),c=Object(s["a"])(l,a,r,!1,null,"465a9345",null);t["default"]=c.exports},4907:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"FHTableCode"}},[n("el-tabs",{staticClass:"mtb20",attrs:{type:"border-card"},on:{"tab-click":e.handleActive},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[n("el-tab-pane",{attrs:{label:"常规案例"}},[n("FHTable",{ref:"FHTable",attrs:{id:"tableOne","has-checkbox":!0,"max-height":e.maxHeight,"query-table-data":e.queryTableData,"query-params":e.queryParams,"table-props":e.tableProps,"list-map-name":"smSaasPlatformList"},on:{handleTableList:e.handleTableList,handleTableClick:e.handleTableClick,handleSelectionChange:e.handleSelectionChange},scopedSlots:e._u([{key:"otherTableType",fn:function(t){return["slotSpan"===t.item.type?n("div",[e._v(" "+e._s(t.scope.row[t.item.prop])+" ")]):e._e()]}}])}),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("el-tabs",{staticClass:"mtb20"},[n("el-tab-pane",{attrs:{label:"页面代码"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.codeStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.codeStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStrArr.slice(1).join("")))}}),e._v("\n ")])])]),n("el-tab-pane",{attrs:{label:"数据源"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.FHTableCodeDataStr)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.FHTableCodeDataStr))}})])])],1)],1):e._e()],1),n("el-tab-pane",{attrs:{label:"扩展插槽"}},[n("FHTable",{ref:"FHTable",attrs:{id:"tableTwo","has-checkbox":!0,"max-height":e.maxHeight1,"query-table-data":e.queryTableData,"query-params":e.queryParams,"table-props":e.tableProps,"list-map-name":"smSaasPlatformList"},on:{handleTableList:e.handleTableList,handleTableClick:e.handleTableClick,handleSelectionChange:e.handleSelectionChange},scopedSlots:e._u([{key:"otherTableType",fn:function(t){return["slotSpan"===t.item.type?n("div",[e._v(" "+e._s(t.scope.row[t.item.prop])+" ")]):e._e()]}}])}),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("el-tabs",{staticClass:"mtb20"},[n("el-tab-pane",{attrs:{label:"拓展插槽页面代码"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.FHTableCodeHtml+e.codeStrArr.slice(1).join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.FHTableCodeHtml))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStrArr.slice(1).join("")))}}),e._v("\n ")])])]),n("el-tab-pane",{attrs:{label:"拓展插槽数据源"}},[n("div",{staticClass:"ps-r"},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.FHTableCodeDataStr1)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.FHTableCodeDataStr1))}})])])])],1)],1):e._e()],1)],1)],1)},r=[],o=n("ade3"),i=(n("99af"),n("4de4"),n("caad"),n("a434"),n("d3b7"),n("2532"),n("159b"),n("2af9")),l=n("4348"),s=n("f6ab"),c=n("1b62"),u=n("7719"),d=n("c197"),p=n.n(d),f=(n("a878"),n("4fca")),m={name:"FHTableCode",components:{FHTable:i["l"]},mixins:[c["c"],c["a"]],props:{},data:function(){return Object(o["a"])({moreFlag:!0,idArr:[],active:"0",maxHeight1:0,codeStrArr:Object(u["e"])(f["i"]),FHTableCodeHtml:f["h"],FHTableCodeDataStr:f["f"],FHTableCodeDataStr1:f["g"]},"maxHeight1","")},watch:{list:{handler:function(e){this.tableProps["data"]=this.deepClone(e),this.tableProps["data"].forEach((function(e){e["platformNameStr"]="测试插槽"})),this.maxHeight=this.getTableHeight("tableOne"),this.maxHeight1=this.getTableHeight("tableTwo")}}},created:function(){this.addKeepAlive("FHTableTest"),this.getData()},mounted:function(){},methods:{getData:function(){this.tableProps=this.deepClone(Object(l["r"])()),this.tableProps.tableProp=this.tableProps.tableProp.filter((function(e){return"slotSpan"!==e.type})),this.codeStrArr.splice(2,1),this.queryParams={saasId:"ff5a67337b6611e89feafa163eb3e537",userId:"27775e0e494447bf94a5292252262870"},this.tempQueryParams=this.deepClone(this.queryParams),this.getTableList()},handlePlatCode:function(e){return l["E"][e]?l["E"][e]:"未知的平台码"},queryTableData:function(e){return console.log("queryParams",e),s["a"].queryPlatformList({params:e})},handleTableList:function(e){var t=this;e.forEach((function(e){var n=[{type:"terminalManage",text:"终端管理"}];if(!e.id.includes("_")){var a=[{type:"edit",text:"编辑"},{type:"relevance",text:"关联机构"},{type:"delete",text:"删除"}];e["operates"]=[{btns:n.concat(a)}]}e.platformCode&&(e.platformCode=t.handlePlatCode(e.platformCode))})),this.list=this.deepClone(e)},handleTableClick:function(e){console.log("handleTableClick",e);var t=e.row||{};if("delete"===e.type){var n=this.list.filter((function(e){return e.id!==t.id}));this.list=this.deepClone(n)}else"terminalManage"===e.type||"edit"===e.type||e.type},handleSelectionChange:function(e){console.log("handleSelectionChange",e),this.idArr=this.deepClone(e)},handleMore:function(){this.moreFlag=!this.moreFlag},toHtml:function(e){return p.a.highlight(e,p.a.languages.html,"html")},toJs:function(e){return p.a.highlight(e,p.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))},handleActive:function(){this.active?(this.tableProps=Object(l["r"])(),this.codeStrArr=Object(u["e"])(f["i"]),this.getTableList()):(this.tableProps.tableProp=this.tableProps.tableProp.filter((function(e){return"slotSpan"!==e.type})),this.codeStrArr.splice(2,1))}}},h=m,g=n("2877"),b=Object(g["a"])(h,a,r,!1,null,"1155f8e4",null);t["default"]=b.exports},"4a82":function(e,t,n){"use strict";n("f79b")},"4bce":function(e,t,n){"use strict";n("e89d")},"4c43":function(e,t,n){},"4cca":function(e,t,n){"use strict";n("0f6b")},"4d23":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"CommonTableTest"}},[n("h1",{staticClass:"pb20"},[e._v("没有封装接口请求的CommonTable")]),n("div",{staticClass:"c-f mb20"},[e._v("CommonTable只是单纯的封装了table列表的绘制方式")]),n("el-tabs",{staticClass:"mtb20",attrs:{type:"border-card"},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},e._l(e.tabsArr,(function(t,a){return n("el-tab-pane",{key:a,attrs:{label:t.label}},[a==e.active?n("CommonTable",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"table-obj":t.tableObj,"not-tool-tip":t.notTooltip,"hover-show":t.hoverShow,"has-table-children":t.hasTableChildren},on:{handLoadNode:e.handLoadNode,handleTableClick:e.handleTableClick,handleSortChange:e.handleSortChange}}):e._e(),t.tableObj.data&&t.tableObj.data.length?n("div",{staticClass:"ta-r mt24"},[n("CommonPagination",{attrs:{"page-size":e.limit,total:e.total,"current-page":e.currentPage},on:{handleSizeChange:e.handleSizeChange,handleCurrentChange:e.handleCurrentChange}})],1):e._e()],1)})),1),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("el-tabs",{staticClass:"mtb20",model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"页面代码",name:"0"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlStrArr[e.active].join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrArr[e.active][0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlStrArr[e.active][1]))}}),e._v("\n ")])])]),n("el-tab-pane",{attrs:{label:"数据源",name:"1"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.dataStr[e.active])}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.dataStr[e.active]))}})])])],1)],1):e._e()],1)},r=[],o=n("53ca"),i=(n("99af"),n("4de4"),n("a15b"),n("fb6a"),n("4e82"),n("d3b7"),n("159b"),n("2af9")),l=n("267e"),s=n("4348"),c=n("4fca"),u=n("7719"),d=n("c197"),p=n.n(d),f=(n("a878"),{name:"CommonTableTest",components:{CommonTable:i["h"],CommonPagination:i["g"]},props:{},data:function(){return{loading:!1,offset:l["f"].pageOffset,limit:l["f"].pageSize,total:l["f"].total,currentPage:l["f"].currentPage,moreFlag:!0,activeName:"0",active:"0",tabsArr:[]}},computed:{htmlStrArr:function(){return[[c["B"][0],c["B"].slice(1).join("")],[c["D"],c["B"].slice(1).join("")],[c["C"],c["B"].slice(1).join("")],[c["E"][0],c["E"].slice(1).join("")]]},dataStr:function(){return[s["j"],s["j"],s["v"],s["x"]]}},watch:{},created:function(){this.getData()},mounted:function(){},methods:{handLoadNode:function(e){e.tree,e.treeNode;var t=e.resolve,n=new Date;setTimeout((function(){t([{id:"31".concat(n),date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1519 弄"},{id:"32".concat(n),date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1519 弄"}])}),1e3)},getData:function(){var e=Object(u["e"])(Object(s["u"])());e.tableProp=e.tableProp.filter((function(e){return"slotSpan"!==e.type}));var t=this.getTableList(e),n=this.getTableList(Object(s["u"])()),a=[{label:"平铺样式",tableObj:Object(u["e"])(t),notTooltip:!0},{label:"TooltipOver...",tableObj:Object(u["e"])(t),notTooltip:!1,hoverShow:!0},{label:"扩展插槽",tableObj:n},{label:"树结构table",tableObj:Object(s["w"])(),notTooltip:!1,hasTableChildren:!0}];this.tabsArr=a},getTableList:function(e){return e["data"]=s["i"],e["data"].forEach((function(e){var t=l["e"][e.batchApplyMode]||"--",n=e["agentUserName"]||"",a=n.length?Object(u["c"])("#1677ff",n):"";e["batchApplyMode"]=n.length?"".concat(t,"/").concat(n):"".concat(t),e["xssbatchApplyMode"]=n.length?"".concat(t,"/").concat(a):"".concat(t);var r=e["nickName"],o=r.length?Object(u["c"])("#1677ff",r):"";e["xssnickName"]=o;var i=e["testHover"];e["testHoverTip"]="测试:"+i+"<br>名字:4566666",e["xsstestHoverTip"]=i+"456"})),this.total=1,e},handleTableClick:function(e){var t=this.tabsArr[this.active].tableObj,n=e.row,a=e.type,r=e.item;if("nickName"===r.prop)this.$message.info("行内点击测试事件");else if("details"===a)this.$router.push({path:"/testpage/addtest"});else if("delete"===a)t["data"]=t["data"].filter((function(e){return e.clientNewId!==n.clientNewId}));else if("add"===a){var o=Object(u["e"])(t["data"][t["data"].length-1]);o["clientNewId"]+=1,t["data"].push(o)}},handleSortChange:function(e){var t=this,n=this.tabsArr[this.active].tableObj,a=e.column,r=e.prop,o=e.order;n["data"]="descending"===o?n["data"].sort((function(e,n){return t.getForSort(n[r],e[r],r)})):n["data"].sort((function(e,n){return t.getForSort(e[r],n[r],r)})),console.log("column, prop, order",a,r,o)},getForSort:function(e,t,n){return Object(o["a"])(e)===Object(o["a"])(t)&&"string"===typeof t?e.localeCompare(t):e-t},handleSizeChange:function(e){this.limit=e,this.offset=0},handleCurrentChange:function(e){this.offset=(e-1)*this.limit,this.currentPage=e},handleMore:function(){this.moreFlag=!this.moreFlag},toHtml:function(e){return p.a.highlight(e,p.a.languages.html,"html")},toJs:function(e){return p.a.highlight(e,p.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}}),m=f,h=n("2877"),g=Object(h["a"])(m,a,r,!1,null,"b3622960",null);t["default"]=g.exports},"4d5a":function(e,t,n){},"4e32":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full-height",attrs:{id:"RuleConfig"}},[n("div",{staticClass:"header-page fix mb32"},[n("el-page-header",{staticClass:"left",attrs:{content:e.$route.meta.title},on:{back:function(t){return e.$router.back()}}})],1),n("div",{staticClass:"flex ps-s bgc-fff z-index100 mb8"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.addCondition}},[e._v("添加条件规则")]),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.addMultiple}},[e._v("添加循环规则")]),e.judgeEmpty(e.algorithmData)?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.updateRule}},[e._v("保存")]):e._e()],1),e.judgeEmpty(e.algorithmData)?n("AlgorithmPart",{ref:"algorithmPart",attrs:{"algorithm-data":e.algorithmData}}):e._e()],1)},r=[],o=n("5530"),i=(n("e9c4"),n("b64b"),n("03bd")),l=n("83f5"),s=n("5880"),c=n("7719"),u=n("49a6"),d=n("0b6e"),p=n("4f0d"),f={name:"RuleConfig",components:{AlgorithmPart:l["default"]},props:{},data:function(){return{algorithmData:[]}},watch:{},created:function(){this.userInfo=Object(d["d"])({name:"userInfo"})||{},this.getData()},mounted:function(){},methods:Object(o["a"])(Object(o["a"])({},Object(s["mapActions"])("ruleConfig",["updateValueTypeOptions"])),{},{getData:function(){var e,t=this,n=this.$loading(),a={saasId:"ff5a67337b6611e89feafa163eb3e537",projectCode:"P02",modeCode:"P02M01_02_01_03",pmCode:"P02C10"};this.updateValueTypeOptions(a),u["a"].queryRule({id:null===(e=this.$route)||void 0===e||null===(e=e.query)||void 0===e?void 0:e.id,saasId:i["a"].getPlatSaasId()}).then((function(e){var a=e.rpRule,r=void 0===a?{}:a;Object(c["o"])(r.content)&&(t.algorithmData=JSON.parse(r.content)),n.close()})).catch((function(){n.close()}))},addCondition:function(){Object(c["o"])(this.$refs.algorithmPart)?this.$refs.algorithmPart.addCondition():this.algorithmData.push(Object(c["e"])(p["j"]))},addMultiple:function(){Object(c["o"])(this.$refs.algorithmPart)?this.$refs.algorithmPart.addMultiple():this.algorithmData.push(Object(c["e"])(p["g"]))},updateRule:function(){var e,t,n=this,a={operator:this.userInfo.agentcode,saasId:i["a"].getPlatSaasId(),id:null===(e=this.$route)||void 0===e||null===(e=e.query)||void 0===e?void 0:e.id,content:JSON.stringify(null===(t=this.$refs.algorithmPart)||void 0===t?void 0:t.dragData)};u["a"].analysisRule(a).then((function(e){n.$message.success("保存成功")})).catch((function(){}))}})},m=f,h=(n("b127"),n("2877")),g=Object(h["a"])(m,a,r,!1,null,"ead83c46",null);t["default"]=g.exports},"4f0d":function(e,t,n){"use strict";n.d(t,"j",(function(){return a})),n.d(t,"i",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"h",(function(){return l})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"k",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"c",(function(){return m}));var a={ruleType:"if",ruleBefore:[],ruleAfter:[],ruleContent:[{condition:{},action:[],type:"if"},{action:[],type:"else"}]},r={ruleUnit:{ruleType:"value",ruleBefore:"",ruleAfter:"",ruleContent:[{condition:{},action:[],type:"if"},{action:[],type:"else"}]},actionType:"unit"},o={ruleType:"for",ruleBefore:[],ruleAfter:[],ruleContent:[{type:"for",action:[{}],condition:{expression:[{condition:[{itemType:"symbol",name:"in",valueType:"symbol",value:"in",disable:!0,decodeValue:"in"}],left:[{type:"operant",value:"",itemType:"",valueType:"",custom:!1,operate:!1}],right:[{type:"operant",value:"",itemType:"",valueType:"",operate:!1}]}],relation:"expression"}}]},i=[{label:"赋值",value:"assign"},{label:"嵌套",value:"unit"},{label:"返回",value:"return"},{label:"终止本次循环",value:"continue"},{label:"终止循环",value:"break"}],l=[{label:"赋值",value:"assign"}],s={condition:[{itemType:"symbol",name:"等于",valueType:"symbol",value:"%3D",disable:!0,decodeValue:"="}],left:[{type:"operant",value:"",itemType:"",valueType:"",custom:!1,operate:!1}],right:[{type:"operant",value:"",itemType:"",valueType:""}]},c={condition:[{itemType:"symbol",name:"",valueType:"symbol",value:"",decodeValue:""}],left:[{type:"operant",value:"",itemType:"",valueType:""}],right:[{type:"operant",value:"",itemType:"",valueType:""}]},u={condition:[{itemType:"symbol",name:"等于",valueType:"symbol",value:"%3D"}],left:[{itemType:"keyword",name:"",valueType:"boolean",value:"status"}],right:[{itemType:"input",name:"",valueType:"boolean",value:""}]},d={condition:[{itemType:"symbol",name:"等于",valueType:"symbol",value:"%3D"}],left:[{itemType:"keyword",name:"",valueType:"string",value:"message"}],right:[{itemType:"input",name:"",valueType:"string",value:""}]},p={condition:[],right:[{itemType:"keyword",name:"",valueType:"return",value:"return"}],left:[{itemType:"keyword",name:"",valueType:"status",value:""}]},f={condition:[],left:[{itemType:"keyword",name:"",valueType:"continue",value:"continue"}],right:[]},m={condition:[],left:[{itemType:"keyword",name:"",valueType:"break",value:"break"}],right:[]}},"4fca":function(e,t,n){"use strict";n.d(t,"i",(function(){return a})),n.d(t,"h",(function(){return r})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return i})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"o",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"n",(function(){return p})),n.d(t,"m",(function(){return f})),n.d(t,"B",(function(){return m})),n.d(t,"E",(function(){return h})),n.d(t,"D",(function(){return g})),n.d(t,"C",(function(){return b})),n.d(t,"e",(function(){return v})),n.d(t,"y",(function(){return y})),n.d(t,"j",(function(){return C})),n.d(t,"k",(function(){return x})),n.d(t,"x",(function(){return _})),n.d(t,"p",(function(){return w})),n.d(t,"q",(function(){return k})),n.d(t,"r",(function(){return T})),n.d(t,"s",(function(){return j})),n.d(t,"t",(function(){return P})),n.d(t,"u",(function(){return S})),n.d(t,"v",(function(){return F})),n.d(t,"w",(function(){return O})),n.d(t,"l",(function(){return L})),n.d(t,"K",(function(){return E})),n.d(t,"R",(function(){return $})),n.d(t,"L",(function(){return I})),n.d(t,"M",(function(){return D})),n.d(t,"N",(function(){return A})),n.d(t,"G",(function(){return N})),n.d(t,"z",(function(){return H})),n.d(t,"P",(function(){return M})),n.d(t,"Q",(function(){return z})),n.d(t,"S",(function(){return R})),n.d(t,"H",(function(){return V})),n.d(t,"O",(function(){return q})),n.d(t,"J",(function(){return B})),n.d(t,"A",(function(){return U})),n.d(t,"I",(function(){return W})),n.d(t,"T",(function(){return J})),n.d(t,"F",(function(){return G})),n.d(t,"U",(function(){return Q}));n("4de4"),n("a15b"),n("d3b7");var a=['\n<template>\n <div>\n <FHTable\n id="tableOne"\n ref="FHTable"\n :has-checkbox="true"\n :max-height="maxHeight"\n :query-table-data="queryTableData"\n :query-params="queryParams"\n :table-props="tableProps"\n list-map-name="smSaasPlatformList"\n @handleTableList="handleTableList"\n @handleTableClick="handleTableClick"\n @handleSelectionChange="handleSelectionChange"\n />\n </div>\n</template>',"\n<script>\nimport { getFHTableProp, platNameObj } from './dataSource/testPageData'; // 数据源文件,根据自己的页面去写\nimport api_testPage from '@/api/api_testPage'; // 数据接口文件名,根据自己的页面去写\nimport { queryTableMixin,calculateTableHeightMixin } from 'fhrons-pc/plugins/mixins';\nexport default {\n // 组件名称\n name: 'FHTableCode',\n // 局部注册的组件\n mixins: [queryTableMixin,calculateTableHeightMixin],\n // 组件参数 接收来自父组件的数据\n props: {},\n // 组件状态值\n data() {\n return {\n moreFlag: true,\n idArr: [],\n };\n },\n // 侦听器\n watch: {\n list: {\n handler(val) {\n this.tableProps['data'] = this.deepClone(val);","\n this.tableProps['data'].forEach(item => {\n item['platformNameStr'] = '测试插槽';\n });","\n this.maxHeight = this.getTableHeight('tableOne');\n }\n }\n },\n created() {\n this.getData();\n },\n mounted() {\n },\n methods: {\n getData() {\n this.tableProps = this.deepClone(getFHTableProp());\n this.queryParams = { 'saasId': 'ff5a67337b6611e89feafa163eb3e537', 'userId': '27775e0e494447bf94a5292252262870' };\n this.tempQueryParams = this.deepClone(this.queryParams);\n this.getTableList();\n },\n // 处理平台码\n handlePlatCode(name) {\n if (platNameObj[name]) {\n return platNameObj[name];\n }\n return '未知的平台码';\n },\n queryTableData(queryParams) {\n console.log('queryParams', queryParams);\n return api_testPage.queryPlatformList({ params: queryParams });\n },\n handleTableList(list) {\n list.forEach(item => {\n const operates = [\n { type: 'terminalManage', text: '终端管理' }];\n if (!item.id.includes('_')) {\n const arr = [\n { type: 'edit', text: '编辑' },\n { type: 'relevance', text: '关联机构' },\n { type: 'delete', text: '删除' }\n ];\n item['operates'] = [{ btns: operates.concat(arr) }];\n }\n if (item.platformCode) {\n item.platformCode = this.handlePlatCode(item.platformCode);\n }\n });\n this.list = this.deepClone(list);\n },\n handleTableClick(item) {\n console.log('handleTableClick', item);\n const row = item.row || {};\n if (item.type === 'delete') {\n // 删除\n const tempList = this.list.filter(l => l.id !== row.id);\n this.list = this.deepClone(tempList);\n } else if (item.type === 'terminalManage') {\n // 终端管理\n } else if (item.type === 'edit') {\n // 编辑\n } else if (item.type === 'relevance') {\n // 关联机构\n }\n },\n handleSelectionChange(val) {\n console.log('handleSelectionChange', val);\n this.idArr = this.deepClone(val);\n }\n }\n};\n</sc","ript>\n"],r='\n<template>\n <div>\n <FHTable\n id="tableOne"\n ref="FHTable"\n :has-checkbox="true"\n :max-height="maxHeight"\n :query-table-data="queryTableData"\n :query-params="queryParams"\n :table-props="tableProps"\n list-map-name="smSaasPlatformList"\n @handleTableList="handleTableList"\n @handleTableClick="handleTableClick"\n @handleSelectionChange="handleSelectionChange"\n >\n <template #otherTableType="scope">\n <div v-if="scope.item.type === \'slotSpan\'">\n {{ scope.scope.row[scope.item.prop] }}\n </div>\n </template>\n </FHTable>\n </div>\n</template>\n',o="\nexport function getFHTableProp() {\n return {\n data: [],\n tableProp: [\n { label: '平台名称', prop: 'platformName', type: 'htmlType', fixed: 'left' },\n { label: '平台编码', prop: 'platformCode' }, { label: '平台类型', prop: 'plattype' },\n { label: '终端类型', prop: 'terminalName' }, { label: '系统名称', prop: 'systemName' },\n { label: '系统编码', prop: 'systemCode' }, { label: '租户名称', prop: 'saasName', type: 'htmlType', labelWidth: '120', color: '#f10' },\n { label: '租户编码', prop: 'saasCode' },\n { label: '操作', prop: 'operates', type: 'buttons', btnType: 'text', fixed: 'right', labelWidth: '240' }]\n };\n}\nexport const platNameObj = {\n '1': '懒掌柜1',\n '2': '懒掌柜2',\n '3': '懒掌柜3',\n '111838': '新平台',\n '56': '创作者中心',\n '55': '保单服务',\n '54': '规则服务',\n '53': '同屏讲解',\n '51': '新团险',\n '111421': '邮核系统',\n '111420': '客户数字资产',\n '111418': 'CRM',\n '111304': '销售管理测试'\n};",i="\nexport function getFHTableProp() {\n return {\n data: [],\n tableProp: [\n { label: '平台名称', prop: 'platformName', type: 'htmlType', fixed: 'left' },\n { label: '测试插槽', prop: 'platformNameStr', type: 'slotSpan', fixed: 'left' },\n { label: '平台编码', prop: 'platformCode' }, { label: '平台类型', prop: 'plattype' },\n { label: '终端类型', prop: 'terminalName' }, { label: '系统名称', prop: 'systemName' },\n { label: '系统编码', prop: 'systemCode' }, { label: '租户名称', prop: 'saasName', type: 'htmlType', labelWidth: '120', color: '#f10' },\n { label: '租户编码', prop: 'saasCode' },\n { label: '操作', prop: 'operates', type: 'buttons', btnType: 'text', fixed: 'right', labelWidth: '240' }]\n };\n}",l='\n<template>\n <div>\n <CommonForm\n ref="commonForm"\n :model="formModel"\n @changeFormItem="changeFormItem"\n @submitForm="submitForm"\n @cancel="cancel"\n >\n <template #otherType="scope">\n <div v-if="scope.item.type === \'slotTextarea\'">\n <el-input v-model="scope.form[scope.item.prop]" clearable type="textarea" rows="1" />\n </div>\n </template>\n </CommonForm>\n </div>\n</template>\n';function s(e){var t=["\n import { nameRule, mobileRule } from 'fhrons-pc/plugins/tool/validate';\n export const commonFormEg = {","\n formClass:'inline-two',","\n form: {\n cname: '',\n slotName: '',\n mobile: '',\n multi: '',\n terminalName: '',\n enterDate: '',\n selectVal: '', // 下拉选择\n dateVal: '',\n dateRangVal: [],\n dateTimeRangeVal: []\n },\n rules: {\n cname: nameRule,\n mobile: mobileRule\n },\n formArr: [\n { label: '姓名', prop: 'cname', placeholder: '' },\n { label: '手机号', prop: 'mobile', type: 'inputNum', placeholder: '', maxlength: 11 },\n { label: '这是两行的样式样式', prop: 'multi', placeholder: '' },\n {\n label: '下拉选择', prop: 'selectVal', type: 'select', val: '',\n options: [\n { value: '选项1', label: '黄金糕' },\n { value: '选项2', label: '双皮奶' }]\n },\n {\n label: '级联选择器', prop: 'cascaderCont', type: 'cascader', val: '', refresh: 0, filterable: true,\n options: [\n {\n value: 1, label: '东南', children: [\n {\n value: 2, label: '上海', children: [\n { value: 3, label: '普陀' },\n { value: 4, label: '黄埔' },\n { value: 5, label: '徐汇' }]\n },\n {\n value: 7, label: '江苏', children: [\n { value: 8, label: '南京' },\n { value: 9, label: '苏州' },\n { value: 10, label: '无锡' }]\n }]\n }]\n },\n { label: '日期选择器', prop: 'dateVal', type: 'date', val: '' },\n { label: '日期范围选择器', prop: 'dateRangeVal', type: 'daterange', val: '' },\n { label: '时间范围选择器', prop: 'dateTimeRangeVal', type: 'datetimerange', val: '' },\n { label: '这是测试插槽', prop: 'slotName', placeholder: '', type: 'slotTextarea' }]\n };\n "];if(e)return t.join("");var n=t.filter((function(e,t){return 1!==t}));return n.join("")}var c="\nexport const commonFormEg = {\n form: { \n dateVal: '', // 时间类型初始化必须要赋值\n datetimeVal:''\n },\n formArr: [\n { label: '日期选择器', prop: 'dateVal', type: 'date', valueFormat: 'yyyy-MM-dd' },\n { label: '日期时间选择器', prop: 'datetimeVal', type: 'datetime', valueFormat: 'yyyy-MM-dd HH:mm:ss' },\n ]\n}\n",u=['\n<template>\n <div>\n <CommonForm\n ref="commonForm"\n :model="formModel"\n @changeFormItem="changeFormItem"\n @submitForm="submitForm"\n @cancel="cancel"\n />\n </div>\n</template>',"\n\n<script>\n\nimport { commonFormEg } from '@/views/testPage/dataSource/testPageData'; // 数据源文件,根据自己的页面去写\nimport { deepClone } from 'fhrons-pc/plugins/tool/func';\nexport default {\n data() {\n return {\n formModel: {}\n };\n },\n created() {\n this.formModel = commonFormEg || {};\n this.formModel['form']['dateVal'] = new Date();\n },\n methods: {\n // 表单(新增,编辑)\n changeFormItem(formObj) {\n console.log('formObj', formObj);\n },\n // 提交\n submitForm() {\n console.log('submitForm', this.formModel);\n },\n // 取消\n cancel() {\n this.formModel = commonFormEg || {};\n this.formModel['form']['dateVal'] = new Date();\n this.$nextTick(() => {\n // 重置表单数据\n if (this.$refs && this.$refs['commonForm']) {\n this.$refs['commonForm'].resetFormValidate();\n }\n });\n }\n }\n};\n</sc","ript>"],d="import { nameRule, mobileRule } from 'fhrons-pc/plugins/tool/validate';\nexport const commonFormEg = {\n form: {\n cname: '',\n slotName: '',\n mobile: '',\n multi: '',\n terminalName: '',\n enterDate: '',\n selectVal: '', // 下拉选择\n dateVal: '',\n dateRangVal: [],\n dateTimeRangeVal: [],\n dateRangePickerVal: []\n },\n rules: {\n cname: nameRule,\n mobile: mobileRule\n },\n formArr: [\n { label: '姓名', prop: 'cname', placeholder: '' },\n { label: '手机号', prop: 'mobile', type: 'inputNum', placeholder: '', maxlength: 11 },\n { label: '这是两行的样式样式', prop: 'multi', placeholder: '' },\n {\n label: '下拉选择',\n prop: 'selectVal',\n type: 'select',\n val: '',\n options: [\n {\n value: '选项1',\n label: '黄金糕'\n },\n {\n value: '选项2',\n label: '双皮奶'\n }\n ]\n },\n {\n label: '级联选择器',\n prop: 'cascaderCont',\n type: 'cascader',\n val: '',\n options: [\n {\n value: 1,\n label: '东南',\n children: [\n {\n value: 2,\n label: '上海',\n children: [\n { value: 3, label: '普陀' },\n { value: 4, label: '黄埔' },\n { value: 5, label: '徐汇' }\n ]\n },\n {\n value: 7,\n label: '江苏',\n children: [\n { value: 8, label: '南京' },\n { value: 9, label: '苏州' },\n { value: 10, label: '无锡' }\n ]\n }\n ]\n }\n ],\n refresh: 0,\n filterable: true\n },\n { label: '日期选择器', prop: 'dateVal', type: 'date', val: '', valueFormat: 'yyyy-MM-dd' },\n { label: '日期范围选择器', prop: 'dateRangeVal', type: 'daterange', val: '' },\n { label: '时间范围选择器', prop: 'dateTimeRangeVal', type: 'datetimerange', val: '' },\n { label: '可选年份月份的日期范围选择器', prop: 'dateRangePickerVal', type: 'daterangepicker', val: '', width: 932 }\n ]\n};",p=['\n<template>\n <div id="PDFViewerTest">\n <PDFViewer :src="pdfUrl" @onLoaded="onLoaded" />\n </div>\n</template>',"\n\n<script>\n\nexport default {\n // 组件名称\n name: 'PDFViewerTest',\n // 组件参数 接收来自父组件的数据\n props: {},\n // 组件状态值\n data() {\n return {\n pdfUrl: 'https://static.zhongan.com/upload/online/material/gryjylbxtkDk.pdf',\n currentUrl: ''\n };\n },\n // 侦听器\n watch: {},\n created() {\n },\n mounted() {\n },\n methods: {\n onLoaded(base64Url) { this.currentUrl = base64Url; },\n }\n};\n<\/script>\n"],f=["\n<script src=\"https://dop-pro-1251973116.file.myqcloud.com/upload/jsfile/funzg/pdf.min.js\"><\/script>\n<script>\n if (typeof pdfjsLib === 'undefined') {\n console.log('pdf加载失败');\n document.write(unescape(\"%3Cscript src='./static/backup/pdf.min.js' type='text/javascript'%3E%3C/script%3E\"));\n }\n<\/script>","\n<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0,user-scalable=no\" />\n <script>\n document.title = '榕数开放平台';\n function sheetError () {\n console.log('sheetError');\n const link = document.createElement('link');\n const head = document.getElementsByTagName('head')[0];\n link.rel = 'stylesheet';\n link.href = '<%= BASE_URL %>icon.css';\n head.appendChild(link);\n }\n <\/script>\n <link rel=\"stylesheet\" href=\"<%= VUE_APP_ICONCSS_PATH %>\" onerror=\"sheetError()\" />\n <link rel=\"icon\" href=\"<%= BASE_URL %>logo.svg\" type=\"image/svg\" />\n\n <title>\n <%= htmlWebpackPlugin.options.title %>\n </title>\n <style>\n html,\n body,\n #app {\n height: 100%;\n margin: 0;\n padding: 0;\n }\n\n .home {\n background-color: #303133;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n .home-main {\n user-select: none;\n width: 100%;\n flex-grow: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n }\n\n .home-loading {\n height: 32px;\n width: 32px;\n margin-bottom: 20px;\n }\n\n .home-title {\n color: #fff;\n font-size: 14px;\n margin-bottom: 10px;\n }\n\n .home-sub-title {\n color: #ababab;\n font-size: 12px;\n }\n </style>\n</head>\n\n<body>\n <noscript>\n <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.\n Please enable it to continue.</strong>\n </noscript>\n <div id=\"app\">\n <div class=\"home\">\n <div class=\"home-main\">\n <img class=\"home-loading\" src=\"./loading-spin.svg\" alt=\"loading\" />\n <div class=\"home-title\">\n 正在加载资源\n </div>\n <div class=\"home-sub-title\">\n 初次加载资源可能需要较多时间 请耐心等待\n </div>\n </div>\n </div>\n </div>\n <script src=\"https://dop-pro-1251973116.file.myqcloud.com/upload/jsfile/funzg/<%= VUE_APP_JS_VER %>\"><\/script>\n <script>\n // 在vue的cdn加载链接下面就要做失败处理,因为vant.min.js中对vue有引入,如果不做处理会导致vant加载失败然后页面白屏\n if (typeof Vue === 'undefined') {\n console.log('Vue加载失败,启用本地缓存');\n document.write(unescape(\"%3Cscript src='./static/backup/<%= VUE_APP_JS_VER %>' type='text/javascript'%3E%3C/script%3E\"));\n }\n <\/script>\n <script src=\"https://scrm-pro-1251973116.file.myqcloud.com/dop/js/vuex.min.js\"><\/script>\n <script src=\"https://dop-pro-1251973116.file.myqcloud.com/upload/jsfile/funzg/vue-router.min.js\"><\/script>\n <script src=\"https://scrm-pro-1251973116.file.myqcloud.com/funzg/form/axios.js\"><\/script>\n <script src=\"https://scrm-pro-1251973116.file.myqcloud.com/dop/js/echarts.min.js\"><\/script>\n <script src=\"https://dop-pro-1251973116.file.myqcloud.com/upload/jsfile/funzg/lodash.min.js\"><\/script>\n <script charset=\"UTF-8\"\n src=\"https://dop-pro-1251973116.file.myqcloud.com/upload/jsfile/lzg/sensorsdata.min.js\"><\/script>\n <script src=\"https://dop-pro-1251973116.file.myqcloud.com/upload/jsfile/funzg/pdf.min.js\"><\/script>\n\n <script>\n if (typeof Vuex === 'undefined') {\n console.log('Vuex加载失败,启用本地缓存');\n document.write(unescape(\"%3Cscript src='./static/backup/vuex.min.js' type='text/javascript'%3E%3C/script%3E\"));\n }\n if (typeof VueRouter === 'undefined') {\n console.log('VueRouter 加载失败,启用本地缓存');\n document.write(unescape(\"%3Cscript src='./static/backup/vue-router.min.js' type='text/javascript'%3E%3C/script%3E\"));\n }\n if (typeof axios === 'undefined') {\n console.log('axios加载失败,启用本地缓存');\n document.write(unescape(\"%3Cscript src='./static/backup/axios.js' type='text/javascript'%3E%3C/script%3E\"));\n }\n if (typeof echarts === 'undefined') {\n console.log('echarts 加载失败,启用本地缓存');\n document.write(unescape(\"%3Cscript src='./static/backup/echarts.min.js' type='text/javascript'%3E%3C/script%3E\"));\n }\n if (typeof _ === 'undefined') {\n console.log('lodash加载失败,启用本地缓存');\n document.write(unescape(\"%3Cscript src='./static/backup/lodash.min.js' type='text/javascript'%3E%3C/script%3E\"));\n }\n if (typeof window['sensorsDataAnalytic201505'] === 'undefined') {\n console.log('神策埋点加载失败');\n document.write(unescape(\"%3Cscript src='./static/backup/sensorsdata.min.js' type='text/javascript'%3E%3C/script%3E\"));\n }\n if (typeof pdfjsLib === 'undefined') {\n console.log('pdf加载失败');\n document.write(unescape(\"%3Cscript src='./static/backup/pdf.min.js' type='text/javascript'%3E%3C/script%3E\"));\n }\n <\/script>\n <script>\n ~(function () {\n const commonKeyName = 'Fun-' + '<%= VUE_APP_ENV_CONFIG %>' + '-';\n const saasKeyName = 'Fun-SAASMANAGE-' + '<%= VUE_APP_ENV_CONFIG %>' + '-';\n const keyName = 'Fun-' + '<%= VUE_APP_NAME %>' + '-' + '<%= VUE_APP_ENV_CONFIG %>' + '-';\n const commonKeyArr = ['token', 'headerList', 'deptInfo', 'deptListInfo', 'userInfo', 'platformCode', 'userBaseInfo', 'pwdDataInfo', 'userGlobalGist', 'saasInfo'];\n const SESSION = 'session';\n function addSetStorageEvent (params = {}) {\n const { name, type, obj } = params;\n // 创建一个StorageEvent事件\n var newStorageEvent = document.createEvent('StorageEvent');\n const storage = {\n setItem: (type, k, val) => {\n // 这里可以灵活更改local和session\n if (type && type.toLowerCase() === 'session') window.sessionStorage.setItem(k, val);\n else window.localStorage.setItem(k, val);\n // 初始化创建的事件\n newStorageEvent.initStorageEvent('setItem', false, false, k, null, val, null, null);\n // 派发对象\n window.dispatchEvent(newStorageEvent);\n }\n };\n return storage.setItem(type, name, obj);\n }\n function setStorage (params = {}) {\n let { name } = params;\n const { content, type, needListener, key } = params;\n const index = commonKeyArr.findIndex(c => c === name);\n name = key || (index !== -1 ? commonKeyName + name : keyName + name);\n const obj = {\n dataType: typeof content,\n content: content,\n type: type,\n dateTime: new Date().getTime()\n };\n const temp = { name, type, obj: JSON.stringify(obj) };\n if (needListener) {\n addSetStorageEvent(temp);\n } else {\n if (type && type.toLowerCase() === SESSION) window.sessionStorage.setItem(name, JSON.stringify(obj));\n else window.localStorage.setItem(name, JSON.stringify(obj));\n }\n }\n function removeStorage (params = {}) {\n let { name } = params;\n const { type, key } = params;\n const index = commonKeyArr.findIndex(c => c === name);\n name = key || (index !== -1 ? commonKeyName + name : keyName + name);\n if (type && type.toLowerCase() === SESSION) {\n window.sessionStorage.removeItem(name);\n } else {\n window.localStorage.removeItem(name);\n }\n }\n function cutLocationHref () {\n let name;\n let value;\n let str = location.href;\n let num = str.indexOf('?'); // 取得整个地址栏\n str = str.substr(num + 1); // 取得所有参数 stringvar.substr(start [, length ]\n const gather = {};\n str.replace(/([^#?&]+)=([^#?&/]+)/g, ($0, $1, $2) => {\n gather[$1] = decodeURIComponent($2);\n });\n return gather;\n }\n const token = window.localStorage.getItem(commonKeyName + 'token') && JSON.parse(window.localStorage.getItem(commonKeyName + 'token')).content;\n const currentPlatformCode = window.localStorage.getItem(saasKeyName + 'platformCode') && JSON.parse(window.localStorage.getItem(saasKeyName + 'platformCode')).content;\n const currentCommonPlatformCode = window.localStorage.getItem(commonKeyName + 'platformCode') && JSON.parse(window.localStorage.getItem(commonKeyName + 'platformCode')).content;\n let platformCode = cutLocationHref().platformCode || 'fhrons-pc';\n if (platformCode) {\n setStorage({ name: 'platformCode', content: platformCode });\n }\n if (token && (currentPlatformCode !== platformCode || currentCommonPlatformCode !== platformCode || currentPlatformCode !== currentCommonPlatformCode)) {\n removeStorage({ name: 'getMenuError' });\n removeStorage({ name: 'menus' });\n removeStorage({ name: 'menuTree' });\n }\n })();\n <\/script>\n</body>\n\n</html>"],m=['\n<template>\n <div>\n <CommonTable v-loading="loading" :table-obj="tableObj" :not-tool-tip="true" @handleTableClick="handleTableClick" @handleSortChange="handleSortChange" />\n <div v-if="tableObj.data && tableObj.data.length" class="ta-r mt24">\n <CommonPagination :page-size="limit" :total="total" :current-page="currentPage" @handleSizeChange="handleSizeChange" @handleCurrentChange="handleCurrentChange" />\n </div>\n </div>\n</template>',"\n<script>\nimport { pagination, batchApplyModeType } from '@/constant'; // 数据源文件,根据自己的页面去写\nimport { getTableObj,commonTableNormalData } from './dataSource/testPageData'; // 数据源文件,根据自己的页面去写\nimport { brightenKeyword, deepClone } from 'fhrons-pc/plugins/tool/func';\nexport default {\n data() {\n return {\n loading: false,\n tableObj: {},\n offset: pagination.pageOffset,\n limit: pagination.pageSize,\n total: pagination.total,\n currentPage: pagination.currentPage\n };\n },\n created() {\n this.getData();\n },\n methods: {\n getData() {\n this.tableObj = getTableObj();\n this.getTableList();\n },\n // 处理table表里面的点击,例如查看详情,或者删除等按钮的事件\n handleTableClick(val) {\n const { row, type, item, idx } = val;\n console.log('val', val);\n if (item.prop === 'nickName') {\n this.$message.info('行内点击测试事件');\n } else if (type === 'details') {\n this.$router.push({ path: '/testpage/addtest' });\n } else if (type === 'delete') {\n this.tableObj['data'] = this.tableObj['data'].filter(d => d.clientNewId !== row.clientNewId);\n } else if (type === 'add') {\n const obj = deepClone(this.tableObj['data'][this.tableObj['data'].length - 1]);\n obj['clientNewId'] += 1;\n this.tableObj['data'].push(obj);\n }\n },\n // 接口请求回来的数据\n getTableList() {\n // 模拟的假数据\n this.tableObj['data'] = commonTableNormalData;\n this.tableObj['data'].forEach(item => {\n const batchApplyMode = batchApplyModeType[item.batchApplyMode] || '--';\n const oldNickname = item['agentUserName'] || '';\n const oldNicknameStr = oldNickname.length ? brightenKeyword('#1677ff', oldNickname) : '';\n item['batchApplyMode'] = oldNickname.length ? batchApplyMode + '/' + oldNickname : batchApplyMode;\n item['xssbatchApplyMode'] = oldNickname.length ? batchApplyMode + '/' + oldNicknameStr : batchApplyMode;\n const name = item['nickName'];\n const nameStr = name.length ? brightenKeyword('#1677ff', name) : '';\n item['xssnickName'] = nameStr;\n });\n this.total = 1;\n },\n handleSizeChange(val) {\n this.limit = val;\n this.offset = 0;\n this.getTableList();\n },\n handleCurrentChange(val) {\n this.offset = (val - 1) * this.limit;\n this.currentPage = val;\n this.getTableList();\n },\n // 排序\n handleSortChange(sortObj) {\n const { column, prop, order } = sortObj;\n // 这里可以把排序的规则传入给后端,后端进行排序,处理好数据源返回给前端,下面例子是前端写的排序规则\n if (order === 'descending') {\n this.tableObj['data'] = this.tableObj['data'].sort((a, b) => this.getForSort(b[prop], a[prop], prop));\n } else {\n this.tableObj['data'] = this.tableObj['data'].sort((a, b) => this.getForSort(a[prop], b[prop], prop));\n }\n console.log('column, prop, order', column, prop, order);\n },\n getForSort(stra, strb, coprop) {\n if (typeof stra === typeof strb && typeof strb === 'string') {\n // 汉字排序\n return stra.localeCompare(strb);\n }\n // 数字排序\n return stra - strb;\n },\n handleMore(type) {\n this.moreFlag = !this.moreFlag;\n },\n }\n};\n</sc","ript>\n"],h=['\n<template>\n <div>\n <CommonTable v-loading="loading" :table-obj="tableObj" :not-tool-tip="false" :has-table-children="true" @handLoadNode="handLoadNode" @handleTableClick="handleTableClick" @handleSortChange="handleSortChange" />\n <div v-if="tableObj.data && tableObj.data.length" class="ta-r mt24">\n <CommonPagination :page-size="limit" :total="total" :current-page="currentPage" @handleSizeChange="handleSizeChange" @handleCurrentChange="handleCurrentChange" />\n </div>\n </div>\n</template>\n',"\n<script>\nimport { pagination, batchApplyModeType } from '@/constant'; // 数据源文件,根据自己的页面去写\nimport { getTableTreeObj } from './dataSource/testPageData';\nimport { brightenKeyword, deepClone } from 'fhrons-pc/plugins/tool/func';\nexport default {\n data() {\n return {\n loading: false,\n tableObj: {},\n offset: pagination.pageOffset,\n limit: pagination.pageSize,\n total: pagination.total,\n currentPage: pagination.currentPage\n };\n },\n created() {\n },\n methods: {\n handLoadNode(loadObj) {\n const { tree, treeNode, resolve } = loadObj;\n setTimeout(() => {\n resolve([\n {\n id: 31,\n date: '2016-05-01',\n name: '王小虎',\n address: '上海市普陀区金沙江路 1519 弄'\n }, {\n id: 32,\n date: '2016-05-01',\n name: '王小虎',\n address: '上海市普陀区金沙江路 1519 弄'\n }\n ]);\n }, 1000);\n },\n}\n</sc","ript>"],g='\n<template>\n <div>\n <CommonTable v-loading="loading" :table-obj="tableObj" @handleTableClick="handleTableClick" @handleSortChange="handleSortChange" />\n <div v-if="tableObj.data && tableObj.data.length" class="ta-r mt24">\n <CommonPagination :page-size="limit" :total="total" :current-page="currentPage" @handleSizeChange="handleSizeChange" @handleCurrentChange="handleCurrentChange" />\n </div>\n </div>\n</template>\n',b='\n<template>\n <div>\n <CommonTable v-loading="loading" :table-obj="tableObj" @handleTableClick="handleTableClick" @handleSortChange="handleSortChange">\n <template #otherTableType="scope">\n <div v-if="scope.item.type === \'slotSpan\'">\n {{ scope.scope.row[scope.item.prop] }}\n </div>\n </template>\n </CommonTable>\n <div v-if="tableObj.data && tableObj.data.length" class="ta-r mt24">\n <CommonPagination :page-size="limit" :total="total" :current-page="currentPage" @handleSizeChange="handleSizeChange" @handleCurrentChange="handleCurrentChange" />\n </div>\n </div>\n</template>',v={custom:['\n<template>\n <div id="CustomFHDialog">\n <el-button size="small" type="primary" @click="btnClick(customDialog)">自定义关闭事件的弹框</el-button>\n <FHDialog v-if="customDialog.showDialog" :dialog-obj="customDialog" :custom-before-close="done => customDialog.customClose && customBeforeClose(done, customDialog)" @confirmClick="confirmClick(customDialog)" @cancelClick="cancelClick(customDialog)">\n <p>自定义关闭的弹框,点X看效果</p>\n </FHDialog>\n </div>\n</template>',"\n<scrip>\nexport default {\n // 组件名称\n name: 'CustomFHDialog',\n // 组件参数 接收来自父组件的数据\n props: {},\n // 组件状态值\n data() {\n return {\n customDialog: {\n customClose: true,\n type: 'mini',\n title: '关闭确认弹框',\n size: 'mini',\n htmlArr: []\n },\n };\n },\n methods: {\n customBeforeClose(done, item) {\n this.$confirm('确认关闭?')\n .then(_ => {\n done();\n this.$set(item, 'showDialog', false);\n })\n .catch(_ => {\n });\n },\n confirmClick(item) {\n this.$set(item, 'showDialog', false);\n },\n cancelClick(item) {\n this.$set(item, 'showDialog', false);\n },\n btnClick(item) {\n this.$set(item, 'showDialog', true);\n }\n }\n};\n</scr","ipt>"],mini:['\n<template>\n <div id="MiniFHDialog">\n <el-button size="small" type="primary" @click="btnClick(miniDialog)">mini的弹框</el-button>\n <FHDialog v-if="miniDialog.showDialog" :dialog-obj="miniDialog" @confirmClick="confirmClick(miniDialog)" @cancelClick="cancelClick(miniDialog)">\n <p>mini弹框适用于提示</p>\n </FHDialog>\n </div>\n</template>',"\n<script>\nexport default {\n // 组件名称\n name: 'MiniFHDialog',\n // 组件参数 接收来自父组件的数据\n props: {},\n // 组件状态值\n data() {\n return {\n miniDialog: {\n type: 'mini',\n title: 'mini弹框',\n size: 'mini'\n }\n };\n },\n // 侦听器\n watch: {},\n created() {\n },\n mounted() {\n },\n methods: {\n confirmClick(item) {\n this.$set(item, 'showDialog', false);\n },\n cancelClick(item) {\n this.$set(item, 'showDialog', false);\n },\n btnClick(item) {\n this.$set(item, 'showDialog', true);\n }\n }\n};\n</scr","ipt>"],small:['\n<template>\n <div id="SmallFHDialog">\n <el-button size="small" type="primary" @click="btnClick(dialogObj)">small的弹框</el-button>\n <FHDialog v-if="dialogObj.showDialog" :dialog-obj="dialogObj" @confirmClick="confirmClick(dialogObj)" @cancelClick="cancelClick(dialogObj)">\n <CommonForm ref="commonForm" :model="formModel" submit-title="确定" @changeFormItem="changeFormItem" @submitForm="submitForm(dialogObj)" @cancel="cancelClick(dialogObj)" />\n </FHDialog>\n </div>\n</template>',"\n<script>\nimport { getFormDataObj } from '../dataSource/testPageData';\nexport default {\n // 组件名称\n name: 'SmallFHDialog',\n // 组件参数 接收来自父组件的数据\n props: {},\n // 组件状态值\n data() {\n return {\n formModel: {},\n dialogObj: {\n type: 'small',\n title: 'small弹框适用于简单表单',\n size: 'small',\n hiddenFooterBtn: true\n }\n };\n },\n // 侦听器\n watch: {},\n created() {\n this.formModel = this.deepClone(getFormDataObj());\n },\n mounted() {\n },\n methods: {\n confirmClick(item) {\n this.$set(item, 'showDialog', false);\n },\n cancelClick(item) {\n this.$set(item, 'showDialog', false);\n },\n btnClick(item) {\n this.$set(item, 'showDialog', true);\n },\n changeFormItem(formObj) {\n this.formModel.form[formObj.prop] = formObj.val;\n },\n // 提交\n submitForm(item) {\n this.cancelClick(item);\n },\n // 重置数据\n resetForm() {\n this.formModel = this.deepClone(getFormDataObj());\n this.$nextTick(() => {\n // 重置表单数据\n if (this.$refs && this.$refs['commonForm'] && this.$refs['commonForm'][0]) {\n this.$refs['commonForm'][0].resetFormValidate();\n }\n });\n }\n }\n};\n</scr","ipt>"],medium:['\n<template>\n <div id="MediumFHDialog">\n <el-button size="small" type="primary" @click="btnClick(dialogObj)">medium的弹框</el-button>\n <FHDialog :dialog-obj="dialogObj" @confirmClick="confirmClick(dialogObj)" @cancelClick="cancelClick(dialogObj)">\n <FHTable\n id="mediumTable"\n ref="FHTable"\n :has-checkbox="true"\n :max-height="maxHeight"\n :query-table-data="queryTableData"\n :query-params="queryParams"\n :table-props="tableProps"\n list-map-name="smSaasPlatformList"\n @handleTableList="handleTableList"\n @handleTableClick="handleTableClick"\n @handleSelectionChange="handleSelectionChange"\n />\n </FHDialog>\n </div>\n</template>',"\n<script>\nimport api_testPage from '@/api/api_testPage';\nimport { queryTableMixin, calculateTableHeightMixin } from 'fhrons-pc/plugins/mixins';\nimport { getFHTableProp, platNameObj } from '../dataSource/testPageData';\n\nexport default {\n // 组件名称\n name: 'MediumFHDialog',\n mixins: [queryTableMixin, calculateTableHeightMixin],\n // 组件参数 接收来自父组件的数据\n props: {},\n // 组件状态值\n data() {\n return {\n dialogObj: {\n type: 'medium',\n title: 'medium弹框适用于table表格',\n size: 'medium'\n }\n };\n },\n // 侦听器\n watch: {\n list: {\n handler(val) {\n this.tableProps['data'] = this.deepClone(val);\n this.tableProps['data'].forEach(item => {\n item['platformNameStr'] = '测试插槽';\n });\n this.maxHeight = this.getTableHeight('mediumTable');\n }\n }\n },\n created() {\n },\n mounted() {\n },\n methods: {\n handleTableList(list) {\n list.forEach(item => {\n const operates = [\n {\n type: 'terminalManage',\n text: '终端管理'\n }\n ];\n if (!item.id.includes('_')) {\n const arr = [\n {\n type: 'edit',\n text: '编辑'\n },\n {\n type: 'relevance',\n text: '关联机构'\n },\n {\n type: 'delete',\n text: '删除'\n }\n ];\n item['operates'] = [{ btns: operates.concat(arr) }];\n }\n if (item.platformCode) {\n item.platformCode = this.handlePlatCode(item.platformCode);\n }\n });\n this.list = this.deepClone(list);\n },\n handlePlatCode(name) {\n if (platNameObj[name]) {\n return platNameObj[name];\n }\n return '未知的平台码';\n },\n handleTableClick(item) {\n const row = item.row || {};\n if (item.type === 'delete') {\n // 删除\n const tempList = this.list.filter(l => l.id !== row.id);\n this.list = this.deepClone(tempList);\n } else if (item.type === 'terminalManage') {\n // 终端管理\n } else if (item.type === 'edit') {\n // 编辑\n // this.formModel['form'] = row;\n // this.$set(this.dialogObj, 'showDialog', true);\n } else if (item.type === 'relevance') {\n // 关联机构\n }\n },\n handleSelectionChange(val) {\n this.idArr = val.map(({ id }) => (id));\n },\n getData() {\n this.tableProps = this.deepClone(getFHTableProp());\n this.queryParams = { 'saasId': 'ff5a67337b6611e89feafa163eb3e537', 'userId': '27775e0e494447bf94a5292252262870' };\n this.tempQueryParams = this.deepClone(this.queryParams);\n this.getTableList();\n },\n queryTableData(queryParams) {\n return api_testPage.queryPlatformList({ params: queryParams });\n },\n confirmClick(item) {\n this.$set(item, 'showDialog', false);\n },\n cancelClick(item) {\n this.$set(item, 'showDialog', false);\n },\n btnClick(item) {\n this.getData();\n this.$set(item, 'showDialog', true);\n }\n }\n};\n</scr","ipt>"],large:['\n<template>\n <div id="LargeFHDialog">\n <el-button size="small" type="primary" @click="btnClick(dialogObj)">large的弹框</el-button>\n <FHDialog :dialog-obj="dialogObj" @confirmClick="confirmClick(dialogObj)" @cancelClick="cancelClick(dialogObj)">\n <FilterQuery :model="formItem" @formItemChange="formItemChange" @searchClick="searchClick" @resetClick="resetClick" />\n <FHTable\n id="largeTable"\n ref="FHTable"\n :has-checkbox="true"\n :max-height="maxHeight"\n :query-table-data="queryTableData"\n :query-params="queryParams"\n :table-props="tableProps"\n list-map-name="smSaasPlatformList"\n @handleTableList="handleTableList"\n @handleTableClick="handleTableClick"\n @handleSelectionChange="handleSelectionChange"\n />\n </FHDialog>\n </div>\n</template>',"\n\n<script>\nimport api_testPage from '@/api/api_testPage';\nimport { queryTableMixin, calculateTableHeightMixin } from 'fhrons-pc/plugins/mixins';\nimport { getFHTableProp, getFormDataObj, platNameObj, getFHFormQueryObj } from '../dataSource/testPageData';\nexport default {\n // 组件名称\n name: 'LargeFHDialog',\n mixins: [queryTableMixin, calculateTableHeightMixin],\n // 组件参数 接收来自父组件的数据\n props: {},\n // 组件状态值\n data() {\n return {\n dialogObj: {\n title: 'large弹框'\n }\n };\n },\n // 侦听器\n watch: {\n list: {\n handler(val) {\n this.tableProps['data'] = this.deepClone(val);\n this.tableProps['data'].forEach(item => {\n item['platformNameStr'] = '测试插槽';\n });\n this.maxHeight = this.getTableHeight('largeTable');\n }\n }\n },\n created() {\n },\n mounted() {\n },\n methods: {\n handleTableList(list) {\n list.forEach(item => {\n const operates = [\n {\n type: 'terminalManage',\n text: '终端管理'\n }\n ];\n if (!item.id.includes('_')) {\n const arr = [\n {\n type: 'edit',\n text: '编辑'\n },\n {\n type: 'relevance',\n text: '关联机构'\n },\n {\n type: 'delete',\n text: '删除'\n }\n ];\n item['operates'] = [{ btns: operates.concat(arr) }];\n }\n if (item.platformCode) {\n item.platformCode = this.handlePlatCode(item.platformCode);\n }\n });\n this.list = this.deepClone(list);\n },\n handlePlatCode(name) {\n if (platNameObj[name]) {\n return platNameObj[name];\n }\n return '未知的平台码';\n },\n handleTableClick(item) {\n const row = item.row || {};\n if (item.type === 'delete') {\n // 删除\n const tempList = this.list.filter(l => l.id !== row.id);\n this.list = this.deepClone(tempList);\n } else if (item.type === 'terminalManage') {\n // 终端管理\n } else if (item.type === 'edit') {\n // 编辑\n // this.formModel['form'] = row;\n // this.$set(this.dialogObj, 'showDialog', true);\n } else if (item.type === 'relevance') {\n // 关联机构\n }\n },\n handleSelectionChange(val) {\n this.idArr = val.map(({ id }) => (id));\n },\n getData() {\n this.tableProps = this.deepClone(getFHTableProp());\n this.queryParams = { 'saasId': 'ff5a67337b6611e89feafa163eb3e537', 'userId': '27775e0e494447bf94a5292252262870' };\n this.getTableList();\n this.formItem = this.deepClone(getFHFormQueryObj());\n // 获取终端类型\n this.queryDictionary();\n this.tempQueryParams = this.deepClone(this.queryParams);\n this.formModel = this.deepClone(getFormDataObj());\n },\n // 获取终端类型\n queryDictionary() {\n api_testPage.childDictList({ type: 'sm_terminal_type' }).then(res => {\n const options = res.map(({ name, value }) => ({\n name: name,\n value: value\n }));\n this.$set(this.formItem.filterArr[3], 'options', options);\n }).catch(err => { console.log(err); });\n },\n queryTableData(queryParams) {\n return api_testPage.queryPlatformList({ params: queryParams });\n },\n confirmClick(item) {\n this.$set(item, 'showDialog', false);\n },\n cancelClick(item) {\n this.$set(item, 'showDialog', false);\n },\n btnClick(item) {\n this.getData();\n this.$set(item, 'showDialog', true);\n }\n }\n};\n</scr","ipt>"],customWidth:['\n<template>\n <div id="CustomWDialog">\n <el-button size="small" type="primary" @click="btnClick(dialogObj)">自定义宽度的弹框</el-button>\n <FHDialog v-if="dialogObj.showDialog" :dialog-obj="dialogObj" @confirmClick="confirmClick(dialogObj)" @cancelClick="cancelClick(dialogObj)">\n <p>通过传width来设置弹框的宽度</p>\n </FHDialog>\n </div>\n</template>',"\n\n<scr>\nexport default {\n // 组件名称\n name: 'CustomWDialog',\n // 组件状态值\n data() {\n return {\n dialogObj: {\n title: '自定义宽度的弹框',\n width: '600px'\n }\n };\n },\n methods: {\n confirmClick(item) {\n this.$set(item, 'showDialog', false);\n },\n cancelClick(item) {\n this.$set(item, 'showDialog', false);\n },\n btnClick(item) {\n this.$set(item, 'showDialog', true);\n }\n }\n};\n</scr","ipt>\n"]},y={local:['\n<template>\n <WebIframePage id="WebFHIframeTest" :localhost-url="localhostUrl" />\n</template>',"\n\n<script>\nexport default {\n// 组件名称\nname: 'WebFHIframeTest',\n// 组件状态值\ndata() {\n return {\n // 本地调试的时候使用想要去的那个系统,这里注意点是需要把要跳转的系统本地启动起来,并且登录一下,否则会跳转到登录\n // 这里我本地启动了crm的项目跑的\n localhostUrl: 'http://localhost:8082/'\n };\n}\n};\n</scr","ipt>"],normal:['\n<template>\n <WebIframePage id="WebFHIframeTest" />\n</template>',"\n\n<script>\nexport default {\n// 组件名称\nname: 'WebFHIframeTest',\n};\n</scr","ipt>"]},C=['\n<template>\n <div>\n <FilterQuery :model="formItem" @formItemChange="formItemChange" @searchClick="searchClick" @resetClick="resetClick" />\n <div class="table-btn-group">\n <el-button type="primary" icon="el-icon-plus" size="small" @click="addClick">新增</el-button>\n <el-button type="danger" size="small" @click="delClick">批量删除</el-button>\n </div>\n <FHDialog v-if="dialogObj.showDialog" :dialog-obj="dialogObj" @cancelClick="cancel(dialogObj)">\n <CommonForm ref="commonForm" :model="formModel" submit-title="确定" @changeFormItem="changeFormItem" @submitForm="submitForm(dialogObj)" @cancel="cancel(dialogObj)" />\n </FHDialog>\n <FHTable\n id="tableOne"\n ref="FHTable"\n :has-checkbox="true"\n :max-height="maxHeight"\n :query-table-data="queryTableData"\n :query-params="queryParams"\n :table-props="tableProps"\n list-map-name="smSaasPlatformList"\n @handleTableList="handleTableList"\n @handleTableClick="handleTableClick"\n @handleSelectionChange="handleSelectionChange"\n />\n </div>\n</template>',"\n<script>\n\nimport { getFHTableProp, getFHFormQueryObj, getFormDataObj, platNameObj } from '@/views/testPage/dataSource/testPageData'; // 数据源文件,根据自己的页面去写\nimport api_testPage from '@/api/api_testPage'; // 数据接口文件名,根据自己的页面去写\nimport { brightenKeyword } from 'fhrons-pc/plugins/tool/func'; // 改变颜色的方法\nimport { queryTableMixin,calculateTableHeightMixin } from 'fhrons-pc/plugins/mixins'; // 封装了table列表的公共属性以及通用方法\nexport default {\n mixins: [queryTableMixin,calculateTableHeightMixin],\n data() {\n return {\n dialogObj: {\n title: '新增',\n showDialog: false,\n size: 'small',\n hiddenFooterBtn: true\n },\n idArr: [],\n formModel: {}\n };\n },\n // 侦听器\n watch: {\n list: {\n handler(val) {\n this.tableProps['data'] = this.deepClone(val);\n this.maxHeight = this.getTableHeight('tableOne');\n }\n }\n },\n created() {\n this.getData();\n },\n methods: {\n getData() {\n this.formItem = this.deepClone(getFHFormQueryObj());\n // 获取终端类型筛选项,动态传入\n this.queryDictionary();\n this.tableProps = this.deepClone(getFHTableProp());\n this.queryParams = { 'saasId': 'ff5a67337b6611e89feafa163eb3e537', 'userId': '27775e0e494447bf94a5292252262870' };\n this.tempQueryParams = this.deepClone(this.queryParams);\n this.getTableList();\n this.formModel = this.deepClone(getFormDataObj());\n },\n // 处理平台码\n handlePlatCode(name) {\n if (platNameObj[name]) {\n return platNameObj[name];\n }\n return '未知的平台码';\n },\n // 获取终端类型\n queryDictionary() {\n // api_testPage.childDictList({ type: 'sm_terminal_type' }).then(res => {\n // // 处理成options需要的数据源格式\n // const options = res.map(({ name, value }) => ({\n // name: name,\n // value: value\n // }));\n // // 处理完后塞回数据源\n // this.$set(this.formItem.filterArr[3], 'options', options);\n // }).catch(err => { console.log(err); });\n },\n // 处理table表里面的点击,例如查看详情,或者删除等按钮的事件\n queryTableData(queryParams) {\n return api_testPage.queryPlatformList({ params: queryParams });\n },\n // 接口请求回来的数据\n handleTableList(list) {\n list.forEach(item => {\n const operates = [{ type: 'terminalManage', text: '终端管理' }];\n if (!item.id.includes('_')) {\n const arr = [\n { type: 'edit', text: '编辑' },\n { type: 'relevance', text: '关联机构' },\n { type: 'delete', text: '删除' }\n ];\n item['operates'] = [{ btns: operates.concat(arr) }];\n }\n if (item.platformCode) {\n item.platformCode = this.handlePlatCode(item.platformCode);\n }\n });\n this.list = this.deepClone(list);\n },\n handleTableClick(item) {\n const row = item.row || {};\n if (item.type === 'delete') {\n // 删除\n const tempList = this.list.filter(l => l.id !== row.id);\n this.list = this.deepClone(tempList);\n } else if (item.type === 'terminalManage') {\n // 终端管理\n } else if (item.type === 'edit') {\n // 编辑\n this.formModel['form'] = row;\n this.$set(this.dialogObj, 'showDialog', true);\n } else if (item.type === 'relevance') {\n // 关联机构\n }\n },\n handleSelectionChange(val) {\n console.log('handleSelectionChange', val);\n this.idArr = val.map(({ id }) => (id));\n },\n // 表单(新增,编辑)\n changeFormItem(formObj) {\n this.formModel.form[formObj.prop] = formObj.val;\n },\n // 新增\n addClick(item) {\n this.$set(item, 'showDialog', true);\n this.resetForm();\n },\n // 删除\n delClick() {\n // 批量删除\n this.list = this.list.filter(l => this.idArr.every(id => l.id !== id));\n },\n close(item) {\n this.$set(item, 'showDialog', false);\n },\n // 取消\n cancel(item) {\n this.resetForm();\n this.close(item);\n },\n // 重置数据\n resetForm() {\n this.formModel = this.deepClone(getFormDataObj());\n this.$nextTick(() => {\n // 重置表单数据\n if (this.$refs && this.$refs['commonForm']) {\n this.$refs['commonForm'].resetFormValidate();\n }\n });\n },\n // 提交\n submitForm(item) {\n this.formModel.form['id'] = this.list.length + '1';\n this.list = [this.formModel.form].concat(this.list);\n const tablePropArr = this.tableProps['tableProp'];\n const tempArr = tablePropArr.filter(t => t.type === 'htmlType');\n this.list.forEach(item => {\n tempArr.forEach(t => {\n const xssProp = 'xss' + t.prop;\n item[xssProp] = item[t.prop] ? brightenKeyword(t.color || '#1677ff', item[t.prop]) : '--';\n });\n Object.keys(item).forEach(k => { item[k] = item[k] || '--'; });\n });\n this.handleTableList(this.list);\n this.close(item);\n }\n }\n};\n</scr","ipt>"],x="\nexport function getFHTableProp() {\n return {\n data: [],\n tableProp: [\n {\n label: '平台名称',\n prop: 'platformName',\n type: 'htmlType',\n fixed: 'left'\n },\n {\n label: '平台编码',\n prop: 'platformCode'\n },\n {\n label: '平台类型',\n prop: 'plattype'\n },\n {\n label: '终端类型',\n prop: 'terminalName'\n },\n {\n label: '系统名称',\n prop: 'systemName'\n },\n {\n label: '系统编码',\n prop: 'systemCode'\n },\n {\n label: '租户名称',\n prop: 'saasName',\n type: 'htmlType',\n labelWidth: '120',\n color: '#f10'\n },\n {\n label: '租户编码',\n prop: 'saasCode'\n },\n {\n label: '操作',\n prop: 'operates',\n type: 'buttons',\n btnType: 'text',\n fixed: 'right',\n labelWidth: '240'\n }\n ]\n };\n}\nexport function getFHFormQueryObj() {\n return {\n filterButtons: [\n {\n label: '查询',\n type: 'primary',\n click: 'searchClick'\n },\n {\n label: '重置',\n click: 'resetClick'\n }\n ],\n // isNotFilterButtons: true,\n form: {\n platformName: '',\n platformCode: '',\n plattype: '',\n terminalName: null,\n systemName: '',\n systemCode: '',\n saasName: '',\n saasCode: ''\n },\n filterArr: [\n { label: '平台名称', prop: 'platformName', val: '' },\n { label: '平台编码', prop: 'platformCode', val: '' },\n { label: '平台类型', prop: 'plattype', val: '' },\n { label: '终端类型', prop: 'terminalName', type: 'select', val: '', options: [] },\n { label: '系统名称', prop: 'systemName', val: '' },\n { label: '系统编码', prop: 'systemCode', val: '' },\n { label: '租户名称', prop: 'saasName', val: '' },\n { label: '租户编码', prop: 'saasCode', val: '' }\n ]\n };\n}\n// 表单提交\nexport function getFormDataObj() {\n return {\n form: {\n platformName: '',\n platformCode: '',\n plattype: '',\n terminalName: '',\n systemName: '',\n systemCode: '',\n saasName: '',\n saasCode: ''\n },\n rules: {\n platformName: nameRule\n },\n formArr: [\n { label: '平台名称', prop: 'platformName', val: '' },\n { label: '平台编码', prop: 'platformCode', val: '' },\n { label: '平台类型', prop: 'plattype', val: '' },\n { label: '终端类型', prop: 'terminalName', type: 'select', val: '', options: [{ name: 'WEB端', value: '1' }, { name: 'App', value: '2' }] },\n { label: '系统名称', prop: 'systemName', val: '' },\n { label: '系统编码', prop: 'systemCode', val: '' },\n { label: '租户名称', prop: 'saasName', val: '' },\n { label: '租户编码', prop: 'saasCode', val: '' }\n ]\n };\n}\nexport const platNameObj = {\n '1': '懒掌柜1',\n '2': '懒掌柜2',\n '3': '懒掌柜3',\n '111838': '新平台',\n '56': '创作者中心',\n '55': '保单服务',\n '54': '规则服务',\n '53': '同屏讲解',\n '51': '新团险',\n '111421': '邮核系统',\n '111420': '客户数字资产',\n '111418': 'CRM',\n '111304': '销售管理测试'\n};\n",_=['\n<template>\n <div id="">\n <UploadFile :upload-props="imgProps" :default-file-list="defaultFileList" :target="target" :project="project" @uploadSuccess="uploadSuccess" @removeFile="removeFile" />\n </div>\n</template>\n',"\n<script>\n\nexport default {\n data() {\n return {\n imgProps: {\n ...\n disabled:true\n ...\n },\n target:\"tencent\", // 可选值 tencent amazon ,表示使用腾讯还是亚马逊的上传\n project:\"0\", // 可选值 0 1 2 所属项目 0-全局 1-课程 2-开放平台\n defaultFileList: [\n { url: 'https://frcdap-dev-1251973116.cos.ap-shanghai-fsi.myqcloud.com/fhronspc/img/1670227671997/352781669776922_.pic.jpg', \n uid: '1670227671997', name: '352781669776922_.pic.jpg' }\n ]\n };\n },\n methods: {\n ...\n }\n};\n</scr","ipt>"],w=['\n<template>\n <div id="">\n <UploadFile :upload-props="imgProps" :default-file-list="defaultFileList" :target="target" :project="project" @uploadSuccess="uploadSuccess" @removeFile="removeFile" />\n </div>\n</template>\n',"\n<script>\n\nexport default {\n data() {\n return {\n imgProps: {\n acceptAttribute: '.jpg,.png', // 限制文件类型,需传入字符串类型 示例:acceptAttribute:'.PDF,.jpeg'\n fileSize: 5, // 限制文件大小,需传入数字类型\n type: 'img', // 放在腾讯云的哪个文件夹下 video img file\n subTip: '只能上传jpg/png文件,且不超过5M', // 提示文字\n limit: 1, // 文件上传的总数限制\n listType: 'picture-card',\n limitWidth: 5000, // 图片的宽度限制\n limitHeight: 5000 // 图片的高度限制\n },\n target:\"tencent\", // 可选值 tencent amazon ,表示使用腾讯还是亚马逊的上传\n project:\"0\", // 可选值 0 1 2 所属项目 0-全局 1-课程 2-开放平台\n defaultFileList: [\n { url: 'https://frcdap-dev-1251973116.cos.ap-shanghai-fsi.myqcloud.com/fhronspc/img/1670227671997/352781669776922_.pic.jpg', \n uid: '1670227671997', name: '352781669776922_.pic.jpg' }\n ]\n };\n },\n methods: {\n // 图片上传\n uploadSuccess(fileList, data) {\n console.log(data, 'uploadSuccess');\n this.defaultFileList = fileList;\n },\n removeFile(data) {\n console.log(data, 'removeFile');\n this.defaultFileList = data;\n }\n }\n};\n</scr","ipt>"],k=['\n<template>\n <div id="">\n <UploadFile :upload-props="avatarProps" :default-file-list="defaultFileList" :target="target" :project="project" @uploadSuccess="uploadSuccess" @removeFile="removeFile" />\n </div>\n</template>\n',"\n<script>\n\nexport default {\n data() {\n return {\n avatarProps: {\n showFileList: false,\n acceptAttribute: '.jpg,.png', // 限制文件类型,需传入字符串类型 示例:acceptAttribute:'.PDF,.jpeg'\n fileSize: 5, // 限制文件大小,需传入数字类型\n type: 'img', // 放在腾讯云的哪个文件夹下 video img file\n subTip: '只能上传jpg/png文件,且不超过5M', // 提示文字\n limitWidth: 5000, // 图片的宽度限制\n limitHeight: 5000, // 图片的高度限制'\n uploadType: 'avatar' // 头像类型\n },\n target:\"tencent\", // 可选值 tencent amazon ,表示使用腾讯还是亚马逊的上传\n project:\"0\", // 可选值 0 1 2 所属项目 0-全局 1-课程 2-开放平台\n defaultFileList: [{url: 'https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/header.png'}]\n };\n },\n methods: {\n // 图片上传\n uploadSuccess(fileList, data) {\n console.log(data, 'uploadSuccess');\n this.defaultFileList = fileList;\n },\n removeFile(data) {\n console.log(data, 'removeFile');\n this.defaultFileList = data;\n }\n }\n};\n</scr","ipt>"],T=['\n<template>\n <div id="">\n <UploadFile :upload-props="picCardProps" :default-file-list="defaultFileList" :target="target" :project="project" @uploadSuccess="uploadSuccess" @removeFile="removeFile" />\n </div>\n</template>\n',"\n<script>\n\nexport default {\n data() {\n return {\n picCardProps: {\n acceptAttribute: '.jpg,.png',\n fileSize: 5,\n type: 'img',\n subTip: '只能上传jpg/png文件,且不超过5M',\n limit: 999,\n limitWidth: 5000,\n limitHeight: 5000,\n listType: 'picture-card',\n multiple: true\n },\n target:\"tencent\", // 可选值 tencent amazon ,表示使用腾讯还是亚马逊的上传\n project:\"0\", // 可选值 0 1 2 所属项目 0-全局 1-课程 2-开放平台\n defaultFileList: [\n { url: 'https://frcdap-dev-1251973116.cos.ap-shanghai-fsi.myqcloud.com/fhronspc/img/1670227671997/352781669776922_.pic.jpg', \n uid: '1670227671997', name: '352781669776922_.pic.jpg' }\n ],\n };\n },\n methods: {\n // 图片上传\n uploadSuccess(fileList, data) {\n console.log(data, 'uploadSuccess');\n this.defaultFileList = fileList;\n },\n removeFile(data) {\n console.log(data, 'removeFile');\n this.defaultFileList = data;\n }\n }\n};\n</scr","ipt>"],j=['\n<template>\n <div id="">\n <UploadFile :upload-props="fileListWebProps" :default-file-list="defaultFileList" :target="target" :project="project" @uploadSuccess="uploadSuccess" @removeFile="removeFile" />\n </div>\n</template>',"\n<script>\n\nexport default {\n data() {\n return {\n // 不支持预览的列表形式\n fileListWebProps: {\n methods: 'formData',\n acceptAttribute: '.jpg,.png,.txt,.js,.xlsx,.xls',\n fileSize: 5,\n subTip: '只能上传jpg/png/txt/xlsx/xls文件,且不超过5M',\n limit: 999,\n limitWidth: 5000,\n limitHeight: 5000,\n className: 'pic-list-box',\n btnClass: 'ta-l'\n },\n target:\"tencent\", // 可选值 tencent amazon ,表示使用腾讯还是亚马逊的上传\n project:\"0\", // 可选值 0 1 2 所属项目 0-全局 1-课程 2-开放平台\n defaultFileList: [\n { url: 'https://frcdap-dev-1251973116.cos.ap-shanghai-fsi.myqcloud.com/fhronspc/img/1670227671997/352781669776922_.pic.jpg', \n uid: '1670227671997', name: '352781669776922_.pic.jpg' }\n ],\n queryPortUrl: '/funapi/insure/channelAgent/uploadAgentReportDataByChannel',\n queryParams: {},\n };\n },\n created() {\n this.queryParams = { deptInnerCode: '1018018002001', deptName: '联兴山东济南历城区服务部', platformSaasId: 'ff5a67337b6611e89feafa163eb3e537', saasId: 'ff5a67337b6611e89feafa163eb3e537', channel: 'C' };\n },\n methods: {\n // 图片上传\n uploadSuccess(fileList, data) {\n if(this.fileListWebProps?.methods !== 'formData') {\n this.defaultFileList = fileList;\n } else {\n // do something\n }\n },\n removeFile(data) {\n console.log(data, 'removeFile');\n this.defaultFileList = data;\n }\n }\n};\n</scr","ipt>"],P=['\n<template>\n <div id="">\n <UploadFile :upload-props="fileListProps" :default-file-list="defaultFileList" :target="target" :project="project" @uploadSuccess="uploadSuccess" @removeFile="removeFile" />\n </div>\n</template>',"\n<script>\n\nexport default {\n data() {\n return {\n // 不支持预览的列表形式\n fileListProps: {\n acceptAttribute: '.jpg,.png,.txt,.js,.xlsx,.xls',\n fileSize: 5,\n subTip: '只能上传jpg/png/txt/xlsx/xls文件,且不超过5M',\n limit: 999,\n limitWidth: 5000,\n limitHeight: 5000,\n className: 'pic-list-box',\n btnClass: 'ta-l'\n },\n target:\"tencent\", // 可选值 tencent amazon ,表示使用腾讯还是亚马逊的上传\n project:\"0\", // 可选值 0 1 2 所属项目 0-全局 1-课程 2-开放平台\n defaultFileList: [\n { url: 'https://frcdap-dev-1251973116.cos.ap-shanghai-fsi.myqcloud.com/fhronspc/img/1670227671997/352781669776922_.pic.jpg', \n uid: '1670227671997', name: '352781669776922_.pic.jpg' }\n ],\n queryPortUrl: '/funapi/insure/channelAgent/uploadAgentReportDataByChannel',\n queryParams: {},\n };\n },\n created() {\n this.queryParams = { deptInnerCode: '1018018002001', deptName: '联兴山东济南历城区服务部', platformSaasId: 'ff5a67337b6611e89feafa163eb3e537', saasId: 'ff5a67337b6611e89feafa163eb3e537', channel: 'C' };\n },\n methods: {\n // 图片上传\n uploadSuccess(fileList, data) {\n console.log(data, 'uploadSuccess');\n if(this.fileListProps?.methods !== 'formData') {\n this.defaultFileList = fileList;\n } else {\n // do something\n }\n },\n removeFile(data) {\n console.log(data, 'removeFile');\n this.defaultFileList = data;\n }\n }\n};\n</scr","ipt>"],S=['\n<template>\n <div id="">\n <UploadFile :upload-props="picListProps" :default-file-list="defaultFileList" :target="target" :project="project" @uploadSuccess="uploadSuccess" @removeFile="removeFile" />\n </div>\n</template>',"\n<script>\n\nexport default {\n data() {\n return {\n // 缩略图\n picListProps: {\n acceptAttribute: '.jpg,.png', // 限制文件类型,需传入字符串类型 示例:acceptAttribute:'.PDF,.jpeg'\n fileSize: 5, // 限制文件大小,需传入数字类型\n type: 'img', // 放在腾讯云的哪个文件夹下 video img file\n subTip: '只能上传jpg/png文件,且不超过5M', // 提示文字\n limit: 999, // 文件上传的总数限制\n limitWidth: 5000, // 如果为图片,图片的宽度限制\n limitHeight: 5000, // 如果为图片,图片的高度限制\n drag: true,\n className: 'pic-list-box',\n listType: 'picture' // 文件列表类型为图片\n },\n target:\"tencent\", // 可选值 tencent amazon ,表示使用腾讯还是亚马逊的上传\n project:\"0\", // 可选值 0 1 2 所属项目 0-全局 1-课程 2-开放平台\n defaultFileList: [\n { url: 'https://frcdap-dev-1251973116.cos.ap-shanghai-fsi.myqcloud.com/fhronspc/img/1670227671997/352781669776922_.pic.jpg', \n uid: '1670227671997', name: '352781669776922_.pic.jpg' }\n ]\n };\n },\n methods: {\n // 图片上传\n uploadSuccess(fileList, data) {\n console.log(data, 'uploadSuccess');\n this.defaultFileList = fileList;\n },\n removeFile(data) {\n console.log(data, 'removeFile');\n this.defaultFileList = data;\n }\n }\n};\n</scr","ipt>"],F=['\n<template>\n <div id="">\n <UploadFile :need-cropper="needCropper" :upload-props="cropperImgProps" :default-file-list="defaultFileList" :target="target" :project="project" @uploadSuccess="uploadSuccess" @removeFile="removeFile" />\n </div>\n</template>',"\n<script>\n\nexport default {\n data() {\n return {\n needCropper: true,\n // 缩略图\n cropperImgProps: {\n showFileList: false,\n acceptAttribute: '.jpg,.png', // 限制文件类型,需传入字符串类型 示例:acceptAttribute:'.PDF,.jpeg'\n fileSize: 5, // 限制文件大小,需传入数字类型\n type: 'img', // 放在腾讯云的哪个文件夹下 video img file\n subTip: '只能上传jpg/png文件,且不超过5M', // 提示文字\n uploadType: 'avatar' // 表示头像上传方式\n },\n target:\"tencent\", // 可选值 tencent amazon ,表示使用腾讯还是亚马逊的上传\n project:\"0\", // 可选值 0 1 2 所属项目 0-全局 1-课程 2-开放平台\n defaultFileList: [{url: 'https://dop-pro-1251973116.file.myqcloud.com/upload/img/funzg/header.png'}]\n };\n },\n methods: {\n // 图片上传\n uploadSuccess(fileList, data) {\n console.log(data, 'uploadSuccess');\n this.defaultFileList = fileList;\n },\n removeFile(data) {\n console.log(data, 'removeFile');\n this.defaultFileList = data;\n }\n }\n};\n</scr","ipt>"],O=['\n<template>\n <div id="">\n <UploadFile :need-cropper="needCropper" :upload-props="cropperImgListProps" :default-file-list="defaultFileList" :target="target" :project="project" @uploadSuccess="uploadSuccess" @removeFile="removeFile" />\n </div>\n</template>\n',"\n<script>\n\nexport default {\n data() {\n return {\n cropperImgListProps: {\n acceptAttribute: '.jpg,.png',\n fileSize: 5,\n type: 'img',\n subTip: '只能上传jpg/png文件,且不超过5M',\n limit: 999,\n listType: 'picture-card',\n multiple: true\n },\n target:\"tencent\", // 可选值 tencent amazon ,表示使用腾讯还是亚马逊的上传\n project:\"0\", // 可选值 0 1 2 所属项目 0-全局 1-课程 2-开放平台\n needCropper: true,\n defaultFileList: [\n { url: 'https://frcdap-dev-1251973116.cos.ap-shanghai-fsi.myqcloud.com/fhronspc/img/1670227671997/352781669776922_.pic.jpg', \n uid: '1670227671997', name: '352781669776922_.pic.jpg' }\n ],\n };\n },\n methods: {\n // 图片上传\n uploadSuccess(fileList, data) {\n console.log(fileList, data, 'uploadSuccess');\n this.defaultFileList = fileList;\n },\n removeFile(data) {\n console.log(data, 'removeFile');\n this.defaultFileList = data;\n }\n }\n};\n</scr","ipt>"],L=['\n<template>\n <div id="">\n <LazyPDFViewer :src="pdfUrl" />\n </div>\n</template>',"\n<script>\nexport default {\n name: 'LazyPDFViewerTest',\n components: { LazyPDFViewer },\n data() {\n return {\n pdfUrl: 'https://upload-10051630.file.myqcloud.com/upload/cbs/product/riskFiles/205611B019/50702A67DC9648C7B837A69B56673F25.pdf'\n };\n }\n};\n</scr","ipt>\n"],E=['\n<template>\n <div id="InputEnterTest">\n <p class="line-height30">输入文字后可以尝试一下回车搜索</p>\n <el-input v-model.trim="keyword" placeholder="请输入" size="small" class="input-with-select" style="width:400px" :clearable="true" @keyup.enter.native="searchClick">\n <el-button slot="append" size="small" icon="el-icon-search" @click="searchClick" />\n </el-input>\n </div>\n</template>',"\n\n<script>\nexport default {\n // 组件名称\n name: 'InputEnterTest',\n // 局部注册的组件\n components: {},\n // 组件参数 接收来自父组件的数据\n props: {},\n // 组件状态值\n data() {\n return {\n keyword: ''\n };\n },\n methods: {\n searchClick() {\n // do something\n alert('正在搜索');\n }\n }\n};\n</scr","ipt>\n"],$=['\n<template>\n <div id="RichTextEditorTest">\n <RichTextEditor v-model="model.docContent" :cos-bucket="cosBucket" :cos-region="cosRegion" :readonly="false" :word-count-max="100" @saveContent="saveContent" @input="handleInput" @exceed="handleExceed" />\n </div>\n</template>',"\n<script>\nimport { RichTextEditor } from '@/components';\nexport default {\n name: 'RichTextEditorTest',\n components: { RichTextEditor },\n data() {\n return {\n model: {\n docContent: ''\n },\n value: '',\n cosBucket: process.env.VUE_APP_COS_UPLOAD\n };\n },\n watch: {\n value(newVal) {\n console.log(newVal);\n }\n },\n mounted() {\n setTimeout(_ => {\n this.mockContent();\n }, 1000);\n },\n methods: {\n mockContent() {\n setTimeout(_ => {\n this.model.docContent = ",'<!DOCTYPE html>\n <html>\n <head>\n </head>\n <body>\n <p>asdasdasdawdasdasdasdadwdawdsdzxd</p>\n <p style="text-align: center;"><span style="color: #ba372a;"><strong>asdawdadsadsd</strong></span></p>\n <p style="text-align: right;"><span style="color: #ba372a;"><strong>asdawdasd</strong></span></p>\n </body>\n </html>',";\n }, 1000);\n },\n saveContent(htmlcontent) {\n alert(htmlcontent);\n console.log(htmlcontent);\n },\n /*\n @html 富文本内容\n @content 纯文本内容\n @editor 编辑器实例\n */\n handleExceed(html, content, editor) {\n console.log('超出部分事件', arguments);\n },\n handleInput(html, content, editor) {\n console.log('输入事件', arguments);\n }\n }\n}\n</scr","ipt>\n"],I="\nexport default {\n common: {\n systemName: 'FHRONS PC',\n mainSys: 'SAAS',\n username: 'username:',\n password: 'password:',\n save: 'Save',\n edit: 'Edit',\n update: 'Update',\n delete: 'Delete',\n forever: 'Forever',\n expired: 'Expired'\n },\n login: {\n login: 'Login',\n lTip: 'Hello!',\n subTip: 'Welcome to our open platform',\n keepPassword: 'Keep Password',\n lostPassword: 'Lost Password?',\n phonePlaceholder: 'Please enter your phone number',\n pwdPlaceholder: 'Please enter a password',\n leftTip: 'CFSG FHRONS, Your side of the financial insurance service butler'\n },\n sidebar: {\n dashboard: 'dashboard',\n noData: 'noData'\n }\n};\n",D="\nexport default {\n common: {\n systemName: 'PC组件库系统',\n mainSys: '榕数开放平台',\n username: '用户名:',\n password: '密码:',\n save: '保存',\n edit: '编辑',\n update: '更新',\n delete: '删除',\n forever: '永久',\n expired: '过期'\n },\n login: {\n login: '登录',\n lTip: '您好!',\n subTip: '欢迎登录泛华榕数开放平台',\n keepPassword: '记住密码',\n lostPassword: '忘记密码?',\n phonePlaceHolder: '请输入手机号',\n pwdPlaceHolder: '请输入密码',\n leftTip: '泛华榕数,您身边的金融保险服务管家'\n },\n sidebar: {\n dashboard: '首页',\n noData: '无数据'\n }\n};\n",A="\nexport default {\n // 移动端\n login: {\n password: '密碼',\n userName: '用戶名',\n placeHolder: '請輸入',\n firstLoginTip: '首次登錄,請設置登錄密碼',\n phonePlaceHolder: '請輸入手機號',\n phoneOrAgentCodePlaceHolder: '請輸入手機號或工號',\n lostPassword: '忘記密碼',\n namePlaceHolder: '請輸入用戶名',\n codePlaceHolder: '請輸入驗證碼',\n pwdPlaceHolder: '請輸入密碼',\n passwordTab: '密碼登錄',\n codeTab: '驗證碼登錄',\n newUser: '新用戶註冊',\n tip: '即代表同意',\n login: '登錄',\n register: '註冊'\n },\n sidebar: {\n dashboard: '首页',\n noData: '无数据'\n }\n};\n",N="\nimport Vue from 'vue';\nimport VueI18n from 'vue-i18n';\nimport ElementUI from 'element-ui';\nimport ElementLocale from 'element-ui/lib/locale';\nimport elementEnLocale from 'element-ui/lib/locale/lang/en'; // element-ui lang\nimport elementZhLocale from 'element-ui/lib/locale/lang/zh-CN';// element-ui lang\nimport elementZhTLocale from 'element-ui/lib/locale/lang/zh-TW';// element-ui lang\nimport axios from 'axios';\nimport { getStorage } from 'fhrons-pc/plugins/tool/storage';\nimport { loadJavaScript } from 'fhrons-pc/plugins/tool/func';\nVue.use(ElementUI);\nVue.use(VueI18n);\nimport zh_T from '@/lang/zh_T';\nimport zh_CN from '@/lang/zh_CN';\nimport en_US from '@/lang/en_US';\n\nconst srcObj = {\n zh_CN: process.env.VUE_APP_zh_CN,\n zh_T: process.env.VUE_APP_zh_T,\n en_US: process.env.VUE_APP_en_US\n};\n\nconst messages = {\n en_US: {\n ...elementEnLocale,\n en_US\n },\n zh_CN: {\n ...elementZhLocale,\n zh_CN\n },\n zh_T: {\n ...elementZhTLocale,\n zh_T\n }\n};\n\nconst i18n = new VueI18n({\n silentTranslationWarn: true,\n locale: getStorage({ commonKey: 'language' }) || 'zh_CN',\n messages\n});\n\n// 这里需要覆盖Element本地化函数,不然会冲突\nElementLocale.i18n((key, value) => i18n.t(key, value));\nexport default i18n;\n\n/**\n * 更改vueI18n实例\n * @param lang 'zh_CN'、'en_US'\n */\nfunction setI18nLanguage(lang) {\n i18n.locale = lang;\n axios.defaults.headers.common['language'] = lang;\n document.querySelector('html').setAttribute('lang', lang);\n return lang;\n}\n\n/**\n * 动态加载语言\n * @param path 当前路径(对应lang下文件夹名)\n */\nconst ELEMENT_LANG = {\n zh_CN: elementZhLocale,\n zh_T: elementZhTLocale,\n en_US: elementEnLocale\n};\nconst loadedLanguages = [];\n\nexport function loadLanguageAsync(lang, langUrl) {\n // If the language was already loaded\n if (loadedLanguages.includes(lang)) {\n return Promise.resolve(setI18nLanguage(lang));\n }\n loadJavaScript(srcObj[lang], (e) => {\n if (e !== 'err') {\n const _temp = Object.assign(language, ELEMENT_LANG[lang]);\n console.log('_temp=================6=6=6=6=6=6=6=6=6=6=', _temp, lang);\n i18n.setLocaleMessage(lang, _temp);\n loadedLanguages.push(lang);\n setI18nLanguage(lang);\n }\n });\n}\n",H="\nimport Vue from 'vue';\nimport VueI18n from 'vue-i18n';\nimport elementEnLocale from 'element-ui/lib/locale/lang/en'; // element-ui lang\nimport elementZhLocale from 'element-ui/lib/locale/lang/zh-CN';// element-ui lang\nimport enLocale from './en_US';\nimport zhLocale from './zh_CN';\nimport { getStorage } from 'fhrons-pc/plugins/tool/storage';\nVue.use(VueI18n);\nconst messages = {\n en_US: {\n ...enLocale,\n ...elementEnLocale\n },\n zh_CN: {\n ...zhLocale,\n ...elementZhLocale\n }\n};\n\nconst i18n = new VueI18n({\n locale: getStorage({ commonKey: 'language' }) || 'zh_CN',\n messages\n});\n\nexport default i18n;\n",M="\nimport Vue from 'vue';\nimport i18n from 'fhrons-pc/plugins/lang';\n\nconst vm = new Vue({\n router,\n store,\n i18n,\n render: h => h(App)\n}).$mount('#app');\n",z="\nimport Vue from 'vue';\nimport i18n from 'fhrons-pc/plugins/vantLang';\n\nconst vm = new Vue({\n router,\n store,\n i18n,\n render: h => h(App)\n}).$mount('#app');\n",R="\n// 开始\nrouter.beforeEach(async(to, from, next) => {\n if (to.path !== from.path) {\n NProgress.start();\n }\n // 国际化语言\n const lang = getStorage({ commonKey: 'language' }) || 'zh_CN';\n await loadLanguageAsync(lang);\n\n // dosomething。。。。。。\n NProgress.done();\n});\n",V="\n//template 需要使用 {{}} 将 name包装起来\n{{$t('save')}}\n// js\nthis.$t('save')\n",q='\n<template>\n <div id="Login" class="flex">\n <div class="flex1 flex-column-center shade-panel">\n <div class="ta-c">\n \x3c!-- <svg-icon class-name="logo" icon-class="pifu" /> --\x3e\n <h2 class="fw400">{{ $t(\'common.mainSys\') }}-{{ $t(\'common.systemName\') }}</h2>\n <p class="ft16 fw400 ls1">{{ $t(\'login.leftTip\') }}</p>\n </div>\n </div>\n <div class="login-box flex-center-vertical">\n <div class="login-panel">\n <el-form ref="loginForm" :model="loginFields" :rules="rules" label-position="top">\n <h3 class="ft24 line-height24 mb16 c-233 fw-500">\n {{ $t(\'login.lTip\') }}\n </h3>\n <p class="ft16 c-233 line-height16 fw400"> {{ $t(\'login.subTip\') }}</p>\n <el-form-item :label="$t(\'common.username\')" prop="username">\n <el-input v-model="loginFields.username" class="login-input" type="tel" auto-complete="off" maxlength="11" :placeholder="$t(\'login.phonePlaceholder\')" />\n </el-form-item>\n <el-form-item :label="$t(\'common.password\')" prop="password">\n <el-input v-model="loginFields.password" show-password class="login-input" type="password" auto-complete="off" :placeholder="$t(\'login.pwdPlaceholder\')" />\n </el-form-item>\n <div class="full-width">\n <el-button class="login-btn full-width" type="primary" :loading="inLoading" @click.native.prevent="submitHandler">\n {{ $t(\'login.login\') }}\n </el-button>\n </div>\n <div class="full-width flex-between-center mt30">\n <el-checkbox v-model="isRember" class="ft12 height12 c-233"> {{ $t(\'login.keepPassword\') }}</el-checkbox>\n <span class="c-233 pointer" size="mini" @click="handleForget">\n {{ $t(\'login.lostPassword\') }}\n </span>\n </div>\n </el-form>\n <ResetPwd v-if="visible" :visible.sync="visible" />\n </div>\n </div>\n </div>\n</template>\n',B='\n<template>\n <el-dropdown v-if="showLang" class="ml24" trigger="click" @command="handleSetLanguage">\n <span class="pointer c-303133">\n {{ locale || \'\' }}\n <i class="el-icon-caret-bottom el-icon--right c-c0c4cc" />\n </span>\n <el-dropdown-menu slot="dropdown">\n <el-dropdown-item v-for="item in langs" :key="item.value" :command="item.value" :disabled="item.label === locale">\n {{ item.label }}\n </el-dropdown-item>\n </el-dropdown-menu>\n </el-dropdown>\n</template>\n',U="\ncreated() {\n this.initLanguage();\n},\nmethods: {\n initLanguage() {\n const lang = getStorage({ commonKey: 'language' }) || 'zh_CN';\n const langObj = this.langs.find(l => l.value === lang);\n this.locale = langObj.label;\n },\n handleSetLanguage(lang) {\n this.$i18n.locale = lang;\n this.$store.commit('SET_LANGUAGE', lang);\n const langObj = this.langs.find(l => l.value === lang);\n this.locale = langObj.label;\n // 重刷页面\n window.location.reload();\n }\n}\n",W="\nif (cutLocationHref().lang || cutLocationHref().lang) {\n lang = cutLocationHref().lang;\n setStorage({ commonKey: 'language', content: lang })\n}\n",J="\nconst language = getStorage({ commonKey: 'language' });\nsetStorage({ commonKey: 'language', content: language });\n",G={template:'\n <template>\n <FHImage :src="wrongSrc" :backup-src="rightSrc" @error="onError" @load="onLoaded" />\n </template>',script:"\n <script>\n import { FHImage } from '@/components';\n export default {\n name: 'DefaultImage',\n components: { FHImage },\n data() {\n return {\n rightSrc: 'https://frcdapcdn.fhrons.com/saasmanage/front/462c99e9dd181d4412d866cd371f9360/000000/zh_CN/score-signBtn.png',\n wrongSrc: 'https://frcdapcdn.fhrons.com/saasmanage/front/60f73cbc460eb445b64bbce470bce5a2/000000/zh_CN/scoreMission_mall.png'\n };\n },\n methods: {\n onError() { console.log('加载失败'); },\n onLoaded() { console.log('加载成功'); }\n }\n };\n <\/script>",useage:"\n import { FHImage } from 'fhrons-pc';\n "},Q={template:'\n<template>\n <div id="VDomEditTableTest" class="flex-column">\n <div class="mb12">\n <el-button type="primary" size="mini" @click="addNew">新 增</el-button>\n </div>\n <VDomEditTable\n ref="FHTable"\n :table-props="tableProps"\n :has-checkbox="true"\n :query-table-data="queryTableData"\n :query-params="queryParams"\n list-map-name="fmProtocolTraceExpList"\n @handleTableList="handleTableList"\n @handleTableClick="handleTableClick"\n @handleSelectionChange="handleSelectionChange"\n @handleSortChange="handleSortChange"\n @handLoadNode="handLoadNode"\n @handleCut="handleCut"\n @handlePlus="handlePlus"\n @handleCounterChange="handleCounterChange"\n @handlePeek="handlePeek"\n @formItemChange="formItemChange"\n />\n </div>\n</template>\n ',script:"\n <script>\n import api_testPage from '@/api/api_testPage';\n import { VDomEditTable } from '@/components';\n import { getVDomEditTableProp } from '../dataSource/testPageData';\n import VDomEditTableTestCode from './code/VDomEditTableTestCode';\n export default {\n name: 'VDomEditTableTest',\n components: { VDomEditTable, VDomEditTableTestCode },\n data() {\n return {\n tableProps: {},\n queryParams: {\n limit: 10,\n mgaFlag: '1',\n offset: 0,\n saasId: 'ff5a67337b6611e89feafa163eb3e537',\n typekind: 'R'\n },\n list: [],\n maxHeight: 10000,\n tempType: [{ 'name': '业务合作', 'value': '101' }, { 'name': '产品补充', 'value': '102' }, { 'name': '费用项补充', 'value': '103' }, { 'name': '费用补充', 'value': '104' }, { 'name': '法人授权', 'value': '105' }]\n };\n },\n computed: {\n modelObj() {\n const { tableProp } = this.tableProps;\n const result = {};\n tableProp.forEach(item => {\n result[item.prop] = item.default;\n if (item.prop === 'operates') {\n const arr = [\n { type: 'edit', text: '保存' },\n { type: 'info', text: '查看' },\n { type: 'history', text: '历史版本' }\n ];\n result[item.prop] = [{ btns: result[item.prop].concat(arr) }];\n }\n });\n result.isEdit = true;\n return result;\n }\n },\n watch: {\n list: {\n handler(val) {\n this.$set(this.tableProps, 'data', val);\n },\n deep: true\n }\n },\n created() {\n this.getData();\n },\n mounted() {\n // 计算表格的高度传递maxHeight值,用于表格的表头吸顶\n this.getTableHeight();\n },\n methods: {\n getTableList() {\n this.$nextTick(async() => {\n if (this.$refs && this.$refs['FHTable']) {\n this.$refs['FHTable'].getTableList();\n }\n });\n },\n getData() {\n this.tableProps = getVDomEditTableProp();\n const { tableProp } = this.tableProps;\n tableProp.find(item => item.prop === 'rateModelType').options = this.tempType;\n tableProp.find(item => item.prop === 'supplierName').options = this.tempType;\n this.getTableList();\n },\n // 接口请求回来的数据\n queryTableData(queryParams) {\n return api_testPage.queryRateModelLast({ params: queryParams });\n },\n handleTableList(list) {\n list.forEach(item => {\n const operates = [];\n if (item.id && !item.id.includes('_')) {\n const arr = [\n { type: 'edit', text: '编辑' },\n { type: 'info', text: '查看' },\n { type: 'history', text: '历史版本' }\n ];\n item['operates'] = [{ btns: operates.concat(arr) }];\n }\n if (item.platformCode) {\n item.platformCode = this.handlePlatCode(item.platformCode);\n }\n });\n this.$set(this, 'list', list);\n },\n // 处理table表里面的点击,例如查看详情,或者删除等按钮的事件\n handleTableClick({ row, type, item }) {\n if (type === 'edit') {\n console.log(row, arguments);\n row.isEdit = !row.isEdit;\n item.text = item.text === '保存' ? '编辑' : '保存';\n if (item.text === '保存') {\n // 执行保存\n }\n }\n },\n handleSelectionChange(val) {\n this.selectedList = val;\n const idList = val.map(item => item.id);\n this.idList = idList;\n },\n\n // 新增数据\n addNew() {\n this.$refs.FHTable.addNewRow();\n },\n handleSortChange() { console.log('排序方式已更改'); },\n handLoadNode() { console.log('加载子节点'); },\n handleCut() { console.log('计数器减小'); },\n handlePlus() { console.log('计数器增加'); },\n handleCounterChange() { console.log('计数器输入值发生改变限制最大输入值'); },\n handlePeek() { console.log('点击计数器后面的button'); },\n formItemChange() { console.log('可编辑控件发生变化的事件'); }\n }\n};\n<\/script>\n "}},5109:function(e,t,n){"use strict";n("5ef2")},"533d":function(e,t,n){},5410:function(e,t,n){},"54ef":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"FHTransferTest"}},[n("FHTransfer",{ref:"FHTransfer",attrs:{"query-transfer-left-data":e.queryTransferLeftData,"query-transfer-right-data":e.queryTransferRightData,"right-list-save":e.rightListSave,"right-list-remove":e.rightListRemove,"remove-params":e.removeParams,"sort-update":e.sortUpdate,"query-transfer-left-params":e.queryTransferLeftParams,"query-transfer-right-params":e.queryTransferRightParams,"map-name-obj":e.mapNameObj,titles:e.titles},scopedSlots:e._u([{key:"transferBtn",fn:function(t){return[t.transfer&&"right"===t.transfer.type?n("div",[n("span",{staticClass:"ft14 mr10 pointer c-theme",on:{click:function(n){return e.handleRightBtnClick(t)}}},[e._v("编辑")])]):e._e()]}}])})],1)},r=[],o=(n("b0c0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"rp-kp-transfer border pd16 br8 mt16 flex-between-center ps-r",attrs:{id:"FHTransfer"}},[e._l(e.transferArr,(function(t){return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"transfer.loading"}],key:t.type,staticClass:"transfer-container border br8 ps-r"},[n("div",{staticClass:"header-top bgc-f5f7fa flex-between-center"},[n("el-checkbox",{attrs:{indeterminate:t.isIndeterminate,disabled:0===t.list.length},on:{change:function(n){return e.handleCheckAllChange(n,t)}},model:{value:t.checkAll,callback:function(n){e.$set(t,"checkAll",n)},expression:"transfer.checkAll"}},[e._v(e._s(t.title))]),n("span",{staticClass:"c-909399 ft12"},[e._v(e._s(t.checkedArr.length)+"/"+e._s(t.list.length))])],1),n("div",{staticClass:"transfer-cont pd15"},[n("el-input",{staticClass:"full-width search mb15",attrs:{placeholder:e.$t("fhtransfer.index.hwn534"),size:"small",clearable:"","prefix-icon":"el-icon-search"},on:{input:function(n){return e.handleSearchClick(n,t)}},model:{value:t.search,callback:function(n){e.$set(t,"search",n)},expression:"transfer.search"}}),e.judgeEmpty(t.list)?n("div",{staticClass:"transfer-list-box"},[n("el-checkbox-group",{on:{change:function(n){return e.handleCheckedItemChange(n,t)}},model:{value:t.checkedArr,callback:function(n){e.$set(t,"checkedArr",n)},expression:"transfer.checkedArr"}},[t.list&&t.list.length?n("draggable",{staticClass:"flex-column",attrs:{"force-fallback":"true",animation:"1000","fallback-tolerance":3},on:{start:e.onStart,end:e.onEnd},model:{value:t.list,callback:function(n){e.$set(t,"list",n)},expression:"transfer.list"}},e._l(t.list,(function(a,r){return n("div",{key:"transfer-id-"+r,staticClass:"flex-between-center"},[n("el-checkbox",{staticClass:"rule-set-name line-height32",attrs:{label:a[t.idMapName]}},[e._v(" "+e._s(a[t.nameMap])+" ")]),n("div",{staticClass:"right-btn flex-center"},["right"===t.type?n("span",{staticClass:"ft14 mr10",class:[t.total>1?"pointer c-theme":"not-allowed c-c0c4cc"],on:{click:function(n){t.total>1&&e.handleSortBtnClick(a.sort,a,t)}}},[e._v(e._s(e.$t("fhtransfer.index.slae5x")))]):e._e(),e._t("transferBtn",null,{transfer:t,item:a,list:t.list})],2)],1)})),0):e._e()],1)],1):n("p",{staticClass:"ta-c c-909399 line-height30"},[e._v(e._s(e.$t("fhtransfer.index.1er170")))])],1),e.showPagination?n("div",{staticClass:"pagination-box"},[n("CommonPagination",{staticClass:"mt6 mr10",attrs:{"page-size":t.limit,"page-sizes":t.pageSizes,"pager-count":3,small:!0,total:t.total,"current-page":t.currentPage},on:{handleSizeChange:function(n){return e.handleSizeChange(n,t)},handleCurrentChange:function(n){return e.handleCurrentChange(n,t)}}})],1):e._e()])})),n("div",{staticClass:"btn-center-box ta-c"},[n("el-button",{attrs:{type:"primary",disabled:!e.leftAllowed,icon:"el-icon-arrow-left"},on:{click:function(t){return e.handleTransferBtnClick("left")}}}),n("el-button",{attrs:{type:"primary",disabled:!e.rightAllowed,icon:"el-icon-arrow-right"},on:{click:function(t){return e.handleTransferBtnClick("right")}}})],1),e.dialogObj.showDialog?n("FHDialog",{attrs:{"dialog-obj":e.dialogObj},on:{confirmClick:function(t){return e.confirmClick(e.dialogObj)},cancelClick:function(t){return e.cancelClick(e.dialogObj)}}},[n("CommonForm",{ref:"commonForm",attrs:{model:e.formModel,"submit-title":e.$t("mixins.querytablemixin.9h62k8")},on:{changeFormItem:e.changeFormItem,submitForm:function(t){return e.submitForm(e.dialogObj)},cancel:function(t){return e.cancelClick(e.dialogObj)}}})],1):e._e()],2)}),i=[],l=n("53ca"),s=n("5530");n("a4d3"),n("b64b");function c(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}function u(e,t){if(null==e)return{};var n,a,r=c(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var d=n("ade3"),p=n("1da1"),f=(n("e01a"),n("b636"),n("d28b"),n("944a"),n("4de4"),n("7db0"),n("d81d"),n("fb6a"),n("4e82"),n("a9e3"),n("131a"),n("d3b7"),n("0c47"),n("23dc"),n("3410"),n("ac1f"),n("3ca3"),n("841c"),n("159b"),n("ddb0"),n("7719")),m=n("853c"),h=n("b512"),g=n("3709"),b=["id"];function v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),l=new E(a||[]);return r(i,"_invoke",{value:S(e,n,l)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",m="suspendedYield",h="executing",g="completed",b={};function y(){}function C(){}function x(){}var _={};u(_,i,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w($([])));k&&k!==n&&a.call(k,i)&&(_=k);var T=x.prototype=y.prototype=Object.create(_);function j(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(r,o,i,s){var c=p(e[r],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Object(l["a"])(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,s)}))}s(c.arg)}var o;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return o=o?o.then(r,r):r()}})}function S(t,n,a){var r=f;return function(o,i){if(r===h)throw Error("Generator is already running");if(r===g){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=F(l,a);if(s){if(s===b)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===f)throw r=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=h;var c=p(t,n,a);if("normal"===c.type){if(r=a.done?g:m,c.arg===b)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=g,a.method="throw",a.arg=c.arg)}}}function F(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,F(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),b;var o=p(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function $(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Object(l["a"])(t)+" is not iterable")}return C.prototype=x,r(T,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:C,configurable:!0}),C.displayName=u(x,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===C||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,u(e,c,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},j(P.prototype),u(P.prototype,s,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new P(d(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(T),u(T,c,"Generator"),u(T,i,(function(){return this})),u(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=$,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:$(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),b}},t}var y={pageOffset:0,pageSize:10,total:0,currentPage:1};window.vuedraggable||Object(f["n"])("https://dop-pro-1251973116.file.myqcloud.com/upload/jsfile/vuedraggable/2.24.3/vuedraggable.umd.min.js",(function(){console.log("vuedraggable 加载成功")}));var C={name:"FHTransfer",components:{CommonPagination:m["a"],draggable:window.vuedraggable,FHDialog:g["a"],CommonForm:h["a"]},props:{queryTransferLeftData:{type:Function,required:!0},queryTransferRightData:{type:Function,required:!0},queryTransferLeftParams:{type:Object,required:!0,default:function(){}},queryTransferRightParams:{type:Object,required:!0,default:function(){}},removeParams:{type:Object,required:!0,default:function(){}},sortUpdateParams:{type:Object,default:function(){}},sortUpdate:{type:Function,required:!0},rightListRemove:{type:Function,required:!0},rightListSave:{type:Function,required:!0},mapNameObj:{type:Object,required:!0,default:function(){}},titles:{type:Array,required:!0,default:function(){return[]}},showPagination:{type:Boolean,default:!0}},data:function(){return{tempFormModel:{},leftAllowed:!1,rightAllowed:!1,currentRuleItem:{},formModel:{form:{sort:""},rules:{sort:[{required:!0,message:this.$t("tool.validate.5m7m1j"),trigger:"blur"}]},formArr:[{label:this.$t("fhtransfer.index.1449k7"),type:"inputNum",placeholder:this.$t("fhtransfer.index.77lu2r"),prop:"sort",val:"",formItemClass:"transfer-sort-form"}]}}},computed:{dialogObj:function(){return{title:this.$t("fhtransfer.index.f76847"),width:"350px",showDialog:!1,hiddenFooterBtn:!0}},transferArr:function(){return[{type:"left",loading:!1,checkAll:!1,isIndeterminate:!1,title:this.$t("fhtransfer.index.8f3152"),list:[],search:"",idMapName:"",nameMap:"",searchMapName:"",listMapName:"",checkedArr:[],total:y.total,currentPage:y.currentPage,offset:y.pageOffset,limit:y.pageSize},{type:"right",loading:!1,checkAll:!1,isIndeterminate:!1,title:this.$t("fhtransfer.index.g222fg"),list:[],search:"",idMapName:"",nameMap:"",searchMapName:"",listMapName:"",checkedArr:[],total:y.total,currentPage:y.currentPage,offset:y.pageOffset,limit:y.pageSize}]}},watch:{titles:{immediate:!0,handler:function(e){Object(f["o"])(e)&&2===e.length&&(this.transferArr[0]["title"]=e[0],this.transferArr[1]["title"]=e[1])}},mapNameObj:{immediate:!0,handler:function(e){this.transferArr.forEach((function(t){t["listMapName"]=e["".concat(t.type,"ListMapName")]||"list",t["idMapName"]=e["idMapName"]||"id",t["nameMap"]=e["nameMap"]||"name",t["searchMapName"]=e["searchMapName"]||e["nameMap"]||"name"}))}}},created:function(){},mounted:function(){},methods:{getData:function(){this.getTransferData("left"),this.getTransferData("right")},onStart:function(e){},onEnd:function(e){},handleSearchClick:function(e,t){this.getTransferData(t.type)},handleTransferBtnClick:function(e){var t="left"===e?"right":"left",n=this.transferArr.find((function(e){return e.type===t})),a=n["list"]||[],r=n["checkedArr"]||[],o=this.transferArr.find((function(t){return t.type===e})),i=this.mapNameObj["idMapName"]||"id";if(n["checkedArr"]=[],n["checkAll"]=!1,n["isIndeterminate"]=!1,o["checkAll"]=!1,this.handleBtnStatus(),Object(f["o"])(i)){var l=a.filter((function(e){return r.some((function(t){return e[i]===t}))}));"left"===e?this.queryRightListRemove(l):this.queryRightListSave(l)}},handleCheckAllChange:function(e,t){var n=t.list||[],a=t.idMapName,r=[];n.forEach((function(e){Object(f["o"])(a)&&Object(f["o"])(e[a])&&r.push(e[a])})),t["checkedArr"]=e?r:[],t["isIndeterminate"]=!1,this.handleBtnStatus()},handleSortList:function(){this.transferArr.forEach((function(e){e.list.forEach((function(t,n){t["sort"]=t["sort"]?t["sort"]:n+1+((e.currentPage||1)-1)*e.limit}))}))},handleCheckedItemChange:function(e,t){var n=e.length,a=t.list||[];t["checkAll"]=n===a.length,t["checkedArr"]=e,t["isIndeterminate"]=n>0&&n<a.length,this.handleBtnStatus()},handleBtnStatus:function(){this.leftAllowed=!(!Object(f["o"])(this.transferArr[1])||!Object(f["o"])(this.transferArr[1].checkedArr))&&this.transferArr[1].checkedArr.length,this.rightAllowed=!(!Object(f["o"])(this.transferArr[0])||!Object(f["o"])(this.transferArr[0].checkedArr))&&this.transferArr[0].checkedArr.length},getTransferData:function(e,t){var n=this;return Object(p["a"])(v().mark((function a(){var r,o,i,l,s,c,u,p;return v().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(r="left"===e?n.queryTransferLeftParams:n.queryTransferRightParams,o=n.transferArr.find((function(t){return t.type===e}))||{},i=o["searchMapName"]||o["nameMap"],l=Object(f["o"])(i)?Object.assign(Object(d["a"])(Object(d["a"])(Object(d["a"])({},i,o.search||""),"offset",o.offset),"limit",o.limit),Object(f["s"])(r)):Object(f["s"])(r),o["loading"]=!0,a.prev=5,s={},"left"!==e){a.next=13;break}return a.next=10,n.queryTransferLeftData(l);case 10:s=a.sent,a.next=16;break;case 13:return a.next=15,n.queryTransferRightData(l);case 15:s=a.sent;case 16:o["list"]=s[o["listMapName"]]||[],o["list"].forEach((function(e){e["idMapName"]=o["idMapName"],e["nameMap"]=o["nameMap"]})),c=s,u=c.total,p=void 0===u?0:u,o.total=p,n.handleSortList(),o.currentPage=t,o["loading"]=!1,n.$forceUpdate(),a.next=29;break;case 26:a.prev=26,a.t0=a["catch"](5),o["loading"]=!1;case 29:case"end":return a.stop()}}),a,null,[[5,26]])})))()},queryRightListSave:function(e){var t=this;return Object(p["a"])(v().mark((function n(){var a,r,o,i,l,c;return v().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=t.mapNameObj["saveListMapName"]||t.mapNameObj["rightListMapName"],r=t.transferArr[1].currentPage,o=t.transferArr[1].limit,i=t.transferArr[1].list.length,l=(r-1)*o+i,e.forEach((function(e,t){e["sort"]=l+1+t})),t.transferArr[1].offset=0,e=e.map((function(e){e.id;var t=u(e,b);return Object(s["a"])({},t)})),!Object(f["o"])(a)){n.next=20;break}return c=Object(d["a"])({},a,e),n.prev=10,n.next=13,t.rightListSave(c);case 13:t.getTransferData("left"),t.getTransferData("right"),n.next=20;break;case 17:n.prev=17,n.t0=n["catch"](10),console.log("error",n.t0);case 20:case"end":return n.stop()}}),n,null,[[10,17]])})))()},queryRightListRemove:function(e){var t=this;return Object(p["a"])(v().mark((function n(){var a,r,o,i,l,s,c,u,p,m;return v().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=t.mapNameObj["removeMapName"]||"ids",t.transferArr[1].currentPage,r=t.transferArr[1].limit,o=t.transferArr[1].total,i=o-e.length,l=parseInt(i/r),s=parseInt(i%r),c=0===s?l:l+1,u=0===s?i>=r?i-r:0:l*r,t.transferArr[1].offset=u,p=e.map((function(e){var t=e.id;return t})),!Object(f["o"])(a)){n.next=23;break}return m=Object(f["o"])(a)?Object.assign(Object(d["a"])({},a,p),Object(f["s"])(t.removeParams)):Object(f["s"])(t.removeParams),n.prev=13,n.next=16,t.rightListRemove(m);case 16:t.getTransferData("left"),t.getTransferData("right",c),n.next=23;break;case 20:n.prev=20,n.t0=n["catch"](13),console.log("error",n.t0);case 23:case"end":return n.stop()}}),n,null,[[13,20]])})))()},handleSizeChange:function(e,t){t.limit=e,t.offset=0,this.getTransferData(t.type,e)},handleCurrentChange:function(e,t){t.offset=e>0?(e-1)*t.limit:0,t.currentPage=e,this.getTransferData(t.type,e)},handleSortBtnClick:function(e,t,n){var a=this;this.tempFormModel=this.deepClone(this.formModel),this.formModel["form"].sort=e,this.formModel["rules"]={sort:[{required:!0,message:this.$t("tool.validate.5m7m1j"),trigger:"blur"},{validator:function(e,t,r){t>n.total||t<1?r(new Error(a.$t("fhtransfer.index.e142hh",[n.total]))):r()},trigger:["blur","change"]}]},this.currentRuleItem=t,this.$set(this.dialogObj,"showDialog",!0)},confirmClick:function(e){this.$set(e,"showDialog",!1),this.handleTransferSortData()},cancelClick:function(e){this.$set(e,"showDialog",!1)},changeFormItem:function(e){this.formModel.form[e.prop]=e.val},submitForm:function(e){this.cancelClick(e),this.handleTransferSortData()},resetForm:function(){var e=this;this.formModel=this.deepClone(this.tempFormModel),this.$nextTick((function(){e.$refs&&e.$refs["commonForm"]&&e.$refs["commonForm"][0]&&e.$refs["commonForm"][0].resetFormValidate()}))},handleTransferSortData:function(){var e=this;return Object(p["a"])(v().mark((function t(){var n,a,r,o,i,l;return v().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.formModel["form"]["sort"],a=e.transferArr[1].limit,e.currentRuleItem["sort"]=Number(n),r=e.transferArr[1].total,o=Math.ceil((r-Number(n)+1)/a),i=o>0?(o-1)*a:0,e.transferArr[1].offset=i,l=Object(f["o"])(e.sortUpdateParams)?Object.assign(e.currentRuleItem,Object(f["s"])(e.sortUpdateParams)):e.currentRuleItem,t.prev=8,t.next=11,e.sortUpdate(l);case 11:e.getTransferData("right",o),t.next=17;break;case 14:t.prev=14,t.t0=t["catch"](8),console.log("error",t.t0);case 17:case"end":return t.stop()}}),t,null,[[8,14]])})))()}}},x=C,_=(n("f39f"),n("2877")),w=Object(_["a"])(x,o,i,!1,null,"11cdf028",null),k=w.exports;k.install=function(e){e.component(k.name,k)};var T=k,j=n("f6ab"),P={name:"FHTransferTest",components:{FHTransfer:T},props:{},data:function(){return{queryTransferLeftParams:{},queryTransferRightParams:{},sortUpdateParams:{},removeParams:{},mapNameObj:{leftListMapName:"rpRulesetDtoList",rightListMapName:"rpKnowledgeRulesetList",nameMap:"rulesetName"},titles:["可选规则集","选中规则集"]}},watch:{},created:function(){this.getData()},mounted:function(){},methods:{getData:function(){var e=this;this.queryTransferLeftParams={projectCode:"P12",modeCode:"P12M01",knowledgeCode:"0808_1"},this.queryTransferRightParams={projectCode:"P12",knowledgeCode:"0808_1",sort:"sort",order:"desc"},this.removeParams={saasId:"ff5a67337b6611e89feafa163eb3e537"},this.$nextTick((function(){console.log("this.$refs",e.$refs,e.$refs["FHTransfer"]),e.$refs&&e.$refs["FHTransfer"]&&e.$refs["FHTransfer"].getData()}))},sortUpdate:function(e){return console.log("queryParams===update",e),j["a"].update(e)},rightListRemove:function(e){return console.log("queryParams===batchSaveOrUpdate",e),j["a"].rpKnowledgeRulesetRemove(e)},rightListSave:function(e){return console.log("queryParams===batchSaveOrUpdate",e),j["a"].rpKnowledgeRulesetSave(e)},queryTransferLeftData:function(e){return console.log("queryParams===queryTransferLeftData",e),j["a"].listByModeUp({params:e})},queryTransferRightData:function(e){return console.log("queryParams===queryTransferRightData",e),j["a"].rpKnowledgeRulesetList({params:e})},handleRightBtnClick:function(e){console.log("scope",e)}}},S=P,F=Object(_["a"])(S,a,r,!1,null,"ebe0caae",null);t["default"]=F.exports},5546:function(e,t,n){},"586e":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"VxeTableTest2"}},[n("p",[e._v("合并单元格")]),n("FHVxeTable",{attrs:{"table-obj":e.tableObj,"has-checkbox":!1,resizable:!1,border:"full","span-method":"spanMethod"},on:{handleTableClick:e.handleTableClick,handleSelectionChange:e.handleSelectionChange}})],1)},r=[],o=(n("d3b7"),n("159b"),n("d22c")),i=n("ac77"),l=n("7719"),s={name:"VxeTableTest2",components:{FHVxeTable:o["default"]},props:{},data:function(){return{tableObj:{},ids:[],mergeCells:[{row:1,col:1,rowspan:3,colspan:3},{row:5,col:0,rowspan:2,colspan:2}]}},watch:{},created:function(){this.tableObj=Object(l["e"])(Object(i["a"])())},mounted:function(){},methods:{handleTableClick:function(e){"edit"===e.type||this.$message.info(e.item.text)},handleSelectionChange:function(e){var t=[];e.forEach((function(e){t.push(e.id)})),this.ids=this.deepClone(t)}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"6394c5c0",null);t["default"]=d.exports},"58e8":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"TestNpm"}})},r=[],o={name:"TestNpm",components:{},props:{},data:function(){return{tableObj:{},iframeStyle:{width:"100%",height:"100%"}}},watch:{},created:function(){this.getData()},mounted:function(){},methods:{getData:function(){this.getTableList()},getTableList:function(){this.tableObj["data"]=[{nickName:"思捷",clientNewId:1,batchApplyMode:"1",agentUserName:"刘开开",dataSourceName:"微信",enterTime:"2021-08-05 16:55:55",operate:[{text:"查看详情",type:"details"},{text:"删除",type:"delete"}]},{nickName:"思捷2",clientNewId:1,batchApplyMode:"1",agentUserName:"刘开开2",dataSourceName:"QQ",enterTime:"2021-08-03 16:55:55",operate:[{text:"查看详情",type:"details"},{text:"删除",type:"delete"}]}]}}},i=o,l=n("2877"),s=Object(l["a"])(i,a,r,!1,null,"3f7eba29",null);t["default"]=s.exports},"5a21":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"ButtonTest"}},[n("h2",{staticClass:"mb30"},[e._v(" 设计的按钮大小要求size为small")]),n("el-button",{attrs:{size:"small"}},[e._v("默认按钮")]),n("el-button",{attrs:{type:"primary",size:"small"}},[e._v("主要按钮")]),n("el-button",{attrs:{type:"success",size:"small"}},[e._v("成功按钮")]),n("el-button",{attrs:{type:"info",size:"small"}},[e._v("信息按钮")]),n("el-button",{attrs:{type:"warning",size:"small"}},[e._v("警告按钮")]),n("el-button",{attrs:{type:"danger",size:"small"}},[e._v("危险按钮")]),n("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"small"}},[e._v("带图标的按钮")]),n("el-button",{attrs:{type:"primary",size:"small"}},[e._v("下一页"),n("i",{staticClass:"el-icon-arrow-right el-icon--right"})]),n("pre",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.codeStr))}})],1)},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),{name:"ButtonTest",components:{},props:{},data:function(){return{arr:[{type:"primary",text:"主要按钮"},{type:"success",text:"成功按钮"},{type:"info",text:"信息按钮"},{type:"warning",text:"警告按钮"},{type:"danger",text:"危险按钮"},{type:"primary",text:"带图标的按钮",icon:"el-icon-search"}],codeStr:'<el-button size="small">默认按钮</el-button>\n<el-button type="primary" size="small">主要按钮</el-button>\n<el-button type="success" size="small">成功按钮</el-button>\n<el-button type="info" size="small">信息按钮</el-button>\n<el-button type="warning" size="small">警告按钮</el-button>\n<el-button type="danger" size="small">危险按钮</el-button>\n<el-button type="primary" icon="el-icon-search" size="small">带图标的按钮</el-button>\n<el-button type="primary" size="small">下一页<i class="el-icon-arrow-right el-icon--right" /></el-button>'}},watch:{},created:function(){},mounted:function(){},methods:{toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")}}}),s=l,c=n("2877"),u=Object(c["a"])(s,a,r,!1,null,"780babb6",null);t["default"]=u.exports},"5aeb":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"RichTextEditorTest"}},[n("RichTextEditor",{attrs:{"cos-bucket":e.cosBucket},on:{saveContent:e.saveContent},model:{value:e.model.docContent,callback:function(t){e.$set(e.model,"docContent",t)},expression:"model.docContent"}})],1)},r=[],o=n("2af9"),i={name:"RichTextEditorTest",components:{RichTextEditor:o["r"]},data:function(){return{model:{docContent:""},value:"",cosBucket:"upload-10051630"}},watch:{value:function(e){}},mounted:function(){var e=this;setTimeout((function(t){e.mockContent()}),1e3)},methods:{mockContent:function(){},saveContent:function(e){alert(e)}}},l=i,s=n("2877"),c=Object(s["a"])(l,a,r,!1,null,"3b3b2f4c",null);t["default"]=c.exports},"5c97":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"demo-block pd24 mb24"},[n("span",{staticClass:"ft32 fw-500 mt12"},[e._v("使用封装的上传方法")]),n("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:"/","on-change":e.handleChange,"on-remove":e.handleRemove,"file-list":e.fileList,"auto-upload":!1}},[n("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},on:{click:function(t){e.bucketName="tencent"}},slot:"trigger"},[e._v("选取文件(腾讯)")]),n("el-button",{attrs:{slot:"trigger",size:"small",type:"primary",disabled:""},on:{click:function(t){e.bucketName="amazon"}},slot:"trigger"},[e._v("选取文件(亚马逊)")]),e.showPregress?n("el-progress",{attrs:{percentage:e.uploadPercent}}):e._e(),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只能上传jpg/png文件,且不超过500kb")])],1),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.codeStr)}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStr))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStr))}}),e._v("\n ")]),e._m(0),e._m(1),e._m(2),e._m(3),e._m(4),e._m(5),e._m(6),n("p",[e._v("想自己自定义也可以直接找到fhrons-pc/plugins/tool/upload.js文件查看源码。")])])],1)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[e._v("装完 "),n("span",{staticStyle:{"background-color":"#3598db",color:"#ffffff"}},[e._v("fhrons-pc")]),e._v("后从组件中引入")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("pre",{staticClass:"language-javascript"},[n("code",[e._v("import FHUpload from 'fhrons-pc/plugins/tool/upload'")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[n("span",{staticStyle:{"text-decoration":"line-through"}},[e._v("FHUpload 是组件对外暴露的方法,接收3个参数,第一个是上传的文件 "),n("span",{staticStyle:{"background-color":"#3598db",color:"#ffffff","text-decoration":"line-through"}},[e._v("File")]),e._v(" ,第二个是云存储的简称,第三个是所属项目,文件名称的命名方法,已配置自带方法,也可以通过参数传入,参数类型为function ,具体内容如下代码所示:")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",{staticStyle:{"line-height":"2"}},[n("span",{staticStyle:{"background-color":"#3598db",color:"#ffffff"}},[n("strong",[e._v("@24.3.1-8.2")])]),n("span",{staticStyle:{color:"#ffffff"}},[n("strong")]),e._v("版本之后上方的传参方式已废弃,请转用下方的方式:")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",{staticStyle:{"line-height":"2"}},[n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("FHUpload"),n("strong"),e._v("(方法名可自定义)")]),e._v("是组件对外暴露的方法,接收2个参数,"),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("第一个是对象参数")]),e._v(",具体属性如下方代码块,"),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("第二个是接收上传进度的回调函数")]),e._v(",类型必须是Function ,具体内容和示例如下代码所示:")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("pre",{staticClass:"language-javascript"},[n("code",[e._v("/**\n * 第一个参数的可选属性\n * @param {Blob} file 要上传的文件\n * @param {String} target 要上传的目标云,类型:0大陆环境/1港险环境\n * @param {String} project 所属项目:0全局,1课程,2开放平台,4:scrm 5:营销 6:frcdap\n * @param {Function} keyFunc 生成key的方法\n *\n * 第二个参数\n * @param {Function} onProgress 接收上传进度的回调\n * @returns Link 上传完成后的图片链接\n *\n * 例:\n * const param = {\n * file, target = 'tencent', project = '0', keyFunc\n * }\n * upload(param,(percent)=>{\n * console.log(percent) // 输出上传进度的百分比\n * })\n */\nconst upload = function ({ file, target = 'tencent', project = '0', keyFunc }, onProgress) {}")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[e._v("其中"),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("target")]),e._v("、"),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("keyFunc")]),e._v("和"),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("project")]),e._v("均如上方代码块中设有默认值,正常情况下只传"),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("file")]),e._v("文件即可,如有复杂的应用场景未考虑到的请联系"),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("guzm@fhrons.com")]),e._v(" 进行定制化开发。")])}],o=(n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("fb6a"),n("b0c0"),n("0c47"),n("23dc"),n("3410"),n("131a"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0"),n("53ca")),i=n("1da1"),l=n("c197"),s=n.n(l);function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,a){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),l=new E(a||[]);return r(i,"_invoke",{value:S(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m="suspendedStart",h="suspendedYield",g="executing",b="completed",v={};function y(){}function C(){}function x(){}var _={};d(_,l,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w($([])));k&&k!==n&&a.call(k,l)&&(_=k);var T=x.prototype=y.prototype=Object.create(_);function j(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(r,i,l,s){var c=f(e[r],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Object(o["a"])(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(o,i){if(r===g)throw Error("Generator is already running");if(r===b){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=F(l,a);if(s){if(s===v)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=b,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=g;var c=f(t,n,a);if("normal"===c.type){if(r=a.done?b:h,c.arg===v)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=b,a.method="throw",a.arg=c.arg)}}}function F(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,F(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var o=f(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function $(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Object(o["a"])(t)+" is not iterable")}return C.prototype=x,r(T,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:C,configurable:!0}),C.displayName=d(x,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===C||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,u,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},j(P.prototype),d(P.prototype,s,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new P(p(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(T),d(T,u,"Generator"),d(T,l,(function(){return this})),d(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=$,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:$(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}var u={data:function(){return{bucketName:"tencent",uploadPercent:0,showPregress:!1,fileList:[],htmlStr:'\n<template>\n <el-upload\n ref="upload"\n class="upload-demo"\n action="/"\n :on-change="handleChange"\n :on-remove="handleRemove"\n :file-list="fileList"\n :auto-upload="false"\n >\n <el-button slot="trigger" size="small" type="primary" @click="bucketName=\'tencent\'">选取文件(腾讯)</el-button>\n <el-button slot="trigger" size="small" type="primary" @click="bucketName=\'amazon\'">选取文件(亚马逊)</el-button>\n <el-progress v-if="showPregress" :percentage="uploadPercent" />\n <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>\n </el-upload>\n</template>\n ',codeStr:"\nimport FHUpload from 'fhrons-pc/plugins/tool/upload';\nexport default {\n data() {\n return {\n bucketName: 'tencent',\n fileList: [],\n uploadPercent: 0,\n showPregress: false,\n };\n },\n methods: {\n async handleChange(file) {\n const h = this.$createElement;\n this.showPregress = true;\n try {\n const result = await FHUpload({ file, target: this.bucketName }, (per) => {\n this.uploadPercent = per;\n if (per === 100) {\n setTimeout(_ => {\n this.showPregress = false;\n this.uploadPercent = 0;\n }, 1000);\n }\n });\n if (result) {\n this.$notify({\n title: '上传成功',\n message: result\n });\n } else {\n this.$notify({\n title: '上传失败',\n message: h('i', { style: 'color: teal' }, '未知错误')\n });\n }\n } catch (err) {\n this.$notify({\n title: '上传失败',\n message: h('i', { style: 'color: teal' }, err)\n });\n }\n },\n }\n};"}},methods:{handleChange:function(e){var t=this;return Object(i["a"])(c().mark((function n(){var a,r;return c().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=t.$createElement,t.showPregress=!0,n.prev=2,n.next=5,FHCommon.upload({file:e,urlMaxLength:12},(function(e){t.uploadPercent=e,100===e&&setTimeout((function(e){t.showPregress=!1,t.uploadPercent=0}),1e3)}));case 5:r=n.sent,console.log(r),r?t.$notify({title:"上传成功",message:r}):t.$notify({title:"上传失败",message:a("i",{style:"color: teal"},"未知错误")}),n.next=14;break;case 10:n.prev=10,n.t0=n["catch"](2),t.$notify({title:"上传失败",message:a("i",{style:"color: teal"},n.t0)}),t.showPregress=!1;case 14:case"end":return n.stop()}}),n,null,[[2,10]])})))()},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))},handleRemove:function(e,t){console.log(e,t)},onPreview:function(){console.log(arguments)},toHtml:function(e){return s.a.highlight(e,s.a.languages.html,"html")},toJs:function(e){return s.a.highlight(e,s.a.languages.js,"js")}}},d=u,p=(n("b832"),n("2877")),f=Object(p["a"])(d,a,r,!1,null,"2b5ad308",null);t["default"]=f.exports},"5ce5":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"VDomEditTableTest"}},[n("div",{staticClass:"mb12"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.addNew}},[e._v("新 增")])],1),n("VDomEditTable",{ref:"FHTable",attrs:{"table-props":e.tableProps,"has-checkbox":!0,"query-table-data":e.queryTableData,"query-params":e.queryParams,"list-map-name":"fmProtocolTraceExpList"},on:{handleTableList:e.handleTableList,handleTableClick:e.handleTableClick,handleSelectionChange:e.handleSelectionChange,handleSortChange:e.handleSortChange,handLoadNode:e.handLoadNode,handleCut:e.handleCut,handlePlus:e.handlePlus,handleCounterChange:e.handleCounterChange,handlePeek:e.handlePeek,formItemChange:e.formItemChange}}),e.loaded?n("VDomEditTableTestCode"):e._e()],1)},r=[],o=n("53ca"),i=n("1da1"),l=(n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("99af"),n("7db0"),n("caad"),n("d81d"),n("fb6a"),n("b0c0"),n("131a"),n("d3b7"),n("2532"),n("0c47"),n("23dc"),n("3410"),n("3ca3"),n("159b"),n("ddb0"),n("f6ab")),s=n("2af9"),c=n("4348"),u=n("f971");function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */d=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function p(e,t,n,a){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),l=new E(a||[]);return r(i,"_invoke",{value:S(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m="suspendedStart",h="suspendedYield",g="executing",b="completed",v={};function y(){}function C(){}function x(){}var _={};u(_,l,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w($([])));k&&k!==n&&a.call(k,l)&&(_=k);var T=x.prototype=y.prototype=Object.create(_);function j(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(r,i,l,s){var c=f(e[r],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Object(o["a"])(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(o,i){if(r===g)throw Error("Generator is already running");if(r===b){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=F(l,a);if(s){if(s===v)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=b,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=g;var c=f(t,n,a);if("normal"===c.type){if(r=a.done?b:h,c.arg===v)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=b,a.method="throw",a.arg=c.arg)}}}function F(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,F(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var o=f(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function $(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Object(o["a"])(t)+" is not iterable")}return C.prototype=x,r(T,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:C,configurable:!0}),C.displayName=u(x,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===C||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,u(e,c,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},j(P.prototype),u(P.prototype,s,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new P(p(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(T),u(T,c,"Generator"),u(T,l,(function(){return this})),u(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=$,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:$(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}var p={name:"VDomEditTableTest",components:{VDomEditTable:s["v"],VDomEditTableTestCode:u["default"]},data:function(){return{tableProps:{},queryParams:{limit:10,mgaFlag:"1",offset:0,saasId:"ff5a67337b6611e89feafa163eb3e537",typekind:"R"},list:[],loaded:!1,maxHeight:1e4,tempType:[{name:"业务合作",value:"101"},{name:"产品补充",value:"102"},{name:"费用项补充",value:"103"},{name:"费用补充",value:"104"},{name:"法人授权",value:"105"}]}},computed:{modelObj:function(){var e=this.tableProps.tableProp,t={};return e.forEach((function(e){if(t[e.prop]=e.default,"operates"===e.prop){var n=[{type:"edit",text:"保存"},{type:"info",text:"查看"},{type:"history",text:"历史版本"}];t[e.prop]=[{btns:t[e.prop].concat(n)}]}})),t.isEdit=!0,t}},watch:{list:{handler:function(e){this.$set(this.tableProps,"data",e)},deep:!0}},created:function(){this.getData()},mounted:function(){},methods:{getTableList:function(){var e=this;this.$nextTick(Object(i["a"])(d().mark((function t(){return d().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs&&e.$refs["FHTable"]&&(e.$refs["FHTable"].getTableList(),e.$nextTick((function(t){e.loaded=!0})));case 1:case"end":return t.stop()}}),t)}))))},getData:function(){this.tableProps=Object(c["y"])();var e=this.tableProps.tableProp;e.find((function(e){return"rateModelType"===e.prop})).options=this.tempType,e.find((function(e){return"supplierName"===e.prop})).options=this.tempType,this.getTableList()},queryTableData:function(e){return l["a"].queryRateModelLast({params:e})},handleTableList:function(e){var t=this;e.forEach((function(e){var n=[];if(e.id&&!e.id.includes("_")){var a=[{type:"edit",text:"编辑"},{type:"info",text:"查看"},{type:"history",text:"历史版本"}];e["operates"]=[{btns:n.concat(a)}]}e.platformCode&&(e.platformCode=t.handlePlatCode(e.platformCode))})),this.$set(this,"list",e)},handleTableClick:function(e){var t=e.row,n=e.type,a=e.item;"edit"===n&&(console.log(t,arguments),t.isEdit=!t.isEdit,a.text="保存"===a.text?"编辑":"保存",a.text)},handleSelectionChange:function(e){this.selectedList=e;var t=e.map((function(e){return e.id}));this.idList=t},addNew:function(){this.$refs.FHTable.addNewRow()},handleSortChange:function(){console.log("排序方式已更改")},handLoadNode:function(){console.log("加载子节点")},handleCut:function(){console.log("计数器减小")},handlePlus:function(){console.log("计数器增加")},handleCounterChange:function(){console.log("计数器输入值发生改变限制最大输入值")},handlePeek:function(){console.log("点击计数器后面的button")},formItemChange:function(){console.log("可编辑控件发生变化的事件")}}},f=p,m=(n("5dbb"),n("2877")),h=Object(m["a"])(f,a,r,!1,null,"1950b4ee",null);t["default"]=h.exports},"5cf2":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"WebFHIframeTestHtml"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlArr.slice(1).join("")))}}),e._v("\n ")])])])},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),n("4fca")),s={name:"WebFHIframeTestHtml",components:{},props:{type:{type:String,default:"normal"}},data:function(){return{htmlArr:[]}},watch:{type:{immediate:!0,handler:function(e){this.htmlArr=l["y"][e]}}},created:function(){},mounted:function(){},methods:{toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"7b6fe9fa",null);t["default"]=d.exports},"5dbb":function(e,t,n){"use strict";n("d05d")},"5ec2":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"IfPart"}},[n("div",{staticClass:"pd16"},["if"===e.ele.type||"elseif"===e.ele.type?n("div",{staticClass:"bc_if mb10",on:{pointerdown:function(e){e.stopPropagation()}}},["elseif"==e.ele.type?n("div",{staticClass:"btns ta-r"},[n("i",{staticClass:"el-icon-document-copy ft18 mr20",on:{click:e.handleIfCopy}}),n("i",{staticClass:"el-icon-delete ft18",on:{click:e.delElseIf}})]):e._e(),n("div",{staticClass:"mb32"},[n("p",{staticClass:"ft16 fw-600 mb10",class:e.idx>0?"wt-72":""},[e._v(e._s(e.idx>0?"再如果":"如果")+":")]),n("ConditionTree",{attrs:{"content-item":e.ele},on:{handleConditon:function(t){return e.handleConditon(e.ele,t)}}})],1)]):e._e(),n("div",{staticClass:"flex",class:e.idx>0?"wt-150":"wt-133",on:{pointerdown:function(e){e.stopPropagation()}}},[n("span",{staticClass:"ft16 fw-600 mb10",class:e.idx>0?"wt-72":""},[e._v(e._s("else"==e.ele.type?"否则":e.idx>0?"再那么":"那么")+":")]),n("div",{on:{click:function(t){return t.stopPropagation(),e.addThenItem(e.ele.action)}}},[n("i",{staticClass:"el-icon-circle-plus c-theme ft18 mt2"}),n("span",{staticClass:"ml2"},[e._v("添加动作")])])]),e.ele.action&&e.ele.action.length?n("draggable",{attrs:{"force-fallback":"true",animation:"1000","fallback-tolerance":3,group:e.getGroupId()},model:{value:e.ele.action,callback:function(t){e.$set(e.ele,"action",t)},expression:"ele.action"}},[n("transition-group",e._l(e.ele.action,(function(t,a){return n("ActionPart",{key:""+a,attrs:{"action-obj":t,position:"middle"},on:{removeAction:function(t){return e.removeAction(e.ele.action,a)},copyAction:function(n){return e.handleCopy(e.ele.action,t,a)}}})})),1)],1):e._e(),"if"==e.ele.type?n("el-button",{attrs:{type:"text"},on:{click:function(t){return t.stopPropagation(),e.addElseIfData(t)}},nativeOn:{pointerdown:function(e){e.stopPropagation()}}},[e._v("新增")]):e._e()],1)])},r=[],o=n("5530"),i=(n("a434"),n("a9e3"),n("7719")),l=n("cda1"),s=n("b9f4"),c=n("e1bd"),u={name:"IfPart",components:{ActionPart:l["default"],ConditionTree:s["default"]},props:{ele:{type:Object,default:function(){}},ruleType:{type:String,default:""},idx:{type:Number,default:null}},data:function(){return{}},watch:{},created:function(){},mounted:function(){},methods:{getGroupId:function(){return"if-action-".concat(Object(c["a"])())},addSingle:function(){this.$emit("addSingle")},handleConditon:function(e,t){e.condition=Object(i["e"])(t[0])},addThenItem:function(e){var t={actionType:""};e.push(t)},addElseIfData:function(e,t){this.$emit("addElseIfData")},delElseIf:function(){this.$emit("delElseIf")},handleIfCopy:function(){this.$emit("handleIfCopy")},removeAction:function(e,t){e.splice(t,1)},handleCopy:function(e,t,n){e.splice(n+1,0,Object(o["a"])(Object(o["a"])({},Object(i["e"])(t)),{},{id:Object(c["a"])()})),this.$set(e,n,Object(i["e"])(e[n]))}}},d=u,p=(n("4312"),n("2877")),f=Object(p["a"])(d,a,r,!1,null,"b64b2b44",null);t["default"]=f.exports},"5ef2":function(e,t,n){},6276:function(e,t,n){},"62d1":function(e,t,n){},"650f":function(e,t,n){"use strict";n("3be0")},"6a1f":function(e,t,n){"use strict";n("ea23")},"6d16":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"CommonAudioTest"}},[n("el-tabs",{attrs:{type:"border-card","tab-position":"top"}},[n("el-tab-pane",{attrs:{label:"CommonAudio示例"}},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){e.PlayFlag=!0}}},[e._v("弹窗播放")]),n("CommonAudio",{attrs:{"the-url":e.audioUrl,"audio-dialog-visible":e.PlayFlag},on:{closeAudioDialog:function(t){e.PlayFlag=!1}}}),n("div",{staticClass:"ps-r mb24"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlStrArr.slice(1).join("")))}}),e._v("\n ")])])],1),n("el-tab-pane",{attrs:{label:"CommonAudioRow示例"}},[n("div",{staticClass:"w-400"},[n("CommonAudioRow",{attrs:{url:e.audioUrl}})],1),n("div",{staticClass:"ps-r mb24"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlArr.slice(1).join("")))}}),e._v("\n ")])])])],1)],1)},r=[],o=n("2af9"),i=n("c197"),l=n.n(i),s=(n("a878"),{name:"CommonAudioTest",components:{CommonAudio:o["a"],CommonAudioRow:o["b"]},props:{},data:function(){return{PlayFlag:!1,audioUrl:"https://dop-pro-1251973116.file.myqcloud.com/upload/common/dop/2022/12/20/Hopeful%20For.mp3",htmlStrArr:['\n<template>\n <div>\n <el-button type="primary" size="small" @click="PlayFlag=true">弹窗播放</el-button>\n <CommonAudio :the-url="audioUrl" :audio-dialog-visible="PlayFlag" @closeAudioDialog="PlayFlag=false" />\n </div>\n</template>',"\n<script>\n\nexport default { \n // 组件名称\n name: 'CommonAudioTest',\n // 组件参数 接收来自父组件的数据\n props: {},\n // 组件状态值\n data() {\n return {\n PlayFlag: false,\n audioUrl: 'https://dop-pro-1251973116.file.myqcloud.com/upload/common/dop/2022/12/20/Hopeful%20For.mp3',\n };\n },\n // 侦听器\n watch: {},\n created() { },\n mounted() { },\n methods: { }\n};\n</scr","ipt>\n"],htmlArr:['\n<template>\n <div>\n <CommonAudioRow :url="audioUrl" />\n </div>\n</template>',"\n<script> \nexport default {\n // 组件名称\n name: 'CommonAudioTest',\n // 组件参数 接收来自父组件的数据\n props: {},\n // 组件状态值\n data() {\n return {\n audioUrl: 'https://dop-pro-1251973116.file.myqcloud.com/upload/common/dop/2022/12/20/Hopeful%20For.mp3',\n };\n },\n // 侦听器\n watch: {},\n created() { },\n mounted() { },\n methods: { }\n};\n</scr","ipt>\n"]}},watch:{},created:function(){},mounted:function(){},methods:{toHtml:function(e){return l.a.highlight(e,l.a.languages.html,"html")},toJs:function(e){return l.a.highlight(e,l.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}}),c=s,u=(n("20f3"),n("2877")),d=Object(u["a"])(c,a,r,!1,null,"071f824c",null);t["default"]=d.exports},"6df6":function(e,t,n){"use strict";n("8737")},"70e5":function(e,t,n){"use strict";n("c8e6")},7356:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"GlobalCss"}},[n("h1",[e._v("global.css内容")]),n("el-tabs",{staticClass:"mtb20",attrs:{type:"border-card"}},[n("el-tab-pane",{attrs:{label:"flex布局"}},[n("code",[e._l(e.flexRadios,(function(t,a){return n("div",{key:a,staticClass:"mb12"},[n("p",[e._v(e._s(t.title)+":")]),n("el-radio-group",{staticClass:"mb12",on:{change:function(n){return e.handleRadioChange(t,"flex")}},model:{value:e.flexRadio,callback:function(t){e.flexRadio=t},expression:"flexRadio"}},e._l(t.arr,(function(t,a){return n("el-radio",{key:a,attrs:{label:t,border:""}},[e._v(e._s(t))])})),1)],1)})),n("div",{staticClass:"mb8 c-e6a23c",on:{click:function(t){return e.handleCopy(e.flexRadio)}}},[e._v("点击复制代码:"+e._s(e.flexRadio))]),n("div",{staticClass:"f-box pd12 border br8 over-scroll",class:"item"!==e.currentFlexRadioObj.applyTo?e.flexRadio:"flex"},e._l(e.flexConut,(function(t,a){return n("div",{key:a,staticClass:"flex-item-box bgc-theme-30 br8",class:"item"===e.currentFlexRadioObj.applyTo?e.currentFlexRadioObj.arr[a]+" flex-center":""},[e._v(" "+e._s("item"===e.currentFlexRadioObj.applyTo?e.currentFlexRadioObj.arr[a]:"")+" ")])})),0)],2)]),n("el-tab-pane",{attrs:{label:"盒子模型"}},[n("code",[n("div",{staticClass:"flex-between"},[n("div",[n("el-collapse",{attrs:{accordion:""},model:{value:e.boxName,callback:function(t){e.boxName=t},expression:"boxName"}},e._l(e.boxRadios,(function(t,a){return n("el-collapse-item",{key:a,attrs:{title:t.title,name:t.type}},e._l(t.arr,(function(a,r){return n("div",{key:r},[n("p",[e._v(e._s(a.title))]),a.needRadio?n("div",[n("el-radio-group",{staticClass:"mb12",on:{change:function(n){return e.handleRadioChange(t,"box")}},model:{value:e.boxRadio,callback:function(t){e.boxRadio=t},expression:"boxRadio"}},e._l(a.arr,(function(t,a){return n("el-radio",{key:a,attrs:{border:"",label:t}},[e._v(e._s(t))])})),1)],1):n("div",e._l(a.arr,(function(t,a){return n("div",{key:a,staticClass:"border tag-box inline-block ta-c",on:{click:function(n){return e.handleBoxCopyText(t)}}},[e._v(e._s(t))])})),0)])})),0)})),1)],1),n("div",[n("div",{staticClass:"mb8 c-e6a23c",on:{click:function(t){return e.handleCopy(e.boxRadio||e.boxCopyText)}}},[e._v("点击复制代码:"+e._s(e.boxRadio||e.boxCopyText))]),n("div",{staticClass:"box-model border-box over-hidden",class:[e.boxClass,"margin"===e.boxName?"bgc-theme":"bgc-theme-10"]},[n("div",{staticClass:"padding-box full-height border-box",class:[e.pdClass,"padding"===e.boxName?"bgc-theme":"bgc-f2f6fc"]},[n("div",{staticClass:"content-box flex-center full-height",class:"br"===e.boxName?"bgc-theme-10":"bgc-fff"},[e._v("content")])])])])])])]),n("el-tab-pane",{attrs:{label:"字体样式"}},[n("code",[n("div",{staticClass:"flex-between"},[n("div",{staticClass:"font-left"},e._l(e.fontRadios,(function(t,a){return n("div",{key:a,staticClass:"mb12"},[n("p",[e._v(e._s(t.title)+":")]),n("el-radio-group",{staticClass:"mb12",on:{change:function(n){return e.handleRadioChange(t,"font")}},model:{value:e.fontRadio,callback:function(t){e.fontRadio=t},expression:"fontRadio"}},e._l(t.arr,(function(t,a){return n("el-radio",{key:a,attrs:{label:t,border:""}},[e._v(e._s(t))])})),1)],1)})),0),n("div",{staticClass:"font-right"},[n("div",{staticClass:"mb8 c-e6a23c",on:{click:function(t){return e.handleCopy(e.fontRadio)}}},[e._v("点击复制代码:"+e._s(e.fontRadio))]),n("div",{staticClass:"font-box-model border"},[n("p",{class:e.fontRadio},[e._v("文字示例")]),n("p",{class:e.fontRadio},[e._v("文字示例")])])])])])]),n("el-tab-pane",{attrs:{label:"定位"}},[n("code",[n("div",{staticClass:"flex-between"},[n("div",e._l(e.psRadios,(function(t,a){return n("div",{key:a,staticClass:"mb12"},[n("p",[e._v(e._s(t.title)+":")]),n("el-radio-group",{staticClass:"mb12",on:{change:function(n){return e.handleRadioChange(t,"ps")}},model:{value:e.psRadio,callback:function(t){e.psRadio=t},expression:"psRadio"}},e._l(t.arr,(function(t,a){return n("el-radio",{key:a,attrs:{label:t,border:""}},[e._v(e._s(t))])})),1)],1)})),0),n("div",[n("div",{staticClass:"mb8 c-e6a23c",on:{click:function(t){return e.handleCopy(e.psRadio)}}},[e._v("点击复制代码:"+e._s(e.psRadio))]),n("div",{staticClass:"sticky-box border line-height24",class:"item"!==e.currentPsRadioObj.applyTo?"":"ps-r"},[n("p",[e._v("尝试滚动页面。")]),n("div",{staticClass:"bgc-theme c-fff",class:[e.psRadio,"item"!==e.currentPsRadioObj.applyTo?"":"ps-a"]},[e._v("我是粘性定位!")]),n("div",{staticClass:"pb-2000"},[n("p",[e._v("滚动")]),n("p",[e._v("来回滚动")]),n("p",[e._v("滚动")]),n("p",[e._v("来回滚动")]),n("p",[e._v("滚动")]),n("p",[e._v("来回滚动")])])])])])])]),n("el-tab-pane",{attrs:{label:"文字省略"}},[n("div",[n("p",{staticClass:"mb12"},[e._v("我是没有省略的文字我是没有省略的文字我是没有省略的文字我是没有省略的文字")])]),n("div",e._l(e.ellipsis,(function(t,a){return n("div",{key:a},[n("p",{staticClass:"text-width mb8",class:t.value},[e._v(e._s(t.label))]),n("p",{staticClass:"pd20 ft18 border br8 bgc-f5f5f5 fw-500 mb24",on:{click:function(n){return e.handleCopy(t.value)}}},[n("code",[e._v(e._s(t.value))])])])})),0)]),n("el-tab-pane",{attrs:{label:"Tooltip 文字提示"}},[n("div",[n("p",{staticClass:"mb12"},[e._v("Tooltip 文字提示:超长文字显示...,悬停有气泡展示全部内容。")]),n("p",{staticClass:"mb12"},[e._v("基础用法:")])]),n("div",{staticClass:"line-height24"},[n("p",[e._v("例一:")]),n("TooltipOver",{staticClass:"text-width border",attrs:{content:""+e.toolStr}}),n("pre",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml("<TooltipOver class='text-width' :content='"+e.toolStr+"' />"))}}),e._v(" "),n("p",[e._v("例二:")]),n("TooltipOver",{staticClass:"text-width border",attrs:{content:""+e.classToolStr,"class-name":"c-f56c6c"}}),n("pre",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml("<TooltipOver class='text-width' :content='"+e.classToolStr+"' class-name='c-f56c6c' />"))}}),e._v(" "),n("p",[e._v("例三:")]),n("TooltipOver",{staticClass:"text-width border",attrs:{content:""+e.toolStr,"xss-content":""+e.xssToolStr,"is-html":!0}}),n("pre",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml("<TooltipOver class='text-width' :content='"+e.toolStr+"'\n :xss-content='"+e.xssToolStr+"' :is-html='true' />"))}})],1)])],1)],1)},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),n("4348")),s=n("2af9"),c={name:"GlobalCss",components:{TooltipOver:s["t"]},props:{},data:function(){return{ellipsis:l["k"],flexRadios:l["l"],flexRadio:"",boxRadios:l["g"],boxRadio:"",fontRadios:l["m"],fontRadio:"",psRadios:l["F"],psRadio:"",currentFlexRadioObj:{applyTo:"father",type:"single"},currentBoxRadioObj:{},currentFontRadioObj:{},currentPsRadioObj:{},boxName:"margin",boxCopyText:"",toolStr:"我是一行使用TooltipOver组件的省略的文字我是一行使用TooltipOver组件的省略的文字",classToolStr:"我是一行有className的省略的文字我是一行使用TooltipOver组件的省略的文字",xssToolStr:'我是一行<span class="c-f56c6c">xssContent</span>省略的文字我是一行省略的文字我是一行省略的文字'}},computed:{flexConut:function(){return"single"===this.currentFlexRadioObj.type?4:"cutom"===this.currentFlexRadioObj.type?this.currentFlexRadioObj.arr.length:12},pdClass:function(){return"margin"===this.boxName||"padding"===this.boxName?"pd20 bold-border mtb20 mlr20":"".concat(this.boxRadio," border-width")},boxClass:function(){return"margin"===this.boxName||"padding"===this.boxName?"dashed-line":"br"===this.boxName?"".concat(this.boxRadio):""}},watch:{},created:function(){},mounted:function(){i.a.highlightAll()},methods:{handleRadioChange:function(e,t){"flex"===t?this.currentFlexRadioObj=e:"box"===t?this.currentBoxRadioObj=e:"font"===t?this.currentFontRadioObj=e:"ps"===t&&(this.currentPsRadioObj=e)},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))},handleBoxCopyText:function(e){this.boxCopyText=e},toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")}}},u=c,d=(n("3217"),n("2877")),p=Object(d["a"])(u,a,r,!1,null,"e7bdef60",null);t["default"]=p.exports},"735a":function(e,t,n){"use strict";n("8e87")},"73d4":function(e,t,n){"use strict";n("0fb6")},"762d":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"TestPage"}},["AddTest"===e.$route.name?n("router-view"):n("div",{attrs:{id:"TestPage"}},[n("el-button",{attrs:{type:"primacy"},on:{click:e.jumpAddTestPage}},[e._v("跳转新增测试页面")])],1),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36 pd20"},[n("code",[n("p",[e._v("注意:跳转子页面需要手动嵌入<router-view /> 且需要判断当前路由")]),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlStrArr.slice(1).join("")))}}),e._v("\n ")])])])]):e._e()],1)},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),{name:"TestPage",components:{},props:{},data:function(){return{moreFlag:!0,htmlStrArr:['\n<template>\n <div id="TestPage">\n <router-view v-if="$route.name === \'AddTest\'" />\n <div v-else id="TestPage">\n <el-button type="primacy" @click="jumpAddTestPage">跳转新增测试页面</el-button>\n </div>\n </div>\n</template>',"\n<script>\n\nexport default {\n data() {\n return {\n };\n },\n methods: {\n jumpAddTestPage() {\n this.$router.push('/testpage/addtest');\n }\n }\n};\n</scr","ipt>"]}},watch:{},created:function(){},mounted:function(){},methods:{jumpAddTestPage:function(){this.$router.push("/testpage/addtest")},handleMore:function(){this.moreFlag=!this.moreFlag},toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}}),s=l,c=n("2877"),u=Object(c["a"])(s,a,r,!1,null,"53dd5036",null);t["default"]=u.exports},"76e2":function(e,t,n){"use strict";n.r(t);var a={};n.r(a),n.d(a,"ConditionTree",(function(){return l["default"]})),n.d(a,"Expression",(function(){return s["default"]}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"RuleManager"}},[n("condition-tree"),n("Expression")],1)},o=[],i=n("5530"),l=n("b9f4"),s=n("ccfb"),c={name:"RuleManager",components:Object(i["a"])({},a),props:{},data:function(){return{}},watch:{},created:function(){},mounted:function(){},methods:{}},u=c,d=n("2877"),p=Object(d["a"])(u,r,o,!1,null,"1ed98966",null);t["default"]=p.exports},7764:function(e,t,n){},7817:function(e,t,n){"use strict";n("8deb")},"7b72":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"FHTableTest"}},[n("FilterQuery",{attrs:{model:e.formItem},on:{formItemChange:e.formItemChange,searchClick:e.searchClick,resetClick:e.resetClick}}),n("div",{staticClass:"table-btn-group"},[n("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(t){return e.addClick(e.dialogObj)}}},[e._v("新增")]),n("el-button",{attrs:{type:"danger",size:"small"},on:{click:e.delClick}},[e._v("批量删除")])],1),n("FHTable",{ref:"FHTable",attrs:{"has-checkbox":!0,"query-table-data":e.queryTableData,"query-params":e.queryParams,"table-props":e.tableProps,"list-map-name":"smSaasPlatformList"},on:{handleTableList:e.handleTableList,handleTableClick:e.handleTableClick,handleSelectionChange:e.handleSelectionChange}}),e.dialogObj.showDialog?n("FHDialog",{attrs:{"dialog-obj":e.dialogObj},on:{cancelClick:function(t){return e.cancel(e.dialogObj)}}},[n("CommonForm",{ref:"commonForm",attrs:{model:e.formModel,"submit-title":"确定"},on:{changeFormItem:e.changeFormItem,submitForm:function(t){return e.submitForm(e.dialogObj)},cancel:function(t){return e.cancel(e.dialogObj)}}})],1):e._e(),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("el-tabs",{staticClass:"mtb20"},[n("el-tab-pane",{attrs:{label:"页面代码"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.codeStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.codeStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStrArr.slice(1).join("")))}}),e._v("\n ")])])]),n("el-tab-pane",{attrs:{label:"数据源"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.dataStr1)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.dataStr1))}})])])],1)],1):e._e()],1)},r=[],o=(n("99af"),n("4de4"),n("caad"),n("d81d"),n("b0c0"),n("b64b"),n("d3b7"),n("2532"),n("159b"),n("2af9")),i=n("4348"),l=n("4fca"),s=n("f6ab"),c=n("1b62"),u=n("7719"),d=n("c197"),p=n.n(d),f=(n("a878"),{name:"FHTableTest",components:{FHTable:o["l"],FilterQuery:o["m"],CommonForm:o["e"],FHDialog:o["i"]},mixins:[c["c"]],props:{},data:function(){return{moreFlag:!0,idArr:[],formModel:{},codeStrArr:l["j"],dataStr1:l["k"],dialogObj:{title:"新增",showDialog:!1,size:"small",hiddenFooterBtn:!0}}},watch:{list:{handler:function(e){this.tableProps["data"]=this.deepClone(e),this.tableProps["data"].forEach((function(e){e["platformNameStr"]="测试插槽"}))}}},created:function(){this.addKeepAlive("FHTableTest"),this.getData()},mounted:function(){},methods:{getData:function(){this.formItem=this.deepClone(Object(i["q"])()),this.queryDictionary(),this.tableProps=this.deepClone(Object(i["r"])()),this.queryParams={saasId:"ff5a67337b6611e89feafa163eb3e537",userId:"27775e0e494447bf94a5292252262870"},this.tempQueryParams=this.deepClone(this.queryParams),this.getTableList(),this.formModel=this.deepClone(Object(i["s"])())},handlePlatCode:function(e){return i["E"][e]?i["E"][e]:"未知的平台码"},queryDictionary:function(){var e=this;s["a"].childDictList({type:"sm_terminal_type"}).then((function(t){var n=t.map((function(e){var t=e.name,n=e.value;return{name:t,value:n}}));e.$set(e.formItem.filterArr[3],"options",n)})).catch((function(e){console.log(e)}))},queryTableData:function(e){return console.log("queryParams",e),s["a"].queryPlatformList({params:e})},handleTableList:function(e){var t=this;e.forEach((function(e){var n=[{type:"terminalManage",text:"终端管理"}];if(!e.id.includes("_")){var a=[{type:"edit",text:"编辑"},{type:"relevance",text:"关联机构"},{type:"delete",text:"删除"}];e["operates"]=[{btns:n.concat(a)}]}e.platformCode&&(e.platformCode=t.handlePlatCode(e.platformCode))})),this.list=this.deepClone(e)},handleTableClick:function(e){console.log("handleTableClick",e);var t=e.row||{};if("delete"===e.type){var n=this.list.filter((function(e){return e.id!==t.id}));this.list=this.deepClone(n)}else"terminalManage"===e.type||("edit"===e.type?(this.formModel["form"]=t,this.$set(this.dialogObj,"showDialog",!0)):e.type)},handleSelectionChange:function(e){console.log("handleSelectionChange",e),this.idArr=e.map((function(e){var t=e.id;return t}))},changeFormItem:function(e){this.formModel.form[e.prop]=e.val,console.log("this.formModel",this.formModel),console.log(e,"----------------------------")},addClick:function(e){this.$set(e,"showDialog",!0),this.resetForm()},delClick:function(){var e=this;this.list=this.list.filter((function(t){return e.idArr.every((function(e){return t.id!==e}))}))},close:function(e){this.$set(e,"showDialog",!1)},cancel:function(e){this.resetForm(),this.close(e)},resetForm:function(){var e=this;this.formModel=this.deepClone(Object(i["s"])()),this.$nextTick((function(){e.$refs&&e.$refs["commonForm"]&&e.$refs["commonForm"].resetFormValidate()}))},submitForm:function(e){this.formModel.form["id"]="".concat(this.list.length+1),this.list=[this.formModel.form].concat(this.list);var t=this.tableProps["tableProp"],n=t.filter((function(e){return"htmlType"===e.type}));this.list.forEach((function(e){n.forEach((function(t){var n="xss"+t.prop;e[n]=e[t.prop]?Object(u["c"])(t.color||"#1677ff",e[t.prop]):"--"})),Object.keys(e).forEach((function(t){e[t]=e[t]||"--"}))})),this.handleTableList(this.list),this.close(e)},handleMore:function(){this.moreFlag=!this.moreFlag},toHtml:function(e){return p.a.highlight(e,p.a.languages.html,"html")},toJs:function(e){return p.a.highlight(e,p.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}}),m=f,h=n("2877"),g=Object(h["a"])(m,a,r,!1,null,"0cea26fa",null);t["default"]=g.exports},"7dab":function(e,t,n){},"81c1":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"Operants flex-center-vertical flex-wrap",attrs:{id:"Operants"},on:{pointerdown:function(e){e.stopPropagation()}}},e._l(e.operants,(function(t,a){return n("div",{key:a,staticClass:"flex"},[t.visible?n("div",{staticClass:"model-box",on:{pointerdown:function(n){return n.stopPropagation(),e.handleModel(t)}}}):e._e(),n("div",{staticClass:"flex-center-vertical"},["function"===e.operantType?n("span",[e._v(e._s(t.label)+":")]):e._e(),["input","temp","function","in","out","constant"].includes(t.itemType)||"operant"===t.type||!e.judgeEmpty(t.itemType)&&"function"===e.operantType?n("el-popover",{key:"popover"+a+t.label,ref:"popover"+a,refInFor:!0,attrs:{placement:"bottom",trigger:"manual"},model:{value:t.visible,callback:function(n){e.$set(t,"visible",n)},expression:"element.visible"}},[n("div",{staticClass:"flex-center-vertical ",attrs:{slot:"reference"},slot:"reference"},[n("div",{staticClass:"ps-r"},[n("el-button",{on:{click:function(n){return n.stopPropagation(),e.typeBtnClick(t)}}},[e._v(e._s(e.getEchoLabel(t)||"请选择类型"))]),e.operants.length>1&&a===e.operants.length-1&&"function"!==e.operantType?n("div",{staticClass:"delete-icon ps-a"},[n("i",{staticClass:"el-icon-circle-close ft18",on:{click:function(n){return e.deleteOperant(t,a)}}})]):e._e()],1)]),n("el-cascader-panel",{ref:"cascader"+a,refInFor:!0,attrs:{options:!1===t.custom?e.repOptions:e.cascaderOptions,props:{checkStrictly:!0}},on:{change:function(n){return e.handleCascaderChange(t,a)},"expand-change":function(n){return e.handleExpandChange(t,a,n)}},nativeOn:{pointerdown:function(e){e.stopPropagation()}},scopedSlots:e._u([{key:"default",fn:function(r){var o=r.node,i=r.data;return["input"===i.type?n("el-input",{key:"input"+a,attrs:{placeholder:e.judgeEmpty(t.value)?t.value:o.parent.data.label,clearable:""},on:{input:function(){e.$forceUpdate()},blur:function(n){return e.handleInputBlur(t)}},model:{value:t["value"],callback:function(n){e.$set(t,"value",n)},expression:"element['value']"}}):n("span",[e._v(e._s(i.label))])]}}],null,!0),model:{value:t.echoData,callback:function(n){e.$set(t,"echoData",n)},expression:"element.echoData"}})],1):e._e(),e.judgeEmpty(t.value)&&e.judgeEmpty(t.valueParam)?n("Operants",{attrs:{"operant-type":"function",operants:t.valueParam}}):e._e()],1),"symbol"===t.itemType?n("span",{staticClass:"symbol-select flex-center-vertical ml4 mr8"},["symbol"==t.valueType?n("el-select",{staticStyle:{width:"28px"},attrs:{placeholder:""},on:{change:function(n){return e.handleOperator(t,a)},focus:function(t){return e.operatorFocus(null,a)}},model:{value:t.decodeValue,callback:function(n){e.$set(t,"decodeValue",n)},expression:"element.decodeValue"}},e._l(e.calculateSymbol,(function(e){return n("el-option",{key:e.decodeValue,attrs:{label:e.label,value:e.decodeValue}})})),1):e._e(),"parentheses"==t.valueType?n("div",{staticClass:"mr8 flex-start-center ps-r"},[n("span",[e._v(e._s(t.value))]),e.operants.length>1&&a===e.operants.length-1?n("div",{staticClass:"delete-icon ps-a z-index100"},[n("i",{staticClass:"el-icon-circle-close ft18",on:{click:function(n){return e.deleteOperant(t,a)}}})]):e._e()]):e._e()],1):e._e(),"valueOrParentheses"==t.type?n("span",[n("el-select",{staticStyle:{width:"74px"},attrs:{placeholder:"请选择"},on:{change:function(n){return e.handleValueHeses(t.value,a)}},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"element.value"}},[n("el-option",{attrs:{label:"值",value:"value"}},[e._v("值")]),n("el-option",{attrs:{label:"括号",value:"brackets"}},[e._v("括号")])],1)],1):e._e(),e.handleMockOperator(t,e.operants,a)?n("span",{staticClass:"symbol-select flex-center-vertical ml4 mr8"},[n("el-select",{staticStyle:{width:"28px"},attrs:{placeholder:""},on:{change:function(n){return e.handleRealOperator(t,a)},focus:function(n){return e.operatorFocus(t)}},model:{value:t.operator,callback:function(n){e.$set(t,"operator",n)},expression:"element.operator"}},e._l(e.calculateSymbol,(function(e){return n("el-option",{key:e.decodeValue,attrs:{label:e.label,value:e.decodeValue}})})),1)],1):e._e()])})),0)},r=[],o=n("5530"),i=(n("4de4"),n("7db0"),n("caad"),n("a15b"),n("d3b7"),n("159b"),n("36e9")),l=n("5880"),s=n("7719"),c={name:"Operants",components:{Operants:f},props:{operants:{type:Array,default:function(){return[]}},operantType:{type:String,default:""}},data:function(){return{calculateSymbol:i["a"],inputObj:{},inputValue:"",buttonVisbleValue:"",activePath:[],item:{itemType:"",name:"",valueType:"",value:""}}},computed:Object(o["a"])({cascaderOptions:function(){return"function"===this.operantType?this.valueTypeOptions.filter((function(e){return"function"!==e.value})):this.valueTypeOptions},repOptions:function(){return Object(s["o"])(this.valueTypeOptions)?this.valueTypeOptions.filter((function(e){return["temp","in","out"].includes(e.value)})):[]}},Object(l["mapState"])({valueTypeOptions:function(e){return e.ruleConfig.valueTypeOptions}})),watch:{},beforeDestroy:function(){document.removeEventListener("click",this.handleOutsideClick)},created:function(){this.handleOperatorDecode()},methods:{handleMockOperator:function(e,t,n){var a=!1!==e.operate&&"function"!==this.operantType&&Object(s["m"])(e.operator)&&(!t[n+1]||t[n+1]&&"symbol"!==t[n+1].valueType),r=Object(s["m"])(e.operator)&&(!t[n+1]||t[n+1]&&"symbol"!==t[n+1].itemType)&&")"===e.value;return!(!a&&!r||"valueOrParentheses"===e.type||"symbol"===e.valueType||"("===e.value)},handleOperatorDecode:function(){this.operants.forEach((function(e){"symbol"===e.valueType&&(e.decodeValue=decodeURIComponent(e.value))}))},typeBtnClick:function(e){this.valueTypeOptions.find((function(e){return"function"===e.value})).children=Object(s["e"])(Object(i["c"])()),this.operants.forEach((function(e){e.visible&&(e.visible=!1)})),e.visible=!e.visible},handleModel:function(e){e.visible=!1},operatorFocus:function(e,t){Object(s["o"])(e)?e.visible=!1:this.operants[t-1].visible=!1},handleInputBlur:function(e){e.visible=!1},handleExpandChange:function(e,t,n){"input"===n[0]&&(e.value="")},handleCascaderChange:function(e,t){var n,a=this.$refs["cascader"+t][0].getCheckedNodes()[0];if(e.selectedLabel=null===a||void 0===a||null===(n=a.pathLabels)||void 0===n?void 0:n.join("."),e.itemType="",e.valueType="","input"!==a.path[0]&&(e.visible=!1),Object(s["o"])(e.valueParam)&&delete e.valueParam,"input"===a.path[0])e.itemType=a.path[0],e.valueType=a.path[1],2===a.path.length&&(e.value=a.path[1]),"boolean"===a.path[1]&&(e.value=a.path[2]);else if(["temp","in","out","constant"].includes(a.path[0])){var r;e.itemType=a.path[0],e.valueType=(null===a||void 0===a||null===(r=a.data)||void 0===r?void 0:r.valueType)||"";var o=Object(s["e"])(e.echoData);o.shift(),e.value=o.join(".")}else if("function"===a.path[0]){e.itemType="function",e.valueType="function",e.value=a.path[1]+"."+a.path[2];var i=a.data.valueParam;this.$set(e,"valueParam",Object(s["e"])(i))}},getEchoLabel:function(e){return"input"===e.itemType&&"boolean"!==e.valueType?e.selectedLabel+":"+e.value:e.selectedLabel},handleOperator:function(e,t){var n=this.operants.length;"delete"===e.decodeValue&&n-1>t&&"valueOrParentheses"===this.operants[t+1].type?this.$emit("deleteOperantor",t):(e.value=encodeURIComponent(e.decodeValue),this.$emit("operatorChange",t))},handleRealOperator:function(e,t){this.$emit("handleRealOperator",t)},handleValueHeses:function(e,t){this.$emit("valueOrParenthesesChange",t,e)},deleteOperant:function(e,t){this.$emit("deleteOperant",t)}}},u=c,d=(n("1598"),n("2877")),p=Object(d["a"])(u,a,r,!1,null,"19ce82b2",null),f=t["default"]=p.exports},"82bd":function(e,t,n){},"83c5":function(e,t,n){},"83f5":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"AlgorithmPart"}},[e.dragData&&e.dragData.length?a("draggable",{attrs:{"force-fallback":"true",group:"biggest-unit",animation:"1000","fallback-tolerance":3,disabled:!!e.isUnit,handle:".move-icon"},model:{value:e.dragData,callback:function(t){e.dragData=t},expression:"dragData"}},[a("transition-group",{attrs:{tag:"div"}},e._l(e.dragData,(function(t,r){return a("div",{key:r,staticClass:"biggest-unit br16 pd16 mb16",class:e.isUnit?"dot-border pd24 br16 ml16 bgc-fff":""},[a("div",{staticClass:"mb8",class:e.isUnit?"flex-end":"flex-between"},[e.isUnit?e._e():a("img",{staticClass:"move-icon pointer",attrs:{src:n("2b68"),width:"16",alt:""}}),a("div",{staticClass:"btns"},[a("i",{staticClass:"el-icon-document-copy ft18 mr20",on:{click:function(n){return e.handleCopy(e.dragData,t,r)}}}),a("i",{staticClass:"el-icon-delete ft18",on:{click:function(t){return e.handleRemove(e.dragData,r)}}})])]),e.isUnit?e._e():a("div",{staticClass:"flex mb8"},[a("span",{staticClass:"nowrap"},[e._v("添加备注:")]),a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容"},model:{value:t.remark,callback:function(n){e.$set(t,"remark",n)},expression:"item.remark"}})],1),a("div",[a("div",{staticClass:"rule-before mb22"},[a("div",{staticClass:"mb16 flex-center-vertical"},[a("span",{staticClass:"fw-600 ft18"},[e._v("开始前动作:")]),a("div",{on:{click:function(n){return e.addAciton(t.ruleBefore)}}},[a("i",{staticClass:"el-icon-circle-plus c-theme ft18 mt2"}),a("span",{staticClass:"ml2"},[e._v("添加动作")])])]),t.ruleBefore&&t.ruleBefore.length?a("draggable",{attrs:{"force-fallback":"true",animation:"1000","fallback-tolerance":3,group:"bef-action-"+r},model:{value:t.ruleBefore,callback:function(n){e.$set(t,"ruleBefore",n)},expression:"item.ruleBefore"}},[a("transition-group",e._l(t.ruleBefore,(function(n,r){return a("ActionPart",{key:r,attrs:{"action-obj":n,position:"before"},on:{removeAction:function(n){return e.handleRemove(t.ruleBefore,r)},copyAction:function(a){return e.handleCopy(t.ruleBefore,n,r)}}})})),1)],1):e._e()],1),t.ruleContent&&t.ruleContent.length&&"if"===t.ruleType?a("draggable",{attrs:{"force-fallback":"true",animation:"1000","fallback-tolerance":3,group:"if-"+r,filter:".undraggable",move:e.ifMove,handle:".if-move-icon"},model:{value:t.ruleContent,callback:function(n){e.$set(t,"ruleContent",n)},expression:"item.ruleContent"}},[a("transition-group",{staticClass:"bgc-f5f5f9 br16 pd16",attrs:{tag:"div"}},e._l(t.ruleContent,(function(r,o){return a("div",{key:o,staticClass:"rule-conditions br16 mb10 ps-r",class:[0===o||o===t.ruleContent.length-1?"undraggable":"",o!==t.ruleContent.length-1?"border-bottom":""]},[0!==o&&o!==t.ruleContent.length-1?a("img",{staticClass:"if-move-icon pointer ps-a",attrs:{src:n("2b68"),width:"16",alt:""}}):e._e(),"if"===t.ruleType?a("IfPart",{attrs:{ele:r,idx:o,"rule-type":t.ruleType},on:{addElseIfData:function(n){return e.addElseIfData(t.ruleContent,o)},delElseIf:function(n){return e.delElseIf(t.ruleContent,o)},handleIfCopy:function(n){return e.handleCopy(t.ruleContent,r,o)}}}):e._e()],1)})),0)],1):e._e(),"for"===t.ruleType?a("div",{staticClass:"bgc-f5f5f9 br16 pd16"},e._l(t.ruleContent,(function(t,n){return a("div",{key:n},[a("div",{staticClass:"for-obj flex-center-vertical mb16"},[a("span",{staticClass:"fw-600 ft18"},[e._v("循环对象:")]),a("Expression",{attrs:{"exp-obj":t.condition.expression[0]}})],1),a("div",[a("div",{staticClass:"mb22 flex-center-vertical"},[a("span",{staticClass:"fw-600 ft18"},[e._v("循环动作:")]),a("div",{on:{click:function(n){return e.addAciton(t.action)}}},[a("i",{staticClass:"el-icon-circle-plus c-theme ft18 mt2"}),a("span",{staticClass:"ml2"},[e._v("添加动作")])])]),t.action&&t.action.length?a("draggable",{attrs:{"force-fallback":"true",animation:"1000","fallback-tolerance":3,group:"mid-action-"+r+"-"+n},model:{value:t.action,callback:function(n){e.$set(t,"action",n)},expression:"con.action"}},[a("transition-group",e._l(t.action,(function(n,r){return a("ActionPart",e._b({key:r,attrs:{"action-obj":n,position:"middle"},on:{removeAction:function(n){return e.handleRemove(t.action,r)},copyAction:function(a){return e.handleCopy(t.action,n,r)}}},"ActionPart",e.$attrs,!1))})),1)],1):e._e()],1)])})),0):e._e(),a("div",{staticClass:"rule-after"},[a("div",{staticClass:"mt24 mb22 flex-center-vertical"},[a("span",{staticClass:"fw-600 ft18"},[e._v("结束后动作:")]),a("div",{on:{click:function(n){return e.addAciton(t.ruleAfter)}}},[a("i",{staticClass:"el-icon-circle-plus c-theme ft18 mt2"}),a("span",{staticClass:"ml2"},[e._v("添加动作")])])]),t.ruleAfter&&t.ruleAfter.length?a("draggable",{attrs:{"force-fallback":"true",group:"af-action-"+r,animation:"1000","fallback-tolerance":3},model:{value:t.ruleAfter,callback:function(n){e.$set(t,"ruleAfter",n)},expression:"item.ruleAfter"}},[a("transition-group",{attrs:{tag:"div"}},e._l(t.ruleAfter,(function(n,r){return a("ActionPart",{key:r,attrs:{"action-obj":n,position:"after"},on:{removeAction:function(n){return e.handleRemove(t.ruleAfter,r)},copyAction:function(a){return e.handleCopy(t.ruleAfter,n,r)}}})})),1)],1):e._e()],1)],1)])})),0)],1):e._e()],1)},r=[],o=(n("caad"),n("a434"),n("b0c0"),n("2532"),n("7719")),i=n("cda1"),l=n("5ec2"),s=n("4f0d"),c=n("ccfb"),u=n("289a"),d=n.n(u),p={name:"AlgorithmPart",components:{ActionPart:i["default"],IfPart:l["default"],Expression:c["default"],draggable:d.a},props:{algorithmData:{type:Array,default:function(){return[]}},isUnit:{type:Boolean,default:!1}},data:function(){return{dragData:[]}},computed:{},watch:{},created:function(){this.dragData=this.algorithmData},mounted:function(){},methods:{addCondition:function(){this.algorithmData.push(Object(o["e"])(s["j"]))},addMultiple:function(){this.algorithmData.push(Object(o["e"])(s["g"]))},addAciton:function(e){var t={actionType:""};e.push(t)},addSingle:function(e){e.push(Object(o["e"])(s["i"]))},handleRemove:function(e,t){e.splice(t,1)},handleCopy:function(e,t,n){e.splice(n,0,Object(o["e"])(t)),this.$set(e,n,Object(o["e"])(e[n]))},addElseIfData:function(e,t){e.splice(t-1,0,{type:"elseif",condition:{},action:[]})},delElseIf:function(e,t){e.splice(t,1)},ifMove:function(e){console.log(e);e.draggedContext.element.name;return!e.related._prevClass.includes("undraggable")}}},f=p,m=(n("c7c2"),n("2877")),h=Object(m["a"])(f,a,r,!1,null,"1b59dab0",null);t["default"]=h.exports},8408:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"DownloadTest"}},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.templateDownload}},[e._v("下载xls模版")]),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlCont+e.setCont.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlCont))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.setCont.join("")))}}),e._v("\n ")])]),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.toolCont)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.toolCont))}})])]):e._e()],1)},r=[],o=n("f6ab"),i=n("7719"),l=n("c197"),s=n.n(l),c=(n("a878"),{name:"DownloadTest",components:{},props:{},data:function(){return{moreFlag:!0,htmlCont:'\n<template>\n <div id="DownloadTest">\n <el-button type="primary" size="small" @click="templateDownload">下载xls模版</el-button>\n </div>\n</template>',setCont:["\n<script>\nimport api_testPage from '@/api/api_testPage';\nimport { openDownload } from 'fhrons-pc/plugins/tool/func';\nexport default {\n methods: {\n // 接口请求\n templateDownload() {\n const params = { excelName: 'basicServicePricingDetail' };\n // 接口成功后直接调用封装好的方法,这里只支持后台返回的是文件,而不是二进制流\n api_testPage.templateDownload({ params: params }).then(res => {\n // 调用工具类封装的方法\n openDownload(res.url);\n }).catch(() => {});\n }\n }\n};\n</scr","ipt>\n"],toolCont:"// 封装的创建文件的方法\nexport function openDownload(url) {\n const fileName = '';\n const link = document.createElement('a');\n link.style.display = 'none';\n link.href = url;\n link.target = '_blank';\n link.setAttribute('download', fileName);\n document.body.appendChild(link);\n link.click();\n link.remove();\n}"}},watch:{},created:function(){},mounted:function(){},methods:{toHtml:function(e){return s.a.highlight(e,s.a.languages.html,"html")},toJs:function(e){return s.a.highlight(e,s.a.languages.js,"js")},templateDownload:function(){var e={excelName:"basicServicePricingDetail"};o["a"].templateDownload({params:e}).then((function(e){Object(i["p"])(e.url)})).catch((function(){}))},handleMore:function(){this.moreFlag=!this.moreFlag},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}}),u=c,d=n("2877"),p=Object(d["a"])(u,a,r,!1,null,"74a41982",null);t["default"]=p.exports},"841c":function(e,t,n){"use strict";var a=n("c65b"),r=n("d784"),o=n("825a"),i=n("7234"),l=n("1d80"),s=n("129f"),c=n("577e"),u=n("dc4a"),d=n("14c3");r("search",(function(e,t,n){return[function(t){var n=l(this),r=i(t)?void 0:u(t,e);return r?a(r,t,n):new RegExp(t)[e](c(n))},function(e){var a=o(this),r=c(e),i=n(t,a,r);if(i.done)return i.value;var l=a.lastIndex;s(l,0)||(a.lastIndex=0);var u=d(a,r);return s(a.lastIndex,l)||(a.lastIndex=l),null===u?-1:u.index}]}))},8440:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"CommonEchartsTest"}},[n("div",{staticClass:"flex-between"},e._l(e.chartArr,(function(t,a){return n("div",{key:a},[n("CommonEcharts",{attrs:{"chart-option":t.chartOption,width:"300px",height:"400px"}}),n("p",{staticClass:"ta-c"},[e._v(e._s(t.name))]),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:function(t){return e.handleMore(a)}}},[e._v(" "+e._s(e.moreFlag===a?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag===a?"el-icon-arrow-up":"el-icon-arrow-down"})])])],1)})),0),e.moreFlag||0===e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("code",[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.htmlCont+e.jsCont)}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlCont))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.jsCont))}}),e._v("\n ")])])])]):e._e()])},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),n("2af9")),s=n("4348"),c={name:"CommonEchartsTest",components:{CommonEcharts:l["d"]},props:{},data:function(){return{chartArr:[{name:"柱形图",chartOption:s["e"]},{name:"折线图",chartOption:s["A"]},{name:"环形图",chartOption:s["G"]},{name:"饼图",chartOption:s["C"]},{name:"漏斗图",chartOption:s["n"]}],chartOption:"",moreFlag:"",scriptObj:{created:!0,importArr:[{component:"{ CommonEcharts }",componentUrl:"@/components"},{component:"{ pieColors }",componentUrl:"@/constant",note:"颜色设置,一般不需要修改"}]},htmlCont:'\n<template>\n <div>\n <CommonEcharts :chart-option="chartOption" width="300px" height="400px" />\n </div>\n</template>',jsCont:""}},watch:{},created:function(){},mounted:function(){},methods:{handleMore:function(e){var t="";if(this.moreFlag!==e){switch(e){case 0:t=s["f"];break;case 1:t=s["B"];break;case 2:t=s["H"];break;case 3:t=s["D"];break;case 4:t=s["o"];break;default:break}this.jsCont="\n<script>\nexport const pieColors = ['#638DEF', '#49D1FF', '#FF4747', '#FFCC13', '#FF7F50'];\nexport default {\n data() {\n return {\n chartOption: {}\n };\n },\n created() {\n this.chartOption = ".concat(t,";\n }\n};\n</scr")+"ipt>\n",this.moreFlag=e}else this.moreFlag=""},toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}},u=c,d=n("2877"),p=Object(d["a"])(u,a,r,!1,null,"403660ff",null);t["default"]=p.exports},"853c":function(e,t,n){"use strict";n("b0c0");var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ta-r",attrs:{id:"CommonPagination"}},[n("el-pagination",{attrs:{"current-page":e.current,background:"",small:e.small,"hide-on-single-page":e.hideOnSinglePage,"page-sizes":e.pageSizes,"page-size":e.pageSize,layout:"sizes, total, prev, pager, next, jumper",total:e.total},on:{"update:currentPage":function(t){e.current=t},"update:current-page":function(t){e.current=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)},r=[],o=(n("e9c4"),n("a9e3"),n("b64b"),{pageOffset:0,pageSize:10,total:0,currentPage:1}),i={name:"CommonPagination",components:{},props:{currentPage:{type:Number,default:1},pageSizes:{type:Array,default:function(){return[10,20,50,100]}},pageSize:{type:Number,default:o.pageSize},total:{type:Number,default:o.total},small:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1}},data:function(){return{current:1}},watch:{currentPage:{immediate:!0,deep:!0,handler:function(e){this.current=JSON.parse(JSON.stringify(e))}},current:function(e){this.$emit("handleCurrentChange",e)}},created:function(){},methods:{handleSizeChange:function(e){this.current=1,this.$emit("handleSizeChange",e)},handleCurrentChange:function(e){this.current=e}}},l=i,s=n("2877"),c=Object(s["a"])(l,a,r,!1,null,"60b26843",null),u=c.exports;u.install=function(e){e.component(u.name,u)};t["a"]=u},"870c":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"AutoTemplate"}},[n("FilterQuery",{attrs:{model:e.formItem},on:{formItemChange:e.formItemChange,searchClick:e.getTableList,resetClick:e.resetClick}}),e.htmlArr.length?n("div",{staticClass:"ps-r mb24"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlArr.slice(1).join("")))}}),e._v("\n ")])]):e._e(),e.htmlArr.length?n("div",{staticClass:"ps-r mb24"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.codeStr)}}},[e._v("复制")]),n("p",{staticClass:"ta-l title-h1"},[e._v("数据源")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStr))}}),e._v("\n ")])]):e._e()],1)},r=[],o=(n("a15b"),n("d3b7"),n("3ca3"),n("ddb0"),n("2b3d"),n("bf19"),n("9861"),n("2af9"));n("99af");function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"api_user",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"func",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"List",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"func",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"func",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"func";return['\n<template>\n <div id="">\n <FilterQuery :model="formItem" @formItemChange="formItemChange" @searchClick="searchClick" @resetClick="resetClick" />\n <div class="table-btn-group">\n <el-button type="primary" size="small" @click="showDialog(true,\'新增\')">新增</el-button>\n <el-button type="danger" size="small" @click="remove(ids)">批量删除</el-button>\n </div>\n <FHTable\n id="MainTable"\n ref="FHTable"\n :has-checkbox="true"\n :query-table-data="queryTableData"\n :max-height="maxHeight"\n :query-params="queryParams"\n :table-props="tableProps"\n list-map-name="'.concat(n,'"\n @handleTableList="handleTableList"\n @handleTableClick="handleTableClick"\n @handleSelectionChange="handleSelectionChange"\n />\n \x3c!-- 新增+编辑 --\x3e\n <FHDialog :dialog-obj="dialogObj" @cancelClick="resetForm">\n <CommonForm ref="commonForm" :model="formModel" submit-title="确定" @changeFormItem="changeFormItem" @submitForm="submitForm" @cancel="resetForm" />\n </FHDialog>\n </div>\n</template>'),"\n<script>\nimport { getFormQueryObj, getFHTableProp, getFormDataObj } from './dataSource/Main';\nimport { queryTableMixin, calculateTableHeightMixin } from 'fhrons-pc/plugins/mixins';\nimport ".concat(e," from '@/api/").concat(e,"';\nimport appInfo from '@/tool/appInfo';\nimport { notEmpty } from 'fhrons-pc/plugins/tool/func';\nimport { getStorage } from 'fhrons-pc/plugins/tool/storage';\n\nexport default {\n name: 'Main',\n components: {\n },\n mixins: [queryTableMixin, calculateTableHeightMixin],\n data() {\n return {\n userInfo: {},\n formItem: {},\n formModel: {},\n dialogObj: {\n type: 'small',\n title: '新增',\n size: 'small',\n hiddenFooterBtn: true\n },\n queryParams: {},\n ids: [] // 批量删除的id\n };\n },\n watch: {\n list: {\n handler(val) {\n this.tableProps['data'] = this.deepClone(val);\n this.maxHeight = this.getTableHeight('MainTable');\n }\n }\n },\n created() {\n this.userInfo = getStorage({ name: 'userInfo' }) || {};\n this.getData();\n },\n methods: {\n getData() {\n this.tableProps = this.deepClone(getFHTableProp());\n this.formModel = this.deepClone(getFormDataObj());\n this.formItem = this.deepClone(getFormQueryObj());\n this.getTableList();\n },\n queryTableData(queryParams) {\n return ").concat(e,".").concat(t,"({ params: queryParams });\n },\n // 处理列表接口返回数据\n handleTableList(list) {\n const arr = [{ type: 'edit', text: '编辑' }, { type: 'delete', text: '删除' }];\n list.forEach(item => {\n item['operates'] = [{ btns: arr }];\n });\n this.list = this.deepClone(list);\n },\n // 行内点击事件\n handleTableClick(item) {\n if (item.type === 'delete') {\n this.remove([item.row.id]);\n } else if (item.type === 'edit') {\n this.getDetail(item.row);\n } else {\n this.$message.info(item.item.text);\n }\n },\n // FHDialog弹窗\n showDialog(flag, title) {\n if (title) { this.$set(this.dialogObj, 'title', title); }\n this.$set(this.dialogObj, 'showDialog', flag);\n },\n // CommonForm值改变\n changeFormItem(formObj) {\n this.formModel.form[formObj.prop] = formObj.val;\n },\n // 全选删除\n handleSelectionChange(val) {\n const arr = [];\n val.forEach(item => {\n arr.push(item.id);\n });\n this.ids = this.deepClone(arr);\n },\n // 重置数据\n resetForm() {\n this.formModel.form = {};\n this.$nextTick(() => {\n // 重置表单数据\n if (this.$refs && this.$refs['commonForm']) {\n this.$refs['commonForm'].resetFormValidate();\n }\n this.showDialog(false);\n });\n },\n // 获取单条数据详情回显并编辑\n getDetail(data) {\n const obj = {};\n this.formModel.formArr.forEach(item => {\n obj[item.prop] = data[item.prop] || '';\n });\n this.formModel.form = this.deepClone(obj);\n this.showDialog(true, '编辑');\n },\n // 删除\n remove(ids) {\n if (!ids.length) return;\n this.$confirm('是否确认删除操作?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n const param = {\n ids: ids,\n saasId: appInfo.getPlatSaasId()\n };\n ").concat(e,".").concat(o,"(param).then(res => {\n this.$message.success('删除成功!');\n }).catch(err => { console.log(err); });\n }).catch(() => {\n this.$message.info('已取消');\n });\n },\n // 弹窗提交\n async submitForm() {\n const param = {\n ...this.formModel.form,\n operator: this.userInfo.agentcode,\n saasId: appInfo.getPlatSaasId()\n };\n let result = {};\n try {\n if (this.dialogObj.title === '编辑') {\n result = await ").concat(e,".").concat(a,"(param);\n } else if (this.dialogObj.title === '新增') {\n result = await ").concat(e,".").concat(r,"(param);\n }\n if (notEmpty(result)) {\n this.$message.success(this.dialogObj.title + '成功!');\n this.resetForm();\n }\n } catch (error) {\n this.resetForm();\n console.log(error);\n }\n }\n }\n};\n</scr"),"ipt>\n "]}function l(){return"\nconst rules = [{ required: true, message: '不能为空', trigger: 'blur' }];\n// filterQuery\nexport function getFormQueryObj() {\n return {\n form: {},\n filterArr: [\n { label: '临时变量编码', prop: 'tmCode' },\n { label: '临时变量名称', prop: 'tmName' },\n { label: '备注', prop: 'remark' }\n ]\n };\n}\nexport function getFHTableProp() {\n return {\n data: [],\n tableProp: [\n { label: '参数库编码', prop: 'pmCode', fixed: 'left' },\n { label: '临时变量库编码', prop: 'tmCode' },\n { label: '临时变量库名称', prop: 'tmName' },\n { label: '作用域', prop: 'scope' },\n { label: '备注', prop: 'remark' },\n { label: '操作人', prop: 'operator' },\n { label: '操作', prop: 'operates', type: 'buttons', btnType: 'text', fixed: 'right', labelWidth: '120' }]\n };\n}\n// 新增+编辑+查看详情\nexport function getFormDataObj() {\n return {\n form: {},\n rules: {\n projectCode: rules,\n modeCode: rules,\n pmCode: rules,\n tmCode: rules,\n tmName: rules\n },\n formArr: [\n { label: '临时变量库名称', prop: 'tmName' },\n { label: '作用域', prop: 'scope' },\n { label: '备注', prop: 'remark' }\n ]\n };\n}\n"}var s=n("1b62"),c=n("c197"),u=n.n(c),d=(n("a878"),{name:"AutoTemplate",components:{FilterQuery:o["m"]},mixins:[s["c"]],props:{},data:function(){return{formItem:{filterButtons:[{label:"生成",type:"primary",click:"searchClick"},{label:"重置",click:"resetClick"}],form:{A:"api_rpMetaData",B:"rpTempMainList",C:"listMapName",D:"rpTempMainUpdate",E:"rpTempMainSave",F:"rpTempMainRemove"},filterArr:[{label:"api文件名",prop:"A"},{label:"查询列表接口名",prop:"B"},{label:"接口返回的list字段名",prop:"C"},{label:"编辑接口名",prop:"D"},{label:"新增接口名",prop:"E"},{label:"删除接口名",prop:"F"}]},htmlArr:[]}},watch:{},created:function(){this.codeStr=l()},mounted:function(){},methods:{toHtml:function(e){return u.a.highlight(e,u.a.languages.html,"html")},toJs:function(e){return u.a.highlight(e,u.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))},getTableList:function(){var e=this.formItem.form,t=e.A,n=e.B,a=e.C,r=e.D,o=e.E,l=e.F;this.htmlArr=i(t,n,a,r,o,l),this.exportTextFile(this.htmlArr.join(""))},resetClick:function(){this.formItem.form={},this.htmlArr=[]},exportTextFile:function(e){var t=new Blob([e],{type:"text/plain"}),n=URL.createObjectURL(t),a=document.createElement("a");a.href=n,a.download="file.vue",a.click(),URL.revokeObjectURL(n)}}}),p=d,f=n("2877"),m=Object(f["a"])(p,a,r,!1,null,"124a42e8",null);t["default"]=m.exports},8737:function(e,t,n){},"873f":function(e,t,n){},"8a88":function(e,t,n){},"8aa0":function(e,t,n){},"8c87":function(e,t,n){},"8c90":function(e,t,n){"use strict";n("ec23")},"8d85":function(e,t,n){"use strict";n("4d5a")},"8deb":function(e,t,n){},"8e33":function(e,t,n){"use strict";n("b0c0");var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.needSelect?n("el-select",{ref:"select",staticStyle:{width:"100%"},attrs:{title:e.multiple?e.optionData.name:"",value:e.value,placeholder:e.$t("lib.zh-cn.acri49"),size:"small",clearable:"",disabled:e.disabled,filterable:e.filterable,"filter-method":e.filterMethod},on:{clear:e.clear,"visible-change":e.visibleChange}},[n("el-option",{ref:"option",staticClass:"tree-select__option",attrs:{value:e.optionData.id,label:e.optionData.name}},[n("el-tree",{ref:"tree",staticClass:"tree-select__tree",class:"tree-select__tree--"+(e.multiple?"checked":"radio"),attrs:{"node-key":e.nodeKey,data:e.data,props:e.props,"check-strictly":e.relate,"default-checked-keys":e.defaultCheckedKeys,"show-checkbox":e.multiple,"highlight-current":!e.multiple,"expand-on-click-node":e.multiple,"filter-node-method":e.filterNode,"default-expand-all":e.expandAll,"default-expanded-keys":e.expandedList},on:{"node-click":e.handleNodeClick,check:e.handleCheckChange},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,r=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",{class:!e.multiple&&r.disabled?"c-c0c4cc fw-normal":""},[e._v(e._s(a.label))]),e.needSlot&&r.children&&r.children.length?n("span",[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return t.stopPropagation(),function(){return e.selectNode(r,!1)}()}}},[e._v(e._s(e.$t("resetpwd.index.5d3r30")))]),n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return t.stopPropagation(),function(){return e.selectNode(r,!0)}()}}},[e._v(e._s(e.$t("treeselect.index.un2p4r")))])],1):e._e()])}}],null,!1,1948695595)})],1)],1):n("el-tree",{ref:"tree",staticClass:"tree-select__tree",class:"tree-select__tree--"+(e.multiple?"checked":"radio"),attrs:{"node-key":e.nodeKey,data:e.data,props:e.props,"check-strictly":e.relate,"default-checked-keys":e.defaultCheckedKeys,"show-checkbox":e.multiple,"highlight-current":!e.multiple,"expand-on-click-node":e.multiple,"filter-node-method":e.filterNode,"default-expand-all":e.expandAll,"default-expanded-keys":e.expandedList},on:{"node-click":e.handleNodeClick,"check-change":e.handleCheckChange},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,r=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",{class:!e.multiple&&r.disabled?"c-c0c4cc":""},[e._v(e._s(a.label))]),e.needSlot&&r.children&&r.children.length?n("span",[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return t.stopPropagation(),function(){return e.selectNode(r,!1)}()}}},[e._v(e._s(e.$t("resetpwd.index.5d3r30")))]),n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return t.stopPropagation(),function(){return e.selectNode(r,!0)}()}}},[e._v(e._s(e.$t("treeselect.index.un2p4r")))])],1):e._e()])}}])})},r=[],o=n("2909"),i=(n("4de4"),n("caad"),n("a15b"),n("d81d"),n("a9e3"),n("b64b"),n("d3b7"),n("25f0"),n("6062"),n("2532"),n("3ca3"),n("159b"),n("ddb0"),n("7719")),l={name:"TreeSelect",props:{value:{type:[String,Number,Array],default:""},multiple:{type:Boolean,default:!1},relate:{type:Boolean,default:!1},needSlot:{type:Boolean,default:!1},expandAll:{type:Boolean,default:!1},expandedKeys:{type:Boolean,default:!1},data:{type:Array,default:function(){return[]}},nodeKey:{type:[String,Number],default:"id"},filterable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},needSelect:{type:Boolean,default:!0},itemProp:{type:String,default:""},parentNode:{type:Boolean,default:!1},props:{type:Object,default:function(){return{label:"label",children:"children"}}}},data:function(){return{optionData:{id:"",name:""},filterFlag:!1,firstTime:!0,defaultCheckedKeys:[],expandedList:[]}},watch:{value:{immediate:!0,deep:!0,handler:function(e,t){Object(i["o"])(this.data)&&e&&this.initData(e)}}},created:function(){},methods:{handleNodeClick:function(e){this.multiple||e.disabled||(this.parentNode?this.$emit("updateValue",e[this.nodeKey]+"",this.itemProp):this.$emit("update:value",e[this.nodeKey]+""),this.needSelect?this.$refs.select.visible=!1:this.$emit("updateValue",e))},handleCheckChange:function(){var e=this,t=this.$refs.tree.getCheckedNodes(),n=t.map((function(t){return t[e.nodeKey]})).join(",");this.parentNode?this.$emit("updateValue",n,this.itemProp):this.$emit("update:value",n)},initData:function(e){var t=this;if(void 0!==e)if(this.multiple){var n=(null===e||void 0===e?void 0:e.toString().split(","))||[];this.firstTime&&(this.defaultCheckedKeys=n),this.$nextTick((function(){!t.firstTime&&t.$refs.tree.setCheckedKeys(n);var a=t.$refs.tree.getCheckedNodes();a.length?("string"===typeof e&&(t.optionData.id=e),t.optionData.name=a.map((function(e){return e[t.props.label]})).join(","),a.forEach((function(e){t.selectedParent(e)})),t.needSelect&&(t.$refs.select.selectedLabel=t.optionData.name),t.findExpandedNode()):(t.optionData.id="",t.optionData.name="",t.needSelect&&(t.$refs.select.selectedLabel="",t.$refs.select.currentPlaceholder=t.$t("lib.zh-cn.acri49")))})),this.firstTime=!1}else this.$nextTick((function(){t.$refs.tree.setCurrentKey(e);var n=t.$refs.tree.getNode(e);t.optionData.id=e||"",t.optionData.name=(null===n||void 0===n?void 0:n.label)||""}))},visibleChange:function(e){var t=this;if(e){var n=this.$refs.tree;this.filterFlag&&n.filter(""),this.filterFlag=!1;var a=null;a=this.multiple?n.$el.querySelector(".el-tree-node"):n.$el.querySelector(".is-current"),setTimeout((function(){t.needSelect&&t.$refs.select.scrollToOption({$el:a})}),0)}},clear:function(){this.parentNode?this.$emit("updateValue","",this.itemProp):this.$emit("update:value","")},filterMethod:function(e){this.filterFlag=!0,this.$refs.tree.filter(e)},filterNode:function(e,t){if(!e)return!0;var n=this.props.label||"name";return-1!==t[n].indexOf(e)},selectNode:function(e,t){var n=this.optionData.id?this.optionData.id.toString().split(","):[];if(t){var a=[];this.loop([e],a),a=a.toString().split(",");var r=n.filter((function(e){return!a.includes(e)}));this.parentNode?this.$emit("updateValue",r.join(","),this.itemProp):this.$emit("update:value",r.join(",")),this.initData(r)}else{this.loop([e],n),n=n.map((function(e){return e.toString()}));var i=new Set(n),l=Object(o["a"])(i);this.parentNode?this.$emit("updateValue",l.join(","),this.itemProp):this.$emit("update:value",l.join(",")),this.initData(l)}},loop:function(e,t){var n=this;e.forEach((function(e){var a;e.disabled||(t.push(e[n.nodeKey]),null!==(a=e.children)&&void 0!==a&&a.length&&n.loop(e.children,t))}))},selectedParent:function(e){var t=this.$refs.tree.getNode(e);null!==t&&void 0!==t&&t.parent&&t.parent.data&&(t.parent.indeterminate=!t.parent.checked,this.selectedParent(t.parent.data))},findExpandedNode:function(){if(this.expandedKeys){var e=this.$refs.tree.store.nodesMap,t=Object.keys(e).filter((function(t){return e[t].checked}));this.expandedList=t}}}},s=l,c=(n("2aaf"),n("2877")),u=Object(c["a"])(s,a,r,!1,null,"e2dcf338",null),d=u.exports;d.install=function(e){e.component(d.name,d)};t["a"]=d},"8e87":function(e,t,n){},9291:function(e,t,n){},"92ed":function(e,t,n){"use strict";n("533d")},9443:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex",attrs:{id:"FHTableDemoCode"}},[n("div",[n("code",[n("pre",[n("font",{staticClass:"keyword-tag line-height36"},[e._v("<template>")])],1),"commontabletest"!==e.$route.name?n("pre",[e._v(" "),n("font",{staticClass:"keyword-tag"},[e._v("<FilterQuery :model="),n("font",{staticClass:"string-tag"},[e._v('"formItem"')]),e._v(" @formItemChange="),n("font",{staticClass:"string-tag"},[e._v('"formItemChange"')]),e._v(" @searchClick="),n("font",{staticClass:"string-tag"},[e._v('"searchClick"')]),e._v(" @resetClick="),n("font",{staticClass:"string-tag"},[e._v('"resetClick"')]),e._v(" />")],1)],1):e._e(),"commontabletest"!==e.$route.name?n("pre",[e._v(" "),n("font",{staticClass:"keyword-tag"},[e._v("<div class="),n("font",{staticClass:"string-tag"},[e._v('"table-btn-group"')]),e._v(" >")],1)],1):e._e(),"commontabletest"!==e.$route.name?n("pre",[e._v(" "),n("font",{staticClass:"keyword-tag"},[e._v("<el-button type="),n("font",{staticClass:"string-tag"},[e._v('"primary"')]),e._v(" icon="),n("font",{staticClass:"string-tag"},[e._v('"el-icon-plus"')]),e._v(" size="),n("font",{staticClass:"string-tag"},[e._v('"small"')]),e._v(" @click="),n("font",{staticClass:"string-tag"},[e._v('"addClick"')]),e._v(">新增</el-button>")],1)],1):e._e(),"commontabletest"!==e.$route.name?n("pre",[e._v(" "),n("font",{staticClass:"keyword-tag"},[e._v("<el-button type="),n("font",{staticClass:"string-tag"},[e._v('"danger"')]),e._v(" size="),n("font",{staticClass:"string-tag"},[e._v('"small"')]),e._v(" @click="),n("font",{staticClass:"string-tag"},[e._v('"delClick"')]),e._v(">批量删除</el-button>")],1)],1):e._e(),"commontabletest"!==e.$route.name?n("pre",[e._v(" "),n("font",{staticClass:"keyword-tag"},[e._v("</div>")])],1):e._e(),"commontabletest"!==e.$route.name?n("pre",[e._v(" "),n("font",{staticClass:"keyword-tag"},[e._v("<el-dialog width="),n("font",{staticClass:"string-tag"},[e._v('"540px"')]),e._v(" title="),n("font",{staticClass:"string-tag"},[e._v('"新增"')]),e._v(" :visible.sync="),n("font",{staticClass:"string-tag"},[e._v('"dialogVisible"')]),e._v(" :close-on-click-modal="),n("font",{staticClass:"string-tag"},[e._v('"false"')]),e._v(" @close="),n("font",{staticClass:"string-tag"},[e._v('"close()"')]),e._v(" >")],1)],1):e._e(),"commontabletest"!==e.$route.name?n("pre",[e._v(" "),n("font",{staticClass:"keyword-tag"},[e._v("<CommonForm ref="),n("font",{staticClass:"string-tag"},[e._v('"commonForm"')]),e._v(" :model="),n("font",{staticClass:"string-tag"},[e._v('"formModel"')]),e._v(" @changeFormItem="),n("font",{staticClass:"string-tag"},[e._v('"changeFormItem"')]),e._v(" @submitForm="),n("font",{staticClass:"string-tag"},[e._v('"submitForm"')]),e._v(" @cancel="),n("font",{staticClass:"string-tag"},[e._v('"cancel"')]),e._v(" />")],1)],1):e._e(),"commontabletest"!==e.$route.name?n("pre",[e._v(" "),n("font",{staticClass:"keyword-tag"},[e._v("</el-dialog>")])],1):e._e(),n("pre",[e._v(" "),n("font",{staticClass:"keyword-tag"},[e._v("<FHTable\n ref="),n("font",{staticClass:"string-tag"},[e._v('"FHTable"')]),e._v("\n :has-checkbox="),n("font",{staticClass:"string-tag"},[e._v('"true"')]),e._v("\n :query-table-data="),n("font",{staticClass:"string-tag"},[e._v('"queryTableData"')]),e._v("\n :query-params="),n("font",{staticClass:"string-tag"},[e._v('"queryParams"')]),e._v("\n :table-props="),n("font",{staticClass:"string-tag"},[e._v('"tableProps"')]),e._v("\n list-map-name="),n("font",{staticClass:"string-tag"},[e._v('"smSaasPlatformList"')]),e._v("\n @handleTableList="),n("font",{staticClass:"string-tag"},[e._v('"handleTableList"')]),e._v("\n @handleTableClick="),n("font",{staticClass:"string-tag"},[e._v('"handleTableClick"')]),e._v("\n @handleSelectionChange="),n("font",{staticClass:"string-tag"},[e._v('"handleSelectionChange"')]),e._v("\n/>")],1)],1),n("pre",[n("font",{staticClass:"keyword-tag line-height36"},[e._v("</template>")])],1),n("br"),n("CodeBuild",{attrs:{"script-obj":e.scriptFHTableObj},on:{jumpImportClick:e.jumpImportClick}},[n("pre",{attrs:{slot:"watch"},slot:"watch"},[e._v(" list: {\n handler("),n("font",{staticClass:"string-tag"},[e._v("val")]),e._v(") {\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".tableProps["),n("font",{staticClass:"string-tag"},[e._v("'data'")]),e._v("] = "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".deepClone("),n("font",{staticClass:"string-tag"},[e._v("val")]),e._v(");\n }\n }")],1),n("pre",{attrs:{slot:"created"},slot:"created"},[e._v(" "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".getData();")],1),n("pre",{attrs:{slot:"methods"},slot:"methods"},[e._v(" getData() {"),"commontabletest"!==e.$route.name?n("font",[n("br"),e._v(" "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".formItem = "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".deepClone(getFHFormQueryObj());")],1):e._e(),e._v("\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".tableProps = "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".deepClone(getFHTableProp());\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".queryParams = {"),n("font",{staticClass:"string-tag"},[e._v("'saasId'")]),e._v(": "),n("font",{staticClass:"string-tag"},[e._v("'ff5a67337b6611e89feafa163eb3e537'")]),e._v(", "),n("font",{staticClass:"string-tag"},[e._v("'userId'")]),e._v(": "),n("font",{staticClass:"string-tag"},[e._v("'27775e0e494447bf94a5292252262870'")]),e._v("};\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".tempQueryParams = "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".deepClone("),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".queryParams);\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".getTableList();\n "),"commontabletest"!==e.$route.name?n("font",[n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".formModel = "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".deepClone(getFormDataObj());")],1):e._e(),e._v("\n },\n // 处理table表里面的点击,例如查看详情,或者删除等按钮的事件\n queryTableData("),n("font",{staticClass:"string-tag"},[e._v("queryParams")]),e._v(") {\n "),n("font",{staticClass:"keyword-tag"},[e._v("return")]),e._v(" api_testPage.queryPlatformList({ params: "),n("font",{staticClass:"string-tag"},[e._v("queryParams")]),e._v(" });\n },\n // 接口请求回来的数据\n handleTableList("),n("font",{staticClass:"string-tag"},[e._v("list")]),e._v(") {\n list.forEach(item => {\n const operates = [{ type: "),n("font",{staticClass:"string-tag"},[e._v("'terminalManage'")]),e._v(", text: "),n("font",{staticClass:"string-tag"},[e._v("'终端管理'")]),e._v(" }];\n if (!item.id.includes("),n("font",{staticClass:"string-tag"},[e._v("'_'")]),e._v(")) {\n const arr = [\n { type: "),n("font",{staticClass:"string-tag"},[e._v("'edit'")]),e._v(", text: "),n("font",{staticClass:"string-tag"},[e._v("'编辑'")]),e._v(" },\n { type: "),n("font",{staticClass:"string-tag"},[e._v("'relevance'")]),e._v(", text: "),n("font",{staticClass:"string-tag"},[e._v("'关联机构'")]),e._v(" },\n { type: "),n("font",{staticClass:"string-tag"},[e._v("'delete'")]),e._v(", text: "),n("font",{staticClass:"string-tag"},[e._v("'删除'")]),e._v(" }\n ];\n item["),n("font",{staticClass:"string-tag"},[e._v("'operates'")]),e._v("] = operates.concat(arr);\n }\n });\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".list = "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".deepClone(list);\n },\n handleTableClick("),n("font",{staticClass:"string-tag"},[e._v("item")]),e._v(") {\n const row = item.row || {};\n if (item.type === "),n("font",{staticClass:"string-tag"},[e._v("'delete'")]),e._v(") {\n // 删除\n const tempList = "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".list.filter(l => l.id !== row.id);\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".list = "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".deepClone(tempList);\n } else if (item.type === "),n("font",{staticClass:"string-tag"},[e._v("'terminalManage'")]),e._v(") {\n // 终端管理\n } else if (item.type === "),n("font",{staticClass:"string-tag"},[e._v("'edit'")]),e._v(") {\n // 编辑\n "),"commontabletest"!==e.$route.name?n("font",[n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".formModel["),n("font",{staticClass:"string-tag"},[e._v("'form'")]),e._v("] = row;\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".dialogVisible = "),n("font",{staticClass:"value-tag"},[e._v("true")]),e._v(";")],1):e._e(),e._v("\n } else if (item.type === "),n("font",{staticClass:"string-tag"},[e._v("'relevance'")]),e._v(") {\n // 关联机构\n }\n },\n handleSelectionChange(val) {\n console.log("),n("font",{staticClass:"string-tag"},[e._v("'handleSelectionChange'")]),e._v(", val);\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".idArr = val."),n("font",{staticClass:"keyword-tag"},[e._v("map")]),e._v("(({ id }) => (id));\n }"),"commontabletest"!==e.$route.name?n("font",[e._v(",")]):e._e(),"commontabletest"!==e.$route.name?n("pre",[e._v(" // 表单(新增,编辑)\n changeFormItem("),n("font",{staticClass:"string-tag"},[e._v("formObj")]),e._v(") {\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".formModel.form["),n("font",{staticClass:"string-tag"},[e._v("formObj.prop")]),e._v("] = formObj.val;\n },\n // 新增\n addClick() {\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".resetForm();\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".dialogVisible = "),n("font",{staticClass:"value-tag"},[e._v("true")]),e._v(";\n },\n // 删除\n delClick() {\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".list = "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".list."),n("font",{staticClass:"keyword-tag"},[e._v("filter")]),e._v("(l => "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".idArr."),n("font",{staticClass:"keyword-tag"},[e._v("every")]),e._v("(id => l.id !== id));\n },\n // 关闭弹框\n close() {\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".dialogVisible = "),n("font",{staticClass:"value-tag"},[e._v("false")]),e._v(";\n },\n // 重置数据\n resetForm() {\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".formModel = "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".deepClone(getFormDataObj());\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".$nextTick(() => {\n // 重置表单数据\n if ("),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".$refs && this.$refs["),n("font",{staticClass:"string-tag"},[e._v("'commonForm'")]),e._v("]) {\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".$refs["),n("font",{staticClass:"string-tag"},[e._v("'commonForm'")]),e._v("].resetFormValidate();\n }\n });\n },\n // 取消\n cancel() {\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".resetForm();\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".close();\n },\n // 提交\n submitForm() {\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".formModel.form["),n("font",{staticClass:"string-tag"},[e._v("'id'")]),e._v("] = `${"),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".list.length + 1}`;\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".list = ["),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".formModel.form].concat("),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".list);\n const tablePropArr = this.tableProps["),n("font",{staticClass:"string-tag"},[e._v("'tableProp'")]),e._v("];\n const tempArr = tablePropArr."),n("font",{staticClass:"keyword-tag"},[e._v("filter")]),e._v("(t => t.type === "),n("font",{staticClass:"string-tag"},[e._v("'htmlType'")]),e._v(");\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".list."),n("font",{staticClass:"keyword-tag"},[e._v("forEach")]),e._v("(item => {\n tempArr."),n("font",{staticClass:"keyword-tag"},[e._v("forEach")]),e._v("(t => {\n const xssProp = "),n("font",{staticClass:"string-tag"},[e._v("'xss'")]),e._v(" + t.prop;\n item[xssProp] = item[t.prop] ? brightenKeyword(t.color || "),n("font",{staticClass:"c-1677ff"},[e._v("'#1677ff'")]),e._v(", item[t.prop]) : "),n("font",{staticClass:"string-tag"},[e._v("'--'")]),e._v(";\n });\n Object.keys(item)."),n("font",{staticClass:"keyword-tag"},[e._v("forEach")]),e._v("(k => { item[k] = Object.keys(item).forEach(k => { item[k] = (item[k] === '' || item[k] === null || item[k] === undefined) ? '"),n("font",{staticClass:"string-tag"},[e._v("'--'")]),e._v(";' : item[k]; }); });\n });\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".handleTableList("),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".list);\n "),n("font",{staticClass:"string-tag"},[e._v("this")]),e._v(".close();\n }")],1):e._e()],1)])],1)]),e.showMixin?n("QueryTableMixinTest",{staticClass:"mixin-box"}):e._e()],1)},r=[],o=n("53ca"),i=n("1da1"),l=(n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("fb6a"),n("b0c0"),n("0c47"),n("23dc"),n("3410"),n("131a"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0"),n("b01e")),s=n("4720");function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,a){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),l=new E(a||[]);return r(i,"_invoke",{value:S(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m="suspendedStart",h="suspendedYield",g="executing",b="completed",v={};function y(){}function C(){}function x(){}var _={};d(_,l,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w($([])));k&&k!==n&&a.call(k,l)&&(_=k);var T=x.prototype=y.prototype=Object.create(_);function j(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(r,i,l,s){var c=f(e[r],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Object(o["a"])(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(o,i){if(r===g)throw Error("Generator is already running");if(r===b){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=F(l,a);if(s){if(s===v)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=b,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=g;var c=f(t,n,a);if("normal"===c.type){if(r=a.done?b:h,c.arg===v)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=b,a.method="throw",a.arg=c.arg)}}}function F(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,F(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var o=f(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function $(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Object(o["a"])(t)+" is not iterable")}return C.prototype=x,r(T,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:C,configurable:!0}),C.displayName=d(x,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===C||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,u,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},j(P.prototype),d(P.prototype,s,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new P(p(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(T),d(T,u,"Generator"),d(T,l,(function(){return this})),d(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=$,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:$(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}var u={name:"FHTableDemoCode",components:{CodeBuild:l["default"],QueryTableMixinTest:s["default"]},props:{},data:function(){return{showMixin:!1,scriptFHTableObj:{}}},watch:{$route:{deep:!0,immediate:!0,handler:function(e,t){var n=this;return Object(i["a"])(c().mark((function t(){return c().wrap((function(t){while(1)switch(t.prev=t.next){case 0:"commontabletest"!==e.name?(n.scriptFHTableObj["importArr"]=[{component:"{ FHTable, FilterQuery, CommonForm }",componentUrl:"@/components"},{component:"{ getFHTableProp, getFHFormQueryObj, getFormDataObj }",componentUrl:"@/views/testPage/dataSource/testPageData",note:"数据源文件,根据自己的页面去写"},{component:"api_testPage",componentUrl:"@/api/api_testPage",note:"接口请求"},{component:"{ brightenKeyword }",componentUrl:"fhrons-pc/plugins/tool/func",note:"改变颜色的方法"},{component:"{ queryTableMixin }",componentUrl:"@/mixins",note:"封装了table列表的公共属性以及通用方法",jump:!0}],n.scriptFHTableObj["components"]="FHTable, FilterQuery, CommonForm",n.scriptFHTableObj["dataArr"]=[{key:"dialogVisible",value:!1},{key:"idArr",value:[]},{key:"formModel",value:{}}]):n.scriptFHTableObj={created:!0,watch:!0,importArr:[{component:"{ FHTable }",componentUrl:"@/components"},{component:"{ getFHTableProp }",componentUrl:"@/views/testPage/dataSource/testPageData",note:"数据源文件,根据自己的页面去写"},{component:"api_testPage",componentUrl:"@/api/api_testPage",note:"接口请求"},{component:"{ queryTableMixin }",componentUrl:"@/mixins",note:"封装了table列表的公共属性以及通用方法",jump:!0}],dataArr:[{key:"idArr",value:[]}],components:"FHTable",mixins:"queryTableMixin"};case 1:case"end":return t.stop()}}),t)})))()}}},created:function(){},mounted:function(){},methods:{jumpImportClick:function(){this.showMixin=!this.showMixin}}},d=u,p=(n("9c6b"),n("2877")),f=Object(p["a"])(d,a,r,!1,null,"3ef1078f",null);t["default"]=f.exports},"95fa":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"line-height36",attrs:{id:"TestNpm"}},[n("p",{staticClass:"ft28 fw-500"},[e._v("安装")]),n("p",{staticClass:"ft18 fw-500 mt24"},[e._v("npm 安装")]),n("p",[e._v("推荐使用 npm 的方式安装,它能更好地和 webpack 打包工具配合使用。")]),n("pre",{staticClass:"language-html mtb0",domProps:{innerHTML:e._s(e.toHtml("npm i fhrons-pc@24.04.09.02"))}}),e._v(" "),n("p",{staticClass:"ft18 fw-500 mt24"},[e._v("引用")]),n("p",[e._v("在页面上引入文件即可开始使用")]),n("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.codeStr))}}),e._v(" "),n("p",{staticClass:"ft28 fw-500 mt40"},[e._v("快速上手")]),n("p",[e._v("本节将介绍如何在项目中使用 fhrons-pc。")]),n("p",{staticClass:"ft18 fw-500 mt24"},[e._v("引入fhrons-pc")]),n("p",[e._v("你可以引入整个 fhrons-pc,或是根据需要仅引入部分组件。我们先介绍如何引入完整的 fhrons-pc。")]),n("p",{staticClass:"ft16 fw-500 mt12"},[e._v("完整引入")]),n("p",[e._v("在 main.js 中写入以下内容:")]),n("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.codeStr1))}}),e._v(" "),n("p",[e._v("以上代码便完成了 fhrons-pc 的引入。")]),n("p",{staticClass:"ft16 fw-500 mt12"},[e._v("按需引入")]),n("p",[e._v("如果你只希望引入部分组件,比如 CommonTable 和 FilterQuery,那么需要在 main.js 中写入以下内容:")]),n("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.codeStr2))}}),e._v(" "),n("p",[e._v("完整组件列表和引入方式(点击组件名可查看示例,完整组件列表以 最新版本库 为准)")]),n("pre",{staticClass:"language-js mtb0"},[e._v(" "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStr4))}}),e._v("\n "),e._l(e.codeStr4Arr,(function(t,a){return n("el-link",{key:a,staticClass:"block ml24",attrs:{underline:!1,disabled:!t.path},on:{click:function(n){return e.$router.push(t.path)}}},[e._v(e._s(t.text))])})),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStr5))}}),e._v("\n "),n("code",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.codeStr3))}}),e._v("\n ")],2),n("p",{staticClass:"ft28 fw-500 mt40"},[e._v("开始使用")]),n("p",[e._v("至此,一个基于 Vue 和 fhrons-pc 的开发环境已经搭建完毕,现在就可以编写代码了。各个组件的使用方法请参阅各自示例。")])])},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),{name:"TestNpm",components:{},props:{},data:function(){return{codeStr:"// main.js中全局引入\nimport FhronsPc from 'fhrons-pc';\nVue.use(FhronsPc);\n\n// 页面内按需引入\nimport { CommonNoData } from 'fhrons-pc';\nVue.use(CommonNoData);",codeStr1:"import Vue from 'vue';\nimport FhronsPc from 'fhrons-pc';\nimport App from './App.vue';\n\nVue.use(FhronsPc);\n\nconst vm = new Vue({\n render: h => h(App)\n}).$mount('#app');\n\nexport default vm; ",codeStr2:"import Vue from 'vue';\nimport { CommonTable,FilterQuery } from 'fhrons-pc';\nimport App from './App.vue';\n\nVue.use(CommonTable);\nVue.use(FilterQuery);\n\nconst vm = new Vue({\n render: h => h(App)\n}).$mount('#app');",codeStr3:"\nVue.use(CommonTable);\nVue.use(CommonNoData);\nVue.use(TooltipOver);\nVue.use(FHTable);\nVue.use(FilterQuery);\nVue.use(CommonForm);\nVue.use(CommonPagination);\nVue.use(CommonAudio);\nVue.use(SvgIcon);\nVue.use(CommonEcharts);\nVue.use(UploadFile);\nVue.use(TreeSelect);\nVue.use(CommonAudioRow);\nVue.use(DatePicker);\nVue.use(IframeTemplate);",codeStr4:"\nimport Vue from 'vue';\nimport {",codeStr5:"\n} from 'fhrons-pc';",codeStr4Arr:[{text:"CommonTable",path:"/commontabletest"},{text:"CommonNoData",path:"/commonnodatatest"},{text:"TooltipOver",path:"/commontabletest"},{text:"FHTable",path:"/packagingtable"},{text:"FilterQuery",path:"/filterquerytest"},{text:"CommonForm",path:"/commonformtest"},{text:"CommonPagination",path:"/commontabletest"},{text:"CommonEcharts",path:"/commonechartstest"},{text:"UploadFile",path:"/uploadfiletest"},{text:"TreeSelect",path:"/treeselecttest"},{text:"IframeTemplate",path:"/iframetest"},{text:"DatePicker",path:"/filterquerytest"},{text:"CommonAudio",path:"/commonaudiotest"},{text:"CommonAudioRow",path:"/commonaudiotest"},{text:"SvgIcon",path:""}]}},watch:{},created:function(){},mounted:function(){},methods:{toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")}}}),s=l,c=(n("4bce"),n("2877")),u=Object(c["a"])(s,a,r,!1,null,"12e88034",null);t["default"]=u.exports},"962b":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"CommonFormTestAdd"}},[n("UploadFile",{attrs:{"upload-props":e.imgProps,"default-file-list":e.defaultFileList},on:{uploadSuccess:e.uploadSuccess,removeFile:e.removeFile}})],1)},r=[],o=n("2af9"),i={name:"CommonFormTestAdd",components:{UploadFile:o["u"]},props:{},data:function(){return{cosBucket:"uploaduat-10051630",cosRegion:"ap-shanghai",appName:"fhronspc",imgProps:{acceptAttribute:".jpg,.png",fileSize:5,type:"img",subTip:"只能上传jpg/png文件,且不超过5M",limit:1,listType:"picture-card",limitWidth:5e3,limitHeight:5e3},defaultFileList:[]}},watch:{},created:function(){},mounted:function(){},methods:{uploadSuccess:function(e){console.log(e,"uploadSuccess"),this.defaultFileList=e},removeFile:function(e){console.log(e,"removeFile"),this.defaultFileList=e}}},l=i,s=n("2877"),c=Object(s["a"])(l,a,r,!1,null,"6746bb01",null);t["default"]=c.exports},"970f":function(e,t,n){},9722:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"RichTextEditorCode"}},[n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36 pd20"},[n("code",[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlStrArr.slice(1).join("")))}}),e._v("\n ")])])])]):e._e()])},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),n("4fca")),s={name:"RichTextEditorCode",components:{},props:{},data:function(){return{moreFlag:!0,htmlStrArr:l["R"]}},watch:{},created:function(){},mounted:function(){},methods:{handleMore:function(){this.moreFlag=!this.moreFlag},toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"0f561fc8",null);t["default"]=d.exports},"98fb":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ps-r flex",attrs:{id:"CommonFormTest"}},[n("div",{staticClass:"demo-block m0a"},[n("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.handleActive},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[n("el-tab-pane",{attrs:{label:"常规用法",name:"0"}},[n("div",{staticClass:"pd24"},[n("CommonForm",{ref:"commonForm",attrs:{model:e.formModel},on:{changeFormItem:e.changeFormItem,submitForm:e.submitForm,cancel:e.cancel,updateValue:e.updateValue},scopedSlots:e._u([{key:"otherType",fn:function(t){return["slotTextarea"===t.item.type?n("div",[n("el-input",{attrs:{clearable:"",type:"textarea",rows:"1"},model:{value:t.form[t.item.prop],callback:function(n){e.$set(t.form,t.item.prop,n)},expression:"scope.form[scope.item.prop]"}})],1):e._e()]}}])})],1),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:function(t){e.moreFlag=!e.moreFlag}}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("el-tabs",{staticClass:"mtb20"},[n("el-tab-pane",{attrs:{label:"页面代码"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.codeStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.codeStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStrArr.slice(1).join("")))}}),e._v("\n ")])])]),n("el-tab-pane",{attrs:{label:"数据源"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.dataStr)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.dataStr))}})])])],1)],1):e._e()]),n("el-tab-pane",{attrs:{label:"扩展插槽",name:"1"}},[n("div",{staticClass:"pd24"},[n("CommonForm",{ref:"commonForm",attrs:{model:e.formModel},on:{changeFormItem:e.changeFormItem,submitForm:e.submitForm,cancel:e.cancel},scopedSlots:e._u([{key:"otherType",fn:function(t){return["slotTextarea"===t.item.type?n("div",[n("el-input",{attrs:{clearable:"",type:"textarea",rows:"1"},model:{value:t.form[t.item.prop],callback:function(n){e.$set(t.form,t.item.prop,n)},expression:"scope.form[scope.item.prop]"}}),n("CommonFormTestAdd")],1):e._e()]}}])})],1),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:function(t){e.moreFlag=!e.moreFlag}}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("el-tabs",{staticClass:"mtb20"},[n("el-tab-pane",{attrs:{label:"拓展插槽页面代码"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.CommonFormTestHtml+e.codeStrArr.slice(1).join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.CommonFormTestHtml))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStrArr.slice(1).join("")))}}),e._v("\n ")])])]),n("el-tab-pane",{attrs:{label:"拓展插槽数据源"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.CommonFormTestDataStr)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.CommonFormTestDataStr))}})])])],1)],1):e._e()]),n("el-tab-pane",{attrs:{label:"一排多个",name:"2"}},[n("div",{staticClass:"pd24"},[n("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"一排两个",name:"inline-two"}}),n("el-tab-pane",{attrs:{label:"一排三个",name:"inline-three"}}),n("el-tab-pane",{attrs:{label:"一排四个",name:"inline-four"}})],1),n("CommonForm",{ref:"commonForm",attrs:{model:e.formModel},on:{changeFormItem:e.changeFormItem,submitForm:e.submitForm,cancel:e.cancel},scopedSlots:e._u([{key:"otherType",fn:function(t){return["slotTextarea"===t.item.type?n("div",[n("el-input",{attrs:{clearable:"",type:"textarea",rows:"1"},model:{value:t.form[t.item.prop],callback:function(n){e.$set(t.form,t.item.prop,n)},expression:"scope.form[scope.item.prop]"}})],1):e._e()]}}])})],1),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:function(t){e.moreFlag=!e.moreFlag}}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("el-tabs",{staticClass:"mtb20"},[n("el-tab-pane",{attrs:{label:"一排多个页面代码"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.CommonFormTestHtml+e.codeStrArr.slice(1).join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.CommonFormTestHtml))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStrArr.slice(1).join("")))}}),e._v("\n ")])])]),n("el-tab-pane",{attrs:{label:"一排多个数据源"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.CommonFormTestDataStr1)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.CommonFormTestDataStr1))}})])])],1)],1):e._e()])],1)],1),n("div",{staticClass:"flex1 pd12 over-auto"},[n("p",{staticClass:"ft28 fw-500"},[e._v("时间选择器注意事项:")]),n("p",{staticClass:"ft18 fw-500 mt24"},[e._v("时间选择器初始化")]),n("p",{staticClass:"c-f56c6c mt8 line-height21"},[e._v("时间类型初始化的时候form必须要赋值,formArr里面的valueFormat属性,在需要做数据回显的时候必写(仅应用于选择,不回显的时候可不写)。")]),n("pre",{staticClass:"language-html mtb0",domProps:{innerHTML:e._s(e.toJs(e.str1))}}),e._v(" "),n("p",{staticClass:"ft18 fw-500 mt24"},[e._v("时间选择器回显")]),n("p",{staticClass:"c-f56c6c mtb8 line-height21"},[e._v("时间数据回显时必须做数据格式处理,处理成标准时间格式。")]),n("p",[e._v("1、数据回显(type:'date'):")]),n("pre",{staticClass:"language-html mtb0",domProps:{innerHTML:e._s(e.toJs(e.str2))}}),e._v(" "),n("p",[e._v("2、数据回显(type:'datetime'):")]),n("pre",{staticClass:"language-html mtb0",domProps:{innerHTML:e._s(e.toJs(e.str3))}}),e._v(" "),n("p",{staticClass:"c-f56c6c ft18 fw-500 mt24"},[e._v("daterange和datetimerange与上面所述同理,回显的时候都需要处理回显数据格式。")])])])},r=[],o=(n("4de4"),n("b0c0"),n("d3b7"),n("4348")),i=n("2af9"),l=n("7719"),s=n("c197"),c=n.n(s),u=(n("a878"),n("4fca")),d=n("962b"),p={name:"CommonFormTest",components:{CommonForm:i["e"],CommonFormTestAdd:d["default"]},props:{},data:function(){return{activeName:"inline-two",formModel:{},moreFlag:!0,active:"0",scriptObj:{created:!0,importArr:[{component:"{ CommonForm }",componentUrl:"@/components"},{component:"{ commonFormEg }",componentUrl:"@/views/testPage/dataSource/testPageData",note:"数据源文件,根据自己的页面去写"}],components:"CommonForm",dataArr:[{key:"formModel",value:"{}"}]},CommonFormTestDataStr:Object(u["c"])(),CommonFormTestDataStr1:Object(u["c"])(!0),CommonFormTestHtml:u["d"],codeStrArr:u["a"],dataStr:u["b"],str1:u["o"],str2:"this.formModel['form']['dateVal'] = this.$dayjs().format('YYYY-MM-DD');\n\n// data类型的取当前时间可以使用new Date(),如下:\nthis.formModel['form']['dateVal'] = new Date(); \n",str3:"this.formModel['form']['datetimeVal'] = this.$dayjs().format('YYYY-MM-DD HH:mm:ss');"}},watch:{},created:function(){this.formModel=Object(l["e"])(o["h"])||{},this.formModel["form"]["dateVal"]=new Date,this.formModel.formArr=this.formModel.formArr.filter((function(e){return"slotTextarea"!==e.type}))},mounted:function(){},methods:{updateValue:function(e,t){console.log("updateValue-----",e,t),this.formModel.form[t]=e},changeFormItem:function(e){console.log("formObj",e),this.formModel.form[e.prop]=e.val},submitForm:function(){console.log("submitForm",this.formModel)},cancel:function(){var e=this;this.formModel=Object(l["e"])(o["h"])||{},this.formModel["form"]["dateVal"]=new Date,this.$nextTick((function(){e.$refs&&e.$refs["commonForm"]&&e.$refs["commonForm"].resetFormValidate()}))},toHtml:function(e){return c.a.highlight(e,c.a.languages.html,"html")},toJs:function(e){return c.a.highlight(e,c.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))},handleActive:function(){console.log(this.active),"1"===this.active?(this.formModel=Object(l["e"])(o["h"])||{},this.formModel["form"]["dateVal"]=new Date):"2"===this.active?(this.formModel=Object(l["e"])(o["h"])||{},this.formModel["formClass"]="inline-two",this.formModel["form"]["dateVal"]=new Date):this.formModel.formArr=this.formModel.formArr.filter((function(e){return"slotTextarea"!==e.type}))},handleTabClick:function(e,t){console.log(e,t),this.formModel["formClass"]=e.name}}},f=p,m=(n("b26d"),n("2877")),h=Object(m["a"])(f,a,r,!1,null,"06b30680",null);t["default"]=h.exports},"9a5a":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"PDFViewerTest"}},[a("PDFViewer",{attrs:{src:e.pdfUrl},on:{onLoaded:e.onLoaded}}),a("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[a("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),a("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?a("div",{staticClass:"ft16 line-height36"},[a("el-tabs",{staticClass:"mtb20"},[a("el-tab-pane",{attrs:{label:"页面代码"}},[a("div",{staticClass:"ps-r"},[a("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.codeStrArr.join(""))}}},[e._v("复制")]),a("pre",{staticClass:"language-"},[e._v(" "),a("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.codeStrArr[0]))}}),e._v("\n "),a("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStrArr.slice(1).join("")))}}),e._v("\n ")])])]),a("el-tab-pane",{attrs:{label:"引入"}},[a("p",[e._v("在index.html中引入pdf在线cdn链接,并做失败处理;失败时会引用本地缓存")]),a("p",[e._v("引入部分:")]),a("div",{staticClass:"ps-r"},[a("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.importArr[0])}}},[e._v("复制")]),a("pre",{staticClass:"language-"},[e._v(" "),a("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.importArr[0]))}}),e._v("\n ")])]),a("p",[e._v("参考示例:")]),a("div",{staticClass:"ps-r tag-pdf"},[a("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.importArr[1])}}},[e._v("复制")]),a("pre",{staticClass:"language-"},[e._v(" "),a("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.importArr[1]))}}),e._v("\n ")])])]),a("el-tab-pane",{attrs:{label:"引入本地文件"}},[a("img",{attrs:{src:n("2c97"),alt:""}})])],1)],1):e._e()],1)},r=[],o=n("2af9"),i=n("4fca"),l=n("c197"),s=n.n(l),c=(n("a878"),{name:"PDFViewerTest",components:{PDFViewer:o["q"]},props:{},data:function(){return{pdfUrl:"https://static.zhongan.com/upload/online/material/gryjylbxtkDk.pdf",moreFlag:!0,codeStrArr:i["n"],currentUrl:"",importArr:i["m"]}},watch:{},created:function(){},mounted:function(){},methods:{onLoaded:function(e){this.currentUrl=e},handleMore:function(){this.moreFlag=!this.moreFlag},toHtml:function(e){return s.a.highlight(e,s.a.languages.html,"html")},toJs:function(e){return s.a.highlight(e,s.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}}),u=c,d=n("2877"),p=Object(d["a"])(u,a,r,!1,null,"f4971f68",null);t["default"]=p.exports},"9b78":function(e,t,n){"use strict";n("9291")},"9c6b":function(e,t,n){"use strict";n("b315")},"9e77":function(e,t,n){},"9fa2":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"demo-block pd24 mb24"},[n("span",{staticClass:"ft32 fw-500 mt12"},[e._v("使用自定义上传控件")]),n("div",{staticClass:"flex-around-center upload-container mtb20"},[n("UploadFile",{attrs:{"upload-props":e.customUploadWidget,"default-file-list":[{url:"https://frcdap-dev-1251973116.cos.ap-shanghai-fsi.myqcloud.com/fhronspc/img/1670227671997/352781669776922_.pic.jpg"}]},on:{uploadSuccess:function(t,n){return e.uploadSuccess({},t,n)},removeFile:e.removeFile},scopedSlots:e._u([{key:"uploadWidget",fn:function(){return[n("el-button",[e._v("按钮上传控件")])]},proxy:!0}])}),n("UploadFile",{attrs:{"upload-props":e.customUploadWidget},on:{uploadSuccess:function(t,n){return e.uploadSuccess({},t,n)},removeFile:e.removeFile},scopedSlots:e._u([{key:"uploadWidget",fn:function(){return[n("el-link",{attrs:{type:"primary"}},[e._v("文字上传控件")])]},proxy:!0}])}),n("UploadFile",{attrs:{"upload-props":e.customUploadWidget},on:{uploadSuccess:function(t,n){return e.uploadSuccess({},t,n)},removeFile:e.removeFile},scopedSlots:e._u([{key:"uploadWidget",fn:function(){return[n("i",{staticClass:"el-icon-upload2"}),n("p",[e._v("图标上传组件")])]},proxy:!0}])})],1),n("div",{staticClass:"ps-r"},[n("p",{staticStyle:{"line-height":"2"}},[e._v("上传组件用到的场景各不相同,文档中自带的控件可能并不能覆盖到每一种场景,在此基础上我们支持使用自定义控件。")]),e._m(0),e._m(1),e._m(2),e._m(3),e._m(4),n("p",[e._v("filePath 的用法")]),n("pre",{staticClass:"language-javascript"},[e._v(" "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStr))}}),e._v("\n ")])])])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",{staticStyle:{"line-height":"2"}},[n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("自定义控件")]),e._v("是通过 "),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("slot")]),e._v(" 的"),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("具名插槽")]),e._v("实现的,具体用法如下方代码所示:")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("pre",{staticClass:"language-javascript"},[n("code",[e._v('<UploadFile :upload-props="customUploadWidget" @uploadSuccess="(fileList, data) => uploadSuccess({}, fileList, data)" @removeFile="removeFile">\n <template v-slot:uploadWidget>\n <el-button>自定义上传控件</el-button>\n </template>\n</UploadFile>')])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",{staticStyle:{"line-height":"2"}},[e._v("上传组件接收的参数对象 "),n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("uploadProps ")]),e._v("包含以下属性:")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("pre",{staticClass:"language-javascript"},[n("code",[e._v("/**\n * uploadProps对象下可选参数\n * @method 上传方法: cos(腾讯云) 后台接口:base64(非腾讯云的上传) formData(非腾讯云formData的上传)\n * @type 放在腾讯云的哪个文件夹下 video img file\n * @fileSize 限制文件大小,需传入数字类型\n * @acceptAttribute 限制文件类型,需传入字符串类型 示例:acceptAttribute:'.PDF,.jpeg'\n * @acceptMethods 判断当然传入文件格式,需传入数组 示例:acceptMethods:['application/pdf','image/jpeg']'\n * @limit 文件上传的总数限制\n * @limitWidth 如果为图片,图片的宽度限制\n * @limitHeight 如果为图片,图片的高度限制\n * @multiple 传true支持上传多张\n * @listType 文件列表的类型 text/picture/picture-card\n * @disabled 上传组件是否可用\n * @hideBtnOnDisabled 禁用组件时是否隐藏上传按钮\n * @showFileList 是否展示已上传的文件列表\n * @uploadType 必填! 上传类型,目前可选值仅有一个custom,表示是否是自定义控件\n * @filePath 文件路径,支持String和Function 两种类型\n * @urlMaxLength 文件路径的限制长度\n */")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",{staticStyle:{"line-height":"2"}},[e._v("注:这些属性同时适用于本文档所列的其他组件,除 "),n("span",{staticStyle:{"background-color":"#f8cac6"}},[e._v("uploadType ")]),e._v("必填 "),n("span",{staticStyle:{"background-color":"#f8cac6"}},[e._v("custom")]),e._v("以外, 其他属性在自定义控件的上传组件中均为可选,其他具体场景的用法可参考下列其他例子。")])}],o=(n("99af"),n("2af9")),i=n("c197"),l=n.n(i),s={components:{UploadFile:o["u"]},data:function(){return{fileList:[],customUploadWidget:{disabled:!1,uploadType:"custom",showFileList:!0,acceptAttribute:".doc,.docx,.pdf,.js,.png,.jpg",buttonType:"text",buttonName:this.$t("saasdefinition.register.ei16g7"),fileSize:10,type:"file",limit:5,isBtn:!0,filePath:function(e){return"/appName/".concat((new Date).valueOf(),"/").concat(e)}},codeStr:"\n uploadProps: {\n fileSize: 10,\n type: 'file',\n limit: 5,\n isBtn: true,\n filePath: (filename) => {\n return/appName/${new Date().valueOf()}/${filename};\n },\n // filePath: 'xxxxxxx' 自定义上传后的文件名称\n },\n "}},methods:{uploadSuccess:function(e,t){var n=this.$createElement;e?this.$notify({title:"上传成功",message:e}):this.$notify({title:"上传失败",message:n("i",{style:"color: teal"},"未知错误")})},removeFile:function(e){console.log(e,"removeFile")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))},toHtml:function(e){return l.a.highlight(e,l.a.languages.html,"html")},toJs:function(e){return l.a.highlight(e,l.a.languages.js,"js")}}},c=s,u=(n("e339"),n("2877")),d=Object(u["a"])(c,a,r,!1,null,"2be7dcee",null);t["default"]=d.exports},a084:function(e,t,n){"use strict";n("5410")},a323:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"FHTableCode"}},[n("el-tabs",{staticClass:"mtb20",attrs:{type:"border-card"},on:{"tab-click":e.handleActive},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[n("el-tab-pane",{attrs:{label:"常规案例"}},[n("FHTable",{ref:"FHTable",attrs:{"has-checkbox":!0,"query-table-data":e.queryTableData,"query-params":e.queryParams,"table-props":e.tableProps,"list-map-name":"smSaasPlatformList"},on:{handleTableList:e.handleTableList,handleTableClick:e.handleTableClick,handleSelectionChange:e.handleSelectionChange},scopedSlots:e._u([{key:"otherTableType",fn:function(t){return["slotSpan"===t.item.type?n("div",[e._v(" "+e._s(t.scope.row[t.item.prop])+" ")]):e._e()]}}])}),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("el-tabs",{staticClass:"mtb20"},[n("el-tab-pane",{attrs:{label:"页面代码"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.codeStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.codeStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStrArr.slice(1).join("")))}}),e._v("\n ")])])]),n("el-tab-pane",{attrs:{label:"数据源"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.FHTableCodeDataStr)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.FHTableCodeDataStr))}})])])],1)],1):e._e()],1),n("el-tab-pane",{attrs:{label:"扩展插槽"}},[n("FHTable",{ref:"FHTable",attrs:{"has-checkbox":!0,"query-table-data":e.queryTableData,"query-params":e.queryParams,"table-props":e.tableProps,"list-map-name":"smSaasPlatformList"},on:{handleTableList:e.handleTableList,handleTableClick:e.handleTableClick,handleSelectionChange:e.handleSelectionChange},scopedSlots:e._u([{key:"otherTableType",fn:function(t){return["slotSpan"===t.item.type?n("div",[e._v(" "+e._s(t.scope.row[t.item.prop])+" ")]):e._e()]}}])}),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("el-tabs",{staticClass:"mtb20"},[n("el-tab-pane",{attrs:{label:"拓展插槽页面代码"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.FHTableCodeHtml+e.codeStrArr.slice(1).join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.FHTableCodeHtml))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStrArr.slice(1).join("")))}}),e._v("\n ")])])]),n("el-tab-pane",{attrs:{label:"拓展插槽数据源"}},[n("div",{staticClass:"ps-r"},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.FHTableCodeDataStr1)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.FHTableCodeDataStr1))}})])])])],1)],1):e._e()],1)],1)],1)},r=[],o=(n("99af"),n("4de4"),n("caad"),n("a434"),n("d3b7"),n("2532"),n("159b"),n("2af9")),i=n("4348"),l=n("f6ab"),s=n("1b62"),c=n("7719"),u=n("c197"),d=n.n(u),p=(n("a878"),n("4fca")),f={name:"FHTableCode",components:{FHTable:o["l"]},mixins:[s["c"]],props:{},data:function(){return{moreFlag:!0,idArr:[],active:"0",codeStrArr:Object(c["e"])(p["i"]),FHTableCodeHtml:p["h"],FHTableCodeDataStr:p["f"],FHTableCodeDataStr1:p["g"]}},watch:{list:{handler:function(e){this.tableProps["data"]=this.deepClone(e),this.tableProps["data"].forEach((function(e){e["platformNameStr"]="测试插槽"}))}}},created:function(){this.addKeepAlive("FHTableTest"),this.getData()},mounted:function(){},methods:{getData:function(){this.tableProps=this.deepClone(Object(i["r"])()),this.tableProps.tableProp=this.tableProps.tableProp.filter((function(e){return"slotSpan"!==e.type})),this.codeStrArr.splice(2,1),this.queryParams={saasId:"ff5a67337b6611e89feafa163eb3e537",userId:"27775e0e494447bf94a5292252262870"},this.tempQueryParams=this.deepClone(this.queryParams),this.getTableList()},handlePlatCode:function(e){return i["E"][e]?i["E"][e]:"未知的平台码"},queryTableData:function(e){return console.log("queryParams",e),l["a"].queryPlatformList({params:e})},handleTableList:function(e){var t=this;e.forEach((function(e){var n=[{type:"terminalManage",text:"终端管理"}];if(!e.id.includes("_")){var a=[{type:"edit",text:"编辑"},{type:"relevance",text:"关联机构"},{type:"delete",text:"删除"}];e["operates"]=[{btns:n.concat(a)}]}e.platformCode&&(e.platformCode=t.handlePlatCode(e.platformCode))})),this.list=this.deepClone(e)},handleTableClick:function(e){console.log("handleTableClick",e);var t=e.row||{};if("delete"===e.type){var n=this.list.filter((function(e){return e.id!==t.id}));this.list=this.deepClone(n)}else"terminalManage"===e.type||"edit"===e.type||e.type},handleSelectionChange:function(e){console.log("handleSelectionChange",e),this.idArr=this.deepClone(e)},handleMore:function(){this.moreFlag=!this.moreFlag},toHtml:function(e){return d.a.highlight(e,d.a.languages.html,"html")},toJs:function(e){return d.a.highlight(e,d.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))},handleActive:function(){this.active?(this.tableProps=Object(i["r"])(),this.codeStrArr=Object(c["e"])(p["i"]),this.getTableList()):(this.tableProps.tableProp=this.tableProps.tableProp.filter((function(e){return"slotSpan"!==e.type})),this.codeStrArr.splice(2,1))}}},m=f,h=n("2877"),g=Object(h["a"])(m,a,r,!1,null,"02c70218",null);t["default"]=g.exports},a4ed:function(e){e.exports=JSON.parse('{"changelog":[{"version":"24.5.2-3-beta","BugFixes":[],"Features":["commonntable支持单选","echarts改为cdn引入"]},{"version":"24.5.3-1.1","BugFixes":[],"Features":[]},{"version":"24.5.1-1.1","BugFixes":[],"Features":["areamobile组件切换区号触发校验更新","loginMixins安全验证发送验证码"]},{"version":"24.5.0-9.1","BugFixes":[],"Features":["开放平台统一运营后台首页迭代改版头部改造"]},{"version":"24.5.0-6.1","BugFixes":[],"Features":["查租户列表loginBefore接口增加参数"]},{"version":"24.4.2-8.1","BugFixes":["富文本编辑器编辑时回显会导致光标上移的bug","修复组件id唯一导致页面上只能存在一个编辑器的bug","修复登录接口取值中断bug","修改密码部分 邮箱验证对接"],"Features":[]},{"version":"24.4.2-5.1","BugFixes":[],"Features":["导航栏logo区域适配问题优化"]},{"version":"24.4.2-3.1","BugFixes":[],"Features":["优化忘记密码校验规则"]},{"version":"24.4.1-6.2","BugFixes":[],"Features":["区号组件支持区号回显,更改获取默认区号的双重验证","fhwebheader修改密码多加参数","filterquery嵌入树组件加参数"]},{"version":"24.4.1-5.1","BugFixes":[],"Features":["区号组件是否可选依据版本号,不根据域名"]},{"version":"24.4.1-1.1","BugFixes":[],"Features":["提高了神策埋点的兼容性","区号手机号默认回显"]},{"version":"24.4.1-0.1","BugFixes":["上传组件调整根据环境变量判断上传区域的逻辑"],"Features":[]},{"version":"24.4.0-9.2","BugFixes":["中文语言包兜底"],"Features":[]},{"version":"24.4.0-3.1","BugFixes":["修复图文一体图片组件在切换语言时没有更新图片内容的bug"],"Features":[]},{"version":"24.4.0-2.1","BugFixes":[],"Features":["登录的手机号区号,验证码登录和忘记密码两个部分"]},{"version":"24.3.2-7.1","BugFixes":[],"Features":["CommonTable 新增联动下拉选项"]},{"version":"24.3.2-5.3","BugFixes":[],"Features":["预设图片组件的补充文档","预设图片增加集成父元素的样式","删除packjson中的swiper,改用cdn"]},{"version":"24.3.2-0.5","BugFixes":[],"Features":["富文本编辑器的上传图片接口改为通用上传","加载cdn链接时检测在同一时间是否有已经正在加载的相同链接","去掉对本地语言包的引用,对cdn语言包的引用后缀加上时间戳避免缓存","新增语言key需要先本地提取,然后同步到cdn链接中"]},{"version":"24.3.1-8.4","BugFixes":["为避免切系统时被清除数据,storage.js增加两个commonKey"],"Features":[]},{"version":"24.3.1-8.2","BugFixes":["传参方式改为只传两个,第一个是对象,包含file、target、project、keyFunc、needWholeRes,还是原来的属性只是放在了对象里;第二个是接受上传进度的回调函数,参数是数值,范围0-100."],"Features":["新增接收上传进度的回调函数,参数为数值(0-100)","增加needWholeRes参数,如果业务中需要完整的上传出参可传true,文件链接使用fileUrl键名返回;如不需要则传false,出参为图片链接。"]},{"version":"24.3.1-8.1","BugFixes":["修复亚马逊上传返回的图片链接失效的bug"],"Features":[]}]}')},a511:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"PermissonTest"}},[n("h2",[e._v(" 按钮权限显示隐藏案例")]),n("p",{staticClass:"mtb15 c-f56c6c "},[e._v('注意:这里的 v-if="judgeHasPermission( key )" 是校验后台动态返回的按钮权限,所校验的key值为租户中配置的按钮授权编码。')]),n("p",{staticClass:"mtb15 c-f56c6c "},[e._v("租户中如何配置权限按钮,咨询郭徐威")]),n("el-button",{attrs:{size:"mini",type:"primary"}},[e._v("上架")]),n("el-button",{attrs:{size:"mini",type:"danger"}},[e._v("下架")]),n("el-button",{attrs:{size:"mini",type:"success"}},[e._v("banner展示")]),n("el-button",{attrs:{size:"mini",type:"info"}},[e._v("取消banner")]),n("pre",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.codeStr))}})],1)},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),{name:"PermissonTest",components:{},props:{},data:function(){return{codeStr:'<el-button v-if="judgeHasPermission(\'putawayLive\')" size="mini" type="primary">上架</el-button>\n<el-button v-if="judgeHasPermission(\'soldoutLive\')" size="mini" type="danger">下架</el-button>\n<el-button v-if="judgeHasPermission(\'bannerShowLive\')" size="mini" type="success">banner展示</el-button>\n<el-button v-if="judgeHasPermission(\'bannerCannelLive\')" size="mini" type="info">取消banner</el-button>\n'}},watch:{},created:function(){},mounted:function(){},methods:{toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")}}}),s=l,c=n("2877"),u=Object(c["a"])(s,a,r,!1,null,"74dd01ce",null);t["default"]=u.exports},a5c0:function(e,t,n){e.exports=n.p+"assets/img/i18n-lang.0c1ab834.jpg"},a71a:function(e,t,n){"use strict";n("3285")},abc4:function(e,t,n){e.exports=n.p+"assets/img/changeVantLang.d31e8ca2.jpg"},ac77:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return i}));var a=[{title:"id",prop:"id",fixed:"left",sortable:!0},{title:"name",prop:"name",type:"button"},{title:"role",prop:"role"},{title:"sex",prop:"sex"},{title:"age",prop:"age"},{title:"address",prop:"address",overflow:"tooltip"},{title:"html",prop:"html",type:"html"},{title:"图片",prop:"img",type:"img",imgWidth:60},{title:"操作",prop:"operates",type:"buttons",btnType:"text",titleWidth:120},{title:"nickname",prop:"nickname"},{title:"表头",prop:"id7",fixed:"right"}];function r(){return{tableProp:a,data:[{id:10001,name:"Test1",role:"Test 内容超出一行不想换行不想换行不想换行",sex:"Man",age:28,address:"内容超出一行显示为 tooltip xxxxxxxxxxxxxx",html:'<span style="color:red">自定义HTML</span>',img:"https://n.sinaimg.cn/sinacn17/w120h120/20180314/89fc-fyscsmv5911424.gif",operates:[{btns:[{type:"edit",text:"编辑"},{type:"delete",text:"删除"}]}]},{id:10002,name:"Test3",role:"Test 内容超出一行不想换行不想换行不想换行"},{id:10003,name:"Test2",role:"Test 内容超出一行不想换行不想换行不想换行"},{id:10004,name:"Test5",role:"Test 内容超出一行不想换行不想换行不想换行"}]}}function o(){return{tableProp:a,data:[{id:10007,name:"Test7",nickname:"T7",role:"Test",sex:"Man",age:29,address:"test abc"},{id:10002,name:"Test2",nickname:"T2",role:"Test",sex:"Women",age:22,address:"Guangzhou"},{id:10003,name:"Test3",nickname:"T3",role:"PM",sex:"Man",age:32,address:"Shanghai"},{id:10004,name:"Test4",nickname:"T4",role:"Designer",sex:"Women",age:23,address:"test abc"},{id:10006,name:"Test6",nickname:"T6",role:"Designer",sex:"Women",age:21,address:"test abc"},{id:10001,name:"Test1",nickname:"T1",role:"Develop",sex:"Man",age:28,address:"test abc"},{id:10008,name:"Test8",nickname:"T8",role:"Develop",sex:"Man",age:35,address:"test abc"},{id:10005,name:"Test5",nickname:"T5",role:"Develop",sex:"Women",age:30,address:"Shanghai"}]}}function i(){return{tableProp:a,data:[{id:10001,name:"Test1",role:"Test 内容超出一行不想换行不想换行不想换行",sex:"Man",age:28,address:"内容超出一行显示为 tooltip xxxxxxxxxxxxxx",html:'<span style="color:red">自定义HTML</span>',img:"https://n.sinaimg.cn/sinacn17/w120h120/20180314/89fc-fyscsmv5911424.gif",operates:[{btns:[{type:"edit",text:"编辑"},{type:"delete",text:"删除"}]}]},{id:10002,name:"Test3",role:"Test 内容超出一行不想换行不想换行不想换行"},{id:10003,name:"Test2",role:"Test 内容超出一行不想换行不想换行不想换行"},{id:10004,name:"Test5",role:"Test 内容超出一行不想换行不想换行不想换行"}]}}},ace8:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"AutoPage"}},[n("div",{},e._l(e.arr,(function(t){return n("span",{key:t,staticClass:"span-name br2 pointer"},[e._v(e._s(t))])})),0)])},r=[],o={name:"AutoPage",components:{},props:{},data:function(){return{arr:["FHImage","VDomEditTable","MindMap","FHDialog","LazyPDFViewer","RichTextEditor","PDFViewer","TooltipOver","CommonTable","CommonForm","FilterQuery","CommonPagination","CommonAudio","CommonAudioRow","SvgIcon","FHTable","CommonEcharts","CommonNoData","UploadFile","OrgTree","SecondTabs"]}},watch:{},created:function(){},mounted:function(){},methods:{}},i=o,l=(n("a71a"),n("2877")),s=Object(l["a"])(i,a,r,!1,null,"61c7d336",null);t["default"]=s.exports},ad09:function(e,t,n){"use strict";n("f637")},ad68:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"InputEnterTest"}},[e._v(" InputEnterTest ")])},r=[],o={name:"InputEnterTest",components:{},props:{},data:function(){return{}},watch:{},created:function(){},mounted:function(){},methods:{}},i=o,l=n("2877"),s=Object(l["a"])(i,a,r,!1,null,"1e2f7c8a",null);t["default"]=s.exports},add7:function(e,t,n){"use strict";n("6276")},aee4:function(e,t,n){e.exports=n.p+"assets/img/noSettle.7822c351.png"},b01e:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"CodeBuild"}},[n("code",[e.judgeEmpty(e.scriptObj)?n("div",{staticClass:"line-height36"},["false"!==e.scriptObj.script?n("p",{staticClass:"keyword-tag"},[e._v("<script>")]):e._e(),e.judgeEmpty(e.scriptObj.importArr)?n("div",e._l(e.scriptObj.importArr,(function(t,a){return n("div",{key:"import"+a},[n("font",{staticClass:"keyword-tag"},[e._v("import")]),e._v(" "+e._s(t.component)+" "),n("font",{staticClass:"keyword-tag"},[e._v("from")]),e._v(" "),n("font",{staticClass:"string-tag"},[e._v("'"+e._s(t.componentUrl)+"'")]),e._v("; "),e.judgeEmpty(t.note)?n("span",{staticClass:"c-909399 ft14"},[e._v(" // "+e._s(t.note))]):e._e(),e._v(" "),e.judgeEmpty(t.jump)?n("el-button",{attrs:{size:"small"},on:{click:e.jumpImportClick}},[e._v("查看代码")]):e._e()],1)})),0):e._e(),n("pre",[n("font",{staticClass:"keyword-tag"},[e._v("export "+e._s(e.scriptObj.exportObj||"default"))]),e._v(" {\n"),e.judgeEmpty(e.scriptObj.components)?n("pre",[e._v(" "),n("font",{staticClass:"keyword-tag"},[e._v("components: {")]),e._v(" "),n("span",[e._v(e._s(e.scriptObj.components)+" "),n("font",{staticClass:"keyword-tag"},[e._v("}")]),e._v(",")],1),e._v("\n")],1):e._e(),e.judgeEmpty(e.scriptObj.mixins)?n("pre",[e._v(" "),n("font",{staticClass:"keyword-tag"},[e._v("mixins:")]),e._v(" ["),n("span",[n("font",{staticClass:"string-tag"},[e._v(" "+e._s(e.scriptObj.mixins)+" ")])],1),e._v("],\n")],1):e._e(),e.judgeEmpty(e.scriptObj.dataArr)?n("pre",[e._v(" data() {\n "),n("font",{staticClass:"keyword-tag"},[e._v("return {")]),e._l(e.scriptObj.dataArr,(function(t,a){return n("span",{key:"dataArr"+a},[e._v("\n "+e._s(t.key)+": "),n("font",{staticClass:"value-tag"},[e._v(e._s(t.value))]),a<e.scriptObj.dataArr.length-1?n("span",[e._v(",")]):e._e()],1)})),e._v("\n "),n("font",{staticClass:"keyword-tag"},[e._v("}")]),e._v("\n },\n")],2):e._e(),e.judgeEmpty(e.scriptObj.watch)?n("pre",[e._v(" "),n("font",{staticClass:"keyword-tag"},[e._v("watch: ")]),e._v("{"),e._t("watch"),e._v(" },\n")],2):e._e(),e.judgeEmpty(e.scriptObj.created)?n("pre",[e._v(" "),n("font",{staticClass:"keyword-tag"},[e._v("created() ")]),e._v("{"),e._t("created"),e._v(" },\n")],2):e._e(),e.judgeEmpty(e.scriptObj.methods)?e._e():n("pre",[e._v(" "),n("font",{staticClass:"keyword-tag"},[e._v("methods:")]),e._v(" {"),e._t("methods"),e._v(" }\n")],2),e._v(" } "),"false"!==e.scriptObj.script?n("p",{staticClass:"keyword-tag"},[e._v(" <\/script>")]):e._e()],1)]):e._e(),e.judgeEmpty(e.exportDataObj)?n("div",{staticClass:"line-height36"},[n("p",[n("span",{staticClass:"string-tag"},[e._v("export function")]),e._v(" "),n("span",[e._v(e._s(e.exportDataObj.name)+"() {")])]),n("p",{staticClass:"pl20 keyword-tag"},[e._v("return {")]),e._t("exportDataObj"),n("p",{staticClass:"pl20"},[e._v("}")]),n("p",[e._v("}")])],2):e._e()])])},r=[],o={name:"CodeBuild",components:{},props:{scriptObj:{type:Object,default:function(){}},exportDataObj:{type:Object,default:function(){}}},data:function(){return{}},watch:{},created:function(){},mounted:function(){},methods:{jumpImportClick:function(){this.$emit("jumpImportClick")}}},i=o,l=n("2877"),s=Object(l["a"])(i,a,r,!1,null,"cb27fa96",null);t["default"]=s.exports},b127:function(e,t,n){"use strict";n("8a88")},b242:function(e,t,n){},b26d:function(e,t,n){"use strict";n("8c87")},b2e1:function(e,t,n){e.exports=n.p+"assets/img/storageLang.9e797011.jpg"},b315:function(e,t,n){},b512:function(e,t,n){"use strict";n("b0c0");var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"CommonForm"}},[n("el-form",{ref:"form",staticClass:"demo-ruleForm",class:e.model.formClass,attrs:{size:"small",inline:e.model.inline,model:e.form,rules:e.rules}},e._l(e.formArr,(function(t,a){return n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!t.hidden,expression:"!item.hidden"}],key:"formItems"+t.prop+"-"+a,staticClass:"common-form-item",class:t.formItemClass,attrs:{label:t.label,prop:t.prop,"label-position":t.labelPosition||"right"}},["input"!==t.type&&e.judgeEmpty(t.type)?"inputNum"===t.type?n("el-input",{class:t.class,attrs:{oninput:"value=value.replace(/^\\.+|[^\\d.]/g,'')",maxlength:t.maxlength,"show-word-limit":t.showWordLimit,clearable:"",autocomplete:"off",placeholder:t.isNoPlaceholder?"":""+(t.placeholder||e.$t("commonform.index.6d1re6")),disabled:t.disabled},on:{change:function(n){return e.formItemChange(n,t)}},model:{value:e.form[t.prop],callback:function(n){e.$set(e.form,t.prop,n)},expression:"form[item.prop]"}}):"select"===t.type?n("el-select",{staticClass:"full-width",class:t.class,attrs:{clearable:"",disabled:t.disabled,placeholder:t.isNoPlaceholder?"":""+(t.placeholder||e.$t("lib.zh-cn.acri49")),multiple:t.multiple,"multiple-limit":t.multipleLimit,filterable:t.filterable},on:{change:function(n){return e.formItemChange(n,t)}},model:{value:e.form[t.prop],callback:function(n){e.$set(e.form,t.prop,n)},expression:"form[item.prop]"}},e._l(t.options,(function(e,a){return n("el-option",{key:"options"+t.prop+a,attrs:{label:e.name,value:e.value}})})),1):"cascader"===t.type?n("el-cascader",{key:t.refresh,staticClass:"full-width",class:t.class,attrs:{props:{checkStrictly:!0},options:t.options,"show-all-levels":!1,clearable:"",disabled:t.disabled},on:{change:function(n){return e.formItemChange(n,t)}},model:{value:e.form[t.prop],callback:function(n){e.$set(e.form,t.prop,n)},expression:"form[item.prop]"}}):"datePicker"===t.dateType?n("DatePicker",{ref:"DatePicker",refInFor:!0,class:t.class,attrs:{type:t.type,"select-date-range":t.selectDateRange,"total-date-range":t.totalDateRange,"value-format":t.valueFormat,"default-time":t.defaultTime,prop:t.prop,"date-range":e.form[t.prop],"is-limit-date-range":t.isLimitDateRange,"has-date-picker":t.hasDatePicker,"initial-value":t.initialValue,"has-quick-item":t.hasQuickItem,width:t.width,disabled:t.disabled,"select-type":t.selectType,"picker-options":t.pickerOptions,placeholder:t.isNoPlaceholder?"":t.placeholder?t.placeholder:e.$t("lib.zh-cn.acri49")},on:{getDateRange:function(n){return e.formItemChange(n,t)}}}):"checkbox"===t.type?n("el-checkbox-group",{staticClass:"full-width",class:t.class,attrs:{size:"mini"},on:{change:function(n){return e.formItemChange(n,t)}},model:{value:e.form[t.prop],callback:function(n){e.$set(e.form,t.prop,n)},expression:"form[item.prop]"}},e._l(t.options,(function(a,r){return n("el-checkbox",{key:"options"+t.prop+r,attrs:{label:a.value,disabled:a.disabled}},[e._v(e._s(a.name))])})),1):"textarea"===t.type?n("el-input",{class:t.class,attrs:{disabled:t.disabled,clearable:"",type:"textarea",placeholder:t.isNoPlaceholder?"":""+(t.placeholder||e.$t("commonform.index.6d1re6")),rows:t.rows,autosize:t.autosize,"show-word-limit":t.showWordLimit,maxlength:t.maxlength},model:{value:e.form[t.prop],callback:function(n){e.$set(e.form,t.prop,n)},expression:"form[item.prop]"}}):"textStr"===t.type?n("div",{class:t.class},[e._v(" "+e._s(e.form[t.prop])+" ")]):"treeSelect"===t.type?n("TreeSelect",e._g(e._b({attrs:{value:e.form[t.prop],filterable:"","item-prop":t.prop,data:t.options,"filter-able":t.filterable,multiple:t.multiple,relate:t.relate,"need-slot":t.needSlot,"node-key":t.nodeKey,disabled:t.disabled,"need-select":t.needSelect,"parent-node":!0},on:{"update:value":function(n){return e.$set(e.form,t.prop,n)}}},"TreeSelect",e.$attrs,!1),e.$listeners)):e._e():n("el-input",{class:t.class,attrs:{maxlength:t.maxlength,"show-word-limit":t.showWordLimit,clearable:"",autocomplete:"off",placeholder:t.isNoPlaceholder?"":""+(t.placeholder||e.$t("commonform.index.6d1re6")),disabled:t.disabled},on:{change:function(n){return e.formItemChange(n,t)}},model:{value:e.form[t.prop],callback:function(n){e.$set(e.form,t.prop,n)},expression:"form[item.prop]"}}),e._t("otherType",null,{item:t,form:e.form})],2)})),1),e.judgeEmpty(e.queryButtons)&&!e.isHiddenBtns?n("div",{staticClass:"flex-end btn-box pt15",class:e.model.queryBtnsClass},e._l(e.queryButtons,(function(t,a){return n("div",{key:t.key,class:a<e.queryButtons.length-1?"mr10":""},[n("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],class:t.class,attrs:{size:"small",type:t.type,disabled:t.isDisabled,icon:t.icon},on:{click:function(n){return e.handleClick(t)}}},[e._v(" "+e._s(t.label)+" ")])],1)})),0):e._e()],1)},r=[],o=n("2909"),i=(n("99af"),n("d3b7"),n("159b"),n("f634")),l=n("7719"),s=n("8e33"),c=n("46bb"),u=[{label:c["b"].t("lib.zh-cn.5e1b1l"),click:"cancel"},{label:c["b"].t("commonform.index.48gi8h"),type:"primary",click:"submitForm"}],d={name:"CommonForm",components:{DatePicker:i["a"],TreeSelect:s["a"]},props:{model:{type:Object,default:function(){}},isHiddenBtns:{type:Boolean,default:!1}},data:function(){return{tempModel:{},valid:!1,form:{},formArr:[],rules:{}}},watch:{model:{handler:function(e){this.tempModel=this.deepClone(e),this.handleData()},deep:!0,immediate:!0},formArr:{handler:function(e){e.forEach((function(e){"date"!==e.type&&"week"!==e.type&&"month"!==e.type&&"year"!==e.type&&"dates"!==e.type&&"datetime"!==e.type&&"daterange"!==e.type&&"datetimerange"!==e.type&&"time"!==e.type&&"monthrange"!==e.type&&"daterangepicker"!==e.type||(e["dateType"]="datePicker")}))},deep:!0,immediate:!0}},mounted:function(){this.handleData()},methods:{handleData:function(){this.form=this.model["form"]||{},this.formArr=this.model["formArr"]||[],this.rules=this.model["rules"]||{},this.getFilterButtons()},submitForm:function(){var e=this.validateForm();e&&this.$emit("submitForm")},cancel:function(){this.$emit("cancel")},resetFormValidate:function(){var e=this;this.$nextTick((function(){e.$refs["form"].clearValidate()}))},formItemChange:function(e,t){var n={prop:t.prop,val:e};this.$emit("changeFormItem",n)},validateForm:function(){var e=!1;return this.$refs["form"].validate((function(t){e=t})),e},resetForm:function(){var e=this;this.$nextTick((function(){e.$refs["form"].clearValidate(),e.$refs["form"].resetFields()}))},handleClick:function(e){"cancel"===e.click?this.cancel():"submitForm"===e.click&&this.submitForm()},getFilterButtons:function(){Object(l["m"])(this.model["customButtons"])?this.queryButtons=[].concat(u):this.queryButtons=Object(o["a"])(this.model["customButtons"])}}},p=d,f=(n("b52e"),n("2877")),m=Object(f["a"])(p,a,r,!1,null,"57cff1aa",null),h=m.exports;h.install=function(e){e.component(h.name,h)};t["a"]=h},b52e:function(e,t,n){"use strict";n("c3f7")},b719:function(e,t,n){},b832:function(e,t,n){"use strict";n("ca0f")},b8fb:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"IframeTest"}},[n("IframeTemplate",{attrs:{src:e.src,"iframe-style":e.iframeStyle}}),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlStrArr.slice(1).join("")))}}),e._v("\n ")])])]):e._e()],1)},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),n("0d25")),s={name:"IframeTest",components:{IframeTemplate:l["a"]},props:{},data:function(){return{moreFlag:!0,src:"",iframeStyle:{width:"100%",height:"100%"},htmlStrArr:['\n<template>\n <div id="IframeTest">\n /*\n * IframeTemplate封装了NProgress加载样式\n * 入参说明\n * src: \'需要嵌入的第三方的地址\',\n * iframeStyle: \'嵌入进来的样式\'\n */\n <template>\n <IframeTemplate :src="src" :iframe-style="iframeStyle" />\n </template>\n </div>\n</template>',"\n<script>\n\nexport default {\n // 组件名称\n name: 'IframeTest',\n // 局部注册的组件\n components: { IframeTemplate },\n // 组件参数 接收来自父组件的数据\n props: {},\n // 组件状态值\n data() {\n return {\n src: '',\n iframeStyle: {\n width: '100%',\n height: '100%'\n }\n };\n },\n created() {\n this.src = 'https://element.eleme.cn/#/zh-CN/component/installation';\n }\n};\n</scr","ipt>"]}},watch:{},created:function(){this.src="https://element.eleme.cn/#/zh-CN/component/installation"},mounted:function(){},methods:{toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")},handleMore:function(){this.moreFlag=!this.moreFlag},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"5120029f",null);t["default"]=d.exports},b96c:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"PermissonTest"}},[n("h2",[e._v(" 按钮权限显示隐藏案例")]),n("p",{staticClass:"mtb15 c-f56c6c "},[e._v('注意:这里的 v-if="judgeHasPermission( key )" 是校验后台动态返回的按钮权限,所校验的key值为租户中配置的按钮授权编码。')]),n("p",{staticClass:"mtb15 c-f56c6c "},[e._v("租户中如何配置权限按钮,咨询郭徐威")]),n("el-button",{attrs:{size:"mini",type:"primary"}},[e._v("上架")]),n("el-button",{attrs:{size:"mini",type:"danger"}},[e._v("下架")]),n("el-button",{attrs:{size:"mini",type:"success"}},[e._v("banner展示")]),n("el-button",{attrs:{size:"mini",type:"info"}},[e._v("取消banner")]),n("pre",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.codeStr))}})],1)},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),{name:"PermissonTest",components:{},props:{},data:function(){return{codeStr:'<el-button v-if="judgeHasPermission(\'putawayLive\')" size="mini" type="primary">上架</el-button>\n<el-button v-if="judgeHasPermission(\'soldoutLive\')" size="mini" type="danger">下架</el-button>\n<el-button v-if="judgeHasPermission(\'bannerShowLive\')" size="mini" type="success">banner展示</el-button>\n<el-button v-if="judgeHasPermission(\'bannerCannelLive\')" size="mini" type="info">取消banner</el-button>\n'}},watch:{},created:function(){},mounted:function(){},methods:{toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")}}}),s=l,c=n("2877"),u=Object(c["a"])(s,a,r,!1,null,"c2d59dba",null);t["default"]=u.exports},b9f4:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"ConditionTree"}},[n("el-tree",{ref:"conditionTree",attrs:{data:[e.contentItem.condition],"node-key":"id","default-expand-all":"","expand-on-click-node":!1,draggable:"","allow-drop":e.allowDrop,"allow-drag":e.allowDrag,indent:e.treeProps["indent"]},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,r=t.data;return[n("element-tree-line",{attrs:{node:a,"show-label-line":e.treeProps["showLabelLine"],indent:e.treeProps["indent"]},scopedSlots:e._u([{key:"node-label",fn:function(){return[["or","and"].includes(r.relation)?n("el-select",{attrs:{placeholder:"请选择条件类型"},on:{change:function(t){return e.handleSelectChange(r)}},nativeOn:{pointerdown:function(e){e.stopPropagation()}},model:{value:r.selectedType,callback:function(t){e.$set(r,"selectedType",t)},expression:"data.selectedType"}},e._l(e.selectOptions,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e._e(),"expression"===r.relation?n("Expression",{attrs:{"exp-obj":r.expression[0]}}):e._e()]},proxy:!0},{key:"after-node-label",fn:function(){return["expression"===r.relation?n("span",{on:{click:function(t){return t.stopPropagation(),e.copy(a,r)}}},[n("i",{staticClass:"el-icon-document-copy mr2"}),n("span",[e._v("复制")])]):e._e(),1!==r.level?n("span",{on:{click:function(t){return t.stopPropagation(),e.remove(a,r)}}},[n("span",{staticClass:"ft18 ml20 mr2"},[e._v("×")]),n("span",[e._v("删除")])]):e._e()]},proxy:!0}],null,!0)})]}}])})],1)},r=[],o=n("b85c"),i=n("2909"),l=(n("99af"),n("c740"),n("caad"),n("a434"),n("e1bd")),s=n("4f0d"),c=[{label:"并且",value:"and"},{label:"或者",value:"or"},{label:"添加条件",value:"expression"},{label:"添加复合条件",value:"nest"},{label:"复制",value:"copy"},{label:"粘贴",value:"paste"}],u=n("7719"),d=n("ccfb");function p(e){return{name:"element-tree-line",props:{node:{type:Object,required:!0},data:{type:Object},treeData:{type:Array},indent:{type:Number,default(){return 16}},showLabelLine:{type:Boolean,default:!0}},render(t){const n=e||t,a=this.getScopedSlot("default"),r=this.getScopedSlot("node-label"),o=this.getScopedSlot("after-node-label"),i=a?this.getScopedSlotValue(a,{node:this.node,data:this.data}):[r?this.getScopedSlotValue(r,{node:this.node,data:this.data}):n("span",{class:"element-tree-node-label"},this.node.label),this.showLabelLine?n("span",{class:"element-tree-node-label-line"}):null,this.getScopedSlotValue(o,{node:this.node,data:this.data})],l=[];let s=this.node;while(s){let e=s.parent;if(1===s.level&&!s.parent){if(!this.treeData||!Array.isArray(this.treeData))throw Error("if you using el-tree-v2 (Virtualized Tree) of element-plus,element-tree-line required data.");e={children:Array.isArray(this.treeData)?this.treeData.map(e=>({...e,key:e.id})):[],level:0,key:"node-0",parent:null}}if(e){const t=(e.children||e.childNodes).findIndex(e=>(e.key||e.id)===(s.key||s.id));l.unshift(t===(e.children||e.childNodes).length-1)}s=e}const c=[];for(let e=0;e<this.node.level;e++)l[e]&&this.node.level-1!==e||c.push(n("span",{class:{"element-tree-node-line-ver":!0,"last-node-isLeaf-line":l[e]&&this.node.level-1===e},style:{left:this.indent*e+"px"}}));return n("span",{class:"element-tree-node-label-wrapper"},[i].concat(c).concat([n("span",{class:"element-tree-node-line-hor",style:{width:(this.node.isLeaf?24:8)+"px",left:(this.node.level-1)*this.indent+"px"}})]))},methods:{getScopedSlot(e){if(!e)return null;const t=e.split("||");let n=null;for(let a=0;a<t.length;a++){const e=t[a],r=(this.$slots||{})[e];if(r){n=r;break}if(n=(this.$scopedSlots||{})[e],n)break}return n},getScopedSlotValue(e,t,n=null){return"function"===typeof e?e(t)||n:e||n}}}}function f(e){const t=p(e);return e&&(t.methods.getScopedSlot=function(e){if(!e)return null;const t=e.split("||");let n=null;for(let a=0;a<t.length;a++){const e=t[a],r=(this.$slots||{})[e];if(r){n=r;break}}return n}),t}const m=f();n("0584");var h={name:"ConditionTree",components:{Expression:d["default"],ElementTreeLine:m},props:{contentItem:{type:Object,default:function(){}}},data:function(){return{selectOptions:c,condiExpObj:s["e"],conditionTemplate:{},copyData:"",treeProps:{indent:30,showLabelLine:!0}}},watch:{},created:function(){var e,t=null===(e=this.contentItem)||void 0===e?void 0:e.condition;Object(u["o"])(t)&&["and","or"].includes(t.relation)||(this.contentItem.condition={id:Object(l["a"])(),relation:"and",selectedType:"and",level:1})},mounted:function(){},methods:{remove:function(e,t){var n=e.parent,a=n.data.children||n.data,r=a.findIndex((function(e){return e.id===t.id}));a.splice(r,1)},copy:function(e,t){var n=Object(u["e"])(t);n.id=Object(l["a"])();var a=e.parent,r=a.data.children||a.data,o=r.findIndex((function(e){return e.id===t.id}));r.splice(o,0,n)},allowDrop:function(e,t,n){return"inner"!==n&&t.level>1},allowDrag:function(e){return!0},handleSelectChange:function(e){if("expression"===e.selectedType){var t={id:Object(l["a"])(),relation:"expression",selectedType:"expression"};this.$set(t,"expression",[Object(u["e"])(this.condiExpObj)]),Object(u["o"])(e.children)?this.$set(e,"children",[].concat(Object(i["a"])(e.children),[t])):this.$set(e,"children",[t]),e.selectedType=e.relation}else if("copy"===e.selectedType)e.selectedType=e.relation,this.copyData=Object(u["e"])(e);else if("paste"===e.selectedType){e.selectedType=e.relation;var n=this.recursiveIdTraversal(this.copyData);Object(u["o"])(e.children)?this.$set(e,"children",[].concat(Object(i["a"])(e.children),[n])):this.$set(e,"children",[n])}else if(["and","or"].includes(e.selectedType))e.relation=e.selectedType;else if("nest"===e.selectedType){var a={id:Object(l["a"])(),relation:"and",selectedType:"and"};Object(u["o"])(e.children)?this.$set(e,"children",[].concat(Object(i["a"])(e.children),[a])):this.$set(e,"children",[a]),e.selectedType=e.relation}this.$forceUpdate()},recursiveIdTraversal:function(e){var t=Object(u["e"])(e);if(t.id=Object(l["a"])(),t.children&&t.children.length>0){var n,a=Object(o["a"])(t.children);try{for(a.s();!(n=a.n()).done;){var r=n.value;this.recursiveIdTraversal(r)}}catch(i){a.e(i)}finally{a.f()}}return t}}},g=h,b=(n("7817"),n("2877")),v=Object(b["a"])(g,a,r,!1,null,"a4cea5e6",null);t["default"]=v.exports},bbbf:function(e,t,n){"use strict";n("0314")},bbf7:function(e,t,n){"use strict";n("970f")},bcdd:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"LargeFHDialog"}},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.btnClick(e.dialogObj)}}},[e._v("large的弹框")]),n("FHDialog",{attrs:{"dialog-obj":e.dialogObj},on:{confirmClick:function(t){return e.confirmClick(e.dialogObj)},cancelClick:function(t){return e.cancelClick(e.dialogObj)}}},[n("FilterQuery",{attrs:{model:e.formItem},on:{formItemChange:e.formItemChange,searchClick:e.searchClick,resetClick:e.resetClick}}),n("FHTable",{ref:"FHTable",attrs:{id:"largeTable","has-checkbox":!0,"max-height":e.maxHeight,"query-table-data":e.queryTableData,"query-params":e.queryParams,"table-props":e.tableProps,"list-map-name":"smSaasPlatformList"},on:{handleTableList:e.handleTableList,handleTableClick:e.handleTableClick,handleSelectionChange:e.handleSelectionChange}})],1)],1)},r=[],o=(n("99af"),n("4de4"),n("caad"),n("d81d"),n("b0c0"),n("d3b7"),n("2532"),n("159b"),n("3709")),i=n("fc4b"),l=n("4481"),s=n("f6ab"),c=n("1b62"),u=n("4348"),d={name:"LargeFHDialog",components:{FHTable:i["a"],FHDialog:o["a"],FilterQuery:l["a"]},mixins:[c["c"],c["a"]],props:{},data:function(){return{dialogObj:{title:"large弹框"}}},watch:{list:{handler:function(e){this.tableProps["data"]=this.deepClone(e),this.tableProps["data"].forEach((function(e){e["platformNameStr"]="测试插槽"})),this.maxHeight=this.getTableHeight("largeTable")}}},created:function(){},mounted:function(){},methods:{handleTableList:function(e){var t=this;e.forEach((function(e){var n=[{type:"terminalManage",text:"终端管理"}];if(!e.id.includes("_")){var a=[{type:"edit",text:"编辑"},{type:"relevance",text:"关联机构"},{type:"delete",text:"删除"}];e["operates"]=[{btns:n.concat(a)}]}e.platformCode&&(e.platformCode=t.handlePlatCode(e.platformCode))})),this.list=this.deepClone(e)},handlePlatCode:function(e){return u["E"][e]?u["E"][e]:"未知的平台码"},handleTableClick:function(e){var t=e.row||{};if("delete"===e.type){var n=this.list.filter((function(e){return e.id!==t.id}));this.list=this.deepClone(n)}else"terminalManage"===e.type||"edit"===e.type||e.type},handleSelectionChange:function(e){this.idArr=e.map((function(e){var t=e.id;return t}))},getData:function(){this.formItem=this.deepClone(Object(u["q"])()),this.queryDictionary(),this.tableProps=this.deepClone(Object(u["r"])()),this.queryParams={saasId:"ff5a67337b6611e89feafa163eb3e537",userId:"27775e0e494447bf94a5292252262870"},this.tempQueryParams=this.deepClone(this.queryParams),this.getTableList(),this.formModel=this.deepClone(Object(u["s"])())},queryDictionary:function(){var e=this;s["a"].childDictList({type:"sm_terminal_type"}).then((function(t){var n=t.map((function(e){var t=e.name,n=e.value;return{name:t,value:n}}));e.$set(e.formItem.filterArr[3],"options",n)})).catch((function(e){console.log(e)}))},queryTableData:function(e){return s["a"].queryPlatformList({params:e})},confirmClick:function(e){this.$set(e,"showDialog",!1)},cancelClick:function(e){this.$set(e,"showDialog",!1)},btnClick:function(e){this.getData(),this.$set(e,"showDialog",!0)}}},p=d,f=n("2877"),m=Object(f["a"])(p,a,r,!1,null,"8c1e8c2e",null);t["default"]=m.exports},bd96:function(e,t,n){"use strict";n("0c7d")},be38:function(e,t,n){e.exports=n.p+"assets/img/app_router_i18n.68b2d569.jpg"},c287:function(e,t,n){e.exports=n.p+"assets/img/i18n.b1e44d7c.jpg"},c319:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"PackagingTable"}},[n("h1",{staticClass:"pb20"},[e._v("封装接口请求的FHTable")]),e._m(0),n("FHTableCode")],1)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"c-f mb20"},[e._v("FHTable封装了接口请求,查询,分页,对接口入参、出参有要求 "),n("span",{staticClass:"c-f56c6c"},[e._v("(入参分页字段必须是limit、offset,出参是total)")])])}],o=n("a323"),i={name:"PackagingTable",components:{FHTableCode:o["default"]},props:{},data:function(){return{}},watch:{},created:function(){},mounted:function(){},methods:{}},l=i,s=n("2877"),c=Object(s["a"])(l,a,r,!1,null,"313aacd2",null);t["default"]=c.exports},c34f:function(e,t,n){e.exports=n.p+"assets/img/sz_qyy.7e65edd7.jpg"},c3f7:function(e,t,n){},c7c2:function(e,t,n){"use strict";n("3378")},c8e6:function(e,t,n){},ca0f:function(e,t,n){},ca46:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"FhPresetImageTest"}},[n("div",{staticClass:"img-box m0a"},[n("FHPresetImage",{attrs:{id:"1ab067d6a2367a40eaa9492a1ac787b2"}})],1),n("FhPresetImageCode")],1)},r=[],o=n("2af9"),i=n("281f"),l={name:"FhPresetImageTest",components:{FHPresetImage:o["k"],FhPresetImageCode:i["default"]},data:function(){return{}}},s=l,c=(n("92ed"),n("2877")),u=Object(c["a"])(s,a,r,!1,null,"5184aadc",null);t["default"]=u.exports},cbe3:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"StorageTest"}},[n("h1",[e._v("存储信息localStorage、sessionStorage")]),n("code",[n("p",{staticClass:"line-height30"},[e._v("如果setStorage传入的是key,那么getStorage, removeStorage取的时候也对应着用key")]),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.setCont)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.setCont))}})]),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.getCont)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.getCont))}})]),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.removeCont)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.removeCont))}})]),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.clearCont)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.clearCont))}})])])])},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),{name:"StorageTest",components:{},props:{},data:function(){return{setCont:"\n /* name/key: 存储的名字( key: 自定义的存入缓存的名字,用来兼容不同系统的存储名字规则)\n * 如果传name(不是userGlobalGist):存入缓存的名字命名规则是Fun-项目名(fhronspc)-当前环境(dev/uat/pro)-name (eg:Fun-fhronspc-uat-userInfo)\n * 如果传name(是userGlobalGist):存入缓存的名字命名规则是Fun-当前环境(dev/uat/pro)-name (eg:Fun-uat-userGlobalGist)\n * 如果传key:存入缓存的名字命名规则是key(eg:themeColorObj)\n * content: 存储的内容\n * type: 储存到localStorage还是sessionStorage,默认不传是localStorage,传入'session'为sessionStorage\n * needListener: 为true表示被监听了,不传不会监听\n */\n setStorage({ name: 'themeColorObj', content: themeColorObj, needListener: true });\n setStorage({ name: 'themeColorObj', content: themeColorObj, needListener: true });\n setStorage({ key: 'themeColorObj', content: themeColorObj, needListener: true });\n setStorage({ name: 'themeColorObj', content: themeColorObj, type: 'session', needListener: true });\n \n /* 监听一般遇到的场景是:某个页面的渲染或者操作依赖于这个存储信息,然而数据存储也是需要时间的,可能就会存在数据还没存储完,我们就去获取了,这种一般会造成页面渲染不对,或者报错\n * 这里需要注意的是被监听的数据需要在pageStyleMixin处理一下才监听到存储值的变化\n */ \n /* 例如:监听themeColorObj存储到localStorage没有 */ \n\n import { notEmpty } from 'fhrons-pc/plugins/tool/func';\n import { getStorage } from 'fhrons-pc/plugins/tool/storage';\n import { applyTheme } from 'fhrons-pc/plugins/tool/themeFunc';\n\n export const pageStyleMixin = {\n data() {\n return {\n themeColorObj: getStorage({ name: 'themeColorObj' }) || { themeColor: '#1677FF', subThemeColor: 'rgba(22,119,255,0.1)', litterThemeColor: 'rgba(22,119,255,0.05)', middleThemeColor: 'rgba(22,119,255,0.3)' }\n // 需要监听的其他属性\n };\n },\n watch: {\n // 因为是全局的方法所以直接写在这个页面进行操作了,一般各自页面存储信息的变化各自页面单独监听处理\n themeColorObj: {\n deep: true,\n immediate: true,\n handler(val) {\n applyTheme(val?.themeColor);\n }\n }\n },\n mounted() {\n this.initPageStyleData();\n },\n beforeDestroy() {\n window.removeEventListener('setItem', this.handleStorage, false);\n },\n methods: {\n // 初始化\n initPageStyleData() {\n window.addEventListener('setItem', this.handleStorage, false);\n },\n handleStorage(e) {\n let eKey = e.key;\n if (notEmpty(e.key)) {\n const keyArr = e.key.split('-');\n if (keyArr.length) {\n eKey = keyArr[keyArr.length - 1];\n }\n }\n if (eKey === 'themeColorObj') {\n this.themeColorObj = getStorage({ name: 'themeColorObj' }) || { themeColor: '#1677FF', subThemeColor: 'rgba(22,119,255,0.1)', litterThemeColor: 'rgba(22,119,255,0.05)', middleThemeColor: 'rgba(22,119,255,0.3)' };\n }\n // else if (eKey === '其他属性')\n }\n }\n };\n\n ",getCont:"\n /* name/key: 拿存储的内容的名字,参考setStorage的解释\n * type: 储存到localStorage还是sessionStorage,默认不传是localStorage,传入'session'为sessionStorage\n */\n const token = getStorage({ name: 'token' });\n const token = getStorage({ key: 'token' });\n const token = getStorage({ name: 'token', type: 'session' });\n ",removeCont:"\n /* name/key: 拿存储的内容的名字,参考setStorage的解释\n * type: 储存到localStorage还是sessionStorage,默认不传是localStorage,传入'session'为sessionStorage\n */\n removeStorage({ name: 'token' });\n removeStorage({ key: 'token' });\n removeStorage({ name: 'token', type: 'session' });",clearCont:"\n /* 不传type表示清除全部localStorage缓存, 传入type为'session'表示清除sessionStorage缓存 */\n clearStorage();\n clearStorage({ type: SESSION });"}},watch:{},created:function(){},mounted:function(){},methods:{toHtml:function(e,t){return i.a.highlight(e+t,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}}),s=l,c=n("2877"),u=Object(c["a"])(s,a,r,!1,null,"5602e1c9",null);t["default"]=u.exports},ccfb:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex-center-vertical flex-wrap",attrs:{id:"Expression"}},[n("div",{staticClass:"flex-start-center operant"},[n("Operants",e._g(e._b({attrs:{operants:e.expObj.left},on:{operantChange:function(t){return e.operantChange(e.expObj.left,t)},operatorChange:function(t){return e.operatorChange(e.expObj.left,t)},deleteOperant:function(t){return e.deleteOperant(e.expObj.left,t)},deleteOperantor:function(t){return e.deleteOperantor(e.expObj.left,t)},handleRealOperator:function(t){return e.handleRealOperator(e.expObj.left,t)},valueOrParenthesesChange:function(t){return e.valueOrParenthesesChange(e.expObj.left,arguments)}}},"Operants",e.$attrs,!1),e.$listeners))],1),n("div",{staticClass:"condition operator"},[e.expObj.condition?n("span",{staticClass:"ml8 mr8"},[e.expObj.condition[0].disable?n("span",[e._v(e._s(e.getOpertorLabel()))]):n("el-select",{staticStyle:{width:"128px"},attrs:{placeholder:"请选择运算符"},on:{change:function(t){return e.handleCompare(e.expObj.condition[0])}},model:{value:e.expObj.condition[0].decodeValue,callback:function(t){e.$set(e.expObj.condition[0],"decodeValue",t)},expression:"expObj.condition[0].decodeValue"}},e._l(e.compareSymbol,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.decodeValue}})})),1)],1):e._e()]),n("div",{staticClass:"right operant"},[n("Operants",e._g(e._b({attrs:{operants:e.expObj.right},on:{operantChange:function(t){return e.operantChange(e.expObj.right,t)},operatorChange:function(t){return e.operatorChange(e.expObj.right,t)},deleteOperant:function(t){return e.deleteOperant(e.expObj.right,t)},deleteOperantor:function(t){return e.deleteOperantor(e.expObj.right,t)},handleRealOperator:function(t){return e.handleRealOperator(e.expObj.right,t)},valueOrParenthesesChange:function(t){return e.valueOrParenthesesChange(e.expObj.right,arguments)}}},"Operants",e.$attrs,!1),e.$listeners))],1)])},r=[],o=(n("c740"),n("caad"),n("a434"),n("d3b7"),n("159b"),n("36e9")),i=n("81c1"),l=n("7719"),s={name:"Expression",components:{Operants:i["default"]},props:{expObj:{type:Object,default:function(){}}},data:function(){return{valueTypeOptions:o["d"],selectedItem:"",isInputVisible:!1,newItem:"",tempOption:[{name:"字符串",code:"string"},{name:"布尔",code:"boolean"},{name:"double",code:"double"}],inputOption:[{label:"字符串",value:"string"},{label:"布尔",value:"boolean"},{label:"double",value:"double"}],compareSymbol:o["b"],operatorItem:{itemType:"symbol",name:"",valueType:"symbol",value:""}}},watch:{},created:function(){this.handleOperatorDecode()},mounted:function(){},methods:{handleOperatorDecode:function(){this.expObj.condition.forEach((function(e){e.decodeValue=decodeURIComponent(e.value)}))},getOpertorLabel:function(){var e,t,n=null===(e=this.expObj)||void 0===e||null===(e=e.condition[0])||void 0===e?void 0:e.decodeValue,a=null===(t=this.expObj)||void 0===t||null===(t=t.condition[0])||void 0===t?void 0:t.value;return Object(l["o"])(n)?n:(Object(l["o"])(a)&&(n=decodeURIComponent(a)),n||"")},handleCompare:function(e){e.value=encodeURIComponent(e.decodeValue)},handleSelectChange:function(e){"input"===e&&(this.isInputVisible=!0,this.newItem="")},resetSelection:function(){this.isInputVisible=!1,this.selectedItem="",this.newItem=""},operantChange:function(e,t,n){var a=e[t]||{};if((e.length-1===t||"symbol"!==e[t+1].valueType)&&!1!==a.operate){var r=Object(l["e"])(this.operatorItem);Object(l["o"])(n)&&(r=Object.assign(r,{decodeValue:n,value:encodeURIComponent(n)||""})),e.splice(t+1,0,Object(l["e"])(r))}},operatorChange:function(e,t){var n=e[t+1]||[];if(!["valueOrParentheses","operant"].includes(n.type)){var a={type:"valueOrParentheses"};e.splice(t+1,0,a)}},handleRealOperator:function(e,t){var n=e[t].operator;this.operantChange(e,t,n),this.operatorChange(e,t+1)},deleteOperant:function(e,t){var n={type:"valueOrParentheses"};if("parentheses"===e[t].valueType){var a=Object(l["e"])(e),r=a.reverse(),o=r.findIndex((function(e){return"("===e.value})),i=e.length-1-o,s=e.length-i;e.splice(i,s,n)}else e.splice(t,1,n)},deleteOperantor:function(e,t){e[t-1].operator="",e.splice(t,2)},valueOrParenthesesChange:function(e,t){var n={type:"operant",value:"",itemType:"",valueType:""},a=t[0],r=t[1];if("value"===r)e.splice(a,1,n);else if("brackets"===r){var o={itemType:"symbol",name:"左括号",valueType:"parentheses",value:"("},i={itemType:"symbol",name:"右括号",valueType:"parentheses",value:")"};e.splice(a,1,o,n,i)}}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"3afe707e",null);t["default"]=d.exports},cda1:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{key:"action"+(e.actionObj.id||""),staticClass:"flex-center-vertical mb8",attrs:{id:"ActionPart"}},[n("span",{staticClass:"mr8 flex-start-center"},[e.judgeEmpty(e.actionObj.actionType)?e._e():n("el-cascader",{attrs:{placeholder:"请选择类型","show-all-levels":!1,props:{emitPath:!0,value:"value",label:"label",checkStrictly:!1,expandTrigger:"hover"},separator:".",options:e.actionOptions},on:{change:function(t){return e.handleAssign(e.actionObj)}},model:{value:e.actionObj.value,callback:function(t){e.$set(e.actionObj,"value",t)},expression:"actionObj.value"}}),e.judgeEmpty(e.actionObj.value)?n("span",{staticStyle:{"padding-left":"12px"}},[e._v(" "+e._s(e.getActionLabel())+": ")]):e._e(),"assign"==e.actionObj.value?n("div",[n("Expression",{attrs:{"exp-obj":e.actionObj.expression[0]}})],1):e._e(),"unit"==e.actionObj.value?n("div",[""==e.actionObj.signType?n("el-select",{staticStyle:{width:"114px"},attrs:{placeholder:"请选择"},on:{change:function(t){return e.handleIfFor(e.actionObj)}},model:{value:e.actionObj.signType,callback:function(t){e.$set(e.actionObj,"signType",t)},expression:"actionObj.signType"}},[n("el-option",{attrs:{label:"if",value:"if"}}),n("el-option",{attrs:{label:"for",value:"for"}})],1):e._e(),e.judgeEmpty(e.actionObj.ruleUnit)?n("AlgorithmPart",{key:"AlgorithmPart"+(e.actionObj.ruleUnit.id||""),attrs:{"algorithm-data":[e.actionObj.ruleUnit],"is-unit":!0}}):e._e()],1):e._e(),"return"==e.actionObj.value?n("div",[n("el-select",{ref:"returnRef",attrs:{placeholder:"请选择"},on:{change:e.handleReturn},model:{value:e.actionObj.expression[0].left[0].value,callback:function(t){e.$set(e.actionObj.expression[0].left[0],"value",t)},expression:"actionObj.expression[0].left[0].value"}},e._l(e.returnOptions,(function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1):e._e()],1),n("span",{on:{click:function(t){return e.copy(e.actionObj)}}},[n("i",{staticClass:"el-icon-document-copy mr2"}),n("span",[e._v("复制")])]),n("span",{staticClass:"nowrap",on:{click:function(t){return e.remove(e.actionObj)}}},[n("span",{staticClass:"ft18 ml20 mr2"},[e._v("×")]),n("span",[e._v("删除")])])])},r=[],o=(n("7db0"),n("caad"),n("b0c0"),n("d3b7"),n("3ca3"),n("ddb0"),n("4f0d")),i=n("ccfb"),l=n("7719"),s=n("e1bd"),c=function(){return Promise.resolve().then(n.bind(null,"83f5"))},u={name:"ActionPart",components:{Expression:i["default"],AlgorithmPart:c},props:{actionObj:{type:Object,default:function(){}},position:{type:String,default:"middle"}},data:function(){return{actionTypeOptions:o["a"],assignExpObj:o["b"],returnOptions:[{label:"返回知识包",value:"knowledge"},{label:"返回规则集",value:"ruleset"},{label:"返回规则",value:"rule"}]}},computed:{actionOptions:function(){return"middle"===this.position?o["a"]:o["h"]}},watch:{},created:function(){},mounted:function(){},methods:{handleReturn:function(e){var t=this.returnOptions.find((function(t){return t.value===e}));this.actionObj.expression[0].left[0].name=null===t||void 0===t?void 0:t.label},deepClone:function(e){return Object(l["e"])(e)},getActionLabel:function(){if(Object(l["o"])(this.actionOptions)){var e,t,n=null===(e=this.actionObj)||void 0===e?void 0:e.value[0];return console.log(this.actionOptions,n,"getActionLabel"),null===(t=this.actionOptions.find((function(e){return e.value===n})))||void 0===t?void 0:t.label}return""},handleAssign:function(e,t,n){var a=e.value[0];["assign","boolean","return","continue","break","string"].includes(a)&&(e.actionType="expression"),"assign"===a?this.$set(e,"expression",[Object(l["e"])(this.assignExpObj)]):"unit"===a?(e.actionType=a,e.signType=""):"string"===a?this.$set(e,"expression",[Object(l["e"])(o["k"])]):"boolean"===a?this.$set(e,"expression",[Object(l["e"])(o["d"])]):"return"===a?this.$set(e,"expression",[Object(l["e"])(o["l"])]):"continue"===a?this.$set(e,"expression",[Object(l["e"])(o["f"])]):"break"===a&&this.$set(e,"expression",[Object(l["e"])(o["c"])])},remove:function(){this.$emit("removeAction")},copy:function(){this.$emit("copyAction")},handleIfFor:function(e){var t=e.signType;"if"===t?(console.log(o["j"]),this.$set(e,"ruleUnit",Object(l["e"])(Object.assign(o["j"],{id:Object(s["a"])()})))):"for"===t&&this.$set(e,"ruleUnit",Object(l["e"])(Object.assign(o["g"],{id:Object(s["a"])()})))}}},d=u,p=(n("2795"),n("2877")),f=Object(p["a"])(d,a,r,!1,null,"df96c98c",null);t["default"]=f.exports},cdb0:function(e,t,n){"use strict";n("f1a8")},d05d:function(e,t,n){},d166:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"demo-block pd24 mb24"},[n("span",{staticClass:"ft32 fw-500 mt12"},[e._v("使用图片压缩方法")]),n("el-upload",{ref:"upload",staticClass:"upload-demo mtb12",attrs:{action:"/","on-change":e.handleChange,"on-remove":e.handleRemove,"file-list":e.fileList,"auto-upload":!1}},[n("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[e._v("选取文件")])],1),e._m(0)],1)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ps-r"},[n("p",[e._v("装完 "),n("span",{staticStyle:{"background-color":"#3598db",color:"#ffffff"}},[e._v("fhrons-pc")]),e._v("后从组件中引入,下面代码块展示上传方法和压缩方法一起引入的方式:")]),n("pre",{staticClass:"language-javascript"},[n("code",[e._v("import FHUpload,{compressFile,loopCompressFile} from 'fhrons-pc/plugins/tool/upload'")])]),n("p",[e._v("也可以只引入两个压缩方法:")]),n("pre",{staticClass:"language-javascript"},[n("code",[e._v("import {compressFile,loopCompressFile} from 'fhrons-pc/plugins/tool/upload'")])]),n("h3",[n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("compressFile")])]),n("p",[e._v("压缩压缩的方法,接收两个参数,具体内容如下方代码块所示:")]),n("pre",{staticClass:"language-javascript"},[n("code",[e._v("/**\n * @param {Blob} file 上传的图片文件\n * @param {Number} quality 压缩质量\n * @returns 返回压缩后的图片文件\n */\n// 压缩文件\nexport const compressFile = async function(file, quality) ")])]),n("h3",[n("span",{staticStyle:{"background-color":"#c2e0f4"}},[e._v("loopCompressFile")])]),n("p",[e._v("循环压缩图片的方法,接收三个参数,具体内容如下方代码块所示:")]),n("pre",{staticClass:"language-javascript"},[n("code",[e._v("/**\n * @param {Blob} file 上传的图片文件\n * @param {Number} size 指定压缩后的图片大小\n * @param {Number} quality 压缩质量\n * @returns 返回压缩后的图片文件\n */\n// 循环压缩\nexport const loopCompressFile = async function(file, size, quality) ")])]),n("p",[n("span",{staticStyle:{color:"#e03e2d"}},[e._v("注意:此方法仅适用于图片文件的压缩,不支持其他文件的压缩,否则会报错")])])])}],o=(n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("fb6a"),n("b0c0"),n("0c47"),n("23dc"),n("3410"),n("131a"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0"),n("53ca")),i=n("1da1");n("c197");function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,a){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),l=new E(a||[]);return r(i,"_invoke",{value:S(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m="suspendedStart",h="suspendedYield",g="executing",b="completed",v={};function y(){}function C(){}function x(){}var _={};d(_,s,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w($([])));k&&k!==n&&a.call(k,s)&&(_=k);var T=x.prototype=y.prototype=Object.create(_);function j(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(r,i,l,s){var c=f(e[r],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Object(o["a"])(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(o,i){if(r===g)throw Error("Generator is already running");if(r===b){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=F(l,a);if(s){if(s===v)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=b,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=g;var c=f(t,n,a);if("normal"===c.type){if(r=a.done?b:h,c.arg===v)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=b,a.method="throw",a.arg=c.arg)}}}function F(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,F(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var o=f(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function $(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Object(o["a"])(t)+" is not iterable")}return C.prototype=x,r(T,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:C,configurable:!0}),C.displayName=d(x,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===C||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,u,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},j(P.prototype),d(P.prototype,c,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new P(p(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(T),d(T,u,"Generator"),d(T,s,(function(){return this})),d(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=$,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:$(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}var s={data:function(){return{bucketName:"tencent",fileList:[],codeStr:""}},methods:{handleChange:function(e){var t=this;return Object(i["a"])(l().mark((function n(){var a,r;return l().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,FHCommon.compressFile(e,.8);case 3:a=n.sent,a?t.$notify({title:"压缩成功",message:"111"}):t.$notify({title:"压缩失败",message:h("i",{style:"color: teal"},"未知错误")}),n.next=11;break;case 7:n.prev=7,n.t0=n["catch"](0),r=t.$createElement,t.$notify({title:"压缩失败",message:r("i",{style:"color: teal"},n.t0)});case 11:case"end":return n.stop()}}),n,null,[[0,7]])})))()},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))},handleRemove:function(e,t){console.log(e,t)}}},c=s,u=(n("1be7"),n("2877")),d=Object(u["a"])(c,a,r,!1,null,"55aa4266",null);t["default"]=d.exports},d22c:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"FHVxeTable"}},[n("vxe-table",{ref:"tableRef",attrs:{align:e.allAlign,data:e.tableData,border:e.border,"row-config":{isHover:!0},"column-config":{resizable:e.resizable},"radio-config":{strict:!1},"span-method":e.mergeRowMethod,"expand-config":{lazy:!0,accordion:e.expandConfig.accordion,loadMethod:e.loadContentMethod},"empty-text":"暂无数据"},on:{"radio-change":e.radioChangeEvent,"checkbox-all":e.handleSelectionChange,"checkbox-change":e.handleSelectionChange,"sort-change":e.handleSortChange}},[e.hasSeq?n("vxe-column",{attrs:{type:"seq",width:"60",fixed:"left"}}):e._e(),e.hasRadio?n("vxe-column",{attrs:{type:"radio",width:"60",fixed:"left"}}):e._e(),e.hasCheckbox?n("vxe-column",{attrs:{type:"checkbox",width:"60",fixed:"left"}}):e._e(),e.hasExpand?n("vxe-column",{attrs:{type:"expand",width:"80"},scopedSlots:e._u([{key:"content",fn:function(t){var n=t.row;return[e._t("ExpandContent",null,{item:n})]}}],null,!0)}):e._e(),e._l(e.tableProp,(function(t,a){return n("vxe-column",{key:"specialProp"+t.prop+a,attrs:{title:t.title,field:t.prop,width:t.titleWidth||120,"min-width":"100",fixed:t.fixed||"","show-overflow":t.overflow||!1,sortable:t.sortable||!1},scopedSlots:e._u([{key:"default",fn:function(r){var o=r.row;return["label"!==t.type&&e.judgeEmpty(t.type)?"img"===t.type?n("img",{attrs:{src:o[t.prop],width:t.imgWidth||60}}):"html"===t.type?n("span",{domProps:{innerHTML:e._s(o[t.prop])}}):"button"===t.type?n("vxe-button",{attrs:{type:t.btnType||"text"},on:{click:function(n){return e.cellTableClick(o,t.type,o[t.prop])}}},[e._v(e._s(o[t.prop]))]):"buttons"===t.type?n("div",e._l(o[t.prop],(function(r,i){return n("div",{key:""+t.prop+a+"btns"+i},[e._l(r.btns,(function(a,l){return n("el-button",{key:""+a.text+i+l,class:"single-wrap"===t.btnShowType||e.isAppScreen?"single-button":"",attrs:{disabled:r.disabled,type:t.btnType},on:{click:function(t){return e.handleTableClick(o,a.type,a,l)}}},[n("span",{staticClass:"pointer"},[e._v(" "+e._s(a.text)+" "),"single-wrap"!==t.btnShowType&&!e.isAppScreen&&(l<r.btns.length-1||e.judgeEmpty(r.moreBtns))?n("i",{staticClass:"mlr5 c-e4e7ed"},[e._v("|")]):e._e()])])})),e.judgeEmpty(r.moreBtns)?n("el-dropdown",{staticClass:"more-btn",attrs:{size:"medium"},on:{command:e.handleCommand}},[n("span",{staticClass:"el-dropdown-link more-text"},[e._v("更多")]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(r.moreBtns,(function(t,r){return n("el-dropdown-item",{key:""+t.text+r,attrs:{command:{row:o,type:t.type,item:t,idx:a}}},[e._v(e._s(t.text))])})),1)],1):e._e()],2)})),0):e._e():n("div",[e._v(e._s(o[t.prop]))])]}}],null,!0)})}))],2)],1)},r=[],o=(n("99af"),n("caad"),n("d3b7"),n("c7cd"),n("159b"),{name:"FHVxeTable",components:{},props:{tableObj:{type:Object,default:function(){}},border:{type:String,default:"default"},hasToolBar:{type:Boolean,default:!0},allAlign:{type:String,default:"left"},hasSeq:{type:Boolean,default:!1},hasRadio:{type:Boolean,default:!1},hasCheckbox:{type:Boolean,default:!1},hasExpand:{type:Boolean,default:!1},expandConfig:{type:Object,default:function(){return{lazy:!0,accordion:!1}}},resizable:{type:Boolean,default:!1},spanMethod:{type:String,default:""}},data:function(){return{tableProp:[{title:"id",prop:"id",fixed:"left",sortable:!0},{title:"name",prop:"name",type:"button"},{title:"role",prop:"role"},{title:"sex",prop:"sex"},{title:"age",prop:"age"},{title:"address",prop:"address",overflow:"tooltip"},{title:"html",prop:"html",type:"html"},{title:"图片",prop:"img",type:"img",imgWidth:60},{title:"操作",prop:"operates",type:"buttons",btnType:"text",titleWidth:120}],tableData:[{id:10001,name:"Test1",role:"Test 内容超出一行不想换行不想换行不想换行",sex:"Man",age:28,address:"内容超出一行显示为 tooltip xxxxxxxxxxxxxx",html:'<span style="color:red">自定义HTML</span>',img:"https://n.sinaimg.cn/sinacn17/w120h120/20180314/89fc-fyscsmv5911424.gif",operates:[{btns:[{type:"edit",text:"编辑"},{type:"delete",text:"删除"}]}]},{id:10002,name:"Test3",role:"Test 内容超出一行不想换行不想换行不想换行"},{id:10003,name:"Test2",role:"Test 内容超出一行不想换行不想换行不想换行"},{id:10004,name:"Test5",role:"Test 内容超出一行不想换行不想换行不想换行"}]}},watch:{tableObj:{handler:function(){this.handleData()},immediate:!0,deep:!0}},created:function(){var e=this;this.$nextTick((function(){var t=e.$refs.tableRef,n=e.$refs.toolbarRef;t&&n&&t.connect(n)}))},mounted:function(){},methods:{handleData:function(){this.tableData=[].concat(this.tableObj["data"]||[]),this.tableProp=this.tableObj["tableProp"]||[]},tableItemFixed:function(e,t){var n=!this.isAppScreen||0!==t&&t!==this.tableProp.length-1?!this.isAppScreen&&e.fixed:e.fixed;return String(n)},cellTableClick:function(e,t,n){var a={text:n,type:t};this.handleTableClick(e,t,a)},handleTableClick:function(e,t,n,a){var r={row:e,type:t,item:n,idx:a};console.log(r),this.$emit("handleTableClick",r)},handleSelectionChange:function(e){e.checked;var t=this.$refs.tableRef.getCheckboxRecords();this.$emit("handleSelectionChange",t)},radioChangeEvent:function(e){var t=e.newValue;e.oldValue;this.$emit("handleSelectionChange",[t])},handleSortChange:function(e){e.column;var t=e.property,n=e.order;console.info(t,n)},mergeRowMethod:function(e){var t=e.row,n=e._rowIndex,a=e.column,r=e.visibleData,o=e._columnIndex;if(this.spanMethod)if("spanMethod"===this.spanMethod){var i=[];this.tableProp.forEach((function(e){i.push(e.prop)}));var l=t[a.property];if(l&&i.includes(a.property)){var s=r[n-1],c=r[n+1];if(s&&s[a.property]===l)return{rowspan:0,colspan:0};var u=1;while(c&&c[a.property]===l)c=r[++u+n];if(u>1)return{rowspan:u,colspan:1}}}else"custom"===this.spanMethod&&this.$emit("mergeRowMethod",{row:t,_rowIndex:n,column:a,visibleData:r,_columnIndex:o})},loadContentMethod:function(e){var t=this,n=e.row,a=e.rowIndex;return new Promise((function(e){setTimeout((function(){t.$emit("loadContentMethod",{row:n,rowIndex:a}),e()}),500)}))}}}),i=o,l=n("2877"),s=Object(l["a"])(i,a,r,!1,null,"727d5b80",null);t["default"]=s.exports},d29b:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"ToolTest"}},[n("el-tabs",{attrs:{type:"border-card"}},e._l(e.toolObj,(function(t,a,r){return n("el-tab-pane",{key:r,attrs:{label:""+a}},[n("div",{staticClass:"waterfall"},e._l(t,(function(t,r,o){return n("div",{key:o,staticClass:"left"},[a.includes(".js")&&"floatTools.js"!==a?n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(" // "+t.name+" \n "+r+"{ }",t.example))}}):n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(" // "+t.name+" \n "+r,t.example))}})])})),0)])})),1)],1)},r=[],o=(n("99af"),n("c197")),i=n.n(o),l=(n("a878"),n("7719")),s={name:"ToolTest",components:{},props:{},data:function(){return{toolObj:{"func.js":{"arraySort(name)":{name:"根据数组对象的某个key值排序",example:"const arr = [{ a: 1, b: 2 },{ a: 4, b: 3 },\n { a: 3, b: 3 },{ a: 2, b: 3 }];\n\narr.sort(arraySort('a')))\n// console结果:\n// [{ a: 1, b: 2 }, { a: 2, b: 3 }, { a: 3, b: 3 },],{ a: 4, b: 3 }]"},"brightenKeyword(color = '#303133', keyword = '')":{name:"文字变色",example:"const a = '123';\nconst str = brightenKeyword('#1677ff', a);"},"cutLocationHref()":{name:"当前地址栏所有参数转化为键值对对象格式",example:"//例如当前的location.href为:\n//'https://abc/page?clientNewId=1000066608&workStatus=4\n cutLocationHref() //{clientNewId: '1000066608', workStatus: '4'}"},"deepClone(target)":{name:"定义一个深拷贝函数 接收目标target参数",example:"//深拷贝,两种用法\n //1.页面先引入,在使用:\n import { deepClone } from 'fhrons-pc/plugins/tool/func.js'; \n const tempData = deepClone(object)\n\n //2.写在commonFuncMixin.js文件,全局直接使用,无需import引入\n const tempData = deepClone(object)\n "},"isEmpty(val)":{name:"判断val为空",example:"const arr = ['', [], {}, null, 'null', undefined, 'undefined',\n 0, 1, -1, true, false];\n arr.forEach(item => {\n console.log(isEmpty(item));\n });\n//console结果:\n//true,true,true,true,true,true,true,false,false,false,false,false"},"hexToRGBA(_color, _opacity)":{name:"把hex颜色值转化为rgba色值",example:"hexToRGBA('#1677FF', 1) // rgba(22,119,255,1)\n hexToRGBA('#c5c944', 0.64)// rgba(197,201,68,0.64)"},"join(arr, symbol = ',')":{name:"根据传入symbol联合,不传默认是','",example:"const arr = [1, 1, '1', '1', 0, 0, '0', '0', undefined, undefined]\n\njoin(arr)//console结果:1,1,1,1,0,0,0,0,,\njoin(arr,'*')//console结果:1*1*1*1*0*0*0*0**"},"notEmpty(val)":{name:"判断val不为空",example:"const arr = ['', [], {}, null, 'null', undefined, 'undefined',\n 0, 1, -1, true, false];\n arr.forEach(item => {\n console.log(notEmpty(item));\n });\n//console结果:\n//false,false,false,false,false,false,false,true,true,true,true,true,"},"reduceSome(arr, key)":{name:"根据数组对象的某个key值去重",example:"const arr = [{ a: 1, b: 2 }, { a: 1, b: 3 }];\n\nreduceSome(arr,'a')\n//console结果:[{ a: 1, b: 2 }]"},"reduceSomeBySet(arr)":{name:"对数组内容进行去重",example:"const arr = [1, 1, '1', '1', 0, 0, '0', '0', undefined, undefined,\n null, null, NaN, NaN];\n\nreduceSomeBySet(arr)\n//console结果:[1, '1', 0, '0', undefined, null, NaN]"},"split(str)":{name:"根据逗号分隔",example:"split('我是一段长长的文字,wsydccdwz')\n//console结果:['我是一段长长的文字', 'wsydccdwz']"},"strToHexCharCode(str)":{name:"string转向hex编码",example:"strToHexCharCode('衣1e')\n// console结果:'0x88633165'"},"toFormData(obj)":{name:"Json强转为Form类型",example:"const data = toFormData({ 'name': 'BeJson', 'url': 'http://a.com'});\n console.log(data.getAll('name')) //['BeJson'];\n console.log(data.get('url'))//http://a.com"},"toInt(val, defaultValue)":{name:"强转int型,传入defaultValue可以把非int型的转为默认值",example:"toInt('') //-1,\n toInt('123')//123\n toInt('123', 2)//123\n toInt('123', '我')//123\n toInt('我')//-1\n toInt('我', 33)//33"},"trimParams(params)":{name:"去除对象里面字符串参数两侧空格",example:"trimParams(' abcde ')\n // console结果:'abcde'"}},"floatTools.js":{"0.1.add(0.2)":{name:"加法函数,示例"},"0.2.sub(0.1)":{name:"减法函数,示例"},"0.2.mul(0.1)":{name:"乘法函数,用来得到精确的乘法结果,示例"},"0.2.div(0.1)":{name:"除法函数,示例"}},"validate.js":{"cardId(code)":{name:"判断身份证号码",example:"cardId('420333194708248787') //true\n cardId('423333333323450') //false"},"validateName(name)":{name:"判断姓名是否正确(2-4字中文)",example:"const arr = ['abc', '123', '名', '姓名', 'na明me',\n '姓和名','四字姓名', '五个字姓名',];\n arr.forEach(item => {\n console.log(validateName(item));\n });\n//console结果:false,false,false,true,false,true,true,false"},"isEmail(s)":{name:"校验email格式",example:"const arr = ['abc', 'abc@.com', '12345@360.com', 'a@b.cn', '1c@a.bcde'];\n arr.forEach(item => {\n console.log(isEmail(item));\n });\n//console结果:false,false,true,true,false"},"isMobile(s)":{name:"校验1开头、第二位是3-9的11位手机号码",example:"isMobile('123456789')// false\n isMobile('13322224444')// true\n isMobile('abcdefghijkl')// false"},"isURL(s)":{name:"校验URL地址是否是http[s]://开头",example:"const arr = ['http', 'https', 'http://', 'https://', 'http:/'];\n arr.forEach(item => {\n console.log(isURL(item));\n });\n//console结果:false,false,true,true,false"},"validateNull(val)":{name:"判断是否为空(number和boolean类型都不为空)",example:"const arr = ['', [], {}, null, 'null', undefined, 'undefined',\n 0, 1, -1, true, false];\n arr.forEach(item => {\n console.log(validateNull(item));\n });\n//console结果:\n//true,true,true,true,true,true,true,false,false,false,false,false"},"validateLowerCase(str)":{name:"判断全小写字母",example:"const arr = ['a', 'A',Aa', 1, '1a', '字'];\n arr.forEach(item => {\n console.log(validateLowerCase(item));\n });\n//console结果:true,false,false,false,false,false"},"validateUpperCase(str)":{name:"判断全大写字母",example:"const arr = ['a', 'A',Aa', 1, '1a', '字'];\n arr.forEach(item => {\n console.log(validateLowerCase(item));\n });\n//console结果:false,true,false,false,false,false"},"validateAlphabets(str)":{name:"大小写字母",example:"const arr = ['a', 'A',Aa', 1, '1a', '字'];\n arr.forEach(item => {\n console.log(validateLowerCase(item));\n });\n//console结果:false,false,true,false,false,false"},"validateNumWord(num)":{name:"判断是否为小数(number类型)",example:"const arr = [1.33, '1.33', 0, 'a', '一'];\n arr.forEach(item => {\n console.log(validateNumWord(item));\n });\n//console结果:true,false,false,false,false"}},"自定义指令":{"v-preventReClick":{name:"防止按钮一定时间内重复点击,不传值默认是2s",example:'<el-button v-preventReClick type="danger">按钮</el-button>'},"v-permission":{name:"权限的自定义指令",example:'<el-button v-permission="\'home/permission\'" type="danger">\n 按钮权限测试2\n </el-button>'}}}}},watch:{},created:function(){},mounted:function(){console.log(Object(l["d"])("https://uatfh.funzg.net/fhronsapp/addfollowrecord?clientNewId=1000066608&workStatus=4"))},methods:{toHtml:function(e,t){return i.a.highlight(t?"".concat(e,"\n\n 示例:\n ").concat(t):e,i.a.languages.html,"html")},toJs:function(e,t){return i.a.highlight(t?"".concat(e,"\n\n 示例:\n ").concat(t):e,i.a.languages.js,"js")}}},c=s,u=(n("add7"),n("2877")),d=Object(u["a"])(c,a,r,!1,null,"f40dcf70",null);t["default"]=d.exports},d37e:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"MindMapTest"}},[n("MindMap",{attrs:{"mind-data":e.mindData}})],1)},r=[],o=n("2af9"),i=n("cebe"),l=n.n(i),s={name:"MindMapTest",components:{MindMap:o["o"]},data:function(){return{mindData:[]}},created:function(){this.getData()},methods:{getData:function(){var e=this;l.a.get("./mockData/mockData.json").then((function(t){e.mindData=t}))}}},c=s,u=(n("4a82"),n("2877")),d=Object(u["a"])(c,a,r,!1,null,"238a3a66",null);t["default"]=d.exports},d45f:function(e,t,n){"use strict";n("83c5")},d571:function(e,t,n){"use strict";n("b242")},d72f:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"line-height36",attrs:{id:"International"}},[a("p",{staticClass:"ft28 fw-500"},[e._v("国际化")]),a("p",{staticClass:"c-606266"},[e._v("组件内部默认使用中文,若希望使用其他语言,则需要进行多语言设置。(注:因为考虑各系统集成的方便性,这里用的动态加载方式进行集成)")]),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("1、npm 安装")]),e._m(0),a("pre",{staticClass:"language-html mtb0",domProps:{innerHTML:e._s(e.toHtml("npm i vue-i18n@8.28.2"))}}),e._v(" "),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("2、创建语言文件,这里的繁体复制的是移动端的")]),a("img",{attrs:{src:n("a5c0"),alt:""}}),a("el-tabs",{attrs:{type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"zh_CN",name:"zh"}},[a("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.zhStr))}})]),a("el-tab-pane",{attrs:{label:"en_US",name:"en"}},[a("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.enStr))}})]),a("el-tab-pane",{attrs:{label:"zh_T",name:"zh-t"}},[a("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.zhTStr))}})])],1),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("3、配置lang下index.js文件,有一次性加载和动态加载两种方式,下面以element为案例说一下")]),a("el-tabs",{attrs:{type:"border-card"},model:{value:e.pzActiveName,callback:function(t){e.pzActiveName=t},expression:"pzActiveName"}},[a("el-tab-pane",{attrs:{label:"动态",name:"dynamic"}},[a("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.dynamicStr))}})]),a("el-tab-pane",{attrs:{label:"全部加载",name:"allLoad"}},[a("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.allLoadStr))}})])],1),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("4、在main.js里面引入")]),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("4.1、在main.js里面引入,后台系统代码")]),a("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.main18nJS))}}),e._v(" "),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("4.2、在main.js里面引入,移动端代码")]),a("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.mainVantI18nJS))}}),e._v(" "),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("移动端需要注意路由算法得给标题也进行国际化")]),a("img",{staticStyle:{width:"800px",height:"600px"},attrs:{src:n("be38"),alt:""}}),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("5、在router/index.js里面调用,注意动态加载的时候一定要先加载完语言在进入路由")]),a("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.router18nJS))}}),e._v(" "),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("6、使用方法")]),a("p",{staticClass:"fw-500 mt24"},[e._v("6.1、简单使用")]),a("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.easyUseI18n))}}),e._v(" "),a("p",{staticClass:"fw-500 mt24"},[e._v("6.2、以login.vue为例")]),a("pre",{staticClass:"language-"},[e._v(" "),a("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.login18nHtml))}}),e._v("\n ")]),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("7、后台系统头部切换语言")]),a("pre",{staticClass:"language-"},[e._v(" "),a("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.headerChangeLangHtml))}}),e._v("\n ")]),a("img",{attrs:{src:n("2668"),alt:""}}),a("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.changeLang))}}),e._v(" "),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("8、移动端链接带语言标识切换语言")]),a("img",{staticStyle:{width:"800px",height:"600px"},attrs:{src:n("abc4"),alt:""}}),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("或者设置加上切国际化功能")]),a("img",{staticStyle:{width:"800px",height:"600px"},attrs:{src:n("c34f"),alt:""}}),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("在index.html加上获取语言的代码")]),a("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.getVantLang))}}),e._v(" "),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("特别注意的是清除缓存的时候需要保留当前语言,在storage的clearStorage方法中要把语言继续存入缓存/p> "),a("pre",{staticClass:"language-js mtb0",domProps:{innerHTML:e._s(e.toJs(e.storageLangJS))}})]),a("img",{attrs:{src:n("b2e1"),alt:""}}),a("p",{staticClass:"ft18 fw-500 mt24"},[e._v("9、uniapp版本国际化,请点击下面在线文档查看")]),e._m(1)],1)},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("p",[e._v("// npm install vue-i18n--save 9版本需要vue3.0")]),a("p",[e._v("// 在vue2环境下,默认安装 npm install vue-i18n 的版本是 vue-i18n@9.2.2,")]),a("p",[e._v("// 报错信息里提示这个版本要求是vue3,所以我们安装适合vue2版本的vue-i18n 依赖包。")]),a("p",[e._v("// 运行指令查看所以版本")]),a("p",[e._v("// npm view vue-i18n versions --json")]),a("img",{attrs:{src:n("c287"),alt:""}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"ptb20 ft20 fw-500 mlr20"},[n("a",{attrs:{href:"https://docs.qq.com/doc/DR1hPZ1VzY01sZWRK",target:"blank"}},[e._v("uniapp版本国际化")])])}],o=n("c197"),i=n.n(o),l=(n("a878"),n("4fca")),s={name:"International",components:{},props:{},data:function(){return{changeLang:l["A"],easyUseI18n:l["H"],headerChangeLangHtml:l["J"],enStr:l["L"],zhStr:l["M"],zhTStr:l["N"],activeName:"zh",pzActiveName:"dynamic",dynamicStr:l["G"],allLoadStr:l["z"],main18nJS:l["P"],router18nJS:l["S"],login18nHtml:l["O"],mainVantI18nJS:l["Q"],getVantLang:l["I"],storageLangJS:l["T"]}},watch:{},created:function(){},mounted:function(){},methods:{toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"39c0fe11",null);t["default"]=d.exports},d805:function(e,t,n){"use strict";n("b0c0");var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-table",{ref:"multipleTable",class:[e.tableObj.name,e.hasTableChildren?"table-children-box":""],staticStyle:{width:"100%"},attrs:{id:"CommonTable","header-cell-style":{color:"#909399",fontSize:"14px",background:"#F0f2f5"},"cell-style":{fontSize:"14px",color:"#323233",padding:"10px 0"},data:e.tableData,"max-height":e.maxHeight,"default-expand-all":e.defaultExpandAll,"row-key":e.rowKey,lazy:e.lazy,load:e.loadNode,"tree-props":e.treeProps,"highlight-current-row":e.highlightCurrentRow},on:{"current-change":e.handleCurrentChange,"selection-change":e.handleSelectionChange,"sort-change":e.handleSortChange,"row-click":e.rowClick}},[e.hasCheckbox?n("el-table-column",{staticClass:"table-checkbox",attrs:{type:"selection",width:"55",fixed:e.checkboxFixed,selectable:e.selectableFunc}}):e._e(),e.expandFlag?n("el-table-column",{staticClass:"table-checkbox",attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._t("expandContent",null,{row:t.row})]}}],null,!0)}):e._e(),e._l(e.tableProp,(function(t,a){return n("el-table-column",{key:"specialProp"+t.prop+a,attrs:{label:t.label,prop:t.prop,fixed:e.tableItemFixed(t,a),width:e.isAppScreen?"":t.labelWidth,sortable:t.sortable},scopedSlots:e._u([{key:"default",fn:function(r){return["label"!==t.type&&e.judgeEmpty(t.type)?"htmlType"===t.type?n("TooltipOver",e._g(e._b({class:t.labelClass,attrs:{"is-html":!0,"hover-show":e.hoverShow,"xss-content":e.$xss(r.row["xss"+t.prop]),"not-tool-tip":e.notToolTip,content:""===r.row[t.prop]||null===r.row[t.prop]||void 0===r.row[t.prop]?"--":r.row[t.prop],"ref-name":"htmlType"+t.prop,"current-row":r.row},on:{tooltipClick:function(n){return e.handleTableClick(r.row,t.type,t,a)}}},"TooltipOver",e.$attrs,!1),e.$listeners)):"audio"===t.type?n("el-button",{staticClass:"ptb0",staticStyle:{"font-size":"20px"},attrs:{type:"text",disabled:r.row["disabled"],size:"small",icon:t.icon},on:{click:function(n){return e.handleTableClick(r.row,t.type)}}}):"button"===t.type?n("el-button",{attrs:{disabled:r.row["disabled"],type:t.btnType},on:{click:function(n){return e.handleTableClick(r.row,t.type)}}},[e._v(" "+e._s(r.row[t.prop])+" ")]):"buttons"===t.type?n("div",{staticClass:"more-operate-btns"},e._l(r.row[t.prop],(function(o,i){return n("div",{key:""+t.prop+a+"btns"+i},[e._l(o.btns,(function(a,l){return n("el-button",{key:""+a.text+i+l,class:"single-wrap"===t.btnShowType||e.isAppScreen?"single-button":"",attrs:{disabled:o.disabled,type:t.btnType},on:{click:function(t){return e.handleTableClick(r.row,a.type,a,l)}}},[n("span",{staticClass:"pointer"},[e._v(" "+e._s(a.text)+" "),"single-wrap"!==t.btnShowType&&!e.isAppScreen&&(l<o.btns.length-1||e.judgeEmpty(o.moreBtns))?n("i",{staticClass:"mlr5 c-e4e7ed"},[e._v("|")]):e._e()])])})),e.judgeEmpty(o.moreBtns)?n("el-dropdown",{staticClass:"more-btn",attrs:{size:"medium"},on:{command:e.handleCommand}},[n("span",{staticClass:"el-dropdown-link more-text"},[e._v(e._s(e.$t("commontable.index.51rbrw")))]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(o.moreBtns,(function(t,o){return n("el-dropdown-item",{key:""+t.text+o,attrs:{command:{row:r.row,type:t.type,item:t,idx:a}}},[e._v(e._s(t.text))])})),1)],1):e._e()],2)})),0):"counter"===t.type?n("div",{staticClass:"flex-vertical-center"},[n("div",{staticClass:"mr15"},[n("div",{staticClass:"counter"},[n("el-button",{staticClass:"counter-icon",attrs:{icon:"el-icon-remove-outline",circle:"",size:"mini"},on:{click:function(n){return e.handleCut(r.row,t)}}}),n("el-input",{staticClass:"inputWidth-30",attrs:{size:"mini",max:"10"},on:{input:function(n){e.handleCounterChange(n,r.row,t)}},model:{value:r.row[t.prop],callback:function(n){e.$set(r.row,t.prop,e._n(n))},expression:"scope.row[item.prop]"}}),n("el-button",{staticClass:"counter-icon",attrs:{icon:"el-icon-circle-plus-outline",circle:"",size:"mini"},on:{click:function(n){return e.handlePlus(r.row,t)}}})],1),n("P",{staticClass:"count-limit c-323233 ft14 ta-c"},[e._v(e._s(r.row[t.prop]?r.row[t.prop]:0)+"/"+e._s(r.row.surplusNum))])],1),n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.handlePeek(r.row,t)}}},[e._v(e._s(e.$t("commontable.index.4s5km3")))])],1):"avatarLabel"===t.type?n("div",{staticClass:"avatar-label-box ps-r"},[n("el-avatar",{staticClass:"avatar-img",attrs:{shape:"circle",size:20,src:r.row["url"]}}),n("TooltipOver",{staticClass:"avatar-label",attrs:{"hover-show":e.hoverShow,content:r.row[t.prop],"ref-name":"avatarLabel"+t.prop}})],1):"mark"===t.type?n("div",{staticClass:"flex-center-start"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:r.row["customerName"],disabled:r.row["customerName"]&&r.row["customerName"].length<6,placement:"top-start"}},[n("p",{staticClass:"over-flow max-width-tooltip pointer"},[e._v(e._s(r.row["customerName"]))])]),r.row["icon"]?n("img",{staticClass:"ml10",attrs:{src:r.row["icon"],alt:""}}):e._e()],1):"information"===t.type?n("div",{staticClass:"fix"},[n("el-avatar",{staticClass:"left mr10",attrs:{shape:"square",size:44,src:r.row["headImg"]}},[n("img",{staticClass:"avatar-info-img",attrs:{src:r.row["headImg"],alt:""}})]),n("div",{staticClass:"left"},[n("div",{staticClass:"flex-center-start"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:r.row["name"],disabled:r.row["name"]&&r.row["name"].length<6,placement:"top-start"}},[n("p",{staticClass:"over-flow max-width-tooltip pointer"},[e._v(e._s(r.row["name"]))])]),r.row["customerStar"]?n("div",e._l(Number(r.row["customerStar"]),(function(e){return n("i",{key:"customerStar"+e,staticClass:"el-icon-star-on c-fad20c"})})),0):e._e(),r.row["icon"]?n("img",{staticClass:"ml-4",attrs:{src:r.row["icon"],alt:""}}):e._e()],1),n("div",{},[e._v(" "+e._s(r.row["ageSex"])+" ")])])],1):e.queryTableStatus(t)?n("el-form",{ref:"form"+r.$index+t.type+t.prop,refInFor:!0,staticClass:"demo-ruleForm",attrs:{size:"small",model:r.row,rules:t.rules}},[n("el-form-item",{attrs:{prop:t.prop}},["input"===t.type?n("el-input",{class:t.class,attrs:{size:"small",maxlength:t.maxlength,"show-word-limit":t.showWordLimit,clearable:"",autocomplete:"off",placeholder:t.isNoPlaceholder?"":""+(t.placeholder||e.$t("commonform.index.6d1re6")),disabled:t.disabled},on:{change:function(n){return e.formItemChange(n,t,r)}},model:{value:r.row[t.prop],callback:function(n){e.$set(r.row,t.prop,n)},expression:"scope.row[item.prop]"}}):"inputNum"===t.type?n("el-input",{class:t.class,attrs:{size:"small",oninput:"value=value.replace(/^0+(\\d)|[^\\d]+/g,'')",maxlength:t.maxlength,"show-word-limit":t.showWordLimit,clearable:"",autocomplete:"off",placeholder:t.isNoPlaceholder?"":""+(t.placeholder||e.$t("commonform.index.6d1re6")),disabled:t.disabled},on:{change:function(n){return e.formItemChange(n,t,r)}},model:{value:r.row[t.prop],callback:function(n){e.$set(r.row,t.prop,n)},expression:"scope.row[item.prop]"}}):"inputFloat"===t.type?n("el-input",{class:t.class,attrs:{size:"small",oninput:"value=value.replace(/^\\.+|[^\\d.]/g,'')",maxlength:t.maxlength,"show-word-limit":t.showWordLimit,clearable:"",autocomplete:"off",placeholder:t.isNoPlaceholder?"":""+(t.placeholder||e.$t("commonform.index.6d1re6")),disabled:t.disabled},on:{change:function(n){return e.formItemChange(n,t,r)}},model:{value:r.row[t.prop],callback:function(n){e.$set(r.row,t.prop,n)},expression:"scope.row[item.prop]"}}):"select"===t.type?n("el-select",{staticClass:"full-width",class:t.class,attrs:{size:"small",clearable:"",disabled:t.disabled,placeholder:t.isNoPlaceholder?"":""+(t.placeholder||e.$t("lib.zh-cn.acri49")),multiple:t.multiple,"multiple-limit":t.multipleLimit,filterable:t.filterable},on:{change:function(n){return e.formItemChange(n,t,r)}},model:{value:r.row[t.prop],callback:function(n){e.$set(r.row,t.prop,n)},expression:"scope.row[item.prop]"}},e._l(t.options,(function(e,a){return n("el-option",{key:"options"+t.prop+a,attrs:{label:e.name,value:e.value}})})),1):"dynamicSelect"===t.type?n("el-select",{staticClass:"full-width",class:t.class,attrs:{size:"small",clearable:"",disabled:t.disabled,placeholder:t.isNoPlaceholder?"":""+(t.placeholder||e.$t("lib.zh-cn.acri49")),multiple:t.multiple,"multiple-limit":t.multipleLimit,filterable:t.filterable},on:{change:function(n){return e.formItemChange(n,t,r)}},model:{value:r.row[t.prop],callback:function(n){e.$set(r.row,t.prop,n)},expression:"scope.row[item.prop]"}},e._l(r.row[t.prop+"options"],(function(e,a){return n("el-option",{key:"dynamicSelect-options"+t.prop+a,attrs:{label:e.name,value:e.value}})})),1):"cascader"===t.type?n("el-cascader",{key:t.refresh,staticClass:"full-width",class:t.class,attrs:{size:"small",props:{checkStrictly:!0},options:t.options,"show-all-levels":!1,clearable:"",disabled:t.disabled},on:{change:function(n){return e.formItemChange(n,t,r)},blur:function(n){return e.cascaderBlur(n,t,r)}},model:{value:r.row[t.prop],callback:function(n){e.$set(r.row,t.prop,n)},expression:"scope.row[item.prop]"}}):"datePicker"===t.dateType?n("DatePicker",{ref:"DatePicker",refInFor:!0,class:t.class,attrs:{type:t.type,size:"small","select-date-range":t.selectDateRange,"total-date-range":t.totalDateRange,"value-format":t.valueFormat,"default-time":t.defaultTime,prop:t.prop,"date-range":r.row[t.prop],"is-limit-date-range":t.isLimitDateRange,"has-date-picker":t.hasDatePicker,"initial-value":t.initialValue,"has-quick-item":t.hasQuickItem,width:t.width,disabled:t.disabled,"select-type":t.selectType,"picker-options":t.pickerOptions,placeholder:t.isNoPlaceholder?"":t.placeholder?t.placeholder:e.$t("lib.zh-cn.acri49")},on:{getDateRange:function(n){return e.formItemChange(n,t,r)}}}):"checkbox"===t.type?n("el-checkbox-group",{staticClass:"flex",class:t.class,attrs:{size:"mini"},on:{change:function(n){return e.formItemChange(n,t,r)}},model:{value:r.row[t.prop],callback:function(n){e.$set(r.row,t.prop,n)},expression:"scope.row[item.prop]"}},e._l(r.row.options,(function(a,r){return n("el-checkbox",{key:"options"+t.prop+r,attrs:{label:a.value,disabled:a.disabled}},[e._v(e._s(a.name))])})),1):"textarea"===t.type?n("el-input",{class:t.class,attrs:{disabled:t.disabled,clearable:"",size:"small",type:"textarea",placeholder:t.isNoPlaceholder?"":""+(t.placeholder||e.$t("commonform.index.6d1re6")),rows:t.rows,autosize:t.autosize,"show-word-limit":t.showWordLimit,maxlength:t.maxlength},on:{change:function(n){return e.formItemChange(n,t,r)}},model:{value:r.row[t.prop],callback:function(n){e.$set(r.row,t.prop,n)},expression:"scope.row[item.prop]"}}):"treeSelect"===t.type?n("TreeSelect",e._g(e._b({attrs:{value:r.row[t.prop],filterable:"","item-prop":t.prop,data:t.options,"filter-able":t.filterable,multiple:t.multiple,relate:t.relate,"need-slot":t.needSlot,"node-key":t.nodeKey,disabled:t.disabled,"need-select":t.needSelect,"parent-node":!0},on:{"update:value":function(n){return e.$set(r.row,t.prop,n)},updateValue:function(t,n){return e.updateValue(t,n,r)}}},"TreeSelect",e.$attrs,!1),e.$listeners)):e._e()],1)],1):e._e():n("TooltipOver",{staticClass:"name-tip-box",class:t.labelClass,attrs:{"hover-show":e.hoverShow,content:""+(""===r.row[t.prop]||null===r.row[t.prop]||void 0===r.row[t.prop]?"--":t.formatter?t.formatter(r.row,t.prop):r.row[t.prop]),"not-tool-tip":e.notToolTip,"ref-name":"label"+t.prop},on:{tooltipClick:function(n){return e.handleTableClick(r.row,t.type,t,a)}}}),e._t("otherTableType",null,{item:t,scope:r})]}}],null,!0)},[n("template",{slot:"header"},[n("TooltipOver",{staticClass:"name-tip-box",class:t.labelClass,attrs:{"hover-show":e.hoverShow,content:t.label,"not-tool-tip":e.notToolTip,"ref-name":"label"+t.prop+t.label}})],1)],2)}))],2)},r=[],o=(n("99af"),n("a9e3"),n("d3b7"),n("c7cd"),n("159b"),n("adb8")),i=n("f634"),l=n("8e33"),s=n("7719"),c={name:"CommonTable",components:{TooltipOver:o["a"],DatePicker:i["a"],TreeSelect:l["a"]},props:{tableObj:{type:Object,default:function(){}},hoverShow:{type:Boolean,default:!1},hasCheckbox:{type:Boolean,default:!1},needRowClick:{type:Boolean,default:!1},checkboxFixed:{type:String,default:""},maxHeight:{type:Number,default:1e4},notToolTip:{type:Boolean,default:!1},hasTableChildren:{type:Boolean,default:!1},highlightCurrentRow:{type:Boolean,default:!1},expandFlag:{type:Boolean,default:!1}},data:function(){return{form:{},rules:{},tableData:[],tableProp:[],defaultExpandAll:!1,rowKey:"",lazy:!1,treeProps:{}}},watch:{tableObj:{handler:function(){this.handleData()},immediate:!0,deep:!0},hasTableChildren:{handler:function(e){e&&(this.defaultExpandAll=this.tableObj["defaultExpandAll"]||!1,this.treeProps=this.tableObj["treeProps"]||{children:"children",hasChildren:"hasChildren"},this.rowKey=this.tableObj["rowKey"]||"id",this.lazy=this.tableObj["lazy"]||!0)},immediate:!0,deep:!0},tableProp:{handler:function(e){e.forEach((function(e){"date"!==e.type&&"week"!==e.type&&"month"!==e.type&&"year"!==e.type&&"dates"!==e.type&&"datetime"!==e.type&&"daterange"!==e.type&&"datetimerange"!==e.type&&"time"!==e.type&&"monthrange"!==e.type&&"daterangepicker"!==e.type||(e["dateType"]="datePicker")}))},immediate:!0,deep:!0}},mounted:function(){},methods:{cascaderBlur:function(e,t,n){var a="form".concat(n.$index).concat(t.type).concat(t.prop);Object(s["o"])(this.$refs[a])&&Object(s["o"])(this.$refs[a].length>0)&&this.$refs[a][this.$refs[a].length-1].validateField(t.prop)},queryTableStatus:function(e){return"input"===e.type||"inputNum"===e.type||"select"===e.type||"dynamicSelect"===e.type||"cascader"===e.type||"datePicker"===e.dateType||"checkbox"===e.type||"textarea"===e.type||"treeSelect"===e.type||"inputFloat"===e.type},formItemChange:function(e,t,n){this.tableObj["data"][n.$index][t.prop]=e;var a={val:e,item:t,index:n.$index};this.$emit("formItemChange",a)},validateForm:function(){var e=!1;return this.$refs["form"].validate((function(t){e=t})),e},resetForm:function(){var e=this;this.$nextTick((function(){e.$refs["form"].clearValidate(),e.$refs["form"].resetFields()}))},updateValue:function(e,t,n){var a={prop:t},r={val:e,item:a,index:n.$index};n[t]=e,this.tableObj["data"][n.$index][a.prop]=e,this.tableData=Object(s["e"])(this.tableObj["data"]||[]),this.$emit("formItemChange",r)},loadNode:function(e,t,n){this.$emit("handLoadNode",{tree:e,treeNode:t,resolve:n})},tableItemFixed:function(e,t){return!this.isAppScreen||0!==t&&t!==this.tableProp.length-1?!this.isAppScreen&&e.fixed:e.fixed},handleTableClick:function(e,t,n,a){var r={row:e,type:t,item:n,idx:a};this.$emit("handleTableClick",r)},handleCommand:function(e){this.$emit("handleTableClick",e)},handleData:function(){this.tableData=[].concat(this.tableObj["data"]||[]),this.tableProp=this.tableObj["tableProp"]||[]},handleCurrentChange:function(e){this.$emit("handleCurrentChange",e)},handleSelectionChange:function(e){this.$emit("handleSelectionChange",e)},handleCounterChange:function(e,t){var n={val:e,row:t};this.$emit("handleCounterChange",n)},handlePeek:function(e){this.$emit("handlePeek",e)},handleCut:function(e){this.$emit("handleCut",e)},handlePlus:function(e){this.$emit("handlePlus",e)},handleSortChange:function(e){this.$emit("handleSortChange",e)},selectableFunc:function(e){return void 0===e.selectable||!!e.selectable},rowClick:function(e){this.hasCheckbox&&this.needRowClick&&this.$refs.multipleTable.toggleRowSelection(e)}}},u=c,d=(n("5109"),n("2877")),p=Object(d["a"])(u,a,r,!1,null,"0305efc4",null),f=p.exports;f.install=function(e){e.component(f.name,f)};t["a"]=f},dcb3:function(e,t,n){},dd17:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"DefaultImageCode"}},[n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36 pd20"},[e._m(0),n("code",[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.htmlStrObj["template"])}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrObj["template"]))}}),e._v("\n "),e._v("\n ")])])]),n("code",[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.htmlStrObj["script"])}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrObj["script"]))}}),e._v("\n "),e._v("\n ")])])]),e._m(1),n("code",[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.htmlStrObj["useage"])}}},[e._v("复制")]),n("pre",{staticClass:"language-javascript"},[e._v(" "),n("code",{domProps:{innerHTML:e._s(e.toHtml(e.htmlStrObj["useage"]))}}),e._v("\n "),e._v("\n ")])])])]):e._e()])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("p",[n("span",{staticClass:"inline-code"},[e._v("FHImage")]),e._v("组件主要接收一个"),n("span",{staticClass:"inline-code"},[e._v("backupSrc")]),e._v("参数,这个参数用作兜底展示的图片,如果租户自定义的图片出现未上传、链接失效等状况时会自动加载"),n("span",{staticClass:"inline-code"},[e._v("backupSrc")]),e._v("中的图片。")]),e._v(" 其余的参数同"),n("span",{staticClass:"inline-code"},[e._v("element-ui")]),e._v("的"),n("span",{staticClass:"inline-code"},[e._v("el-image")]),e._v("组件。 ")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("p",[e._v(" 这里引入方式只做展示用,在实际项目中请从"),n("span",{staticClass:"inline-code"},[e._v("fhons-pc")]),e._v("库中全局引入或按需引入"),n("span",{staticClass:"inline-code"},[e._v("FHImage")]),e._v("。 ")])])}],o=n("c197"),i=n.n(o),l=(n("a878"),n("4fca")),s={name:"DefaultImageCode",components:{},props:{},data:function(){return{htmlStrObj:l["F"],moreFlag:!0}},methods:{handleMore:function(){this.moreFlag=!this.moreFlag},toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}},c=s,u=(n("650f"),n("2877")),d=Object(u["a"])(c,a,r,!1,null,"c88f2de2",null);t["default"]=d.exports},de83:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"FHTableTest"}},[n("FilterQuery",{attrs:{model:e.formItem},on:{formItemChange:e.formItemChange,searchClick:e.searchClick,resetClick:e.resetClick}}),n("div",{staticClass:"table-btn-group"},[n("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(t){return e.addClick(e.dialogObj)}}},[e._v("新增")]),n("el-button",{attrs:{type:"danger",size:"small"},on:{click:e.delClick}},[e._v("批量删除")])],1),n("FHTable",{ref:"FHTable",attrs:{id:"tableOne","has-checkbox":!0,"max-height":e.maxHeight,"query-table-data":e.queryTableData,"query-params":e.queryParams,"table-props":e.tableProps,"list-map-name":"smSaasPlatformList"},on:{handleTableList:e.handleTableList,handleTableClick:e.handleTableClick,handleSelectionChange:e.handleSelectionChange}}),e.dialogObj.showDialog?n("FHDialog",{attrs:{"dialog-obj":e.dialogObj},on:{cancelClick:function(t){return e.cancel(e.dialogObj)}}},[n("CommonForm",{ref:"commonForm",attrs:{model:e.formModel,"submit-title":"确定"},on:{changeFormItem:e.changeFormItem,submitForm:function(t){return e.submitForm(e.dialogObj)},cancel:function(t){return e.cancel(e.dialogObj)}}})],1):e._e(),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("el-tabs",{staticClass:"mtb20"},[n("el-tab-pane",{attrs:{label:"页面代码"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.codeStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.codeStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStrArr.slice(1).join("")))}}),e._v("\n ")])])]),n("el-tab-pane",{attrs:{label:"数据源"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.dataStr1)}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.dataStr1))}})])])],1)],1):e._e()],1)},r=[],o=(n("99af"),n("4de4"),n("caad"),n("d81d"),n("b0c0"),n("b64b"),n("d3b7"),n("2532"),n("159b"),n("2af9")),i=n("4348"),l=n("4fca"),s=n("f6ab"),c=n("1b62"),u=n("7719"),d=n("c197"),p=n.n(d),f=(n("a878"),{name:"FHTableTest",components:{FHTable:o["l"],FilterQuery:o["m"],CommonForm:o["e"],FHDialog:o["i"]},mixins:[c["c"],c["a"]],props:{},data:function(){return{moreFlag:!0,idArr:[],formModel:{},codeStrArr:l["j"],dataStr1:l["k"],dialogObj:{title:"新增",showDialog:!1,size:"small",hiddenFooterBtn:!0}}},watch:{list:{handler:function(e){this.tableProps["data"]=this.deepClone(e),this.tableProps["data"].forEach((function(e){e["platformNameStr"]="测试插槽"})),this.maxHeight=this.getTableHeight("tableOne")}}},created:function(){this.addKeepAlive("FHTableTest"),this.getData()},mounted:function(){},methods:{getData:function(){this.tableProps=this.deepClone(Object(i["r"])()),this.queryParams={saasId:"ff5a67337b6611e89feafa163eb3e537",userId:"27775e0e494447bf94a5292252262870"},this.getTableList(),this.formItem=this.deepClone(Object(i["q"])()),this.queryDictionary(),this.tempQueryParams=this.deepClone(this.queryParams),this.formModel=this.deepClone(Object(i["s"])())},handlePlatCode:function(e){return i["E"][e]?i["E"][e]:"未知的平台码"},queryDictionary:function(){var e=this;s["a"].childDictList({type:"sm_terminal_type"}).then((function(t){var n=t.map((function(e){var t=e.name,n=e.value;return{name:t,value:n}}));e.$set(e.formItem.filterArr[3],"options",n)})).catch((function(e){console.log(e)}))},queryTableData:function(e){return console.log("queryParams",e),s["a"].queryPlatformList({params:e})},handleTableList:function(e){var t=this;e.forEach((function(e){var n=[{type:"terminalManage",text:"终端管理"}];if(!e.id.includes("_")){var a=[{type:"edit",text:"编辑"},{type:"relevance",text:"关联机构"},{type:"delete",text:"删除"}];e["operates"]=[{btns:n.concat(a)}]}e.platformCode&&(e.platformCode=t.handlePlatCode(e.platformCode))})),this.list=this.deepClone(e)},handleTableClick:function(e){console.log("handleTableClick",e);var t=e.row||{};if("delete"===e.type){var n=this.list.filter((function(e){return e.id!==t.id}));this.list=this.deepClone(n)}else"terminalManage"===e.type||("edit"===e.type?(this.formModel["form"]=t,this.$set(this.dialogObj,"showDialog",!0)):e.type)},handleSelectionChange:function(e){console.log("handleSelectionChange",e),this.idArr=e.map((function(e){var t=e.id;return t}))},changeFormItem:function(e){this.formModel.form[e.prop]=e.val,console.log("this.formModel",this.formModel),console.log(e,"----------------------------")},addClick:function(e){this.$set(e,"showDialog",!0),this.resetForm()},delClick:function(){var e=this;this.list=this.list.filter((function(t){return e.idArr.every((function(e){return t.id!==e}))}))},close:function(e){this.$set(e,"showDialog",!1)},cancel:function(e){this.resetForm(),this.close(e)},resetForm:function(){var e=this;this.formModel=this.deepClone(Object(i["s"])()),this.$nextTick((function(){e.$refs&&e.$refs["commonForm"]&&e.$refs["commonForm"].resetFormValidate()}))},submitForm:function(e){this.formModel.form["id"]="".concat(this.list.length+1),this.list=[this.formModel.form].concat(this.list);var t=this.tableProps["tableProp"],n=t.filter((function(e){return"htmlType"===e.type}));this.list.forEach((function(e){n.forEach((function(t){var n="xss"+t.prop;e[n]=e[t.prop]?Object(u["c"])(t.color||"#1677ff",e[t.prop]):"--"})),Object.keys(e).forEach((function(t){e[t]=e[t]||"--"}))})),this.handleTableList(this.list),this.close(e)},handleMore:function(){this.moreFlag=!this.moreFlag},toHtml:function(e){return p.a.highlight(e,p.a.languages.html,"html")},toJs:function(e){return p.a.highlight(e,p.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}}),m=f,h=n("2877"),g=Object(h["a"])(m,a,r,!1,null,"139f7740",null);t["default"]=g.exports},e08e:function(e,t,n){"use strict";n.r(t),n.d(t,"allOptions",(function(){return b}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"VxeTableTest"}},[n("vxe-grid",e._b({ref:"xGrid",on:{"edit-closed":e.editClosed,"checkbox-change":e.checkboxChange,"checkbox-all":e.checkboxAll,"filter-change":e.filterChange,"toolbar-button-click":e.toolbarButtonClickEvent},scopedSlots:e._u([{key:"form",fn:function(){return[n("FilterQuery",{attrs:{model:e.formItem},on:{formItemChange:e.formItemChange,searchClick:e.getTableList,resetClick:e.resetClick}})]},proxy:!0},{key:"operation",fn:function(t){var a=t.row;return[e.$refs.xGrid.isActiveByRow(a)?[n("vxe-button",{attrs:{status:"primary",type:"text"},on:{click:function(t){return e.saveFun({row:a})}}},[e._v("保存")]),n("vxe-button",{attrs:{status:"primary",type:"text"},on:{click:function(t){return e.resetClick(a)}}},[e._v("重置")])]:[n("vxe-button",{attrs:{status:"primary",type:"text"},on:{click:function(t){return e.editClick(a)}}},[e._v("编辑")])],n("vxe-button",{attrs:{status:"primary",type:"text"},on:{click:function(t){return e.deleteClick(a)}}},[e._v("删除")])]}}])},"vxe-grid",e.gridOptions,!1))],1)},r=[],o=n("53ca"),i=n("1da1"),l=n("5530"),s=(n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("99af"),n("4de4"),n("7db0"),n("caad"),n("d81d"),n("fb6a"),n("b0c0"),n("b64b"),n("0c47"),n("23dc"),n("3410"),n("131a"),n("d3b7"),n("2532"),n("3ca3"),n("c7cd"),n("159b"),n("ddb0"),n("2af9")),c=n("4348"),u=n("5880"),d=n("84fc"),p=n("f6ab"),f=n("0b6e"),m=n("46bb");function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),l=new E(a||[]);return r(i,"_invoke",{value:S(e,n,l)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",m="suspendedYield",g="executing",b="completed",v={};function y(){}function C(){}function x(){}var _={};u(_,l,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w($([])));k&&k!==n&&a.call(k,l)&&(_=k);var T=x.prototype=y.prototype=Object.create(_);function j(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(r,i,l,s){var c=p(e[r],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Object(o["a"])(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=f;return function(o,i){if(r===g)throw Error("Generator is already running");if(r===b){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=F(l,a);if(s){if(s===v)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===f)throw r=b,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=g;var c=p(t,n,a);if("normal"===c.type){if(r=a.done?b:m,c.arg===v)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=b,a.method="throw",a.arg=c.arg)}}}function F(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,F(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var o=p(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function $(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Object(o["a"])(t)+" is not iterable")}return C.prototype=x,r(T,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:C,configurable:!0}),C.displayName=u(x,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===C||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,u(e,c,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},j(P.prototype),u(P.prototype,s,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new P(d(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(T),u(T,c,"Generator"),u(T,l,(function(){return this})),u(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=$,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:$(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}var g=[{name:"000000-000000-所有险种",label:"所有险种",value:"000000-000000-所有险种"},{name:"105706001-00110700-信泰智富宝终生寿险万能型A款",label:"信泰智富宝终生寿险万能型A款",value:"105706001-00110700-信泰智富宝终生寿险万能型A款"},{name:"105711006-00121100-信泰世纪星辰个人住院医疗保险",label:"信泰世纪星辰个人住院医疗保险",value:"105711006-00121100-信泰世纪星辰个人住院医疗保险"},{name:"105702020-31A00080-信泰附加百万无忧两全保险",label:"信泰附加百万无忧两全保险",value:"105702020-31A00080-信泰附加百万无忧两全保险"},{name:"105703019-00116800-信泰爱恒远年金保险分红型C款",label:"信泰爱恒远年金保险分红型C款",value:"105703019-00116800-信泰爱恒远年金保险分红型C款"},{name:"105711007-00126600-信泰附加爱驾宝意外住院津贴医疗保险",label:"信泰附加爱驾宝意外住院津贴医疗保险",value:"105711007-00126600-信泰附加爱驾宝意外住院津贴医疗保险"},{name:"105704021-13F00190-信泰百万无忧重大疾病保险",label:"信泰百万无忧重大疾病保险",value:"105704021-13F00190-信泰百万无忧重大疾病保险"},{name:"105702008-00112700-信泰抗癌保家两全保险A款",label:"信泰抗癌保家两全保险A款",value:"105702008-00112700-信泰抗癌保家两全保险A款"},{name:"105703018-00118200-信泰富贵人生两全保险分红型A款",label:"信泰富贵人生两全保险分红型A款",value:"105703018-00118200-信泰富贵人生两全保险分红型A款"},{name:"105703007-00110500-信泰恒嘉少儿两全保险分红型",label:"信泰恒嘉少儿两全保险分红型",value:"105703007-00110500-信泰恒嘉少儿两全保险分红型"},{name:"105704015-13C00010-信泰百万终身护理保险",label:"信泰百万终身护理保险",value:"105704015-13C00010-信泰百万终身护理保险"}],b={riskCodeList:g,feetype:[{name:"期交基本保费",value:"1"},{name:"期交额外部分",value:"2"},{name:"额外投资部分",value:"3"}],payintv:[{name:"趸交",value:"0"},{name:"月交",value:"1"},{name:"不定期交",value:"-1"},{name:"季交",value:"3"},{name:"半年交",value:"6"},{name:"年交",value:"12"},{name:"三年交",value:"36"},{name:"五年交",value:"60"},{name:"十年交",value:"120"}],mainpolRateFlag:[{name:"否",value:"0"},{name:"是",value:"1"}],mainRiskFlag:[{name:"主险",value:"1"},{name:"附加险",value:"2"}],insureFlag:[{name:"月",value:"1"},{name:"年",value:"2"},{name:"岁",value:"3"}],periodFlag:[],socialInsurance:[{name:"否",value:"0"},{name:"是",value:"1"}],longShortRiskFlag:[{name:"长期险",value:"L"},{name:"短期险",value:"M"}],appLevel:[{name:"档次零",value:"0"},{name:"档次一",value:"1"},{name:"档次二",value:"2"},{name:"档次三",value:"3"},{name:"档次四",value:"4"},{name:"档次五",value:"5"},{name:"档次六",value:"6"},{name:"档次七",value:"7"},{name:"A套餐",value:"A"}],bindCardFlag:[{name:"是",value:"1"},{name:"否",value:"0"}],editFlag:[{name:"新增",value:"1",type:"cbs_edit_flag",parentId:"0",remarks:""},{name:"修改",value:"2",type:"cbs_edit_flag",parentId:"0",remarks:""},{name:"删除",value:"3",type:"cbs_edit_flag",parentId:"0",remarks:""},{name:"未操作",value:"0",type:"cbs_edit_flag",parentId:"0",remarks:"新生成基本法版本的初始值"}]},v={name:"VxeTableTest",components:{FilterQuery:s["m"]},data:function(){return{formItem:{},gridOptions:{border:"none",autoResize:!0,showHeaderOverflow:!0,showOverflow:!0,keepSource:!0,editDisabled:!0,loading:!1,rowConfig:{isHover:!0},columnConfig:{resizable:!0},sortConfig:{trigger:"cell",remote:!0},filterConfig:{remote:!0},pagerConfig:{pageSize:10,pageSizes:[5,10,15,20,50,100,200,500,1e3]},toolbarConfig:{buttons:[{code:"insert_actived",name:"新增",status:"primary"},{code:"import",name:"导入",status:"danger"},{code:"export",name:"导出",status:"danger"},{code:"save",name:"批量删除",status:"danger"}],refresh:!0,zoom:!0,custom:!0},columns:[{type:"checkbox",width:50},{field:"riskCodeList",title:"产品信息",sortable:!0,width:140,editRender:{name:"$select",options:g,props:{placeholder:"请选择产品信息",clearable:!0}}},{field:"startdate",title:"开始时间",width:200,sortable:!0,formatter:this.formatDate,editRender:{name:"$input",props:{placeholder:"请选择日期",type:"date",clearable:!0}}},{field:"enddate",title:"终止时间",width:200,sortable:!0,formatter:this.formatDate,editRender:{name:"$input",props:{placeholder:"请选择日期",type:"date",clearable:!0}}}],editConfig:{trigger:"click",mode:"row",showStatus:!0,autoClear:!1},data:[]},ids:[]}},computed:Object(l["a"])({},Object(u["mapState"])(["serveApiUrl"])),created:function(){this.getData(),this.getTableList()},methods:{getData:function(){var e=this;return Object(i["a"])(h().mark((function t(){var n,a,r;return h().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.formItem=e.deepClone(Object(c["z"])()),t.next=3,e.getFactorList();case 3:n=t.sent,a=[{field:"description",title:"描述说明",width:200,editRender:{name:"textarea",attrs:{placeholder:"请输入描述说明"}}},{field:"editFlagName",title:"修改状态",width:200},{title:"操作",width:160,showOverflow:!0,slots:{default:"operation"}}],e.gridOptions.columns=e.gridOptions.columns.concat(n).concat(a),console.log(" this.gridOptions.columns",e.gridOptions.columns),e.gridOptions.columns.forEach((function(e){Object(m["d"])(e.editRender)&&(Object(m["d"])(e.editRender["props"])?e.editRender["props"]["clearable"]=!0:e.editRender["props"]={clearable:!0})})),r=e.gridOptions.columns.length-1,e.gridOptions.columns[r]["fixed"]="right",e.findSexList();case 11:case"end":return t.stop()}}),t)})))()},getFactorList:function(){return Object(i["a"])(h().mark((function e(){var t,n,a,r,o;return h().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={protocolno:"R1057102031",version:"V0000001",fmProtocolInterestId:"31218a1b0ccb4565b22a3a94789db60e",saasId:"b75a854eba3b4d96b0b066912fd85016"},e.prev=1,e.next=4,p["a"].getFactorList(t);case 4:return n=e.sent,a=n.fmInterestRateFactorTraceList,r=void 0===a?[]:a,o=r.map((function(e){var t=e.factorName,n=e.factorCode,a=e.type;return{title:t,field:n,width:200,editRender:{name:"inputNum"===a?"$input":"$".concat(a),props:{placeholder:"input"===a||"inputNum"===a?"请输入".concat(t):"请选择".concat(t),type:"inputNum"===a?"number":"text"}}}})),console.log("temp==========",o),e.abrupt("return",o);case 11:return e.prev=11,e.t0=e["catch"](1),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[1,11]])})))()},toolbarButtonClickEvent:function(e){var t=this;return Object(i["a"])(h().mark((function n(){var a;return h().wrap((function(n){while(1)switch(n.prev=n.next){case 0:a=e.code,t.$refs.xGrid,n.t0=a,n.next="import"===n.t0?5:"export"===n.t0?6:"save"===n.t0?7:8;break;case 5:return n.abrupt("break",8);case 6:return n.abrupt("break",8);case 7:return n.abrupt("break",8);case 8:case"end":return n.stop()}}),n)})))()},formItemChange:function(){},getTableList:function(){var e=this;this.gridOptions.loading=!0;var t={params:{limit:10,offset:0,calcode:"CON",fmProtocolInterestCalitemId:"0",protocolno:"R1057102031",riskCode:"",version:"V0000001",fmProtocolInterestId:"31218a1b0ccb4565b22a3a94789db60e",order:"asc",saasId:"b75a854eba3b4d96b0b066912fd85016",editFlag:""}};p["a"].queryOnlineFmProtocolFeerateByParams(t).then((function(t){var n=t.fmProtocolFeerateTraceExpStringList,a=void 0===n?[]:n;console.log("fmProtocolFeerateTraceExpStringList====",a),a.forEach((function(e){var t=b["editFlag"];e["editFlagName"]=t.find((function(t){return t.value===e["editFlag"]})).name})),e.gridOptions["data"]=a,e.gridOptions.loading=!1})).catch((function(){e.gridOptions.loading=!1}))},editRowEvent:function(e){var t=this.$refs.xGrid;t.setActiveRow(e)},editClosed:function(){},saveRowEvent:function(){var e=this,t=this.$refs.xGrid;t.clearActived().then((function(){e.gridOptions.loading=!0,setTimeout((function(){e.gridOptions.loading=!1,VXETable.modal.message({content:"保存成功!",status:"success"})}),300)}))},saveFun:function(e){var t=this,n=Object(f["d"])({name:"userGlobalGist"})||{},a=n.loginResponseDO,r=void 0===a?{}:a,o=r.userAccount,i=void 0===o?"":o,s=Object(l["a"])({saasId:d["a"].getPlatSaasId(),protocolno:"R1037102002",version:"V0000002",operator:i,fmProtocolInterestId:"32f2705be024463ab2be81154e9f8b99",rate:"0",fmProtocolInterestCalitemId:"0"},e.row),c=e.row.id?p["a"].updateByExpDO:p["a"].saveByExpDO;c(s).then((function(e){t.$message.success("保存成功"),t.getTableList()})).catch((function(){}))},editClick:function(e){var t=this.$refs.xGrid;t.setActiveRow(e)},deleteClick:function(e){var t=this;e.length&&this.$confirm("是否确认删除操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.deleteData(e)})).catch((function(){t.$message.info("已取消")}))},deleteData:function(e){var t=this,n=Object(f["d"])({name:"userGlobalGist"})||{},a=n.loginResponseDO,r=void 0===a?{}:a,o=r.userAccount,i=void 0===o?"":o,l={saasId:d["a"].getPlatSaasId(),operator:i,ids:e};p["a"].fmOnlineRateModelActionServiceRemove(l).then((function(e){t.$message.success("删除成功"),t.getTableList()})).catch((function(){}))},resetClick:function(e){var t=["id","editFlag","editFlagName","saasId","protocolno","version","operator","fmProtocolInterestId","rate","fmProtocolInterestCalitemId"];Object.keys(e).forEach((function(n){t.includes(n)||(e[n]="")}))},filterChange:function(e,t,n,a,r,o){console.log("column, property, values, datas, filterList, $event ==",e,t,n,a,r,o)},findSexList:function(){var e=this;setTimeout((function(){var t=e.$refs.xGrid;t&&Object.keys(b).forEach((function(e){var n=t.getColumnByField(e),a=b[e].map((function(e){var t=e.name,n=e.value;return{label:t,value:n}}));"editFlag"!==e&&(n.editRender.options=a)}))}),100)},formatAmount:function(e){var t=e.cellValue;return t?"¥".concat(XEUtils.commafy(XEUtils.toNumber(t),{digits:2})):""},formatDate:function(e){var t=e.cellValue;return XEUtils.toDateString(t,"yyyy-MM-dd HH:ss:mm")},checkColumnMethod:function(e){e.column},checkboxChange:function(e){var t,n=null===e||void 0===e||null===(t=e.row)||void 0===t?void 0:t.id;e.checked&&n&&this.ids&&!this.ids.includes(n)?this.ids.push(n):!e.checked&&n&&this.ids&&this.ids.includes(n)&&(this.ids=this.ids.filter((function(e){return e!==n})))},checkboxAll:function(e){console.log("checked",e,this.ids)}}},y=v,C=n("2877"),x=Object(C["a"])(y,a,r,!1,null,"459c9bf0",null);t["default"]=x.exports},e1bd:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));let a=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));while(e--){let a=63&n[e];t+=a<36?a.toString(36):a<62?(a-26).toString(36).toUpperCase():a<63?"_":"-"}return t}},e26e:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"CommonTableTest"}},[n("h1",{staticClass:"pb20"},[e._v("没有封装接口请求的CommonTable")]),n("div",{staticClass:"c-f mb20"},[e._v("CommonTable只是单纯的封装了table列表的绘制方式")]),n("el-tabs",{staticClass:"mtb20",attrs:{type:"border-card"},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},e._l(e.tabsArr,(function(t,a){return n("el-tab-pane",{key:a,attrs:{label:t.label}},[a==e.active?n("CommonTable",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"table-obj":t.tableObj,"not-tool-tip":t.notTooltip,"hover-show":t.hoverShow,"has-table-children":t.hasTableChildren},on:{handLoadNode:e.handLoadNode,handleTableClick:e.handleTableClick,handleSortChange:e.handleSortChange}}):e._e(),t.tableObj.data&&t.tableObj.data.length?n("div",{staticClass:"ta-r mt24"},[n("CommonPagination",{attrs:{"page-size":e.limit,total:e.total,"current-page":e.currentPage},on:{handleSizeChange:e.handleSizeChange,handleCurrentChange:e.handleCurrentChange}})],1):e._e()],1)})),1),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("el-tabs",{staticClass:"mtb20",model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"页面代码",name:"0"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlStrArr[e.active].join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrArr[e.active][0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlStrArr[e.active][1]))}}),e._v("\n ")])])]),n("el-tab-pane",{attrs:{label:"数据源",name:"1"}},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.dataStr[e.active])}}},[e._v("复制")]),n("pre",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.dataStr[e.active]))}})])])],1)],1):e._e()],1)},r=[],o=n("53ca"),i=(n("99af"),n("4de4"),n("a15b"),n("fb6a"),n("4e82"),n("d3b7"),n("159b"),n("2af9")),l=n("267e"),s=n("4348"),c=n("4fca"),u=n("7719"),d=n("c197"),p=n.n(d),f=(n("a878"),{name:"CommonTableTest",components:{CommonTable:i["h"],CommonPagination:i["g"]},props:{},data:function(){return{loading:!1,offset:l["f"].pageOffset,limit:l["f"].pageSize,total:l["f"].total,currentPage:l["f"].currentPage,moreFlag:!0,activeName:"0",active:"0",tabsArr:[]}},computed:{htmlStrArr:function(){return[[c["B"][0],c["B"].slice(1).join("")],[c["D"],c["B"].slice(1).join("")],[c["C"],c["B"].slice(1).join("")],[c["E"][0],c["E"].slice(1).join("")]]},dataStr:function(){return[s["j"],s["j"],s["v"],s["x"]]}},watch:{},created:function(){this.getData()},mounted:function(){},methods:{handLoadNode:function(e){e.tree,e.treeNode;var t=e.resolve,n=new Date;setTimeout((function(){t([{id:"31".concat(n),date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1519 弄"},{id:"32".concat(n),date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1519 弄"}])}),1e3)},getData:function(){var e=Object(u["e"])(Object(s["u"])());e.tableProp=e.tableProp.filter((function(e){return"slotSpan"!==e.type}));var t=this.getTableList(e),n=this.getTableList(Object(s["u"])()),a=[{label:"平铺样式",tableObj:Object(u["e"])(t),notTooltip:!0},{label:"TooltipOver...",tableObj:Object(u["e"])(t),notTooltip:!1,hoverShow:!0},{label:"扩展插槽",tableObj:n},{label:"树结构table",tableObj:Object(s["w"])(),notTooltip:!1,hasTableChildren:!0}];this.tabsArr=a},getTableList:function(e){return e["data"]=s["i"],e["data"].forEach((function(e){var t=l["e"][e.batchApplyMode]||"--",n=e["agentUserName"]||"",a=n.length?Object(u["c"])("#1677ff",n):"";e["batchApplyMode"]=n.length?"".concat(t,"/").concat(n):"".concat(t),e["xssbatchApplyMode"]=n.length?"".concat(t,"/").concat(a):"".concat(t);var r=e["nickName"],o=r.length?Object(u["c"])("#1677ff",r):"";e["xssnickName"]=o;var i=e["testHover"];e["testHoverTip"]="测试:"+i+"<br>名字:4566666",e["xsstestHoverTip"]=i+"456"})),this.total=1,e},handleTableClick:function(e){var t=this.tabsArr[this.active].tableObj,n=e.row,a=e.type,r=e.item;if(console.log("val",e,t),"nickName"===r.prop)this.$message.info("行内点击测试事件");else if("details"===a)this.$router.push({path:"/testpage/addtest"});else if("delete"===a)t["data"]=t["data"].filter((function(e){return e.clientNewId!==n.clientNewId}));else if("add"===a){var o=Object(u["e"])(t["data"][t["data"].length-1]);o["clientNewId"]+=1,t["data"].push(o)}},handleSortChange:function(e){var t=this,n=this.tabsArr[this.active].tableObj,a=e.column,r=e.prop,o=e.order;n["data"]="descending"===o?n["data"].sort((function(e,n){return t.getForSort(n[r],e[r],r)})):n["data"].sort((function(e,n){return t.getForSort(e[r],n[r],r)})),console.log("column, prop, order",a,r,o)},getForSort:function(e,t,n){return Object(o["a"])(e)===Object(o["a"])(t)&&"string"===typeof t?e.localeCompare(t):e-t},handleSizeChange:function(e){this.limit=e,this.offset=0},handleCurrentChange:function(e){this.offset=(e-1)*this.limit,this.currentPage=e},handleMore:function(){this.moreFlag=!this.moreFlag},toHtml:function(e){return p.a.highlight(e,p.a.languages.html,"html")},toJs:function(e){return p.a.highlight(e,p.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}}),m=f,h=n("2877"),g=Object(h["a"])(m,a,r,!1,null,"f732274a",null);t["default"]=g.exports},e339:function(e,t,n){"use strict";n("330a")},e401:function(e,t,n){},e420:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"FHSensorsFilterTest"}},[n("FHSensorsFilter",{ref:"FHSensorsFilter"}),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlStrArr.slice(1).join("")))}}),e._v("\n ")])])]):e._e()],1)},r=[],o=n("c197"),i=n.n(o),l=(n("a878"),{data:function(){return{moreFlag:!0}},methods:{toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")},handleMore:function(){this.moreFlag=!this.moreFlag},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}}),s=(n("b0c0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"FHSensorsFilter"}},[n("draggable",{staticClass:"menu-group",attrs:{group:"site",disabled:e.isEditing},on:{input:function(t){return e.handleFilterChange(t)}},model:{value:e.dragFilterArr,callback:function(t){e.dragFilterArr=t},expression:"dragFilterArr"}},[n("transition-group",e._l(e.dragFilterArr,(function(t,a){return n("div",{key:"dragFilterArr"+a,staticClass:"mtb10 filter-box"},[n("div",{staticClass:"title-box flex-start-center-stretch mb10"},[n("i",{staticClass:"mr4 c-000 fw-600",class:t.isDisplay?"el-icon-arrow-down":"el-icon-arrow-right",on:{click:function(n){return e.arrowClick(t,a)}}}),n("div",{staticClass:"serial-box br12 c-fff ta-c line-height24"},[n("span",{staticClass:"serial"},[e._v(e._s(a+1))])]),t.isEdit?n("el-input",{ref:"titleRef"+a,refInFor:!0,staticClass:"filter-title",style:"width: "+(16*t.title.length+30)+"px",attrs:{size:"small",placeholder:"请输入内容"},on:{blur:function(n){return e.handleTitle(t,a)}},model:{value:t.title,callback:function(n){e.$set(t,"title",n)},expression:"item.title"}}):n("span",{staticClass:"ft16 fw-600 c-323233 mlr15 line-height32"},[e._v(e._s(t.title))]),n("i",{staticClass:"ft14 el-icon-edit",class:t.isEdit?"el-icon-check":"el-icon-edit",on:{click:function(n){return e.editClick(t,a)}}})],1),n("div",{staticClass:"cont-box ml48"},[n("div",{staticClass:"sub-box"},[[n("el-select",{staticClass:"sub-title-box",attrs:{size:"small","value-key":"id",filterable:"",clearable:"",remote:"",loading:e.loading,placeholder:"请输入关键词",autocomplete:"on","remote-method":function(n){return e.remoteMethod(n,t,a)}},on:{change:function(n){return e.titleClick(t,a,"subTitle")}},model:{value:t.subTitle,callback:function(n){e.$set(t,"subTitle",n)},expression:"item.subTitle"}},e._l(t.subTitleOptions,(function(t){return n("el-option",{key:t.id+"-"+a,attrs:{label:t.eventName,value:t}},[n("el-popover",{attrs:{placement:"right-start",width:"400",trigger:"hover"}},[n("div",{staticClass:"pd15 br10"},[n("p",{staticClass:"ft16 fw-500 c-323233"},[e._v(e._s(t.eventName))]),n("p",{staticClass:"ft12 c-606266 mt2"},[e._v(e._s(t.eventCode))]),n("p",{staticClass:"mtb20 c-606266"},[e._v(e._s(t.remark||"未填写备注信息"))]),n("p",{staticClass:"c-323233"},[e._v(e._s(t.triggerTime))])]),n("div",{staticClass:"full-width",staticStyle:{float:"left"},attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.eventName))])])],1)})),1),n("span",{staticClass:"mlr15 c-3e4043"},[e._v("的")]),n("el-select",{staticClass:"mr20",attrs:{size:"small","value-key":"value",clearable:"",placeholder:"请选择"},on:{change:function(n){return e.titleClick(t,a,"subCont")}},model:{value:t.subCont,callback:function(n){e.$set(t,"subCont",n)},expression:"item.subCont"}},e._l(t.subContOptions,(function(e){return n("el-option",{key:e.value+"-"+a,attrs:{label:e.label,value:e}})})),1),n("el-button",{staticClass:"operate-btn filter-btn",attrs:{size:"small",type:"text"},on:{click:function(n){return e.filterClick(t,a)}}},[n("i",{staticClass:"iconfont ",class:t.filterLoading?"el-icon-loading":"icon-shaixuan"}),e._v(" 筛选 ")]),n("el-button",{staticClass:"operate-btn copy-btn",attrs:{size:"small",type:"text",icon:t.copyLoading?"el-icon-loading":"el-icon-document-copy"},on:{click:function(n){return e.copyClick(t,a)}}},[e._v("复制")]),n("el-button",{staticClass:"operate-btn close-btn",attrs:{size:"small",type:"text",icon:"el-icon-close"},on:{click:function(n){return e.delClick(t,a)}}},[e._v("删除")])],e.judgeEmpty(t.childArr)&&t.isDisplay?[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.childLoading,expression:"item.childLoading"}]},e._l(t.childArr,(function(r,o){return n("div",{key:"childArr"+o+"-"+a,staticClass:"g-son-box flex-start-center-stretch ml48 mt13"},[n("el-select",{staticClass:"g-son-left-select ml8",attrs:{"value-key":"id",filterable:"",clearable:"",placeholder:"请选择",size:"small"},on:{change:function(n){return e.childLeftClick(t,a,r,o)}},model:{value:r.leftVal,callback:function(t){e.$set(r,"leftVal",t)},expression:"cItem.leftVal"}},e._l(r.leftOptions,(function(e){return n("el-option",{key:e.id+"-"+o+"-"+a,attrs:{label:e.propertyName,value:e}})})),1),n("el-select",{staticClass:"g-son-middle-select mlr8",attrs:{clearable:"",placeholder:"请选择",size:"small"},on:{change:function(n){return e.childMiddleClick(t,a,r,o)}},model:{value:r.middleVal,callback:function(t){e.$set(r,"middleVal",t)},expression:"cItem.middleVal"}},e._l(r.middleOptions,(function(e){return n("el-option",{key:e.value+"-"+o+"-"+a,attrs:{label:e.label,value:e.value}})})),1),r.type?n("div",{directives:[{name:"loading",rawName:"v-loading",value:r.rightLoading,expression:"cItem.rightLoading"}],staticClass:"g-son-right-select mr8"},["list"===r.type?n("el-select",{attrs:{"value-key":"id",filterable:"",clearable:"",placeholder:"请选择",size:"small"},on:{change:function(n){return e.childRightClick(t,a,r,o)}},model:{value:r.rightVal,callback:function(t){e.$set(r,"rightVal",t)},expression:"cItem.rightVal"}},e._l(r.rightOptions,(function(e){return n("el-option",{key:e.id+"-"+o+"-"+a,attrs:{label:e.name,value:e}})})),1):"date"===r.type?n("el-date-picker",{staticClass:"mr20",attrs:{size:"small",type:"daterange","picker-options":r.rightOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},model:{value:r.rightVal,callback:function(t){e.$set(r,"rightVal",t)},expression:"cItem.rightVal"}}):"textarea"===r.type?n("el-input",{attrs:{size:"small",type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:r.rightVal,callback:function(t){e.$set(r,"rightVal",t)},expression:"cItem.rightVal"}}):e._e()],1):e._e(),n("el-button",{staticClass:"operate-btn close-btn",attrs:{size:"small",type:"text",icon:"el-icon-close"},on:{click:function(n){return e.gDelClick(t,r,a,o)}}},[e._v("删除")])],1)})),0)]:e._e()],2)])])})),0)],1),n("div",{staticClass:"btn-box mt18 ml18"},[n("el-button",{staticClass:"b-operate-btn target-btn",attrs:{icon:"el-icon-circle-plus",size:"small",type:"text"},on:{click:e.addTargetClick}},[e._v("指标")]),n("el-button",{staticClass:"b-operate-btn refresh-btn",attrs:{icon:"el-icon-refresh-right",size:"small",type:"text"},on:{click:e.resetClick}},[e._v("重置")])],1)],1)}),c=[],u=(n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("fb6a"),n("0c47"),n("23dc"),n("3410"),n("131a"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0"),n("53ca")),d=n("1da1"),p=(n("c740"),n("289a")),f=n.n(p),m=n("46bb"),h=n("7ddf"),g=(n("99af"),n("a434"),n("7719")),b=n("cebe"),v=n.n(b),y=n("03bd");function C(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */C=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),l=new E(a||[]);return r(i,"_invoke",{value:S(e,n,l)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",m="suspendedYield",h="executing",g="completed",b={};function v(){}function y(){}function x(){}var _={};c(_,i,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w($([])));k&&k!==n&&a.call(k,i)&&(_=k);var T=x.prototype=v.prototype=Object.create(_);function j(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(r,o,i,l){var s=p(e[r],e,o);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==Object(u["a"])(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var o;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return o=o?o.then(r,r):r()}})}function S(t,n,a){var r=f;return function(o,i){if(r===h)throw Error("Generator is already running");if(r===g){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=F(l,a);if(s){if(s===b)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===f)throw r=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=h;var c=p(t,n,a);if("normal"===c.type){if(r=a.done?g:m,c.arg===b)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=g,a.method="throw",a.arg=c.arg)}}}function F(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,F(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),b;var o=p(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function $(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Object(u["a"])(t)+" is not iterable")}return y.prototype=x,r(T,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:y,configurable:!0}),y.displayName=c(x,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,c(e,s,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},j(P.prototype),c(P.prototype,l,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new P(d(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(T),c(T,s,"Generator"),c(T,i,(function(){return this})),c(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=$,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:$(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),b}},t}var x={STRING:"textarea",NUMBER:"textarea",BOOL:"textarea",DATETIME:"date",TIME:"date",LIST:"list"},_=[{value:"1",label:"等于"},{value:"2",label:"不等于"},{value:"3",label:"包含"},{value:"4",label:"有值"},{value:"5",label:"没值"}],w={title:"事件分析",copyLoading:!1,filterLoading:!1,childLoading:!1,isEdit:!1,isDisplay:!1,subTitle:"",subTitleOptions:[],subCont:{value:"0",label:"总次数"},subContOptions:[{value:"0",label:"总次数"},{value:"1",label:"总人数"}],childArr:[]},k={data:function(){return{loading:!1,remoteFinish:!1,childItemObj:{leftVal:"",leftOptions:[],middleVal:"",middleOptions:_,rightVal:"",rightLoading:!1,rightOptions:[],type:"list"},dragFilterArr:[w],originDragFilterArr:[]}},methods:{getEventPropertyByEvent:function(){var e=arguments,t=this;return Object(d["a"])(C().mark((function n(){var a,r,o,i,l,s,c,u,d,p,f,m;return C().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:0,r=e.length>1?e[1]:void 0,t.handleLoading(a,r,!0),o=t.dragFilterArr[a]||{},i=o.subTitle||{},l=i.eventCode||"",s={eventCode:l,saasId:y["a"].getPlatSaasId()},n.prev=7,n.next=10,v.a.post("/funapi/datareport/dEventProperty/getEventPropertyByEvent",s);case 10:c=n.sent,u=c.deventPropertyList,d=void 0===u?[]:u,d=Object(g["q"])(d,"id"),t.childItemObj.leftOptions=d,p=Object(g["o"])(d)&&Object(g["o"])(d[0])?d[0]:{},t.childItemObj["leftVal"]=p,f=p["propertyType"]||"LIST",t.childItemObj["type"]=x[f],"titleFilter"===r&&(m=t.dragFilterArr[a],Object(g["o"])(m)&&Object(g["o"])(m.childArr)&&m.childArr.forEach((function(e){e["leftOptions"]=d,e["leftVal"]=p}))),t.handleLoading(a,r,!1),n.next=26;break;case 22:n.prev=22,n.t0=n["catch"](7),t.handleLoading(a,r,!1),console.log("getEventPropertyByEvent====error",n.t0);case 26:case"end":return n.stop()}}),n,null,[[7,22]])})))()},dEventPropertyDictList:function(e){return Object(d["a"])(C().mark((function t(){var n,a,r,o,i;return C().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e["rightLoading"]=!0,n=e.propertyCode||"",a={propertyCode:n,saasId:y["a"].getPlatSaasId()},t.prev=3,t.next=6,v.a.post("/funapi/datareport/dEventPropertyDict/list",a);case 6:r=t.sent,o=r.deventPropertyDictList,i=void 0===o?[]:o,e["rightOptions"]=i,e["rightLoading"]=!1,t.next=16;break;case 12:t.prev=12,t.t0=t["catch"](3),e["rightLoading"]=!1,console.log("dEventPropertyDictList====error",t.t0);case 16:case"end":return t.stop()}}),t,null,[[3,12]])})))()},handleLoading:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;"filterClick"===t?this.dragFilterArr[e]["filterLoading"]=n:this.dragFilterArr[e]["childLoading"]=n},titleClick:function(e,t,n){console.log("item, index, type===",e,t,n);var a=e.subTitle||{},r=a.eventName||"",o=e.subCont||{},i=o.label||"";Object(g["m"])(a)&&(this.remoteFinish=!1),e["title"]=r?"".concat(r,"-").concat(i):"事件分析","subTitle"===n&&Object(g["o"])(e["childArr"])&&this.getEventPropertyByEvent(t,"titleFilter")},getEventList:function(e){var t=arguments,n=this;return Object(d["a"])(C().mark((function a(){var r,o,i,l,s,c,u,d,p;return C().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return r=t.length>1&&void 0!==t[1]?t[1]:0,n.loading=!0,o={eventCode:"",eventName:e,label:"",saasId:y["a"].getPlatSaasId()},o=Object.assign(o,n.queryEventParams),a.prev=4,a.next=7,v.a.post("/funapi/datareport/events/getEventList",o);case 7:i=a.sent,l=i.eventsList,s=void 0===l?[]:l,n.dragFilterArr[r]["subTitleOptions"]=s,c=s[0]||{},u=Object(g["o"])(s)?c.eventName:"",d=n.dragFilterArr[r]["subCont"]||{},p=d.label||"",n.remoteFinish||(n.dragFilterArr[r]["title"]=u?"".concat(u,"-").concat(p):"事件分析",n.$nextTick((function(){n.dragFilterArr[r]["subTitle"]=s[0]||{},n.remoteFinish=!0}))),n.loading=!1,a.next=22;break;case 18:a.prev=18,a.t0=a["catch"](4),n.loading=!1,console.log("getEventList====error",a.t0);case 22:case"end":return a.stop()}}),a,null,[[4,18]])})))()},childLeftClick:function(e,t,n,a){var r=n.leftVal||{},o=r["propertyType"]||"LIST";n["type"]=x[o],n["rightVal"]="",n["middleVal"]="","TIME"===o||"DATETIME"===o?n["middleOptions"]=[{value:"0",label:"时间区间"}]:(n["middleOptions"]=_,"LIST"===o&&this.dEventPropertyDictList(n)),this.$set(e["childArr"],a,n),console.log("childLeftClick===item, index, cItem, cIndex=====",e,t,n,a)},childMiddleClick:function(e,t,n,a){console.log("childMiddleClick===item, index, cItem, cIndex=====",e,t,n,a);var r=n.leftVal||{};if("4"===n["middleVal"]||"5"===n["middleVal"])n["type"]="";else if("0"===n["middleVal"])n["type"]="date";else{var o=r["propertyType"]||"LIST";n["type"]=x[o]}this.$set(e["childArr"],a,n)},childRightClick:function(e,t,n,a){console.log("childRightClick===item, index, cItem, cIndex=====",e,t,n,a)},arrowClick:function(e,t){var n=Object(g["e"])(e);this.$set(n,"isDisplay",!n["isDisplay"]),this.$set(this.dragFilterArr,t,n)},handleFilterChange:function(){},handleTitle:function(e,t){var n=this;setTimeout((function(){n.$set(e,"isEdit",!1),n.$set(n.dragFilterArr,t,e),clearTimeout(),null}),500)},editClick:function(e,t){var n=this;this.dragFilterArr.forEach((function(e,n){e["isEdit"]=t===n&&!!e["isEdit"]})),this.$set(e,"isEdit",!e["isEdit"]),this.$set(this.dragFilterArr,t,e),this.$nextTick((function(){e["isEdit"]&&n.$refs&&n.$refs["titleRef".concat(t)]&&n.$refs["titleRef".concat(t)][0]&&n.$refs["titleRef".concat(t)][0].focus()}))},loseFocus:function(){this.dragFilterArr.forEach((function(e){e["isEdit"]=!1}))},filterClick:function(e,t){var n=this;return Object(d["a"])(C().mark((function a(){var r,o,i;return C().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n.loseFocus(),r=Object(g["e"])(e),o=r["childArr"].length,a.next=5,n.getEventPropertyByEvent(t,"filterClick");case 5:i=Object(g["e"])(n.childItemObj),r["childArr"].splice(o,0,i),r["isDisplay"]=!0,n.$set(n.dragFilterArr,t,r);case 9:case"end":return a.stop()}}),a)})))()},addTargetClick:function(){this.loseFocus();var e=Object(g["o"])(this.originDragFilterArr[0])?Object(g["e"])(this.originDragFilterArr[0]):Object(g["e"])(this.dragFilterArr[this.dragFilterArr.length-1]);this.dragFilterArr.splice(this.dragFilterArr.length,0,e)},copyClick:function(e,t){var n=Object(g["e"])(e);n["copyLoading"]=!0,this.loseFocus(),this.dragFilterArr.splice(t,0,n);setTimeout((function(){n["copyLoading"]=!1,clearTimeout(),null}),200)},delClick:function(e,t){this.loseFocus(),this.dragFilterArr.splice(t,1)},gDelClick:function(e,t,n,a){this.loseFocus();var r=Object(g["e"])(e);r["childArr"].splice(a,1),this.$set(this.dragFilterArr,n,r)},resetClick:function(){this.loseFocus(),this.dragFilterArr=Object(g["e"])(this.originDragFilterArr)}}};function T(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */T=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),l=new E(a||[]);return r(i,"_invoke",{value:S(e,n,l)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",m="suspendedYield",h="executing",g="completed",b={};function v(){}function y(){}function C(){}var x={};c(x,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_($([])));w&&w!==n&&a.call(w,i)&&(x=w);var k=C.prototype=v.prototype=Object.create(x);function j(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(r,o,i,l){var s=p(e[r],e,o);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==Object(u["a"])(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var o;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return o=o?o.then(r,r):r()}})}function S(t,n,a){var r=f;return function(o,i){if(r===h)throw Error("Generator is already running");if(r===g){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=F(l,a);if(s){if(s===b)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===f)throw r=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=h;var c=p(t,n,a);if("normal"===c.type){if(r=a.done?g:m,c.arg===b)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=g,a.method="throw",a.arg=c.arg)}}}function F(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,F(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),b;var o=p(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function $(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Object(u["a"])(t)+" is not iterable")}return y.prototype=C,r(k,"constructor",{value:C,configurable:!0}),r(C,"constructor",{value:y,configurable:!0}),y.displayName=c(C,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},j(P.prototype),c(P.prototype,l,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new P(d(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(k),c(k,s,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=$,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:$(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),b}},t}var j={name:"FHSensorsFilter",components:{draggable:f.a},mixins:[h["a"],k],props:{queryEventParams:{type:Object,default:function(){}}},data:function(){return{}},computed:{isEditing:function(){return-1!==this.dragFilterArr.findIndex((function(e){return e.isEdit}))}},watch:{},created:function(){this.originDragFilterArr=Object(m["a"])(this.dragFilterArr)},mounted:function(){},methods:{remoteMethod:function(e,t,n){var a=this;return Object(d["a"])(T().mark((function r(){return T().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(""===e){r.next=6;break}return r.next=3,a.getEventList(e,n);case 3:a.titleClick(t,n,"subTitle"),r.next=8;break;case 6:t["subTitleOptions"]=[],t["subTitle"]="";case 8:case"end":return r.stop()}}),r)})))()}}},P=j,S=(n("0524"),n("2877")),F=Object(S["a"])(P,s,c,!1,null,"c53d001c",null),O=F.exports;O.install=function(e){e.component(O.name,O)};var L=O,E={name:"FHSensorsFilterTest",components:{FHSensorsFilter:L},mixins:[l],props:{},data:function(){return{moreFlag:!0,htmlStrArr:['\n<template>\n <div id="FHSensorsFilterTest">\n <FHSensorsFilter ref="FHSensorsFilter" />\n </div>\n</template>',"\n<script>\n\nexport default {\n name: 'FHSensorsFilterTest',\n // 局部注册的组件\n components: { },\n created() {\n // 打印组件里面的数值\n this.getData();\n },\n methods: {\n getData() {\n this.$nextTick(() => {\n if (this.$refs && this.$refs['FHSensorsFilter']) {\n console.log('FHSensorsFilter===', this.$refs['FHSensorsFilter']);\n }\n });\n }\n }\n};\n</scr","ipt>"]}},created:function(){this.getData()},methods:{getData:function(){var e=this;this.$nextTick((function(){e.$refs&&e.$refs["FHSensorsFilter"]&&console.log("FHSensorsFilter===",e.$refs["FHSensorsFilter"])}))}}},$=E,I=(n("f571"),Object(S["a"])($,a,r,!1,null,"0c3605b2",null));t["default"]=I.exports},e585:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"VxeTableTest1"}},[n("p",[e._v("简单table表")]),n("FHVxeTable",{attrs:{"table-obj":e.tableObj,"has-checkbox":!1,resizable:!1},on:{handleTableClick:e.handleTableClick,handleSelectionChange:e.handleSelectionChange}})],1)},r=[],o=(n("d3b7"),n("159b"),n("d22c")),i=n("ac77"),l=n("7719"),s={name:"VxeTableTest1",components:{FHVxeTable:o["default"]},props:{},data:function(){return{tableObj:{},ids:[]}},watch:{},created:function(){this.tableObj=Object(l["e"])(Object(i["b"])())},mounted:function(){},methods:{handleTableClick:function(e){"edit"===e.type||this.$message.info(e.item.text)},handleSelectionChange:function(e){var t=[];e.forEach((function(e){t.push(e.id)})),this.ids=this.deepClone(t)}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"e98c5aa4",null);t["default"]=d.exports},e6e8:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"SmallFHDialog"}},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.btnClick(e.dialogObj)}}},[e._v("small的弹框")]),e.dialogObj.showDialog?n("FHDialog",{attrs:{"dialog-obj":e.dialogObj},on:{confirmClick:function(t){return e.confirmClick(e.dialogObj)},cancelClick:function(t){return e.cancelClick(e.dialogObj)}}},[n("CommonForm",{ref:"commonForm",attrs:{model:e.formModel,"submit-title":"确定"},on:{changeFormItem:e.changeFormItem,submitForm:function(t){return e.submitForm(e.dialogObj)},cancel:function(t){return e.cancelClick(e.dialogObj)}}})],1):e._e()],1)},r=[],o=n("3709"),i=n("4348"),l=n("2af9"),s={name:"SmallFHDialog",components:{FHDialog:o["a"],CommonForm:l["e"]},props:{},data:function(){return{formModel:{},dialogObj:{title:"small弹框适用于简单表单",size:"small",hiddenFooterBtn:!0}}},watch:{},created:function(){this.formModel=this.deepClone(Object(i["s"])())},mounted:function(){},methods:{confirmClick:function(e){this.$set(e,"showDialog",!1)},cancelClick:function(e){this.$set(e,"showDialog",!1)},btnClick:function(e){this.$set(e,"showDialog",!0)},changeFormItem:function(e){this.formModel.form[e.prop]=e.val},submitForm:function(e){this.cancelClick(e)},resetForm:function(){var e=this;this.formModel=this.deepClone(Object(i["s"])()),this.$nextTick((function(){e.$refs&&e.$refs["commonForm"]&&e.$refs["commonForm"][0]&&e.$refs["commonForm"][0].resetFormValidate()}))}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"271cc770",null);t["default"]=d.exports},e813:function(e,t,n){},e880:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"PairCode"}},e._l(e.pairCodeArr,(function(t,a){return n("div",{key:"pairCodeArr"+a,staticClass:"pl40"},[n("span",[e._v(e._s(t.key)+":")]),e._v(" "),n("span",{staticClass:"value-tag"},[e._v(e._s(t.value||"'"+t.value+"'"))]),a<e.pairCodeArr.length-1||t.hasDh?n("span",[e._v(",")]):e._e()])})),0)},r=[],o={name:"PairCode",components:{},props:{pairCodeArr:{type:Array,default:function(){return[]}}},data:function(){return{}},watch:{},created:function(){},mounted:function(){},methods:{}},i=o,l=n("2877"),s=Object(l["a"])(i,a,r,!1,null,"e8e6e252",null);t["default"]=s.exports},e89d:function(e,t,n){},e9b0:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"AddTest"}},[n("el-button",{attrs:{type:"primary",icon:"el-icon-arrow-left",size:"small"},on:{click:e.goBack}},[e._v("返回")]),n("p",{staticClass:"fw-500 ft24 ptb20"},[e._v("这是一个详情页")])],1)},r=[],o={name:"AddTest",components:{},props:{},data:function(){return{}},computed:{},watch:{},mounted:function(){},created:function(){},methods:{goBack:function(){this.$router.go(-1)}}},i=o,l=n("2877"),s=Object(l["a"])(i,a,r,!1,null,"178eba42",null);t["default"]=s.exports},ea23:function(e,t,n){},ea6d:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"SecondTabs"}},[n("SecondTabs",{attrs:{active:0,"tab-arr":e.tabArr},on:{tabChange:e.tabChange}}),n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.htmlStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.htmlStrArr.slice(1).join("")))}}),e._v("\n ")])])],1)},r=[],o=n("2af9"),i=n("c197"),l=n.n(i),s=(n("a878"),{name:"SecondTab",components:{SecondTabs:o["s"]},props:{},data:function(){return{tabArr:[{label:"一级菜单1",child:[{label:"选项选项"},{label:"选项"}]},{label:"一级菜单2",active:2,child:[{label:"选项1"},{label:"选项2"},{label:"选项3"}]},{label:"一级菜单3",child:[{label:"选项1"},{label:"选项2"},{label:"选项3"},{label:"选项4"}]},{label:"一级菜单4",child:[{label:"选项1"},{label:"选项2"}]}],htmlStrArr:['\n<template>\n <div id="SecondTabs">\n <SecondTabs :active="0" :tab-arr="tabArr" @tabChange="tabChange" />\n </div>\n</template>',"\n<script>\n\nexport default {\n // 组件名称\n name: 'SecondTab',\n // 局部注册的组件\n components: { SecondTabs },\n // 组件参数 接收来自父组件的数据\n props: {},\n // 组件状态值\n data() {\n return {\n tabArr: [\n { label: '一级菜单1', child: [{ label: '选项选项',value:'tag' }, { label: '选项' }] },\n { label: '一级菜单2', active: 2, child: [{ label: '选项1' }, { label: '选项2' }, { label: '选项3' }] },\n { label: '一级菜单3', child: [{ label: '选项1' }, { label: '选项2' }, { label: '选项3' }, { label: '选项4' }] },\n { label: '一级菜单4', child: [{ label: '选项1' }, { label: '选项2' }] }\n ]\n };\n },\n // 侦听器\n watch: { \n },\n created() {\n },\n mounted() { \n },\n methods: {\n tabChange(obj) {\n // do something...\n }\n }\n};\n</scr","ipt>\n"]}},watch:{},created:function(){},mounted:function(){},methods:{tabChange:function(e){},toHtml:function(e){return l.a.highlight(e,l.a.languages.html,"html")},toJs:function(e){return l.a.highlight(e,l.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}}),c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"d76509e4",null);t["default"]=d.exports},ec23:function(e,t,n){},f15d:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"LazyPDFViewerTest"}},[n("div",{staticClass:"test-container"},[n("LazyPDFViewer",{attrs:{src:e.pdfUrl,buffer:2,height:"100%"}})],1),n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36"},[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){e.handleCopy(e.codeStrArr.join(""))}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.codeStrArr[0]))}}),e._v("\n "),n("code",{staticClass:"language-js",domProps:{innerHTML:e._s(e.toJs(e.codeStrArr.slice(1).join("")))}}),e._v("\n ")])])]):e._e()])},r=[],o=n("2af9"),i=n("4fca"),l=n("c197"),s=n.n(l),c=(n("a878"),{name:"LazyPDFViewerTest",components:{LazyPDFViewer:o["n"]},data:function(){return{pdfUrl:"https://uploaduat-10051630.file.myqcloud.com/upload/cbs/basic/viewPDF/a1c9dca0c5.pdf",moreFlag:!0,codeStrArr:i["l"]}},methods:{handleMore:function(){this.moreFlag=!this.moreFlag},toHtml:function(e){return s.a.highlight(e,s.a.languages.html,"html")},toJs:function(e){return s.a.highlight(e,s.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}}),u=c,d=(n("8c90"),n("2877")),p=Object(d["a"])(u,a,r,!1,null,"68f0c4f2",null);t["default"]=p.exports},f1a8:function(e,t,n){},f39f:function(e,t,n){"use strict";n("2beb")},f571:function(e,t,n){"use strict";n("8aa0")},f5cc:function(e,t,n){"use strict";n("07c5")},f614:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"TreeTest"}},[n("IframeTemplate",{attrs:{src:"https://element.eleme.cn/#/zh-CN/component/tree","iframe-style":e.iframeStyle}})],1)},r=[],o=n("0d25"),i={name:"TreeTest",components:{IframeTemplate:o["a"]},props:{},data:function(){return{iframeStyle:{width:"100%",height:"100%"}}},watch:{},created:function(){},mounted:function(){},methods:{}},l=i,s=n("2877"),c=Object(s["a"])(l,a,r,!1,null,"2822b49c",null);t["default"]=c.exports},f634:function(e,t,n){"use strict";n("b0c0");var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"DatePicker"}},["year"===e.type||"month"===e.type||"date"===e.type||"dates"===e.type||"datetime"===e.type?n("el-date-picker",{attrs:{type:e.type,placeholder:e.$t("datepicker.index.j33b2u"),"picker-options":e.pickerOptions||e.tempPickerOptions,"value-format":e.valueFormat,"default-time":e.defaultTime,disabled:e.disabled,size:"small"},on:{change:e.datePickerChange},model:{value:e.dateValue,callback:function(t){e.dateValue=t},expression:"dateValue"}}):"time"===e.type?n("el-time-select",{attrs:{"picker-options":e.pickerOptions,placeholder:e.$t("datepicker.index.j33b2u"),disabled:e.disabled,size:"small"},on:{change:e.datePickerChange},model:{value:e.dateValue,callback:function(t){e.dateValue=t},expression:"dateValue"}}):"datetimerange"===e.type||"daterange"===e.type||"monthrange"===e.type?n("div",[n("el-date-picker",{ref:"datePickerRef",attrs:{type:e.type,"range-separator":"-","start-placeholder":e.$t("datepicker.index.i02z9j"),"end-placeholder":e.$t("datepicker.index.56ev65"),"unlink-panels":"",size:"small",disabled:e.disabled,"picker-options":e.pickerOptions||e.tempPickerOptions,"value-format":e.valueFormat,"default-time":e.defaultTime},on:{input:e.immediUpdate},model:{value:e.dateRangeArr,callback:function(t){e.dateRangeArr=t},expression:"dateRangeArr"}})],1):"daterangepicker"===e.type?n("FhDateRangePicker",e._g(e._b({ref:"FhDateRangePicker",attrs:{"select-type":e.selectType,disabled:e.disabled,"date-range":e.dateRangeArr}},"FhDateRangePicker",e.$attrs,!1),e.$listeners)):e._e()],1)},r=[],o=(n("e9c4"),n("a9e3"),n("b64b"),n("46bb")),i={shortcuts:[{text:o["b"].t("tool.pickeroptions.cmky29"),onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-6048e5),e.$emit("pick",[n,t])}},{text:o["b"].t("tool.pickeroptions.1d41d9"),onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-2592e6),e.$emit("pick",[n,t])}},{text:o["b"].t("tool.pickeroptions.518rus"),onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-7776e6),e.$emit("pick",[n,t])}}]},l={shortcuts:[{text:o["b"].t("tool.pickeroptions.cffp6j"),onClick:function(e){e.$emit("pick",[new Date,new Date])}},{text:o["b"].t("tool.pickeroptions.573ztd"),onClick:function(e){var t=new Date,n=new Date((new Date).getFullYear(),0);e.$emit("pick",[n,t])}},{text:o["b"].t("tool.pickeroptions.r31821"),onClick:function(e){var t=new Date,n=new Date;n.setMonth(n.getMonth()-6),e.$emit("pick",[n,t])}}]},s={shortcuts:[{text:o["b"].t("tool.pickeroptions.44ev4p"),onClick:function(e){e.$emit("pick",new Date)}},{text:o["b"].t("tool.pickeroptions.t143m0"),onClick:function(e){var t=new Date;t.setTime(t.getTime()-864e5),e.$emit("pick",t)}},{text:o["b"].t("tool.pickeroptions.7rcy9h"),onClick:function(e){var t=new Date;t.setTime(t.getTime()-6048e5),e.$emit("pick",t)}}]},c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box full-width",attrs:{id:"FhDateRangePicker"}},[n("el-date-picker",{attrs:{size:"small",format:e.format,clearable:"","value-format":e.valueFormat,type:e.type,disabled:e.disabled,"picker-options":e.startPickerOptions,placeholder:e.startPlaceholder},on:{change:e.startChange},model:{value:e.dateRange[0],callback:function(t){e.$set(e.dateRange,0,t)},expression:"dateRange[0]"}}),n("span",{staticClass:"range-separator"},[e._v(e._s(e.rangeSeparator))]),n("el-date-picker",{staticClass:"last-date-picker",attrs:{size:"small",clearable:"",format:e.format,"value-format":e.valueFormat,type:e.type,disabled:e.disabled,placeholder:e.endPlaceholder,"picker-options":e.endPickerOptions},on:{change:e.endChange},model:{value:e.dateRange[1],callback:function(t){e.$set(e.dateRange,1,t)},expression:"dateRange[1]"}})],1)},u=[],d=n("5a0c"),p=n.n(d),f=n("7719"),m={name:"FhDateRangePicker",props:{dateRange:{type:[Array,String,Date],default:function(){return[]}},format:{type:String,default:"yyyy-MM-dd"},valueFormat:{type:String,default:"yyyy-MM-dd"},type:{type:String,default:"date"},disabled:{type:Boolean,default:!1},startPlaceholder:{type:String,default:o["b"].t("datepicker.index.i02z9j")},endPlaceholder:{type:String,default:o["b"].t("datepicker.index.56ev65")},rangeSeparator:{type:String,default:"-"},selectType:{type:String,default:"no-select"}},data:function(){return{startPickerOptions:{},endPickerOptions:{}}},watch:{dateRange:{immediate:!0,deep:!0,handler:function(e){this.getPickerOptions()}}},methods:{clear:function(){this.$set(this.dateRange,0,null),this.$set(this.dateRange,1,null),this.$emit("input",[])},startChange:function(){if(Object(f["m"])(this.dateRange)||this.dateRange&&this.dateRange.length&&Object(f["m"])(this.dateRange[0]))return this.$emit("input",[]),void this.$emit("getDateRange",this.dateRange);if("seleted"===this.selectType){var e=this.dateRange&&this.dateRange.length&&this.dateRange[0]?p()(this.dateRange[0]):0,t=this.dateRange&&this.dateRange.length>1&&this.dateRange[1]?p()(this.dateRange[1]):0;(e>t||!this.dateRange[1])&&this.$set(this.dateRange,1,this.dateRange[0])}this.$emit("getDateRange",this.dateRange)},endChange:function(){if(Object(f["m"])(this.dateRange)||this.dateRange&&this.dateRange.length>1&&Object(f["m"])(this.dateRange[1]))return this.$emit("input",[]),void this.$emit("getDateRange",this.dateRange);if("seleted"===this.selectType){var e=this.dateRange&&this.dateRange.length&&this.dateRange[0]?p()(this.dateRange[0]):0,t=this.dateRange&&this.dateRange.length>1&&this.dateRange[1]?p()(this.dateRange[1]):0;(e>t||!this.dateRange[0])&&this.$set(this.dateRange,0,this.dateRange[1])}this.$emit("getDateRange",this.dateRange)},getPickerOptions:function(){var e=this;this.startPickerOptions={disabledDate:function(t){var n=e.dateRange&&e.dateRange.length>1&&e.dateRange[1]?p()(e.dateRange[1]):0;return!(Object(f["m"])(e.dateRange)||!n||e.dateRange&&e.dateRange.length>1&&!e.dateRange[0]&&!e.dateRange[1])&&p()(t).diff(n)>0}},this.endPickerOptions={disabledDate:function(t){var n=e.dateRange&&e.dateRange.length&&e.dateRange[0]?p()(e.dateRange[0]):0;return!(Object(f["m"])(e.dateRange)||e.dateRange&&e.dateRange.length>1&&!e.dateRange[0]&&!e.dateRange[1])&&p()(t).diff(n)<0}}}}},h=m,g=(n("d571"),n("2877")),b=Object(g["a"])(h,c,u,!1,null,"4288a02b",null),v=b.exports;v.install=function(e){e.component(v.name,v)};var y=v,C={name:"DatePicker",components:{FhDateRangePicker:y},props:{dateRange:{type:[Array,String,Date],default:function(){return[]}},selectDateRange:{type:Number,default:5184e5},totalDateRange:{type:Number,default:2592e6},type:{type:String,default:"daterange"},hasDatePicker:{type:Boolean,default:!1},isLimitDateRange:{type:Boolean,default:!1},hasQuickItem:{type:Boolean,default:!1},defaultTime:{type:[Array,String,Date],default:""},valueFormat:{type:String,default:"yyyy-MM-dd HH:mm:ss"},initialValue:{type:Number,default:0},pickerOptions:{type:Object,default:function(){}},selectType:{type:String,default:"no-select"},disabled:{type:Boolean,default:!1}},data:function(){return{dateRangeArr:[],maxToolTipWidth:"",minDate:"",maxDate:"",dateValue:"",tempPickerOptions:{}}},watch:{dateRange:function(e){"year"===this.type||"month"===this.type||"date"===this.type||"dates"===this.type||"datetime"===this.type||"time"===this.type?this.dateValue=JSON.parse(JSON.stringify(e)):this.dateRangeArr=JSON.parse(JSON.stringify(e))},totalDateRange:function(){this.getPickerData()}},mounted:function(){if("year"===this.type||"month"===this.type||"date"===this.type||"dates"===this.type||"datetime"===this.type||"time"===this.type?this.dateValue=JSON.parse(JSON.stringify(this.dateRange)):this.dateRangeArr=JSON.parse(JSON.stringify(this.dateRange)),this.initialValue){var e=this.$dayjs().subtract(this.initialValue,"day").format("YYYY-MM-DD HH:mm:ss"),t=this.$dayjs().format("YYYY-MM-DD HH:mm:ss");this.dateRangeArr.push(e,t)}this.getPickerData()},methods:{datePickerChange:function(){this.$emit("getDateRange",this.dateValue)},getPickerData:function(){var e=this;this.timeDefaultShow=new Date((new Date).getTime()-this.totalDateRange),"datetimerange"!==this.type&&"monthrange"!==this.type&&"daterange"!==this.type||!this.isLimitDateRange?this.hasQuickItem&&("daterange"===this.type||"datetimerange"===this.type?this.tempPickerOptions=i:"datetime"===this.type?this.tempPickerOptions=s:"monthrange"===this.type&&(this.tempPickerOptions=l)):this.tempPickerOptions={onPick:function(t){var n=t.maxDate,a=t.minDate;e.minDate=a,e.maxDate=n},disabledDate:function(t){e.$refs.datePickerRef.picker&&(e.minDate=e.$refs.datePickerRef.picker.minDate,e.maxDate=e.$refs.datePickerRef.picker.maxDate);var n=e.getStamp(),a=t.getTime()>n,r=t.getTime()<n-e.todayDateRange;if(e.minDate){var o=e.selectDateRange,i=!1,l=!1;"monthrange"===e.type?(i=t.getTime()>e.minDate.getTime()+o,l=t.getTime()<e.getMonthStamp(e.minDate)-o):(i=t.getTime()>e.getStamp(e.minDate)+o,l=t.getTime()<e.minDate.getTime()-o);var s=a||i||l;return e.isLimitDateRange?s||r:s}return e.isLimitDateRange?a||r:a}}},clear:function(){this.minDate="",this.maxDate="",this.dateRangeArr=[],this.$refs["FhDateRangePicker"]&&this.$refs["FhDateRangePicker"].clear()},immediUpdate:function(e){null===e&&(this.minDate="",this.maxDate=""),this.$emit("getDateRange",e)},getStamp:function(e){var t=e?new Date(e):new Date;return t.setHours(0,0,0,0)+864e5-1},getMonthStamp:function(e){var t=e?t(e):new Date;return t.getMonth(t.getMonth()+1)-1},handlePicker:function(e,t){var n=new Date,a=new Date;a.setTime(a.getTime()-t),e.$emit("pick",[a,n])}}},x=C,_=Object(g["a"])(x,a,r,!1,null,"044a2d05",null),w=_.exports;w.install=function(e){e.component(w.name,w)};t["a"]=w},f637:function(e,t,n){},f6f0:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"VxeTableTest3"}},[n("p",[e._v("展开行")]),n("FHVxeTable",{attrs:{"table-obj":e.tableObj,"has-checkbox":!1,"has-expand":!0,"expand-config":e.expandConfig},on:{handleTableClick:e.handleTableClick,handleSelectionChange:e.handleSelectionChange,loadContentMethod:e.loadContentMethod},scopedSlots:e._u([{key:"ExpandContent",fn:function(t){return[n("ul",e._l(t.item.detailList,(function(t,a){return n("li",{key:a},[n("span",[e._v("Role: "+e._s(t.role))]),n("span",{staticStyle:{"margin-left":"100px"}},[e._v(" Age: "+e._s(t.age))]),n("span",{staticStyle:{"margin-left":"100px"}},[e._v(" Sex: "+e._s(t.sex))])])})),0),n("vxe-grid",{attrs:{columns:t.item.childCols,data:t.item.childData}})]}}])})],1)},r=[],o=(n("d3b7"),n("159b"),n("d22c")),i=n("ac77"),l=n("7719"),s={name:"VxeTableTest3",components:{FHVxeTable:o["default"]},props:{},data:function(){return{tableObj:{},ids:[],expandConfig:{accordion:!0}}},watch:{},created:function(){this.tableObj=Object(l["e"])(Object(i["c"])())},mounted:function(){},methods:{handleTableClick:function(e){"edit"===e.type||this.$message.info(e.item.text)},handleSelectionChange:function(e){var t=[];e.forEach((function(e){t.push(e.id)})),this.ids=this.deepClone(t)},loadContentMethod:function(e){var t=e.row,n=e.rowIndex,a=XEUtils.sample([{role:"Develop",age:20,sex:"女"},{role:"Develop",age:22,sex:"女"},{role:"Develop",age:24,sex:"男"},{role:"Develop",age:26,sex:"女"},{role:"Develop",age:28,sex:"男"},{role:"Develop",age:30,sex:"男"}],XEUtils.random(1,5));this.tableObj.data[n]["detailList"]=a;var r=XEUtils.sample([{type:"seq",title:"Sequence"},{field:"name",title:"Name"},{field:"role",title:"Role"},{field:"age",title:"Age"},{field:"sex",title:"Sex"}],XEUtils.random(3,5)),o=XEUtils.sample([{name:"TEST1",role:"Develop",age:20,sex:"女"},{name:"TEST2",role:"Develop",age:22,sex:"女"},{name:"TEST3",role:"Develop",age:24,sex:"男"},{name:"TEST4",role:"Develop",age:26,sex:"女"},{name:"TEST5",role:"Develop",age:28,sex:"男"},{name:"TEST6",role:"Develop",age:30,sex:"男"}],XEUtils.random(1,5));t.childCols=r,t.childData=o}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,r,!1,null,"e790f988",null);t["default"]=d.exports},f79b:function(e,t,n){},f92d:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"Theme"}},[n("div",{staticClass:"flex-start-center ft18 mb20"},[n("span",{staticClass:"c-theme"},[e._v("主题色选择:")]),n("ThemePicker",{on:{change:e.themeChange}})],1)])},r=[],o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#67C23A","#E6A23C","#f5222d","#11a983","#13c2c2","#6959CD","#434f5d"],"popper-class":"theme-picker-dropdown",title:"换肤"},on:{change:e.changeColor},model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}})},i=[],l=(n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("fb6a"),n("b0c0"),n("0c47"),n("23dc"),n("3410"),n("131a"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0"),n("53ca")),s=n("1da1"),c=n("7719"),u=n("0b6e"),d=n("5f72"),p=n("20db");function f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */f=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),l=new E(a||[]);return r(i,"_invoke",{value:S(e,n,l)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var m="suspendedStart",h="suspendedYield",g="executing",b="completed",v={};function y(){}function C(){}function x(){}var _={};u(_,i,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w($([])));k&&k!==n&&a.call(k,i)&&(_=k);var T=x.prototype=y.prototype=Object.create(_);function j(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(r,o,i,s){var c=p(e[r],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Object(l["a"])(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,s)}))}s(c.arg)}var o;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return o=o?o.then(r,r):r()}})}function S(t,n,a){var r=m;return function(o,i){if(r===g)throw Error("Generator is already running");if(r===b){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=F(l,a);if(s){if(s===v)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=b,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=g;var c=p(t,n,a);if("normal"===c.type){if(r=a.done?b:h,c.arg===v)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=b,a.method="throw",a.arg=c.arg)}}}function F(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,F(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var o=p(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function $(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Object(l["a"])(t)+" is not iterable")}return C.prototype=x,r(T,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:C,configurable:!0}),C.displayName=u(x,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===C||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,u(e,c,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},j(P.prototype),u(P.prototype,s,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new P(d(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(T),u(T,c,"Generator"),u(T,i,(function(){return this})),u(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=$,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:$(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}var m={name:"ThemePicker",data:function(){var e;return{chalk:"",theme:(null===(e=Object(u["d"])({name:"themeColorObj"}))||void 0===e?void 0:e.themeColor)||"#1677FF",loadingInstance:null}},computed:{defaultTheme:function(){return this.$store.state.setting.theme}},watch:{defaultTheme:{handler:function(e,t){this.theme=e;var n={themeColor:e,subThemeColor:Object(c["l"])(e,.1),litterThemeColor:Object(c["l"])(e,.05),middleThemeColor:Object(c["l"])(e,.3)};Object(u["g"])({name:"themeColorObj",content:n,needListener:!0})},immediate:!0},theme:function(e){var t=this;return Object(s["a"])(f().mark((function n(){return f().wrap((function(n){while(1)switch(n.prev=n.next){case 0:t.loadingInstance=d["Loading"].service({lock:!0,text:"新主题加载中,请稍后",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),Object(p["a"])(e),t.loadingInstance.close();case 3:case"end":return n.stop()}}),n)})))()}},methods:{changeColor:function(){}}},h=m,g=(n("8d85"),n("2877")),b=Object(g["a"])(h,o,i,!1,null,null,null),v=b.exports,y={name:"Theme",components:{ThemePicker:v},props:{},data:function(){return{code:'<ThemePicker @change="themeChange" />',scriptObj:{importArr:[{component:"ThemePicker",componentUrl:"@/components/layouts/ThemePicker.vue"}]}}},watch:{},created:function(){},mounted:function(){},methods:{themeChange:function(e){this.$store.dispatch("changeSetting",{key:"theme",value:e})}}},C=y,x=Object(g["a"])(C,a,r,!1,null,"4b8ede27",null);t["default"]=x.exports},f971:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"VDomEditTableTestCode"}},[n("div",{staticClass:"code-display-box mb32 mt40 ps-r border-top"},[n("span",{staticClass:"code-display pointer ft12",on:{click:e.handleMore}},[e._v(" "+e._s(e.moreFlag?"隐藏代码":"显示代码")+" "),n("i",{staticClass:"more-flag-icon",class:e.moreFlag?"el-icon-arrow-up":"el-icon-arrow-down"})])]),e.moreFlag?n("div",{staticClass:"ft16 line-height36 pd20"},[n("h1",{staticClass:"mb20"},[e._v("虚拟DOM可编辑表格")]),e._m(0),e._m(1),e._m(2),n("br"),n("p",[e._v("组件用法同其他编辑表格相同,以下是代码示例:")]),n("code",[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.htmlStrObj.template)}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrObj.template))}}),e._v("\n ")])])]),n("code",[n("div",{staticClass:"ps-r"},[n("button",{staticClass:"copy-button",on:{click:function(t){return e.handleCopy(e.htmlStrObj["script"])}}},[e._v("复制")]),n("pre",{staticClass:"language-"},[e._v(" "),n("code",{staticClass:"language-html",domProps:{innerHTML:e._s(e.toHtml(e.htmlStrObj["script"]))}}),e._v("\n ")])])])]):e._e()])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",{staticClass:"mb12"},[e._v(" 这个组件是用 "),n("span",{staticClass:"inline-code"},[e._v("jsx")]),e._v(" 语法实现的,关于 "),n("span",{staticClass:"inline-code"},[e._v("Vue")]),e._v(" 中的 "),n("span",{staticClass:"inline-code"},[e._v("jsx")]),e._v(" 语法的详细介绍可参考"),n("a",{attrs:{href:"https://cn.vuejs.org/guide/extras/render-function.html",target:"_blank"}},[e._v("这里")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[n("span",{staticClass:"fw-bold"},[e._v("组件背景")]),e._v(":"),n("span",{staticClass:"inline-code"},[e._v("vue2")]),e._v("中传统的模板语法在渲染可编辑表格时如果遇到数量较大的表头且各表头对应的编辑控件不相同时渲染速度会变慢造成假死的现象,例如有20个表头,每个表头对应一个编辑控件,要想表格支持的编辑控件足够全面就必须用"),n("span",{staticClass:"inline-code"},[e._v("v-if")]),e._v("层层循环做条件渲染,每次条件成立就会触发一次浏览器的渲染,在数据量大的情况下极其损耗性能,严重影响使用体验,在此情况下封装出此组件。")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[n("span",{staticClass:"fw-bold"},[e._v("基本逻辑")]),e._v(":与传统模板语法不同,简单来讲,此组件使用"),n("span",{staticClass:"inline-code"},[e._v("jsx")]),e._v("将所有需要渲染的编辑控件通过"),n("span",{staticClass:"inline-code"},[e._v("js")]),e._v("预先生成好虚拟"),n("span",{staticClass:"inline-code"},[e._v("dom")]),e._v("节点,最后通过"),n("span",{staticClass:"inline-code"},[e._v("Vue")]),e._v("的渲染函数一次性渲染到页面上。")])}],o=n("c197"),i=n.n(o),l=(n("a878"),n("4fca")),s={name:"VDomEditTableTestCode",data:function(){return{htmlStrObj:l["U"],moreFlag:!0,templateHtml:"",scriptHtml:""}},created:function(){this.templateHtml=this.toHtml(l["U"].template),this.scriptHtml=this.toJs(l["U"].script),console.log(this.templateHtml,this.scriptHtml)},methods:{handleMore:function(){this.moreFlag=!this.moreFlag},toHtml:function(e){return i.a.highlight(e,i.a.languages.html,"html")},toJs:function(e){return i.a.highlight(e,i.a.languages.js,"js")},handleCopy:function(e){var t=this;this.$copyText(e).then((function(){t.$message("已成功复制,可直接去粘贴")})).catch((function(){t.$message("复制失败")}))}}},c=s,u=(n("d45f"),n("2877")),d=Object(u["a"])(c,a,r,!1,null,"36cdc8c2",null);t["default"]=d.exports},fbdc:function(e,t,n){"use strict";n("82bd")},fc4b:function(e,t,n){"use strict";n("b0c0");var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"FHTable"}},[n("CommonTable",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"CommonTable",attrs:{"has-checkbox":e.hasCheckbox,"not-tool-tip":e.notToolTip,"table-obj":e.tableProps,"max-height":e.maxHeight,"has-table-children":e.hasTableChildren},on:{handleTableClick:e.handleTableClick,handleSelectionChange:e.handleSelectionChange,formItemChange:e.formItemChange,handLoadNode:e.handLoadNode,handleCounterChange:e.handleCounterChange,handlePeek:e.handlePeek,handleCut:e.handleCut,handlePlus:e.handlePlus,handleSortChange:e.handleSortChange},scopedSlots:e._u([{key:"otherTableType",fn:function(t){return[e._t("otherTableType",null,{item:t.item,scope:t.scope})]}}],null,!0)}),e.showPagination&&e.judgeEmpty(e.listArr)?n("div",{staticClass:"ta-r mt16"},[n("el-pagination",{attrs:{background:"",total:e.total,"page-sizes":e.pageSizes,"pager-count":e.pagerCount,"current-page":e.currentPage,"page-size":e.pageSize,layout:"sizes, total, prev, pager, next, jumper"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)},r=[],o=n("53ca"),i=n("1da1"),l=(n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("4de4"),n("fb6a"),n("a9e3"),n("0c47"),n("23dc"),n("3410"),n("131a"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0"),n("d805")),s=n("7719");function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,a){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),l=new E(a||[]);return r(i,"_invoke",{value:S(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m="suspendedStart",h="suspendedYield",g="executing",b="completed",v={};function y(){}function C(){}function x(){}var _={};d(_,l,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w($([])));k&&k!==n&&a.call(k,l)&&(_=k);var T=x.prototype=y.prototype=Object.create(_);function j(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(r,i,l,s){var c=f(e[r],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Object(o["a"])(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(o,i){if(r===g)throw Error("Generator is already running");if(r===b){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var s=F(l,a);if(s){if(s===v)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=b,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=g;var c=f(t,n,a);if("normal"===c.type){if(r=a.done?b:h,c.arg===v)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=b,a.method="throw",a.arg=c.arg)}}}function F(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,F(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var o=f(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function $(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Object(o["a"])(t)+" is not iterable")}return C.prototype=x,r(T,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:C,configurable:!0}),C.displayName=d(x,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===C||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,u,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},j(P.prototype),d(P.prototype,s,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new P(p(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(T),d(T,u,"Generator"),d(T,l,(function(){return this})),d(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=$,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;L(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:$(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}var u={pageOffset:0,pageSize:10,total:0,currentPage:1},d={name:"FHTable",components:{CommonTable:l["a"]},props:{notToolTip:{type:Boolean,default:!1},queryTableData:{type:Function,required:!0},hasCheckbox:{type:Boolean,default:!1},queryParams:{type:Object,default:function(){}},tableProps:{type:Object,required:!0},pageSizes:{type:Array,default:function(){return[10,20,50,100]}},pageSize:{type:Number,default:10},pagerCount:{type:Number,default:7},showPagination:{type:Boolean,default:!0},listMapName:{type:String,default:"list"},maxHeight:{type:Number,default:1e4},hasTableChildren:{type:Boolean,default:!1}},data:function(){return{loading:!1,tableObj:{},total:u.total,currentPage:u.currentPage,listArr:[],offset:0,limit:10}},watch:{pageSize:function(e){this.limit=this.deepClone(e)}},created:function(){},mounted:function(){},methods:{getTableList:function(e,t){var n=this;return Object(i["a"])(c().mark((function a(){var r,o,i,l,u;return c().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return r=(n.currentPage-1)*n.limit,"delete"===e&&n.listArr.length===t&&(r-=1*n.limit),o=Object.assign({limit:n.limit,offset:r},Object(s["s"])(n.queryParams)),n.loading=!0,a.prev=4,a.next=7,n.queryTableData(o);case 7:i=a.sent,n.total=i.total,n.listArr=i[n.listMapName],l=n.tableProps["tableProp"],u=l.filter((function(e){return"htmlType"===e.type})),n.listArr.forEach((function(e){u.forEach((function(t){var n="xss"+t.prop,a=""===e[t.prop]||null===e[t.prop]||void 0===e[t.prop]?"--":e[t.prop];e[n]=Object(s["c"])(t.color||"#1677ff",a)}))})),n.loading=!1,n.$emit("handleTableList",n.listArr),a.next=20;break;case 17:a.prev=17,a.t0=a["catch"](4),n.loading=!1;case 20:case"end":return a.stop()}}),a,null,[[4,17]])})))()},handleSizeChange:function(e){this.limit=e,this.offset=0,this.queryParams["limit"]=this.limit,this.queryParams["offset"]=0,this.getTableList()},handleCurrentChange:function(e){this.offset=(e-1)*this.limit,this.queryParams["offset"]=this.offset,this.currentPage=e,this.getTableList()},handleTableClick:function(e){this.$emit("handleTableClick",e)},handleSelectionChange:function(e){this.$emit("handleSelectionChange",e)},formItemChange:function(e){this.$emit("formItemChange",e)},handLoadNode:function(e){this.$emit("handLoadNode",e)},handleCounterChange:function(e){this.$emit("handleCounterChange",e)},handlePeek:function(e){this.$emit("handlePeek",e)},handleCut:function(e){this.$emit("handleCut",e)},handlePlus:function(e){this.$emit("handlePlus",e)},handleSortChange:function(e){this.$emit("handleSortChange",e)}}},p=d,f=n("2877"),m=Object(f["a"])(p,a,r,!1,null,"c9d9db36",null),h=m.exports;h.install=function(e){e.component(h.name,h)};t["a"]=h},fd30:function(e,t,n){"use strict";n("1f23")},feca:function(e,t,n){var a={"./autoTest/AutoPage.vue":"ace8","./autoTest/AutoTemplate.vue":"870c","./homePage/HomePage.vue":"2265","./testPage/AddTest.vue":"e9b0","./testPage/ButtonTest.vue":"5a21","./testPage/CodeBuild.vue":"b01e","./testPage/ColorTest.vue":"361a","./testPage/CommonAudioTest.vue":"6d16","./testPage/CommonEchartsTest.vue":"8440","./testPage/CommonFormTest.vue":"98fb","./testPage/CommonNoDataTest.vue":"0cd8","./testPage/CommonTableTest.vue":"e26e","./testPage/DownloadTest.vue":"8408","./testPage/FHTableCode.vue":"a323","./testPage/FHTableDemoCode.vue":"9443","./testPage/FHTableTest.vue":"7b72","./testPage/FilterQueryTest.vue":"2465","./testPage/GlobalCss.vue":"7356","./testPage/IconFontCss.vue":"2f95","./testPage/IframeTest.vue":"3d57","./testPage/InputEnterTest.vue":"ad68","./testPage/International.vue":"d72f","./testPage/LazyPDFViewerTest.vue":"f15d","./testPage/NpmInstall.vue":"95fa","./testPage/OrgTreeTest.vue":"030b","./testPage/PDFViewerTest.vue":"9a5a","./testPage/PackagingTable.vue":"c319","./testPage/PairArrCode.vue":"3550","./testPage/PairCode.vue":"e880","./testPage/PermissonTest.vue":"a511","./testPage/QueryTableMixinTest.vue":"4720","./testPage/RichTextEditorTest.vue":"5aeb","./testPage/SecondTabs.vue":"ea6d","./testPage/StorageTest.vue":"cbe3","./testPage/TestNpm.vue":"58e8","./testPage/TestPage.vue":"762d","./testPage/Theme.vue":"f92d","./testPage/ToolTest.vue":"d29b","./testPage/TreeSelectTest.vue":"16f2","./testPage/TreeTest.vue":"f614","./testPage/addTest/CommonFormTestAdd.vue":"962b","./testPage/defaultImage/DefaultImage.vue":"2b54","./testPage/defaultImage/DefaultImageCode.vue":"dd17","./testPage/dialogTest/CustomFHDialog.vue":"0fd0","./testPage/dialogTest/CustomWDialog.vue":"26f6","./testPage/dialogTest/DialogHtml.vue":"225c","./testPage/dialogTest/DialogTest.vue":"222d","./testPage/dialogTest/FHDialogTest.vue":"34e7","./testPage/dialogTest/LargeFHDialog.vue":"bcdd","./testPage/dialogTest/MediumFHDialog.vue":"3d1e","./testPage/dialogTest/MiniFHDialog.vue":"0927","./testPage/dialogTest/SmallFHDialog.vue":"e6e8","./testPage/fhPresetImage/FhPresetImageCode.vue":"281f","./testPage/fhPresetImage/FhPresetImageTest.vue":"ca46","./testPage/fhSensorsFilterTest/FHSensorsFilterTest.vue":"e420","./testPage/fhTransferTest/FHTransferTest.vue":"54ef","./testPage/iframeTest/IframeTest.vue":"b8fb","./testPage/iframeTest/WebFHIframeTest.vue":"08a9","./testPage/iframeTest/WebFHIframeTestHtml.vue":"5cf2","./testPage/inputEnterSearch/InputEnterHtml.vue":"3a85","./testPage/inputEnterSearch/InputEnterTest.vue":"1592","./testPage/mindmap/MindMap.vue":"d37e","./testPage/newRule/RuleManager.vue":"76e2","./testPage/newRule/ruleComponets/ActionPart.vue":"cda1","./testPage/newRule/ruleComponets/AlgorithmPart.vue":"83f5","./testPage/newRule/ruleComponets/ConditionTree.vue":"b9f4","./testPage/newRule/ruleComponets/Expression.vue":"ccfb","./testPage/newRule/ruleComponets/IfPart.vue":"5ec2","./testPage/newRule/ruleComponets/Operants.vue":"81c1","./testPage/newRule/rulePages/RuleConfig.vue":"4e32","./testPage/richTextTest/RichTextEditorCode.vue":"9722","./testPage/richTextTest/RichTextEditorTest.vue":"154f","./testPage/table/CommonTableTest.vue":"4d23","./testPage/table/EditTableCode.vue":"3613","./testPage/table/EditTableTest.vue":"1a6f","./testPage/table/FHTableCode.vue":"4907","./testPage/table/FHTableTest.vue":"de83","./testPage/table/PackagingTable.vue":"1061","./testPage/table/VDomEditTableTest.vue":"5ce5","./testPage/table/VxeTableTest.vue":"e08e","./testPage/table/code/VDomEditTableTestCode.vue":"f971","./testPage/uploaderTest/CompressTest.vue":"d166","./testPage/uploaderTest/CustomUploadWidgetTest.vue":"9fa2","./testPage/uploaderTest/UploadFileTest.vue":"3fbb","./testPage/uploaderTest/UploadFuncTest.vue":"5c97","./testPage/vxeTable/FHVxeTable.vue":"d22c","./testPage/vxeTable/VxeTableTest1.vue":"e585","./testPage/vxeTable/VxeTableTest2.vue":"586e","./testPage/vxeTable/VxeTableTest3.vue":"f6f0","./testPage/vxeTable/VxeTableTest4.vue":"44ae","./user/PermissonTest.vue":"b96c"};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=o,e.exports=r,r.id="feca"},ff42:function(e,t,n){"use strict";n("873f")}}]);