firefly-portal-web 1.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.
- package/README.md +132 -0
- package/dist-lib/Empower-789f2826.mjs +94 -0
- package/dist-lib/Empower-789f2826.mjs.map +1 -0
- package/dist-lib/Empower.vue_vue_type_script_setup_true_lang-c454e7a0.mjs +134 -0
- package/dist-lib/Empower.vue_vue_type_script_setup_true_lang-c454e7a0.mjs.map +1 -0
- package/dist-lib/Field-40d74a96.mjs +94 -0
- package/dist-lib/Field-40d74a96.mjs.map +1 -0
- package/dist-lib/Field.vue_vue_type_script_setup_true_lang-e1964a74.mjs +148 -0
- package/dist-lib/Field.vue_vue_type_script_setup_true_lang-e1964a74.mjs.map +1 -0
- package/dist-lib/FieldForm-a5d4038b.mjs +93 -0
- package/dist-lib/FieldForm-a5d4038b.mjs.map +1 -0
- package/dist-lib/FieldForm.vue_vue_type_script_setup_true_lang-f92c7e23.mjs +160 -0
- package/dist-lib/FieldForm.vue_vue_type_script_setup_true_lang-f92c7e23.mjs.map +1 -0
- package/dist-lib/Form-06ee1b64.mjs +97 -0
- package/dist-lib/Form-06ee1b64.mjs.map +1 -0
- package/dist-lib/Form-15a7f801.mjs +95 -0
- package/dist-lib/Form-15a7f801.mjs.map +1 -0
- package/dist-lib/Form-465fe45d.mjs +237 -0
- package/dist-lib/Form-465fe45d.mjs.map +1 -0
- package/dist-lib/Form-6e6a6a0d.mjs +94 -0
- package/dist-lib/Form-6e6a6a0d.mjs.map +1 -0
- package/dist-lib/Form-a61f1446.mjs +93 -0
- package/dist-lib/Form-a61f1446.mjs.map +1 -0
- package/dist-lib/Form-aeafea39.mjs +93 -0
- package/dist-lib/Form-aeafea39.mjs.map +1 -0
- package/dist-lib/Form-b0b8b1f3.mjs +94 -0
- package/dist-lib/Form-b0b8b1f3.mjs.map +1 -0
- package/dist-lib/Form-b2915cd3.mjs +95 -0
- package/dist-lib/Form-b2915cd3.mjs.map +1 -0
- package/dist-lib/Form-b2ce5535.mjs +93 -0
- package/dist-lib/Form-b2ce5535.mjs.map +1 -0
- package/dist-lib/Form-ca6e92bd.mjs +421 -0
- package/dist-lib/Form-ca6e92bd.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-039f5c88.mjs +101 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-039f5c88.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-1883a047.mjs +91 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-1883a047.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-5fbc0f96.mjs +302 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-5fbc0f96.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-61497691.mjs +181 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-61497691.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-69cc4bfc.mjs +94 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-69cc4bfc.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-a3d7f865.mjs +263 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-a3d7f865.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-ae83b1bb.mjs +104 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-ae83b1bb.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_style_index_0_lang-f240a568.mjs +838 -0
- package/dist-lib/Form.vue_vue_type_style_index_0_lang-f240a568.mjs.map +1 -0
- package/dist-lib/Info-e9cb4268.mjs +747 -0
- package/dist-lib/Info-e9cb4268.mjs.map +1 -0
- package/dist-lib/Log-b1cc7014.mjs +94 -0
- package/dist-lib/Log-b1cc7014.mjs.map +1 -0
- package/dist-lib/Log.vue_vue_type_script_setup_true_lang-0ba0615b.mjs +93 -0
- package/dist-lib/Log.vue_vue_type_script_setup_true_lang-0ba0615b.mjs.map +1 -0
- package/dist-lib/Login-fc04d844.mjs +109 -0
- package/dist-lib/Login-fc04d844.mjs.map +1 -0
- package/dist-lib/LoginForm-eafdf0bc.mjs +93 -0
- package/dist-lib/LoginForm-eafdf0bc.mjs.map +1 -0
- package/dist-lib/LoginForm.vue_vue_type_script_setup_true_lang-2a241386.mjs +202 -0
- package/dist-lib/LoginForm.vue_vue_type_script_setup_true_lang-2a241386.mjs.map +1 -0
- package/dist-lib/PageExplainModal-efbb4616.mjs +140 -0
- package/dist-lib/PageExplainModal-efbb4616.mjs.map +1 -0
- package/dist-lib/Preview-531e9361.mjs +93 -0
- package/dist-lib/Preview-531e9361.mjs.map +1 -0
- package/dist-lib/Preview-6086e84b.mjs +93 -0
- package/dist-lib/Preview-6086e84b.mjs.map +1 -0
- package/dist-lib/Preview.vue_vue_type_script_setup_true_lang-0013b21d.mjs +137 -0
- package/dist-lib/Preview.vue_vue_type_script_setup_true_lang-0013b21d.mjs.map +1 -0
- package/dist-lib/Preview.vue_vue_type_script_setup_true_lang-815bfd98.mjs +67 -0
- package/dist-lib/Preview.vue_vue_type_script_setup_true_lang-815bfd98.mjs.map +1 -0
- package/dist-lib/TableAction-fcabc30c.mjs +114 -0
- package/dist-lib/TableAction-fcabc30c.mjs.map +1 -0
- package/dist-lib/UserSelect-4e259116.mjs +94 -0
- package/dist-lib/UserSelect-4e259116.mjs.map +1 -0
- package/dist-lib/UserSelect.vue_vue_type_script_setup_true_lang-aa25c5fc.mjs +282 -0
- package/dist-lib/UserSelect.vue_vue_type_script_setup_true_lang-aa25c5fc.mjs.map +1 -0
- package/dist-lib/cdn/socials/dingtalk.png +0 -0
- package/dist-lib/cdn/socials/feishu.png +0 -0
- package/dist-lib/cdn/socials/gitHub.png +0 -0
- package/dist-lib/cdn/socials/qq.png +0 -0
- package/dist-lib/cdn/socials/wechat_open.png +0 -0
- package/dist-lib/cdn/socials/wxWork.png +0 -0
- package/dist-lib/commonFields-5ff2332b.mjs +24 -0
- package/dist-lib/commonFields-5ff2332b.mjs.map +1 -0
- package/dist-lib/css/fonts/ym/iconfont.css +2419 -0
- package/dist-lib/css/fonts/ym/iconfont.ttf +0 -0
- package/dist-lib/css/fonts/ym/iconfont.woff +0 -0
- package/dist-lib/css/fonts/ym/iconfont.woff2 +0 -0
- package/dist-lib/css/fonts/ym-custom/iconfont.css +7203 -0
- package/dist-lib/css/fonts/ym-custom/iconfont.ttf +0 -0
- package/dist-lib/css/fonts/ym-custom/iconfont.woff +0 -0
- package/dist-lib/css/fonts/ym-custom/iconfont.woff2 +0 -0
- package/dist-lib/css/index.css +135 -0
- package/dist-lib/css/print-lock.css +352 -0
- package/dist-lib/emtryImg-85b013aa.mjs +5 -0
- package/dist-lib/emtryImg-85b013aa.mjs.map +1 -0
- package/dist-lib/en_US-6b59f0a7.mjs +774 -0
- package/dist-lib/en_US-6b59f0a7.mjs.map +1 -0
- package/dist-lib/favicon.ico +0 -0
- package/dist-lib/firefly-portal-preview.css +1 -0
- package/dist-lib/firefly-portal-preview.d.ts +82 -0
- package/dist-lib/firefly-portal-preview.es.js +92 -0
- package/dist-lib/firefly-portal-preview.es.js.map +1 -0
- package/dist-lib/firefly-portal-preview.umd.js +79 -0
- package/dist-lib/firefly-portal-preview.umd.js.map +1 -0
- package/dist-lib/formValidate-33d5595a.mjs +68 -0
- package/dist-lib/formValidate-33d5595a.mjs.map +1 -0
- package/dist-lib/index-1a090e82.mjs +173 -0
- package/dist-lib/index-1a090e82.mjs.map +1 -0
- package/dist-lib/index-28ba2ea1.mjs +154 -0
- package/dist-lib/index-28ba2ea1.mjs.map +1 -0
- package/dist-lib/index-29f92d0d.mjs +130 -0
- package/dist-lib/index-29f92d0d.mjs.map +1 -0
- package/dist-lib/index-2c2c19d4.mjs +160 -0
- package/dist-lib/index-2c2c19d4.mjs.map +1 -0
- package/dist-lib/index-2f898c1f.mjs +103 -0
- package/dist-lib/index-2f898c1f.mjs.map +1 -0
- package/dist-lib/index-3462ba0d.mjs +139 -0
- package/dist-lib/index-3462ba0d.mjs.map +1 -0
- package/dist-lib/index-3ebbb3a9.mjs +97 -0
- package/dist-lib/index-3ebbb3a9.mjs.map +1 -0
- package/dist-lib/index-436ec82c.mjs +145 -0
- package/dist-lib/index-436ec82c.mjs.map +1 -0
- package/dist-lib/index-44e8def1.mjs +267 -0
- package/dist-lib/index-44e8def1.mjs.map +1 -0
- package/dist-lib/index-47596f01.mjs +144 -0
- package/dist-lib/index-47596f01.mjs.map +1 -0
- package/dist-lib/index-5888a3a4.mjs +226 -0
- package/dist-lib/index-5888a3a4.mjs.map +1 -0
- package/dist-lib/index-58fb457c.mjs +179 -0
- package/dist-lib/index-58fb457c.mjs.map +1 -0
- package/dist-lib/index-5b8b1ba9.mjs +119766 -0
- package/dist-lib/index-5b8b1ba9.mjs.map +1 -0
- package/dist-lib/index-687fd3de.mjs +396 -0
- package/dist-lib/index-687fd3de.mjs.map +1 -0
- package/dist-lib/index-6eca8dab.mjs +135 -0
- package/dist-lib/index-6eca8dab.mjs.map +1 -0
- package/dist-lib/index-73df4468.mjs +187 -0
- package/dist-lib/index-73df4468.mjs.map +1 -0
- package/dist-lib/index-7ae97180.mjs +597 -0
- package/dist-lib/index-7ae97180.mjs.map +1 -0
- package/dist-lib/index-8374b2f2.mjs +354 -0
- package/dist-lib/index-8374b2f2.mjs.map +1 -0
- package/dist-lib/index-89a27c27.mjs +255 -0
- package/dist-lib/index-89a27c27.mjs.map +1 -0
- package/dist-lib/index-9263cd45.mjs +482 -0
- package/dist-lib/index-9263cd45.mjs.map +1 -0
- package/dist-lib/index-934ca5d0.mjs +93 -0
- package/dist-lib/index-934ca5d0.mjs.map +1 -0
- package/dist-lib/index-97081729.mjs +269 -0
- package/dist-lib/index-97081729.mjs.map +1 -0
- package/dist-lib/index-9dec931e.mjs +145 -0
- package/dist-lib/index-9dec931e.mjs.map +1 -0
- package/dist-lib/index-9fc40c89.mjs +298 -0
- package/dist-lib/index-9fc40c89.mjs.map +1 -0
- package/dist-lib/index-a57664c9.mjs +204 -0
- package/dist-lib/index-a57664c9.mjs.map +1 -0
- package/dist-lib/index-a83288bf.mjs +180 -0
- package/dist-lib/index-a83288bf.mjs.map +1 -0
- package/dist-lib/index-adf15a9e.mjs +392 -0
- package/dist-lib/index-adf15a9e.mjs.map +1 -0
- package/dist-lib/index-b5b20206.mjs +617 -0
- package/dist-lib/index-b5b20206.mjs.map +1 -0
- package/dist-lib/index-b6f446cf.mjs +92 -0
- package/dist-lib/index-b6f446cf.mjs.map +1 -0
- package/dist-lib/index-b9e3947c.mjs +156 -0
- package/dist-lib/index-b9e3947c.mjs.map +1 -0
- package/dist-lib/index-bde150fa.mjs +261 -0
- package/dist-lib/index-bde150fa.mjs.map +1 -0
- package/dist-lib/index-be097ef0.mjs +188 -0
- package/dist-lib/index-be097ef0.mjs.map +1 -0
- package/dist-lib/index-bff033bc.mjs +563 -0
- package/dist-lib/index-bff033bc.mjs.map +1 -0
- package/dist-lib/index-c4d74c6c.mjs +258 -0
- package/dist-lib/index-c4d74c6c.mjs.map +1 -0
- package/dist-lib/index-c708e214.mjs +96 -0
- package/dist-lib/index-c708e214.mjs.map +1 -0
- package/dist-lib/index-d936d570.mjs +191 -0
- package/dist-lib/index-d936d570.mjs.map +1 -0
- package/dist-lib/index-da857153.mjs +223 -0
- package/dist-lib/index-da857153.mjs.map +1 -0
- package/dist-lib/index.vue_vue_type_script_setup_true_lang-0eb8f454.mjs +136 -0
- package/dist-lib/index.vue_vue_type_script_setup_true_lang-0eb8f454.mjs.map +1 -0
- package/dist-lib/index.vue_vue_type_script_setup_true_lang-10a915e2.mjs +137 -0
- package/dist-lib/index.vue_vue_type_script_setup_true_lang-10a915e2.mjs.map +1 -0
- package/dist-lib/index.vue_vue_type_script_setup_true_lang-570dd942.mjs +131 -0
- package/dist-lib/index.vue_vue_type_script_setup_true_lang-570dd942.mjs.map +1 -0
- package/dist-lib/interfaceOauth-bb8e782e.mjs +40 -0
- package/dist-lib/interfaceOauth-bb8e782e.mjs.map +1 -0
- package/dist-lib/preview-e588e33c.mjs +194 -0
- package/dist-lib/preview-e588e33c.mjs.map +1 -0
- package/dist-lib/resource/emoji/100.gif +0 -0
- package/dist-lib/resource/emoji/101.gif +0 -0
- package/dist-lib/resource/emoji/102.gif +0 -0
- package/dist-lib/resource/emoji/103.gif +0 -0
- package/dist-lib/resource/emoji/104.gif +0 -0
- package/dist-lib/resource/emoji/105.gif +0 -0
- package/dist-lib/resource/emoji/106.gif +0 -0
- package/dist-lib/resource/emoji/107.gif +0 -0
- package/dist-lib/resource/emoji/108.gif +0 -0
- package/dist-lib/resource/emoji/109.gif +0 -0
- package/dist-lib/resource/emoji/110.gif +0 -0
- package/dist-lib/resource/emoji/111.gif +0 -0
- package/dist-lib/resource/emoji/112.gif +0 -0
- package/dist-lib/resource/emoji/113.gif +0 -0
- package/dist-lib/resource/emoji/114.gif +0 -0
- package/dist-lib/resource/emoji/115.gif +0 -0
- package/dist-lib/resource/emoji/116.gif +0 -0
- package/dist-lib/resource/emoji/117.gif +0 -0
- package/dist-lib/resource/emoji/118.gif +0 -0
- package/dist-lib/resource/emoji/119.gif +0 -0
- package/dist-lib/resource/emoji/120.gif +0 -0
- package/dist-lib/resource/emoji/121.gif +0 -0
- package/dist-lib/resource/emoji/122.gif +0 -0
- package/dist-lib/resource/emoji/123.gif +0 -0
- package/dist-lib/resource/emoji/124.gif +0 -0
- package/dist-lib/resource/emoji/125.gif +0 -0
- package/dist-lib/resource/emoji/126.gif +0 -0
- package/dist-lib/resource/emoji/127.gif +0 -0
- package/dist-lib/resource/emoji/128.gif +0 -0
- package/dist-lib/resource/emoji/129.gif +0 -0
- package/dist-lib/resource/emoji/130.gif +0 -0
- package/dist-lib/resource/emoji/131.gif +0 -0
- package/dist-lib/resource/emoji/132.gif +0 -0
- package/dist-lib/resource/emoji/133.gif +0 -0
- package/dist-lib/resource/emoji/134.gif +0 -0
- package/dist-lib/resource/emoji/135.gif +0 -0
- package/dist-lib/resource/emoji/136.gif +0 -0
- package/dist-lib/resource/emoji/137.gif +0 -0
- package/dist-lib/resource/emoji/138.gif +0 -0
- package/dist-lib/resource/emoji/139.gif +0 -0
- package/dist-lib/resource/emoji/140.gif +0 -0
- package/dist-lib/resource/emoji/141.gif +0 -0
- package/dist-lib/resource/emoji/142.gif +0 -0
- package/dist-lib/resource/emoji/143.gif +0 -0
- package/dist-lib/resource/emoji/144.gif +0 -0
- package/dist-lib/resource/emoji/145.gif +0 -0
- package/dist-lib/resource/emoji/146.gif +0 -0
- package/dist-lib/resource/emoji/147.gif +0 -0
- package/dist-lib/resource/emoji/148.gif +0 -0
- package/dist-lib/resource/emoji/149.gif +0 -0
- package/dist-lib/resource/emoji/150.gif +0 -0
- package/dist-lib/resource/emoji/151.gif +0 -0
- package/dist-lib/resource/emoji/152.gif +0 -0
- package/dist-lib/resource/emoji/153.gif +0 -0
- package/dist-lib/resource/emoji/154.gif +0 -0
- package/dist-lib/resource/emoji/155.gif +0 -0
- package/dist-lib/resource/emoji/156.gif +0 -0
- package/dist-lib/resource/emoji/157.gif +0 -0
- package/dist-lib/resource/emoji/158.gif +0 -0
- package/dist-lib/resource/emoji/159.gif +0 -0
- package/dist-lib/resource/emoji/160.gif +0 -0
- package/dist-lib/resource/emoji/161.gif +0 -0
- package/dist-lib/resource/emoji/162.gif +0 -0
- package/dist-lib/resource/emoji/163.gif +0 -0
- package/dist-lib/resource/emoji/164.gif +0 -0
- package/dist-lib/resource/emoji/165.gif +0 -0
- package/dist-lib/resource/emoji/166.gif +0 -0
- package/dist-lib/resource/emoji/167.gif +0 -0
- package/dist-lib/resource/emoji/168.gif +0 -0
- package/dist-lib/resource/emoji/169.gif +0 -0
- package/dist-lib/resource/emoji/170.gif +0 -0
- package/dist-lib/resource/emoji/171.gif +0 -0
- package/dist-lib/resource/emoji/172.gif +0 -0
- package/dist-lib/resource/emoji/173.gif +0 -0
- package/dist-lib/resource/emoji/174.gif +0 -0
- package/dist-lib/resource/emoji/175.gif +0 -0
- package/dist-lib/resource/emoji/176.gif +0 -0
- package/dist-lib/resource/emoji/177.gif +0 -0
- package/dist-lib/resource/emoji/178.gif +0 -0
- package/dist-lib/resource/emoji/179.gif +0 -0
- package/dist-lib/resource/emoji/180.gif +0 -0
- package/dist-lib/resource/emoji/181.gif +0 -0
- package/dist-lib/resource/emoji/182.gif +0 -0
- package/dist-lib/resource/emoji/183.gif +0 -0
- package/dist-lib/resource/emoji/184.gif +0 -0
- package/dist-lib/resource/emoji/185.gif +0 -0
- package/dist-lib/resource/emoji/186.gif +0 -0
- package/dist-lib/resource/emoji/187.gif +0 -0
- package/dist-lib/resource/emoji/188.gif +0 -0
- package/dist-lib/resource/emoji/189.gif +0 -0
- package/dist-lib/resource/emoji/190.gif +0 -0
- package/dist-lib/resource/emoji/191.gif +0 -0
- package/dist-lib/resource/emoji/192.gif +0 -0
- package/dist-lib/resource/emoji/193.gif +0 -0
- package/dist-lib/resource/emoji/194.gif +0 -0
- package/dist-lib/resource/emoji/195.gif +0 -0
- package/dist-lib/resource/emoji/196.gif +0 -0
- package/dist-lib/resource/emoji/197.gif +0 -0
- package/dist-lib/resource/emoji/198.gif +0 -0
- package/dist-lib/resource/emoji/199.gif +0 -0
- package/dist-lib/resource/emoji/200.png +0 -0
- package/dist-lib/resource/emoji/201.png +0 -0
- package/dist-lib/resource/emoji/202.png +0 -0
- package/dist-lib/resource/emoji/203.png +0 -0
- package/dist-lib/resource/emoji/204.png +0 -0
- package/dist-lib/resource/emoji/205.png +0 -0
- package/dist-lib/resource/emoji/206.png +0 -0
- package/dist-lib/resource/emoji/207.png +0 -0
- package/dist-lib/resource/emoji/208.png +0 -0
- package/dist-lib/resource/emoji/209.png +0 -0
- package/dist-lib/resource/emoji/210.png +0 -0
- package/dist-lib/resource/emoji/211.png +0 -0
- package/dist-lib/resource/emoji/212.png +0 -0
- package/dist-lib/resource/emoji/213.png +0 -0
- package/dist-lib/resource/emoji/214.png +0 -0
- package/dist-lib/resource/emoji/215.png +0 -0
- package/dist-lib/resource/emoji/216.png +0 -0
- package/dist-lib/resource/emoji/217.png +0 -0
- package/dist-lib/resource/emoji/218.png +0 -0
- package/dist-lib/resource/emoji/219.png +0 -0
- package/dist-lib/resource/img/logo.png +0 -0
- package/dist-lib/resource/img/pwa-192x192.png +0 -0
- package/dist-lib/resource/img/pwa-512x512.png +0 -0
- package/dist-lib/resource/tinymce/langs/en.js +419 -0
- package/dist-lib/resource/tinymce/langs/zh_CN.js +389 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide/content.inline.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide/content.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide/content.mobile.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide/skin.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide/skin.mobile.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide/skin.shadowdom.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide-dark/content.inline.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide-dark/content.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide-dark/content.mobile.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide-dark/skin.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
- package/dist-lib/useCommon-36969e5f.mjs +110 -0
- package/dist-lib/useCommon-36969e5f.mjs.map +1 -0
- package/dist-lib/useECharts-bb3ba984.mjs +77 -0
- package/dist-lib/useECharts-bb3ba984.mjs.map +1 -0
- package/dist-lib/useTable-99fc521a.mjs +172 -0
- package/dist-lib/useTable-99fc521a.mjs.map +1 -0
- package/dist-lib/zh_CN-5eabc04b.mjs +772 -0
- package/dist-lib/zh_CN-5eabc04b.mjs.map +1 -0
- package/dist-lib/zh_TW-ef5c69c0.mjs +774 -0
- package/dist-lib/zh_TW-ef5c69c0.mjs.map +1 -0
- package/package.json +247 -0
- package/src/components/PortalPreview/__tests__/index.spec.ts +258 -0
- package/src/components/PortalPreview/fonts/ym/iconfont.css +2419 -0
- package/src/components/PortalPreview/fonts/ym/iconfont.ttf +0 -0
- package/src/components/PortalPreview/fonts/ym/iconfont.woff +0 -0
- package/src/components/PortalPreview/fonts/ym/iconfont.woff2 +0 -0
- package/src/components/PortalPreview/fonts/ym-custom/iconfont.css +7203 -0
- package/src/components/PortalPreview/fonts/ym-custom/iconfont.ttf +0 -0
- package/src/components/PortalPreview/fonts/ym-custom/iconfont.woff +0 -0
- package/src/components/PortalPreview/fonts/ym-custom/iconfont.woff2 +0 -0
- package/src/components/PortalPreview/index.ts +31 -0
- package/src/components/PortalPreview/index.vue +329 -0
- package/src/components/PortalPreview/style/overrides.css +15 -0
- package/src/components/PortalPreview/types.ts +61 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { defineComponent as D, reactive as f, toRefs as x, computed as k, onMounted as g, resolveComponent as A, openBlock as i, createBlock as d, createSlots as T, withCtx as p, createElementVNode as h, normalizeStyle as n, unref as L, createElementBlock as r, toDisplayString as s, createVNode as S } from "vue";
|
|
2
|
+
import { aO as V, aP as C, aR as J, a0 as b, _ as B } from "./index-5b8b1ba9.mjs";
|
|
3
|
+
import "lodash-es";
|
|
4
|
+
import "ant-design-vue";
|
|
5
|
+
import "vue-i18n";
|
|
6
|
+
import "pinia";
|
|
7
|
+
import "crypto-js/aes";
|
|
8
|
+
import "crypto-js/enc-utf8";
|
|
9
|
+
import "crypto-js/pad-pkcs7";
|
|
10
|
+
import "crypto-js/mode-ecb";
|
|
11
|
+
import "crypto-js/md5";
|
|
12
|
+
import "crypto-js/enc-base64";
|
|
13
|
+
import "crypto-js/enc-hex";
|
|
14
|
+
import "dayjs";
|
|
15
|
+
import "@vueuse/core";
|
|
16
|
+
import "vue-router";
|
|
17
|
+
import "axios";
|
|
18
|
+
import "@ant-design/icons-vue";
|
|
19
|
+
import "@ant-design/colors";
|
|
20
|
+
import "@iconify/iconify";
|
|
21
|
+
import "vue-types";
|
|
22
|
+
import "@firefly-plus/icons-vue";
|
|
23
|
+
import "qrcode";
|
|
24
|
+
import "vue-simple-uploader";
|
|
25
|
+
import "spark-md5";
|
|
26
|
+
import "vue-simple-uploader/dist/style.css";
|
|
27
|
+
import "tinymce/tinymce";
|
|
28
|
+
import "tinymce/themes/silver";
|
|
29
|
+
import "tinymce/icons/default/icons";
|
|
30
|
+
import "tinymce/plugins/advlist";
|
|
31
|
+
import "tinymce/plugins/anchor";
|
|
32
|
+
import "tinymce/plugins/autolink";
|
|
33
|
+
import "tinymce/plugins/autosave";
|
|
34
|
+
import "tinymce/plugins/code";
|
|
35
|
+
import "tinymce/plugins/codesample";
|
|
36
|
+
import "tinymce/plugins/directionality";
|
|
37
|
+
import "tinymce/plugins/fullscreen";
|
|
38
|
+
import "tinymce/plugins/hr";
|
|
39
|
+
import "tinymce/plugins/insertdatetime";
|
|
40
|
+
import "tinymce/plugins/link";
|
|
41
|
+
import "tinymce/plugins/lists";
|
|
42
|
+
import "tinymce/plugins/media";
|
|
43
|
+
import "tinymce/plugins/nonbreaking";
|
|
44
|
+
import "tinymce/plugins/noneditable";
|
|
45
|
+
import "tinymce/plugins/pagebreak";
|
|
46
|
+
import "tinymce/plugins/paste";
|
|
47
|
+
import "tinymce/plugins/preview";
|
|
48
|
+
import "tinymce/plugins/print";
|
|
49
|
+
import "tinymce/plugins/save";
|
|
50
|
+
import "tinymce/plugins/searchreplace";
|
|
51
|
+
import "tinymce/plugins/spellchecker";
|
|
52
|
+
import "tinymce/plugins/tabfocus";
|
|
53
|
+
import "tinymce/plugins/table";
|
|
54
|
+
import "tinymce/plugins/template";
|
|
55
|
+
import "tinymce/plugins/textpattern";
|
|
56
|
+
import "tinymce/plugins/visualblocks";
|
|
57
|
+
import "tinymce/plugins/visualchars";
|
|
58
|
+
import "tinymce/plugins/wordcount";
|
|
59
|
+
import "tinymce/plugins/image";
|
|
60
|
+
import "tinymce/plugins/charmap";
|
|
61
|
+
import "tinymce/plugins/imagetools";
|
|
62
|
+
import "tinymce/plugins/help";
|
|
63
|
+
import "tinymce/plugins/quickbars";
|
|
64
|
+
import "tinymce/plugins/importcss";
|
|
65
|
+
import "tinymce/plugins/toc";
|
|
66
|
+
import "tinymce/plugins/emoticons";
|
|
67
|
+
import "sortablejs";
|
|
68
|
+
import "codemirror";
|
|
69
|
+
import "codemirror/theme/idea.css";
|
|
70
|
+
import "codemirror/theme/material-palenight.css";
|
|
71
|
+
import "codemirror/mode/javascript/javascript";
|
|
72
|
+
import "codemirror/mode/css/css";
|
|
73
|
+
import "codemirror/mode/htmlmixed/htmlmixed";
|
|
74
|
+
import "monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
75
|
+
import "monaco-editor/esm/vs/language/css/css.worker?worker";
|
|
76
|
+
import "monaco-editor/esm/vs/language/html/html.worker?worker";
|
|
77
|
+
import "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
|
|
78
|
+
import "monaco-editor/esm/vs/editor/editor.worker?worker";
|
|
79
|
+
import "monaco-editor";
|
|
80
|
+
import "vue-json-pretty";
|
|
81
|
+
import "vue-json-pretty/lib/styles.css";
|
|
82
|
+
import "firefly-plus-components";
|
|
83
|
+
import "vuedraggable";
|
|
84
|
+
import "uuid";
|
|
85
|
+
import "element-plus";
|
|
86
|
+
import "firefly-plus-components/index.css";
|
|
87
|
+
import "element-plus/dist/index.css";
|
|
88
|
+
import "vue-grid-layout";
|
|
89
|
+
const F = ["direction", "scrollamount"], M = { key: 1 }, N = ["innerHTML"], R = /* @__PURE__ */ D({
|
|
90
|
+
__name: "index",
|
|
91
|
+
props: ["activeData"],
|
|
92
|
+
setup(t) {
|
|
93
|
+
const m = f({
|
|
94
|
+
urlAddress: ""
|
|
95
|
+
}), { urlAddress: v } = x(m), e = t, a = k(() => e.activeData.option.defaultValue);
|
|
96
|
+
function u() {
|
|
97
|
+
if (e.activeData.dataType === "dynamic") {
|
|
98
|
+
e.activeData.option.defaultValue = "";
|
|
99
|
+
const o = e.activeData.propsApi;
|
|
100
|
+
if (!o)
|
|
101
|
+
return;
|
|
102
|
+
J(e.activeData.templateJson), b(o).then((l) => {
|
|
103
|
+
e.activeData.option.defaultValue = l.data, c();
|
|
104
|
+
});
|
|
105
|
+
} else
|
|
106
|
+
c();
|
|
107
|
+
}
|
|
108
|
+
function c() {
|
|
109
|
+
let o = JSON.parse(JSON.stringify(e.activeData.option.urlAddress));
|
|
110
|
+
m.urlAddress = o.replace("${field}", e.activeData.option.defaultValue);
|
|
111
|
+
}
|
|
112
|
+
return g(() => {
|
|
113
|
+
u();
|
|
114
|
+
}), (o, l) => {
|
|
115
|
+
const y = A("el-card");
|
|
116
|
+
return i(), d(y, { class: "portal-card-box" }, T({
|
|
117
|
+
default: p(() => [
|
|
118
|
+
h("div", {
|
|
119
|
+
class: "portal-card-body",
|
|
120
|
+
style: n({ background: t.activeData.option.textBgColor })
|
|
121
|
+
}, [
|
|
122
|
+
(i(), d(V, {
|
|
123
|
+
linkType: t.activeData.option.linkType,
|
|
124
|
+
urlAddress: L(v),
|
|
125
|
+
linkTarget: t.activeData.option.linkTarget,
|
|
126
|
+
type: t.activeData.option.type,
|
|
127
|
+
propertyJson: t.activeData.option.propertyJson,
|
|
128
|
+
key: t.activeData.renderKey
|
|
129
|
+
}, {
|
|
130
|
+
default: p(() => [
|
|
131
|
+
t.activeData.option.styleType == 1 ? (i(), r("div", {
|
|
132
|
+
key: 0,
|
|
133
|
+
class: "text",
|
|
134
|
+
style: n({
|
|
135
|
+
color: t.activeData.option.textFontColor,
|
|
136
|
+
"font-size": t.activeData.option.textFontSize + "px",
|
|
137
|
+
"text-align": t.activeData.option.textLeft,
|
|
138
|
+
"font-weight": t.activeData.option.textFontWeight ? "bolder" : "normal",
|
|
139
|
+
"font-style": t.activeData.option.textFontStyle ? "italic" : "",
|
|
140
|
+
"text-decoration": t.activeData.option.textUnderLine,
|
|
141
|
+
cursor: t.activeData.option.linkType ? "pointer" : ""
|
|
142
|
+
})
|
|
143
|
+
}, [
|
|
144
|
+
t.activeData.option.textAutoplay && a.value ? (i(), r("marquee", {
|
|
145
|
+
style: n({ "text-decoration": t.activeData.option.textUnderLine }),
|
|
146
|
+
key: t.activeData.renderKey,
|
|
147
|
+
direction: t.activeData.option.textAutoplayMode,
|
|
148
|
+
scrollamount: t.activeData.option.textAutoplaySpeed / 10
|
|
149
|
+
}, s(a.value), 13, F)) : (i(), r("span", M, s(a.value), 1))
|
|
150
|
+
], 4)) : (i(), r("div", {
|
|
151
|
+
key: 1,
|
|
152
|
+
class: "text",
|
|
153
|
+
innerHTML: a.value
|
|
154
|
+
}, null, 8, N))
|
|
155
|
+
]),
|
|
156
|
+
_: 1
|
|
157
|
+
}, 8, ["linkType", "urlAddress", "linkTarget", "type", "propertyJson"]))
|
|
158
|
+
], 4)
|
|
159
|
+
]),
|
|
160
|
+
_: 2
|
|
161
|
+
}, [
|
|
162
|
+
t.activeData.title ? {
|
|
163
|
+
name: "header",
|
|
164
|
+
fn: p(() => [
|
|
165
|
+
S(C, {
|
|
166
|
+
title: t.activeData.title,
|
|
167
|
+
card: t.activeData.card
|
|
168
|
+
}, null, 8, ["title", "card"])
|
|
169
|
+
]),
|
|
170
|
+
key: "0"
|
|
171
|
+
} : void 0
|
|
172
|
+
]), 1024);
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
const ye = /* @__PURE__ */ B(R, [["__scopeId", "data-v-0502870c"]]);
|
|
177
|
+
export {
|
|
178
|
+
ye as default
|
|
179
|
+
};
|
|
180
|
+
//# sourceMappingURL=index-a83288bf.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-a83288bf.mjs","sources":["../src/components/VisualPortal/Portal/HText/index.vue"],"sourcesContent":["<template>\r\n <el-card class=\"portal-card-box\">\r\n <template #header v-if=\"activeData.title\">\r\n <CardHeader :title=\"activeData.title\" :card=\"activeData.card\" />\r\n </template>\r\n <div class=\"portal-card-body\" :style=\"{ background: activeData.option.textBgColor }\">\r\n <web-link\r\n :linkType=\"activeData.option.linkType\"\r\n :urlAddress=\"urlAddress\"\r\n :linkTarget=\"activeData.option.linkTarget\"\r\n :type=\"activeData.option.type\"\r\n :propertyJson=\"activeData.option.propertyJson\"\r\n :key=\"activeData.renderKey\">\r\n <div\r\n class=\"text\"\r\n v-if=\"activeData.option.styleType == 1\"\r\n :style=\"{\r\n color: activeData.option.textFontColor,\r\n 'font-size': activeData.option.textFontSize + 'px',\r\n 'text-align': activeData.option.textLeft,\r\n 'font-weight': activeData.option.textFontWeight ? 'bolder' : 'normal',\r\n 'font-style': activeData.option.textFontStyle ? 'italic' : '',\r\n 'text-decoration': activeData.option.textUnderLine,\r\n cursor: activeData.option.linkType ? 'pointer' : '',\r\n }\">\r\n <marquee\r\n :style=\"{ 'text-decoration': activeData.option.textUnderLine }\"\r\n :key=\"activeData.renderKey\"\r\n :direction=\"activeData.option.textAutoplayMode\"\r\n :scrollamount=\"activeData.option.textAutoplaySpeed / 10\"\r\n v-if=\"activeData.option.textAutoplay && getValue\">\r\n {{ getValue }}\r\n </marquee>\r\n <span v-else>{{ getValue }}</span>\r\n </div>\r\n <div class=\"text\" v-else v-html=\"getValue\"></div>\r\n </web-link>\r\n </div>\r\n </el-card>\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import { onMounted, computed, reactive, toRefs } from 'vue';\r\n import CardHeader from '../CardHeader/index.vue';\r\n import webLink from '../Link/index.vue';\r\n import { getDataInterfaceRes } from '@/api/systemData/dataInterface';\r\n import { getParamList } from '@/utils/jnpf';\r\n\r\n interface State {\r\n urlAddress: string;\r\n }\r\n\r\n const state = reactive<State>({\r\n urlAddress: '',\r\n });\r\n const { urlAddress } = toRefs(state);\r\n const props = defineProps(['activeData']);\r\n const getValue = computed(() => props.activeData.option.defaultValue);\r\n\r\n function initData() {\r\n if (props.activeData.dataType === 'dynamic') {\r\n props.activeData.option.defaultValue = '';\r\n const propsApi = props.activeData.propsApi;\r\n if (!propsApi) return;\r\n const query = { paramList: getParamList(props.activeData.templateJson) };\r\n getDataInterfaceRes(propsApi, query).then(res => {\r\n props.activeData.option.defaultValue = res.data;\r\n resolvedURL();\r\n });\r\n } else {\r\n resolvedURL();\r\n }\r\n }\r\n function resolvedURL() {\r\n let urlAddress = JSON.parse(JSON.stringify(props.activeData.option.urlAddress));\r\n state.urlAddress = urlAddress.replace('${field}', props.activeData.option.defaultValue);\r\n }\r\n\r\n onMounted(() => {\r\n initData();\r\n });\r\n</script>\r\n<style lang=\"less\" scoped>\r\n .text {\r\n margin: var(--gp-space-xl);\r\n line-height: 1.5;\r\n }\r\n :deep(.el-card__header) {\r\n padding:0;\r\n }\r\n :deep(.el-card__body) {\r\n padding:0;\r\n }\r\n</style>\r\n"],"names":["state","reactive","urlAddress","toRefs","props","__props","getValue","computed","initData","propsApi","getParamList","getDataInterfaceRes","res","resolvedURL","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDE,UAAMA,IAAQC,EAAgB;AAAA,MAC5B,YAAY;AAAA,IAAA,CACb,GACK,EAAE,YAAAC,EAAA,IAAeC,EAAOH,CAAK,GAC7BI,IAAQC,GACRC,IAAWC,EAAS,MAAMH,EAAM,WAAW,OAAO,YAAY;AAEpE,aAASI,IAAW;AACd,UAAAJ,EAAM,WAAW,aAAa,WAAW;AACrC,QAAAA,EAAA,WAAW,OAAO,eAAe;AACjC,cAAAK,IAAWL,EAAM,WAAW;AAClC,YAAI,CAACK;AAAU;AACD,QAAaC,EAAaN,EAAM,WAAW,YAAY,GACrEO,EAAoBF,CAAe,EAAE,KAAK,CAAOG,MAAA;AACzC,UAAAR,EAAA,WAAW,OAAO,eAAeQ,EAAI,MAC/BC;QAAA,CACb;AAAA,MAAA;AAEW,QAAAA;IAEhB;AACA,aAASA,IAAc;AACjBX,UAAAA,IAAa,KAAK,MAAM,KAAK,UAAUE,EAAM,WAAW,OAAO,UAAU,CAAC;AAC9E,MAAAJ,EAAM,aAAaE,EAAW,QAAQ,YAAYE,EAAM,WAAW,OAAO,YAAY;AAAA,IACxF;AAEA,WAAAU,EAAU,MAAM;AACL,MAAAN;IAAA,CACV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import { defineComponent as P, reactive as Y, ref as g, resolveComponent as x, resolveDirective as ee, openBlock as e, createBlock as E, unref as o, withCtx as C, withDirectives as te, createElementBlock as a, createElementVNode as r, toDisplayString as m, createCommentVNode as _, Fragment as F, renderList as V, createTextVNode as z, createVNode as N, pushScopeId as W, popScopeId as A, onMounted as oe, createSlots as J, mergeProps as ae, normalizeClass as M, normalizeStyle as T } from "vue";
|
|
2
|
+
import { h as re, _ as G, Z as ie, b8 as le, aP as se, b9 as ne } from "./index-5b8b1ba9.mjs";
|
|
3
|
+
import { u as pe } from "./useTable-99fc521a.mjs";
|
|
4
|
+
import "lodash-es";
|
|
5
|
+
import "ant-design-vue";
|
|
6
|
+
import "vue-i18n";
|
|
7
|
+
import "pinia";
|
|
8
|
+
import "crypto-js/aes";
|
|
9
|
+
import "crypto-js/enc-utf8";
|
|
10
|
+
import "crypto-js/pad-pkcs7";
|
|
11
|
+
import "crypto-js/mode-ecb";
|
|
12
|
+
import "crypto-js/md5";
|
|
13
|
+
import "crypto-js/enc-base64";
|
|
14
|
+
import "crypto-js/enc-hex";
|
|
15
|
+
import "dayjs";
|
|
16
|
+
import "@vueuse/core";
|
|
17
|
+
import "vue-router";
|
|
18
|
+
import "axios";
|
|
19
|
+
import "@ant-design/icons-vue";
|
|
20
|
+
import "@ant-design/colors";
|
|
21
|
+
import "@iconify/iconify";
|
|
22
|
+
import "vue-types";
|
|
23
|
+
import "@firefly-plus/icons-vue";
|
|
24
|
+
import "qrcode";
|
|
25
|
+
import "vue-simple-uploader";
|
|
26
|
+
import "spark-md5";
|
|
27
|
+
import "vue-simple-uploader/dist/style.css";
|
|
28
|
+
import "tinymce/tinymce";
|
|
29
|
+
import "tinymce/themes/silver";
|
|
30
|
+
import "tinymce/icons/default/icons";
|
|
31
|
+
import "tinymce/plugins/advlist";
|
|
32
|
+
import "tinymce/plugins/anchor";
|
|
33
|
+
import "tinymce/plugins/autolink";
|
|
34
|
+
import "tinymce/plugins/autosave";
|
|
35
|
+
import "tinymce/plugins/code";
|
|
36
|
+
import "tinymce/plugins/codesample";
|
|
37
|
+
import "tinymce/plugins/directionality";
|
|
38
|
+
import "tinymce/plugins/fullscreen";
|
|
39
|
+
import "tinymce/plugins/hr";
|
|
40
|
+
import "tinymce/plugins/insertdatetime";
|
|
41
|
+
import "tinymce/plugins/link";
|
|
42
|
+
import "tinymce/plugins/lists";
|
|
43
|
+
import "tinymce/plugins/media";
|
|
44
|
+
import "tinymce/plugins/nonbreaking";
|
|
45
|
+
import "tinymce/plugins/noneditable";
|
|
46
|
+
import "tinymce/plugins/pagebreak";
|
|
47
|
+
import "tinymce/plugins/paste";
|
|
48
|
+
import "tinymce/plugins/preview";
|
|
49
|
+
import "tinymce/plugins/print";
|
|
50
|
+
import "tinymce/plugins/save";
|
|
51
|
+
import "tinymce/plugins/searchreplace";
|
|
52
|
+
import "tinymce/plugins/spellchecker";
|
|
53
|
+
import "tinymce/plugins/tabfocus";
|
|
54
|
+
import "tinymce/plugins/table";
|
|
55
|
+
import "tinymce/plugins/template";
|
|
56
|
+
import "tinymce/plugins/textpattern";
|
|
57
|
+
import "tinymce/plugins/visualblocks";
|
|
58
|
+
import "tinymce/plugins/visualchars";
|
|
59
|
+
import "tinymce/plugins/wordcount";
|
|
60
|
+
import "tinymce/plugins/image";
|
|
61
|
+
import "tinymce/plugins/charmap";
|
|
62
|
+
import "tinymce/plugins/imagetools";
|
|
63
|
+
import "tinymce/plugins/help";
|
|
64
|
+
import "tinymce/plugins/quickbars";
|
|
65
|
+
import "tinymce/plugins/importcss";
|
|
66
|
+
import "tinymce/plugins/toc";
|
|
67
|
+
import "tinymce/plugins/emoticons";
|
|
68
|
+
import "sortablejs";
|
|
69
|
+
import "codemirror";
|
|
70
|
+
import "codemirror/theme/idea.css";
|
|
71
|
+
import "codemirror/theme/material-palenight.css";
|
|
72
|
+
import "codemirror/mode/javascript/javascript";
|
|
73
|
+
import "codemirror/mode/css/css";
|
|
74
|
+
import "codemirror/mode/htmlmixed/htmlmixed";
|
|
75
|
+
import "monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
76
|
+
import "monaco-editor/esm/vs/language/css/css.worker?worker";
|
|
77
|
+
import "monaco-editor/esm/vs/language/html/html.worker?worker";
|
|
78
|
+
import "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
|
|
79
|
+
import "monaco-editor/esm/vs/editor/editor.worker?worker";
|
|
80
|
+
import "monaco-editor";
|
|
81
|
+
import "vue-json-pretty";
|
|
82
|
+
import "vue-json-pretty/lib/styles.css";
|
|
83
|
+
import "firefly-plus-components";
|
|
84
|
+
import "vuedraggable";
|
|
85
|
+
import "uuid";
|
|
86
|
+
import "element-plus";
|
|
87
|
+
import "firefly-plus-components/index.css";
|
|
88
|
+
import "element-plus/dist/index.css";
|
|
89
|
+
import "vue-grid-layout";
|
|
90
|
+
const O = (d) => (W("data-v-5c1b92e8"), d = d(), A(), d), ce = { class: "notice-wrapper" }, me = { class: "title" }, de = { class: "info" }, _e = { key: 0 }, ue = { class: "pt-20px pb-10px" }, fe = {
|
|
91
|
+
key: 0,
|
|
92
|
+
class: "pb-8px"
|
|
93
|
+
}, ye = { class: "main" }, ve = ["innerHTML"], he = { key: 0 }, be = /* @__PURE__ */ O(() => /* @__PURE__ */ r("span", { class: "mx-1" }, ":", -1)), ke = ["onClick"], ge = { key: 1 }, xe = /* @__PURE__ */ O(() => /* @__PURE__ */ r("span", { class: "mx-1" }, ":", -1)), we = ["onClick"], De = { key: 2 }, Te = /* @__PURE__ */ O(() => /* @__PURE__ */ r("br", null, null, -1)), Ce = ["href"], Fe = {
|
|
94
|
+
key: 0,
|
|
95
|
+
class: "file-list"
|
|
96
|
+
}, Ne = /* @__PURE__ */ P({
|
|
97
|
+
__name: "Detail",
|
|
98
|
+
setup(d, { expose: b }) {
|
|
99
|
+
const l = Y({
|
|
100
|
+
dataForm: {
|
|
101
|
+
id: "",
|
|
102
|
+
title: "",
|
|
103
|
+
creatorUser: "",
|
|
104
|
+
creatorTime: "",
|
|
105
|
+
bodyText: "",
|
|
106
|
+
files: []
|
|
107
|
+
}
|
|
108
|
+
}), { t: S } = re(), h = g(!1), w = g(!1), D = (s, p) => {
|
|
109
|
+
s && L({ filePath: s, fileName: p });
|
|
110
|
+
};
|
|
111
|
+
function L({ filePath: s, fileName: p }) {
|
|
112
|
+
fetch(s).then((n) => n.blob()).then((n) => {
|
|
113
|
+
const c = document.createElement("a");
|
|
114
|
+
c.href = URL.createObjectURL(n), c.download = p, document.body.appendChild(c), c.click(), window.URL.revokeObjectURL(c.href), document.body.removeChild(c);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function $(s) {
|
|
118
|
+
let p = s;
|
|
119
|
+
if (typeof s == "string" && (p = JSON.parse(s)), s) {
|
|
120
|
+
p.releaseTime = p.createTime;
|
|
121
|
+
let n = p.messageFieldParam;
|
|
122
|
+
typeof n == "string" && (n = JSON.parse(n)), n = n || [], n.forEach((c) => {
|
|
123
|
+
(c.paramName === "附件" || c.paramName === "视频") && Object.prototype.toString.call(c.paramDesc) === "[object String]" && (c.paramDesc = JSON.parse(c.paramDesc));
|
|
124
|
+
}), p.bodyText = n, w.value = !0, l.dataForm = p, l.dataForm.files = [], w.value = !1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function u(s) {
|
|
128
|
+
$(s), h.value = !0;
|
|
129
|
+
}
|
|
130
|
+
return b({ open: u }), (s, p) => {
|
|
131
|
+
const n = x("JnpfUploadFile"), c = x("el-drawer"), R = ee("loading");
|
|
132
|
+
return e(), E(c, {
|
|
133
|
+
modelValue: h.value,
|
|
134
|
+
"onUpdate:modelValue": p[1] || (p[1] = (i) => h.value = i),
|
|
135
|
+
title: o(S)("common.detailText"),
|
|
136
|
+
size: "800px",
|
|
137
|
+
"append-to-body": "",
|
|
138
|
+
class: "notice-drawer"
|
|
139
|
+
}, {
|
|
140
|
+
default: C(() => [
|
|
141
|
+
te((e(), a("div", ce, [
|
|
142
|
+
r("h1", me, m(l.dataForm.title), 1),
|
|
143
|
+
r("div", de, [
|
|
144
|
+
l.dataForm.releaseTime ? (e(), a("span", _e, m(l.dataForm.releaseTime), 1)) : _("", !0),
|
|
145
|
+
r("span", null, m(l.dataForm.releaseUser), 1)
|
|
146
|
+
]),
|
|
147
|
+
r("div", ue, [
|
|
148
|
+
l.dataForm.excerpt ? (e(), a("p", fe, m(l.dataForm.excerpt), 1)) : _("", !0),
|
|
149
|
+
r("div", ye, [
|
|
150
|
+
r("div", {
|
|
151
|
+
style: { "margin-bottom": "20px" },
|
|
152
|
+
innerHTML: l.dataForm.messageContent
|
|
153
|
+
}, null, 8, ve),
|
|
154
|
+
(e(!0), a(F, null, V(l.dataForm.bodyText, (i, I) => (e(), a("p", { key: I }, [
|
|
155
|
+
i.paramName === "视频" ? (e(), a("div", he, [
|
|
156
|
+
r("span", null, m(i.paramName), 1),
|
|
157
|
+
be,
|
|
158
|
+
r("a", {
|
|
159
|
+
class: "file-item",
|
|
160
|
+
onClick: (U) => D(i.paramDesc.value, "视频")
|
|
161
|
+
}, m(i.paramDesc.name), 9, ke)
|
|
162
|
+
])) : i.paramName === "附件" ? (e(), a("div", ge, [
|
|
163
|
+
r("span", null, m(i.paramName), 1),
|
|
164
|
+
xe,
|
|
165
|
+
r("a", {
|
|
166
|
+
class: "file-item",
|
|
167
|
+
onClick: (U) => D(i.paramDesc.value, i.paramDesc.name)
|
|
168
|
+
}, m(i.paramDesc.name), 9, we)
|
|
169
|
+
])) : _("", !0),
|
|
170
|
+
i.paramName !== "视频" && i.paramName !== "附件" ? (e(), a("div", De, [
|
|
171
|
+
r("span", null, m(i.paramName), 1),
|
|
172
|
+
z(" : "),
|
|
173
|
+
r("span", null, m(i.paramDesc), 1)
|
|
174
|
+
])) : _("", !0)
|
|
175
|
+
]))), 128)),
|
|
176
|
+
Te,
|
|
177
|
+
l.dataForm.url ? (e(), a("a", {
|
|
178
|
+
key: 0,
|
|
179
|
+
href: l.dataForm.url,
|
|
180
|
+
target: "_blank",
|
|
181
|
+
style: { color: "#1677ff" },
|
|
182
|
+
rel: "noopener noreferrer"
|
|
183
|
+
}, "查看详情", 8, Ce)) : _("", !0)
|
|
184
|
+
])
|
|
185
|
+
]),
|
|
186
|
+
l.dataForm.files.length ? (e(), a("div", Fe, [
|
|
187
|
+
N(n, {
|
|
188
|
+
value: l.dataForm.files,
|
|
189
|
+
"onUpdate:value": p[0] || (p[0] = (i) => l.dataForm.files = i),
|
|
190
|
+
disabled: "",
|
|
191
|
+
detailed: ""
|
|
192
|
+
}, null, 8, ["value"])
|
|
193
|
+
])) : _("", !0)
|
|
194
|
+
])), [
|
|
195
|
+
[R, w.value]
|
|
196
|
+
])
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}, 8, ["modelValue", "title"]);
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
const Se = /* @__PURE__ */ G(Ne, [["__scopeId", "data-v-5c1b92e8"]]), Z = (d) => (W("data-v-a37eee44"), d = d(), A(), d), Le = ["onClick", "title"], $e = { key: 0 }, Re = { class: "w-full" }, Ie = {
|
|
204
|
+
key: 0,
|
|
205
|
+
class: "left-box flex w-full w-100"
|
|
206
|
+
}, Ue = ["onClick"], je = { class: "right-top-box" }, Ee = /* @__PURE__ */ Z(() => /* @__PURE__ */ r("i", {
|
|
207
|
+
class: "icon-ym icon-ym-generator-time",
|
|
208
|
+
style: { color: "#9c9ea5", "font-size": "12px" }
|
|
209
|
+
}, null, -1)), Ve = {
|
|
210
|
+
key: 1,
|
|
211
|
+
class: "portal-common-noData"
|
|
212
|
+
}, ze = {
|
|
213
|
+
key: 1,
|
|
214
|
+
style: { height: "100%", width: "100%", display: "flex", "justify-content": "center", "align-items": "center" }
|
|
215
|
+
}, Oe = /* @__PURE__ */ Z(() => /* @__PURE__ */ r("p", { style: { "font-size": "14px", "font-weight": "normal", color: "rgb(96, 98, 102)", "margin-top": "20px" } }, "登录后查看数据", -1)), Be = [
|
|
216
|
+
Oe
|
|
217
|
+
], He = /* @__PURE__ */ P({
|
|
218
|
+
__name: "index",
|
|
219
|
+
props: ["activeData"],
|
|
220
|
+
setup(d) {
|
|
221
|
+
const b = d;
|
|
222
|
+
ie();
|
|
223
|
+
const l = g();
|
|
224
|
+
console.log(b.activeData, "----------========");
|
|
225
|
+
const S = g(!0), h = g([]), w = g([
|
|
226
|
+
{
|
|
227
|
+
name: "公告",
|
|
228
|
+
value: "3"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
name: "下载",
|
|
232
|
+
value: "2"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
name: "业务",
|
|
236
|
+
value: "1"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: "系统",
|
|
240
|
+
value: "0"
|
|
241
|
+
}
|
|
242
|
+
]), D = (y) => {
|
|
243
|
+
let f;
|
|
244
|
+
return w.value.forEach((v) => {
|
|
245
|
+
v.value == y.messageType && (f = v.name);
|
|
246
|
+
}), f;
|
|
247
|
+
}, L = (y) => ({
|
|
248
|
+
0: "typeLi",
|
|
249
|
+
1: "typeLi2",
|
|
250
|
+
2: "typeLi3",
|
|
251
|
+
3: "typeLi4"
|
|
252
|
+
})[y.messageType] || "typeLi";
|
|
253
|
+
oe(() => {
|
|
254
|
+
console.log(b.activeData, "===="), localStorage.getItem("Authorization") ? le({
|
|
255
|
+
pageIndex: 1,
|
|
256
|
+
pageSize: 999,
|
|
257
|
+
platformShow: !1,
|
|
258
|
+
messageTypeList: b.activeData.option.rowData[0] ? b.activeData.option.rowData[0].classify.join(",") : ""
|
|
259
|
+
}).then((f) => {
|
|
260
|
+
f.data.forEach((v) => {
|
|
261
|
+
v.creatorTime = v.createTime, v.fullName = v.title;
|
|
262
|
+
}), h.value = f.data;
|
|
263
|
+
}) : S.value = !1;
|
|
264
|
+
});
|
|
265
|
+
const { getTableBindValues: $, getColumns: u, getOption: s, getItemStyle: p, getColumnsStyle: n, tableListRef: c, tableElRef: R, getBorder: i, getHeaderCellStyle: I, getCellStyle: U, handleRowClick: q } = pe(b.activeData);
|
|
266
|
+
function B(y) {
|
|
267
|
+
var f;
|
|
268
|
+
y.status = !0, ne({ id: y.id }), (f = l.value) == null || f.open(y);
|
|
269
|
+
}
|
|
270
|
+
return (y, f) => {
|
|
271
|
+
const v = x("el-table-column"), K = x("el-table"), Q = x("jnpf-empty"), X = x("el-card");
|
|
272
|
+
return e(), a(F, null, [
|
|
273
|
+
N(X, { class: "portal-card-box portal-notice-box" }, J({
|
|
274
|
+
default: C(() => [
|
|
275
|
+
S.value ? (e(), a("div", {
|
|
276
|
+
key: 0,
|
|
277
|
+
class: "portal-card-body portal-card-table !overflow-auto",
|
|
278
|
+
ref_key: "tableListRef",
|
|
279
|
+
ref: c
|
|
280
|
+
}, [
|
|
281
|
+
o(s).styleType == 1 && o(u).length ? (e(), E(K, ae({
|
|
282
|
+
key: 0,
|
|
283
|
+
data: h.value
|
|
284
|
+
}, o($), {
|
|
285
|
+
ref_key: "tableElRef",
|
|
286
|
+
ref: R,
|
|
287
|
+
class: { "custom-table": o(i), "hide-table-header": !o(s).showHeader },
|
|
288
|
+
"header-cell-style": o(I),
|
|
289
|
+
"cell-style": o(U),
|
|
290
|
+
onRowClick: o(q)
|
|
291
|
+
}), {
|
|
292
|
+
default: C(() => [
|
|
293
|
+
(e(!0), a(F, null, V(o(u), (t) => (e(), E(v, {
|
|
294
|
+
key: t.key,
|
|
295
|
+
type: t.type,
|
|
296
|
+
prop: t.type ? void 0 : t.prop,
|
|
297
|
+
label: t.title,
|
|
298
|
+
"min-width": t.minWidth,
|
|
299
|
+
fixed: t.fixed,
|
|
300
|
+
"show-overflow-tooltip": t.ellipsis,
|
|
301
|
+
sortable: t.sortable
|
|
302
|
+
}, J({ _: 2 }, [
|
|
303
|
+
t.key === "fullName" ? {
|
|
304
|
+
name: "default",
|
|
305
|
+
fn: C(({ row: k }) => {
|
|
306
|
+
var j;
|
|
307
|
+
return [
|
|
308
|
+
r("span", {
|
|
309
|
+
class: "title",
|
|
310
|
+
onClick: (H) => B(k),
|
|
311
|
+
title: k[t.key]
|
|
312
|
+
}, [
|
|
313
|
+
(j = o(s).columnData.filter((H) => H.filedName === "classify")[0]) != null && j.show ? (e(), a("span", $e)) : _("", !0),
|
|
314
|
+
z(" " + m(k[t.key]), 1)
|
|
315
|
+
], 8, Le)
|
|
316
|
+
];
|
|
317
|
+
}),
|
|
318
|
+
key: "0"
|
|
319
|
+
} : void 0
|
|
320
|
+
]), 1032, ["type", "prop", "label", "min-width", "fixed", "show-overflow-tooltip", "sortable"]))), 128))
|
|
321
|
+
]),
|
|
322
|
+
_: 1
|
|
323
|
+
}, 16, ["data", "class", "header-cell-style", "cell-style", "onRowClick"])) : (e(), a(F, { key: 1 }, [
|
|
324
|
+
h.value.length ? (e(!0), a(F, { key: 0 }, V(h.value, (t, k) => (e(), a("div", {
|
|
325
|
+
class: M(["item cursor-pointer", { "message_box_left_content_li-read": t.status }]),
|
|
326
|
+
key: k,
|
|
327
|
+
style: T(o(p)(k))
|
|
328
|
+
}, [
|
|
329
|
+
r("div", Re, [
|
|
330
|
+
d.activeData.option.showImage ? (e(), a("div", Ie, [
|
|
331
|
+
r("div", {
|
|
332
|
+
class: M([L(t), "typeLi rounded-full"])
|
|
333
|
+
}, m(D(t) ? D(t) : "--"), 3),
|
|
334
|
+
o(u)[1].show ? (e(), a("span", {
|
|
335
|
+
key: 0,
|
|
336
|
+
class: "title-box truncate",
|
|
337
|
+
style: T(o(n)(1)),
|
|
338
|
+
onClick: (j) => B(t)
|
|
339
|
+
}, m(t.fullName), 13, Ue)) : _("", !0),
|
|
340
|
+
o(u)[3].show && o(s).styleType == 2 ? (e(), a("span", {
|
|
341
|
+
key: 1,
|
|
342
|
+
style: T([{ "min-width": "140px", "line-height": "22px", "margin-left": "8px" }, o(n)(3)])
|
|
343
|
+
}, m(o(u)[3].timeClassify == 1 ? t.creatorTime : t.releaseTime), 5)) : _("", !0),
|
|
344
|
+
o(u)[2].show ? (e(), a("div", {
|
|
345
|
+
key: 2,
|
|
346
|
+
class: "content-box ml-[12px]",
|
|
347
|
+
style: T(o(n)(2))
|
|
348
|
+
}, m(t.excerpt), 5)) : _("", !0)
|
|
349
|
+
])) : _("", !0),
|
|
350
|
+
r("div", je, [
|
|
351
|
+
o(u)[3].show && o(s).styleType == 3 ? (e(), a("div", {
|
|
352
|
+
key: 0,
|
|
353
|
+
class: "pt-4px",
|
|
354
|
+
style: T(o(n)(3))
|
|
355
|
+
}, [
|
|
356
|
+
Ee,
|
|
357
|
+
z(" " + m(o(u)[3].timeClassify == 1 ? t.creatorTime : t.releaseTime), 1)
|
|
358
|
+
], 4)) : _("", !0)
|
|
359
|
+
])
|
|
360
|
+
])
|
|
361
|
+
], 6))), 128)) : (e(), a("div", Ve, [
|
|
362
|
+
N(Q)
|
|
363
|
+
]))
|
|
364
|
+
], 64))
|
|
365
|
+
], 512)) : (e(), a("div", ze, Be))
|
|
366
|
+
]),
|
|
367
|
+
_: 2
|
|
368
|
+
}, [
|
|
369
|
+
d.activeData.title ? {
|
|
370
|
+
name: "header",
|
|
371
|
+
fn: C(() => [
|
|
372
|
+
N(se, {
|
|
373
|
+
title: d.activeData.title,
|
|
374
|
+
card: d.activeData.card
|
|
375
|
+
}, null, 8, ["title", "card"])
|
|
376
|
+
]),
|
|
377
|
+
key: "0"
|
|
378
|
+
} : void 0
|
|
379
|
+
]), 1024),
|
|
380
|
+
N(Se, {
|
|
381
|
+
ref_key: "detailRef",
|
|
382
|
+
ref: l
|
|
383
|
+
}, null, 512)
|
|
384
|
+
], 64);
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
const Do = /* @__PURE__ */ G(He, [["__scopeId", "data-v-a37eee44"]]);
|
|
389
|
+
export {
|
|
390
|
+
Do as default
|
|
391
|
+
};
|
|
392
|
+
//# sourceMappingURL=index-adf15a9e.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-adf15a9e.mjs","sources":["../src/components/VisualPortal/Portal/HNotice/Detail.vue","../src/components/VisualPortal/Portal/HNotice/index.vue"],"sourcesContent":["<template>\r\n <el-drawer\r\n v-model=\"visible\"\r\n :title=\"t('common.detailText')\"\r\n size=\"800px\"\r\n append-to-body\r\n class=\"notice-drawer\">\r\n <div class=\"notice-wrapper\" v-loading=\"loading\">\r\n <h1 class=\"title\">{{ state.dataForm.title }}</h1>\r\n <div class=\"info\">\r\n <span v-if=\"state.dataForm.releaseTime\">{{ state.dataForm.releaseTime }}</span>\r\n <span>{{ state.dataForm.releaseUser }}</span>\r\n </div>\r\n <div class=\"pt-20px pb-10px\">\r\n\r\n <p class=\"pb-8px\" v-if=\"state.dataForm.excerpt\">{{ state.dataForm.excerpt }}</p>\r\n <div class=\"main\">\r\n <div style=\"margin-bottom: 20px;\" v-html=\"state.dataForm.messageContent\"></div>\r\n <p v-for=\"(item, index) in state.dataForm.bodyText\" :key=\"index\">\r\n <div v-if=\"item.paramName === '视频'\">\r\n <span> {{ item.paramName }} </span>\r\n <span class=\"mx-1\">:</span>\r\n <a class=\"file-item\" @click=\"onDownloadFile(item.paramDesc.value, '视频')\">{{ item.paramDesc.name }}</a>\r\n </div>\r\n <div v-else-if=\"item.paramName === '附件'\">\r\n <span> {{ item.paramName }} </span>\r\n <span class=\"mx-1\">:</span>\r\n <a class=\"file-item\" @click=\"onDownloadFile(item.paramDesc.value, item.paramDesc.name)\">{{\r\n item.paramDesc.name\r\n }}\r\n </a>\r\n </div>\r\n <div v-if=\"item.paramName !== '视频' && item.paramName !== '附件'\">\r\n <span >{{ item.paramName }}</span> : <span>{{ item.paramDesc }}</span>\r\n </div>\r\n </p>\r\n <br/>\r\n <a v-if=\"state.dataForm.url\" :href=\"state.dataForm.url\" target=\"_blank\" style=\"color: #1677ff;\" rel=\"noopener noreferrer\">查看详情</a>\r\n </div>\r\n\r\n </div>\r\n <div class=\"file-list\" v-if=\"state.dataForm.files.length\">\r\n <JnpfUploadFile v-model:value=\"state.dataForm.files\" disabled detailed />\r\n </div>\r\n </div>\r\n </el-drawer>\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import { reactive, ref } from 'vue';\r\n import { useI18n } from '@/hooks/web/useI18n';\r\n\r\n interface State {\r\n dataForm: any;\r\n }\r\n\r\n const state = reactive<State>({\r\n dataForm: {\r\n id: '',\r\n title: '',\r\n creatorUser: '',\r\n creatorTime: '',\r\n bodyText: '',\r\n files: [],\r\n },\r\n });\r\n const { t } = useI18n();\r\n const visible = ref(false);\r\n const loading = ref(false);\r\n\r\n const onDownloadFile = (filePath, fileName) => {\r\n if (filePath) {\r\n downloadFile({ filePath, fileName })\r\n }\r\n }\r\n function downloadFile({ filePath, fileName }) {\r\n fetch(filePath)\r\n .then((res) => res.blob())\r\n .then((blob) => {\r\n const link = document.createElement('a')\r\n link.href = URL.createObjectURL(blob)\r\n // 下载文件的名称及文件类型后缀\r\n link.download = fileName\r\n document.body.appendChild(link)\r\n link.click()\r\n //在资源下载完成后 清除 占用的缓存资源\r\n window.URL.revokeObjectURL(link.href)\r\n document.body.removeChild(link)\r\n })\r\n }\r\n function init(data) {\r\n let itemsData = data;\r\n if (typeof data === 'string') {\r\n itemsData = JSON.parse(data);\r\n }\r\n if (data) {\r\n itemsData.releaseTime = itemsData.createTime\r\n let params = itemsData.messageFieldParam;\r\n if (typeof params === 'string') {\r\n params = JSON.parse(params);\r\n }\r\n params = params || [];\r\n params.forEach((item) => {\r\n if (item.paramName === '附件' || item.paramName === '视频') {\r\n if (Object.prototype.toString.call(item.paramDesc) === '[object String]') {\r\n item.paramDesc = JSON.parse(item.paramDesc)\r\n }\r\n }\r\n })\r\n itemsData.bodyText = params\r\n loading.value = true;\r\n state.dataForm = itemsData\r\n state.dataForm.files = [];\r\n loading.value = false;\r\n }\r\n }\r\n function open(data) {\r\n init(data);\r\n visible.value = true;\r\n }\r\n defineExpose({ open });\r\n</script>\r\n<style>\r\n .notice-wrapper .main table{\r\n width: 100% !important;\r\n }\r\n .notice-drawer .el-drawer__body {\r\n padding: 10px 20px 0;\r\n }\r\n</style>\r\n<style lang=\"less\" scoped>\r\n .notice-wrapper {\r\n\r\n .title {\r\n font-size: 18px;\r\n font-weight: normal;\r\n text-align: center;\r\n margin-bottom: 0;\r\n }\r\n .info {\r\n line-height: 35px;\r\n padding-bottom: 10px;\r\n border-bottom: 1px solid @border-color-base1;\r\n text-align: center;\r\n color: @text-color-label;\r\n span {\r\n padding: 0 10px;\r\n }\r\n }\r\n .main {\r\n line-height: 22px;\r\n min-height: 300px;\r\n // max-height: 540px;\r\n overflow: auto;\r\n color: @text-color-label;\r\n }\r\n .file-list {\r\n padding: 10px 0 30px;\r\n border-top: 1px solid @border-color-base1;\r\n }\r\n }\r\n</style>\r\n","<template>\r\n <el-card class=\"portal-card-box portal-notice-box\">\r\n <template #header v-if=\"activeData.title\">\r\n <CardHeader :title=\"activeData.title\" :card=\"activeData.card\" />\r\n </template>\r\n <div class=\"portal-card-body portal-card-table !overflow-auto\" ref=\"tableListRef\" v-if=\"isToken\">\r\n <el-table\r\n :data=\"list\"\r\n v-bind=\"getTableBindValues\"\r\n ref=\"tableElRef\"\r\n :class=\"{ 'custom-table': getBorder, 'hide-table-header': !getOption.showHeader }\"\r\n :header-cell-style=\"getHeaderCellStyle\"\r\n :cell-style=\"getCellStyle\"\r\n v-if=\"getOption.styleType == 1 && getColumns.length\"\r\n @row-click=\"handleRowClick\">\r\n <el-table-column\r\n v-for=\"column in getColumns\"\r\n :key=\"column.key\"\r\n :type=\"column.type\"\r\n :prop=\"column.type ? undefined : column.prop\"\r\n :label=\"column.title\"\r\n :min-width=\"column.minWidth\"\r\n :fixed=\"column.fixed\"\r\n :show-overflow-tooltip=\"column.ellipsis\"\r\n :sortable=\"column.sortable\">\r\n <template v-if=\"column.key === 'fullName'\" #default=\"{ row }\">\r\n <span class=\"title\" @click=\"readInfo(row)\" :title=\"row[column.key]\">\r\n <span v-if=\"getOption.columnData.filter(o => o.filedName === 'classify')[0]?.show\"></span>\r\n {{ row[column.key] }}\r\n </span>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <template v-else>\r\n <template v-if=\"list.length\">\r\n <div class=\"item cursor-pointer\" v-for=\"(item, i) in list\" :key=\"i\" :style=\"getItemStyle(i)\" :class=\"{'message_box_left_content_li-read': item.status}\">\r\n <div class=\"w-full\">\r\n <div class=\"left-box flex w-full w-100\" v-if=\"activeData.option.showImage\">\r\n <div :class=\"getTypeColor(item)\" class=\"typeLi rounded-full\">{{ filterText(item)? filterText(item) : '--' }}</div>\r\n <span class=\"title-box truncate\" v-if=\"getColumns[1].show\" :style=\"getColumnsStyle(1)\" @click=\"readInfo(item)\">\r\n {{ item.fullName }}\r\n </span>\r\n <span v-if=\"getColumns[3].show && getOption.styleType == 2\" style=\"min-width: 140px; line-height: 22px; margin-left: 8px;\" :style=\"getColumnsStyle(3)\">\r\n {{ getColumns[3].timeClassify == 1 ? item.creatorTime : item.releaseTime }}\r\n </span>\r\n <div class=\"content-box ml-[12px]\" v-if=\"getColumns[2].show\" :style=\"getColumnsStyle(2)\">{{ item.excerpt }}</div>\r\n </div>\r\n <div class=\"right-top-box\">\r\n <div class=\"pt-4px\" v-if=\"getColumns[3].show && getOption.styleType == 3\" :style=\"getColumnsStyle(3)\">\r\n <i class=\"icon-ym icon-ym-generator-time\" style=\"color: #9c9ea5; font-size: 12px;\"></i> \r\n {{ getColumns[3].timeClassify == 1 ? item.creatorTime : item.releaseTime }}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n </template>\r\n <div class=\"portal-common-noData\" v-else>\r\n <jnpf-empty />\r\n </div>\r\n </template>\r\n </div>\r\n <div v-else style=\"height: 100%; width: 100%;display: flex; justify-content: center; align-items: center;\">\r\n <p style=\"font-size: 14px;\r\n font-weight: normal;\r\n color: rgb(96, 98, 102); margin-top: 20px;\">登录后查看数据</p>\r\n </div>\r\n </el-card>\r\n <Detail ref=\"detailRef\" />\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import CardHeader from '../CardHeader/index.vue';\r\n import { useTable } from '../../Design/hooks/useTable';\r\n import Detail from './Detail.vue';\r\n import { useGlobSetting } from '@/hooks/setting';\r\n import noticeImg from '@/assets/images/gg.png';\r\n import noticeImg1 from '@/assets/images/tz.png';\r\n import { onMounted ,ref} from 'vue';\r\n import {getNotice, readWeb} from '@/api/newApi/newApi';\r\n const props = defineProps(['activeData']);\r\n const globSetting = useGlobSetting();\r\n const detailRef = ref();\r\n\r\n console.log(props.activeData,'----------========')\r\n const isToken = ref(true)\r\n const list = ref([])\r\n const titleList = ref([\r\n {\r\n name: '公告',\r\n value: '3'\r\n },\r\n {\r\n name: '下载',\r\n value: '2'\r\n },{\r\n name: '业务',\r\n value: '1'\r\n },{\r\n name: '系统',\r\n value: '0'\r\n }\r\n ])\r\n\r\n const filterText = (item) => {\r\n let str\r\n titleList.value.forEach((el: any) => {\r\n if (el.value == item.messageType) {\r\n str = el.name\r\n }\r\n })\r\n return str\r\n }\r\n\r\n const getTypeColor = (item) => {\r\n const map = {\r\n 0: 'typeLi',\r\n 1: 'typeLi2',\r\n 2: 'typeLi3',\r\n 3: 'typeLi4',\r\n }\r\n return map[item.messageType] || 'typeLi'\r\n }\r\n\r\n function getColorBasedOnEmployeeNo(employeeNo: string | number) {\r\n if (!employeeNo) return '#00C5AB'\r\n let employeeNoStr = String(employeeNo)\r\n let num = Number(employeeNoStr[employeeNoStr.length - 1])\r\n if (isNaN(Number(num))) return '#00C5AB'\r\n // 定义颜色数组\r\n const colors = ['#00C5AB', '#823CFC', '#2B67F2', '#F4890F', '#7BC616']\r\n\r\n // 计算索引\r\n const colorIndex = num % 5\r\n\r\n // 返回对应的颜色\r\n return colors[colorIndex]\r\n }\r\n onMounted(()=>{\r\n console.log(props.activeData,'====')\r\n const token = localStorage.getItem('Authorization')\r\n if(!token){\r\n isToken.value = false\r\n }else{\r\n getNotice({\r\n pageIndex:1,\r\n pageSize: 999,\r\n platformShow:false,\r\n messageTypeList: props.activeData.option.rowData[0] ? props.activeData.option.rowData[0].classify.join(',') : ''\r\n }).then((res)=>{\r\n res.data.forEach((item)=>{\r\n item.creatorTime = item.createTime\r\n item.fullName = item.title\r\n })\r\n list.value = res.data\r\n })\r\n }\r\n })\r\n const { getTableBindValues, getColumns, getOption, getItemStyle, getColumnsStyle, tableListRef, tableElRef, getBorder, getHeaderCellStyle, getCellStyle, handleRowClick } = useTable(props.activeData);\r\n function add (){\r\n props.activeData.page.currentPage += 1\r\n // let { list } =\r\n console.log('joins',list.value)\r\n }\r\n function readInfo(item) {\r\n // window.open(item.url,'_blank')\r\n // 调用阅读接口\r\n item.status = true\r\n readWeb({id:item.id})\r\n detailRef.value?.open(item);\r\n }\r\n function getImgUrl(item) {\r\n const defaultImg = item.category === '公告' ? noticeImg : noticeImg1;\r\n return item.coverImage ? globSetting.apiUrl + item.coverImage : defaultImg;\r\n }\r\n function getTypeStyle(category) {\r\n const backgroundColor = category === '公告' ? 'rgba(99,9,244,0.05)' : category === '通知' ? 'rgba(9,63,244,0.05)' : 'rgba(244,135,9,0.05)';\r\n const color = category === '公告' ? '#6309F4' : category === '通知' ? '#093FF4' : '#F48709';\r\n return { backgroundColor, color } as any;\r\n }\r\n \r\n</script>\r\n<style lang=\"less\" scoped>\r\n .portal-notice-box {\r\n \r\n /* Firefox:默认滚动条透明 */\r\n .message_box_left_content_li-read{\r\n opacity: 0.5;\r\n }\r\n .title {\r\n cursor: pointer;\r\n &:hover {\r\n color: @primary-color;\r\n }\r\n }\r\n .item {\r\n display: flex;\r\n padding: 0px 0 var(--gp-space-lg);\r\n margin: 0 0 0px;\r\n // border-bottom: 1px solid @border-color-base1;\r\n .left-box {\r\n width: 100%;\r\n flex-shrink: 0;\r\n padding-left: 0;\r\n padding-right: 0;\r\n .truncate{\r\n margin-left: var(--gp-space-md);\r\n }\r\n // div {\r\n // width: 45px;\r\n // height: 45px;\r\n // border-radius: 50%;\r\n // object-fit: cover;\r\n // text-align: center;\r\n // line-height: 45px;\r\n // }\r\n .typeLi {\r\n box-sizing: border-box;\r\n padding: 0 2px;\r\n // margin-right: 6px;\r\n font-size: 12px;\r\n font-weight: normal;\r\n color: #1677ff;\r\n text-align: center;\r\n background: #e6f4ff;\r\n min-width: 40px;\r\n height: 22px;\r\n line-height: 20px;\r\n /* 辅助色/警告色/Orange-2 */\r\n\r\n /* 样式描述:警告标签的浅底、表单校验“建议修改”的边框底色 */\r\n border: 1px solid #bae0ff;\r\n }\r\n\r\n .typeLi2 {\r\n color: #52c41a;\r\n background: #d7efe8;\r\n border: 1px solid #bce6bf;\r\n }\r\n\r\n .typeLi3 {\r\n color: rgb(148 77 255);\r\n background: rgb(236 233 241);\r\n border: rgb(168 127 230);\r\n }\r\n\r\n .typeLi4 {\r\n color: #fa8c16;\r\n background: #fff7e6;\r\n border: #ffe7ba;\r\n }\r\n\r\n }\r\n .right-top-box {\r\n // margin-top: var(--gp-space-sm);\r\n display: flex;\r\n align-items: center;\r\n // padding: 0 12px;\r\n .type-box {\r\n display: inline-block;\r\n width: 32px;\r\n height: 17px;\r\n font-size: 12px;\r\n border-radius: 2px;\r\n text-align: center;\r\n line-height: 17px;\r\n color: #6309f4;\r\n background: rgba(99, 9, 244, 0.04);\r\n }\r\n .title-box {\r\n flex: 1;\r\n min-width: 0;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n margin: 0 4px;\r\n cursor: pointer;\r\n &:hover {\r\n color: @primary-color!important;\r\n }\r\n }\r\n }\r\n // .right-box {\r\n // background: unset;\r\n // flex: 1;\r\n // padding-left: 10px;\r\n // min-width: 0;\r\n // overflow: hidden;\r\n // text-overflow: ellipsis;\r\n // white-space: nowrap;\r\n\r\n \r\n // .content-box {\r\n // width: 100%;\r\n // overflow: hidden;\r\n // text-overflow: ellipsis;\r\n // white-space: nowrap;\r\n // }\r\n // }\r\n }\r\n }\r\n\r\n.portal-card-table{\r\n scrollbar-color: transparent transparent;\r\n scrollbar-width: thin;\r\n}\r\n/* Chrome、Edge、Safari */\r\n.portal-card-table::-webkit-scrollbar {\r\n width: 3px;\r\n height: 3px;\r\n display: none;\r\n}\r\n.portal-card-table::-webkit-scrollbar-track {\r\n background: transparent;\r\n}\r\n/* 默认滑块透明,看不见 */\r\n.portal-card-table::-webkit-scrollbar-thumb {\r\n background-color: transparent;\r\n border-radius: 3px;\r\n}\r\n\r\n/* hover 显示滚动条 */\r\n.portal-card-table:hover {\r\n scrollbar-color: #c2c2c2 transparent;\r\n}\r\n.portal-card-table:hover::-webkit-scrollbar-thumb {\r\n background-color: #c2c2c2;\r\n}\r\n.portal-card-table:hover::-webkit-scrollbar-thumb:hover {\r\n background-color: #999;\r\n}\r\n</style>\r\n"],"names":["state","reactive","t","useI18n","visible","ref","loading","onDownloadFile","filePath","fileName","downloadFile","res","blob","link","init","data","itemsData","params","item","open","__expose","props","__props","useGlobSetting","detailRef","isToken","list","titleList","filterText","str","el","getTypeColor","onMounted","getNotice","getTableBindValues","getColumns","getOption","getItemStyle","getColumnsStyle","tableListRef","tableElRef","getBorder","getHeaderCellStyle","getCellStyle","handleRowClick","useTable","readInfo","readWeb","_a"],"mappings":"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"}
|