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,298 @@
|
|
|
1
|
+
import { defineComponent as G, ref as g, unref as o, computed as J, onMounted as W, resolveComponent as b, resolveDirective as X, openBlock as d, createElementBlock as Y, createElementVNode as _, createVNode as r, withCtx as p, createTextVNode as w, toDisplayString as Z, withDirectives as tt, createBlock as f, createCommentVNode as y } from "vue";
|
|
2
|
+
import { M as x, a4 as et, c as T, a5 as ot, a6 as nt, B as k, h as it, a7 as rt, a8 as at, l as lt, a9 as pt, m as mt } from "./index-5b8b1ba9.mjs";
|
|
3
|
+
import { T as st } from "./TableAction-fcabc30c.mjs";
|
|
4
|
+
import dt from "./Form-ca6e92bd.mjs";
|
|
5
|
+
import { _ as ct } from "./index.vue_vue_type_script_setup_true_lang-570dd942.mjs";
|
|
6
|
+
import { _ as ut } from "./Preview.vue_vue_type_script_setup_true_lang-815bfd98.mjs";
|
|
7
|
+
import "lodash-es";
|
|
8
|
+
import "ant-design-vue";
|
|
9
|
+
import "vue-i18n";
|
|
10
|
+
import "pinia";
|
|
11
|
+
import "crypto-js/aes";
|
|
12
|
+
import "crypto-js/enc-utf8";
|
|
13
|
+
import "crypto-js/pad-pkcs7";
|
|
14
|
+
import "crypto-js/mode-ecb";
|
|
15
|
+
import "crypto-js/md5";
|
|
16
|
+
import "crypto-js/enc-base64";
|
|
17
|
+
import "crypto-js/enc-hex";
|
|
18
|
+
import "dayjs";
|
|
19
|
+
import "@vueuse/core";
|
|
20
|
+
import "vue-router";
|
|
21
|
+
import "axios";
|
|
22
|
+
import "@ant-design/icons-vue";
|
|
23
|
+
import "@ant-design/colors";
|
|
24
|
+
import "@iconify/iconify";
|
|
25
|
+
import "vue-types";
|
|
26
|
+
import "@firefly-plus/icons-vue";
|
|
27
|
+
import "qrcode";
|
|
28
|
+
import "vue-simple-uploader";
|
|
29
|
+
import "spark-md5";
|
|
30
|
+
import "vue-simple-uploader/dist/style.css";
|
|
31
|
+
import "tinymce/tinymce";
|
|
32
|
+
import "tinymce/themes/silver";
|
|
33
|
+
import "tinymce/icons/default/icons";
|
|
34
|
+
import "tinymce/plugins/advlist";
|
|
35
|
+
import "tinymce/plugins/anchor";
|
|
36
|
+
import "tinymce/plugins/autolink";
|
|
37
|
+
import "tinymce/plugins/autosave";
|
|
38
|
+
import "tinymce/plugins/code";
|
|
39
|
+
import "tinymce/plugins/codesample";
|
|
40
|
+
import "tinymce/plugins/directionality";
|
|
41
|
+
import "tinymce/plugins/fullscreen";
|
|
42
|
+
import "tinymce/plugins/hr";
|
|
43
|
+
import "tinymce/plugins/insertdatetime";
|
|
44
|
+
import "tinymce/plugins/link";
|
|
45
|
+
import "tinymce/plugins/lists";
|
|
46
|
+
import "tinymce/plugins/media";
|
|
47
|
+
import "tinymce/plugins/nonbreaking";
|
|
48
|
+
import "tinymce/plugins/noneditable";
|
|
49
|
+
import "tinymce/plugins/pagebreak";
|
|
50
|
+
import "tinymce/plugins/paste";
|
|
51
|
+
import "tinymce/plugins/preview";
|
|
52
|
+
import "tinymce/plugins/print";
|
|
53
|
+
import "tinymce/plugins/save";
|
|
54
|
+
import "tinymce/plugins/searchreplace";
|
|
55
|
+
import "tinymce/plugins/spellchecker";
|
|
56
|
+
import "tinymce/plugins/tabfocus";
|
|
57
|
+
import "tinymce/plugins/table";
|
|
58
|
+
import "tinymce/plugins/template";
|
|
59
|
+
import "tinymce/plugins/textpattern";
|
|
60
|
+
import "tinymce/plugins/visualblocks";
|
|
61
|
+
import "tinymce/plugins/visualchars";
|
|
62
|
+
import "tinymce/plugins/wordcount";
|
|
63
|
+
import "tinymce/plugins/image";
|
|
64
|
+
import "tinymce/plugins/charmap";
|
|
65
|
+
import "tinymce/plugins/imagetools";
|
|
66
|
+
import "tinymce/plugins/help";
|
|
67
|
+
import "tinymce/plugins/quickbars";
|
|
68
|
+
import "tinymce/plugins/importcss";
|
|
69
|
+
import "tinymce/plugins/toc";
|
|
70
|
+
import "tinymce/plugins/emoticons";
|
|
71
|
+
import "sortablejs";
|
|
72
|
+
import "codemirror";
|
|
73
|
+
import "codemirror/theme/idea.css";
|
|
74
|
+
import "codemirror/theme/material-palenight.css";
|
|
75
|
+
import "codemirror/mode/javascript/javascript";
|
|
76
|
+
import "codemirror/mode/css/css";
|
|
77
|
+
import "codemirror/mode/htmlmixed/htmlmixed";
|
|
78
|
+
import "monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
79
|
+
import "monaco-editor/esm/vs/language/css/css.worker?worker";
|
|
80
|
+
import "monaco-editor/esm/vs/language/html/html.worker?worker";
|
|
81
|
+
import "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
|
|
82
|
+
import "monaco-editor/esm/vs/editor/editor.worker?worker";
|
|
83
|
+
import "monaco-editor";
|
|
84
|
+
import "vue-json-pretty";
|
|
85
|
+
import "vue-json-pretty/lib/styles.css";
|
|
86
|
+
import "firefly-plus-components";
|
|
87
|
+
import "vuedraggable";
|
|
88
|
+
import "uuid";
|
|
89
|
+
import "element-plus";
|
|
90
|
+
import "firefly-plus-components/index.css";
|
|
91
|
+
import "element-plus/dist/index.css";
|
|
92
|
+
import "vue-grid-layout";
|
|
93
|
+
import "./commonFields-5ff2332b.mjs";
|
|
94
|
+
import "./Form.vue_vue_type_script_setup_true_lang-039f5c88.mjs";
|
|
95
|
+
import "./formValidate-33d5595a.mjs";
|
|
96
|
+
const bt = { class: "jnpf-content-wrapper" }, ft = { class: "jnpf-content-wrapper-center" }, ht = { class: "jnpf-content-wrapper-content" }, ro = /* @__PURE__ */ G({
|
|
97
|
+
name: "systemData-dataModel",
|
|
98
|
+
__name: "index",
|
|
99
|
+
setup(gt) {
|
|
100
|
+
const { createMessage: I } = mt(), { t: a } = it(), [C, { openPopup: v }] = x(), [D, { openDrawer: R }] = et(), [M, { openPopup: P }] = x(), i = g("0"), c = g("MySQL"), S = [
|
|
101
|
+
{ title: "表名", dataIndex: "table", width: 300 },
|
|
102
|
+
{ title: "说明", dataIndex: "tableName" }
|
|
103
|
+
], [L, { reload: m, getForm: N }] = T({
|
|
104
|
+
api: ot,
|
|
105
|
+
columns: S,
|
|
106
|
+
useSearchForm: !0,
|
|
107
|
+
expandRowByClick: !0,
|
|
108
|
+
formConfig: {
|
|
109
|
+
schemas: [
|
|
110
|
+
{
|
|
111
|
+
field: "keyword",
|
|
112
|
+
label: a("common.keyword"),
|
|
113
|
+
component: "Input",
|
|
114
|
+
componentProps: {
|
|
115
|
+
placeholder: a("common.enterKeyword"),
|
|
116
|
+
submitOnPressEnter: !0
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
field: "linkId",
|
|
121
|
+
label: "数据连接",
|
|
122
|
+
component: "Select",
|
|
123
|
+
defaultValue: o(i),
|
|
124
|
+
componentProps: { placeholder: "请选择", allowClear: !1, showSearch: !0, fieldNames: { options: "children" }, onChange: E }
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
actionColumn: {
|
|
129
|
+
width: 150,
|
|
130
|
+
title: "操作",
|
|
131
|
+
dataIndex: "action"
|
|
132
|
+
},
|
|
133
|
+
afterFetch: (e) => e.map((n) => ({
|
|
134
|
+
...n,
|
|
135
|
+
id: n.table + Math.random()
|
|
136
|
+
})),
|
|
137
|
+
onExpand: z
|
|
138
|
+
}), [B] = T({
|
|
139
|
+
columns: [
|
|
140
|
+
{ title: "字段", dataIndex: "field" },
|
|
141
|
+
{ title: "说明", dataIndex: "fieldName" },
|
|
142
|
+
{ title: "类型", dataIndex: "dataType" },
|
|
143
|
+
{ title: "长度", dataIndex: "dataLength" },
|
|
144
|
+
{ title: "允许空", dataIndex: "allowNull", width: 60, align: "center" },
|
|
145
|
+
{ title: "默认值", dataIndex: "defaults" }
|
|
146
|
+
],
|
|
147
|
+
pagination: !1,
|
|
148
|
+
showTableSetting: !1,
|
|
149
|
+
canResize: !1,
|
|
150
|
+
scroll: { x: void 0 }
|
|
151
|
+
}), F = J(() => `/api/system/DataModel/${o(i)}/Actions/Import`);
|
|
152
|
+
function O(e) {
|
|
153
|
+
return [
|
|
154
|
+
{
|
|
155
|
+
label: a("common.editText"),
|
|
156
|
+
onClick: h.bind(null, e.table)
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
label: a("common.delText"),
|
|
160
|
+
color: "error",
|
|
161
|
+
modelConfirm: {
|
|
162
|
+
onOk: j.bind(null, e.table)
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
];
|
|
166
|
+
}
|
|
167
|
+
function A(e) {
|
|
168
|
+
return [
|
|
169
|
+
{
|
|
170
|
+
label: "打开数据",
|
|
171
|
+
onClick: V.bind(null, e.table)
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
label: a("common.exportText"),
|
|
175
|
+
modelConfirm: {
|
|
176
|
+
content: "您确定要导出该表, 是否继续?",
|
|
177
|
+
onOk: $.bind(null, e.table)
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
];
|
|
181
|
+
}
|
|
182
|
+
function E(e, t) {
|
|
183
|
+
i.value = e, c.value = t.dbType, setTimeout(() => {
|
|
184
|
+
m({ page: 1 });
|
|
185
|
+
}, 0);
|
|
186
|
+
}
|
|
187
|
+
function h(e = "") {
|
|
188
|
+
v(!0, {
|
|
189
|
+
table: e,
|
|
190
|
+
linkId: o(i),
|
|
191
|
+
dbType: o(c)
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
function j(e) {
|
|
195
|
+
rt(o(i), e).then((t) => {
|
|
196
|
+
I.success(t.msg), m();
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
function V(e) {
|
|
200
|
+
P(!0, { table: e, linkId: o(i) });
|
|
201
|
+
}
|
|
202
|
+
function $(e) {
|
|
203
|
+
at(o(i), e).then((t) => {
|
|
204
|
+
lt({ url: t.data.url });
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
function U() {
|
|
208
|
+
R(!0);
|
|
209
|
+
}
|
|
210
|
+
async function Q() {
|
|
211
|
+
const t = (await pt()).data.list.filter((n) => n.children && n.children.length);
|
|
212
|
+
t[0] && t[0].children && t[0].children.length && (t[0] = t[0].children[0]), delete t[0].children, c.value = t[0].dbType || "MySQL", N().updateSchema({ field: "linkId", componentProps: { options: t } });
|
|
213
|
+
}
|
|
214
|
+
function z(e, t) {
|
|
215
|
+
var n;
|
|
216
|
+
!e || (n = t.childTable) != null && n.length || (t.childTableLoading = !0, nt(o(i), t.table).then((u) => {
|
|
217
|
+
t.childTableLoading = !1, t.childTable = u.data.list;
|
|
218
|
+
}).catch(() => {
|
|
219
|
+
t.childTableLoading = !1;
|
|
220
|
+
}));
|
|
221
|
+
}
|
|
222
|
+
return W(() => {
|
|
223
|
+
Q();
|
|
224
|
+
}), (e, t) => {
|
|
225
|
+
const n = b("a-button"), u = b("jnpf-upload-btn"), H = b("a-checkbox"), K = X("loading");
|
|
226
|
+
return d(), Y("div", bt, [
|
|
227
|
+
_("div", ft, [
|
|
228
|
+
_("div", ht, [
|
|
229
|
+
r(o(k), { onRegister: o(L) }, {
|
|
230
|
+
tableTitle: p(() => [
|
|
231
|
+
r(n, {
|
|
232
|
+
type: "primary",
|
|
233
|
+
preIcon: "icon-ym icon-ym-btn-add",
|
|
234
|
+
onClick: t[0] || (t[0] = (l) => h())
|
|
235
|
+
}, {
|
|
236
|
+
default: p(() => [
|
|
237
|
+
w(Z(o(a)("common.addText")), 1)
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
}),
|
|
241
|
+
r(u, {
|
|
242
|
+
url: F.value,
|
|
243
|
+
accept: ".bdb",
|
|
244
|
+
onOnSuccess: o(m)
|
|
245
|
+
}, null, 8, ["url", "onOnSuccess"]),
|
|
246
|
+
r(n, {
|
|
247
|
+
type: "link",
|
|
248
|
+
preIcon: "icon-ym icon-ym-btn-common",
|
|
249
|
+
onClick: t[1] || (t[1] = (l) => U())
|
|
250
|
+
}, {
|
|
251
|
+
default: p(() => [
|
|
252
|
+
w("常用字段")
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
})
|
|
256
|
+
]),
|
|
257
|
+
expandedRowRender: p(({ record: l }) => [
|
|
258
|
+
tt((d(), f(o(k), {
|
|
259
|
+
onRegister: o(B),
|
|
260
|
+
"data-source": l.childTable
|
|
261
|
+
}, {
|
|
262
|
+
bodyCell: p(({ column: s, record: q }) => [
|
|
263
|
+
s.key === "allowNull" ? (d(), f(H, {
|
|
264
|
+
key: 0,
|
|
265
|
+
checked: q.allowNull === 1
|
|
266
|
+
}, null, 8, ["checked"])) : y("", !0)
|
|
267
|
+
]),
|
|
268
|
+
_: 2
|
|
269
|
+
}, 1032, ["onRegister", "data-source"])), [
|
|
270
|
+
[K, l.childTableLoading]
|
|
271
|
+
])
|
|
272
|
+
]),
|
|
273
|
+
bodyCell: p(({ column: l, record: s }) => [
|
|
274
|
+
l.key === "action" ? (d(), f(o(st), {
|
|
275
|
+
key: 0,
|
|
276
|
+
stopButtonPropagation: "",
|
|
277
|
+
actions: O(s),
|
|
278
|
+
dropDownActions: A(s)
|
|
279
|
+
}, null, 8, ["actions", "dropDownActions"])) : y("", !0)
|
|
280
|
+
]),
|
|
281
|
+
_: 1
|
|
282
|
+
}, 8, ["onRegister"])
|
|
283
|
+
])
|
|
284
|
+
]),
|
|
285
|
+
r(dt, {
|
|
286
|
+
onRegister: o(C),
|
|
287
|
+
onReload: o(m)
|
|
288
|
+
}, null, 8, ["onRegister", "onReload"]),
|
|
289
|
+
r(ct, { onRegister: o(D) }, null, 8, ["onRegister"]),
|
|
290
|
+
r(ut, { onRegister: o(M) }, null, 8, ["onRegister"])
|
|
291
|
+
]);
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
export {
|
|
296
|
+
ro as default
|
|
297
|
+
};
|
|
298
|
+
//# sourceMappingURL=index-9fc40c89.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-9fc40c89.mjs","sources":["../src/views/systemData/dataModel/index.vue"],"sourcesContent":["<template>\r\n <div class=\"jnpf-content-wrapper\">\r\n <div class=\"jnpf-content-wrapper-center\">\r\n <div class=\"jnpf-content-wrapper-content\">\r\n <BasicTable @register=\"registerTable\">\r\n <template #tableTitle>\r\n <a-button type=\"primary\" preIcon=\"icon-ym icon-ym-btn-add\" @click=\"addOrUpdateHandle()\">{{ t('common.addText') }}</a-button>\r\n <jnpf-upload-btn :url=\"getUploadUrl\" accept=\".bdb\" @on-success=\"reload\"></jnpf-upload-btn>\r\n <a-button type=\"link\" preIcon=\"icon-ym icon-ym-btn-common\" @click=\"handleFieldManage()\">常用字段</a-button>\r\n </template>\r\n <template #expandedRowRender=\"{ record }\">\r\n <BasicTable @register=\"registerSubTable\" v-loading=\"record.childTableLoading\" :data-source=\"record.childTable\">\r\n <template #bodyCell=\"{ column, record }\">\r\n <template v-if=\"column.key === 'allowNull'\">\r\n <a-checkbox :checked=\"record.allowNull === 1\" />\r\n </template>\r\n </template>\r\n </BasicTable>\r\n </template>\r\n <template #bodyCell=\"{ column, record }\">\r\n <template v-if=\"column.key === 'action'\">\r\n <TableAction stopButtonPropagation :actions=\"getTableActions(record)\" :dropDownActions=\"getDropDownActions(record)\" />\r\n </template>\r\n </template>\r\n </BasicTable>\r\n </div>\r\n </div>\r\n <Form @register=\"registerForm\" @reload=\"reload\" />\r\n <FieldList @register=\"registerDrawer\" />\r\n <Preview @register=\"registerPopup\" />\r\n </div>\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import { ref, unref, onMounted, computed } from 'vue';\r\n import { getDataModelList, delDataModel, getDataModelFieldList, exportTable } from '@/api/systemData/dataModel';\r\n import { getDataSourceSelector } from '@/api/systemData/dataSource';\r\n import { BasicTable, useTable, TableAction, BasicColumn, ActionItem } from '@/components/Table';\r\n import { useMessage } from '@/hooks/web/useMessage';\r\n import { useI18n } from '@/hooks/web/useI18n';\r\n import { useDrawer } from '@/components/Drawer';\r\n import { usePopup } from '@/components/Popup';\r\n import Form from './Form.vue';\r\n import FieldList from './components/index.vue';\r\n import Preview from './Preview.vue';\r\n import { downloadByUrl } from '@/utils/file/download';\r\n\r\n defineOptions({ name: 'systemData-dataModel' });\r\n\r\n const { createMessage } = useMessage();\r\n const { t } = useI18n();\r\n const [registerForm, { openPopup: openFormPopup }] = usePopup();\r\n const [registerDrawer, { openDrawer }] = useDrawer();\r\n const [registerPopup, { openPopup: openPreviewPopup }] = usePopup();\r\n const linkId = ref('0');\r\n const dbType = ref('MySQL');\r\n\r\n const columns: BasicColumn[] = [\r\n { title: '表名', dataIndex: 'table', width: 300 },\r\n { title: '说明', dataIndex: 'tableName' },\r\n ];\r\n const [registerTable, { reload, getForm }] = useTable({\r\n api: getDataModelList,\r\n columns,\r\n useSearchForm: true,\r\n expandRowByClick: true,\r\n formConfig: {\r\n schemas: [\r\n {\r\n field: 'keyword',\r\n label: t('common.keyword'),\r\n component: 'Input',\r\n componentProps: {\r\n placeholder: t('common.enterKeyword'),\r\n submitOnPressEnter: true,\r\n },\r\n },\r\n {\r\n field: 'linkId',\r\n label: '数据连接',\r\n component: 'Select',\r\n defaultValue: unref(linkId),\r\n componentProps: { placeholder: '请选择', allowClear: false, showSearch: true, fieldNames: { options: 'children' }, onChange: onLinkIdChange },\r\n },\r\n ],\r\n },\r\n actionColumn: {\r\n width: 150,\r\n title: '操作',\r\n dataIndex: 'action',\r\n },\r\n afterFetch: data => {\r\n const list = data.map(o => ({\r\n ...o,\r\n id: o.table + Math.random(),\r\n }));\r\n return list;\r\n },\r\n onExpand: handleExpand,\r\n });\r\n const [registerSubTable] = useTable({\r\n columns: [\r\n { title: '字段', dataIndex: 'field' },\r\n { title: '说明', dataIndex: 'fieldName' },\r\n { title: '类型', dataIndex: 'dataType' },\r\n { title: '长度', dataIndex: 'dataLength' },\r\n { title: '允许空', dataIndex: 'allowNull', width: 60, align: 'center' },\r\n { title: '默认值', dataIndex: 'defaults' },\r\n ],\r\n pagination: false,\r\n showTableSetting: false,\r\n canResize: false,\r\n scroll: { x: undefined },\r\n });\r\n\r\n const getUploadUrl = computed(() => `/api/system/DataModel/${unref(linkId)}/Actions/Import`);\r\n\r\n function getTableActions(record): ActionItem[] {\r\n return [\r\n {\r\n label: t('common.editText'),\r\n onClick: addOrUpdateHandle.bind(null, record.table),\r\n },\r\n {\r\n label: t('common.delText'),\r\n color: 'error',\r\n modelConfirm: {\r\n onOk: handleDelete.bind(null, record.table),\r\n },\r\n },\r\n ];\r\n }\r\n function getDropDownActions(record): ActionItem[] {\r\n return [\r\n {\r\n label: '打开数据',\r\n onClick: handlePreview.bind(null, record.table),\r\n },\r\n {\r\n label: t('common.exportText'),\r\n modelConfirm: {\r\n content: '您确定要导出该表, 是否继续?',\r\n onOk: handleExport.bind(null, record.table),\r\n },\r\n },\r\n ];\r\n }\r\n function onLinkIdChange(val, item) {\r\n linkId.value = val;\r\n dbType.value = item.dbType;\r\n setTimeout(() => {\r\n reload({ page: 1 });\r\n }, 0);\r\n }\r\n function addOrUpdateHandle(table = '') {\r\n openFormPopup(true, {\r\n table,\r\n linkId: unref(linkId),\r\n dbType: unref(dbType),\r\n });\r\n }\r\n function handleDelete(table) {\r\n delDataModel(unref(linkId), table).then(res => {\r\n createMessage.success(res.msg);\r\n reload();\r\n });\r\n }\r\n function handlePreview(table) {\r\n openPreviewPopup(true, { table, linkId: unref(linkId) });\r\n }\r\n function handleExport(table) {\r\n exportTable(unref(linkId), table).then(res => {\r\n downloadByUrl({ url: res.data.url });\r\n });\r\n }\r\n function handleFieldManage() {\r\n openDrawer(true);\r\n }\r\n async function getOptions() {\r\n const res = await getDataSourceSelector();\r\n const list = res.data.list.filter(o => o.children && o.children.length);\r\n if (list[0] && list[0].children && list[0].children.length) list[0] = list[0].children[0];\r\n delete list[0].children;\r\n dbType.value = list[0].dbType || 'MySQL';\r\n getForm().updateSchema({ field: 'linkId', componentProps: { options: list } });\r\n }\r\n function handleExpand(expanded, record) {\r\n if (!expanded || record.childTable?.length) return;\r\n record.childTableLoading = true;\r\n getDataModelFieldList(unref(linkId), record.table)\r\n .then(res => {\r\n record.childTableLoading = false;\r\n record.childTable = res.data.list;\r\n })\r\n .catch(() => {\r\n record.childTableLoading = false;\r\n });\r\n }\r\n\r\n onMounted(() => {\r\n getOptions();\r\n });\r\n</script>\r\n"],"names":["createMessage","useMessage","t","useI18n","registerForm","openFormPopup","usePopup","registerDrawer","openDrawer","useDrawer","registerPopup","openPreviewPopup","linkId","ref","dbType","columns","registerTable","reload","getForm","useTable","getDataModelList","unref","onLinkIdChange","data","o","handleExpand","registerSubTable","getUploadUrl","computed","getTableActions","record","addOrUpdateHandle","handleDelete","getDropDownActions","handlePreview","handleExport","val","item","table","delDataModel","res","exportTable","downloadByUrl","handleFieldManage","getOptions","list","getDataSourceSelector","expanded","_a","getDataModelFieldList","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A,IAC/E;AACS,aAAApB,EAAasB,GAAUjB,GAAQ;;AAClC,MAAA,CAACiB,MAAYC,IAAAlB,EAAO,eAAP,QAAAkB,EAAmB,WACpClB,EAAO,oBAAoB,IAC3BmB,GAAsB5B,EAAMT,CAAM,GAAGkB,EAAO,KAAK,EAC9C,KAAK,CAAOU,MAAA;AACX,QAAAV,EAAO,oBAAoB,IACpBA,EAAA,aAAaU,EAAI,KAAK;AAAA,MAAA,CAC9B,EACA,MAAM,MAAM;AACX,QAAAV,EAAO,oBAAoB;AAAA,MAAA,CAC5B;AAAA,IACL;AAEA,WAAAoB,EAAU,MAAM;AACH,MAAAN;IAAA,CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { defineComponent as D, onMounted as C, resolveComponent as I, openBlock as s, createElementBlock as M, createElementVNode as d, createVNode as i, unref as o, withCtx as m, createTextVNode as k, toDisplayString as S, createBlock as Y, createCommentVNode as N } from "vue";
|
|
2
|
+
import { a as v, b as B, c as R, ah as H, B as F, h as P, ai as V, m as j } from "./index-5b8b1ba9.mjs";
|
|
3
|
+
import { T as E } from "./TableAction-fcabc30c.mjs";
|
|
4
|
+
import { _ as O } from "./Form.vue_vue_type_script_setup_true_lang-a3d7f865.mjs";
|
|
5
|
+
import "lodash-es";
|
|
6
|
+
import "ant-design-vue";
|
|
7
|
+
import "vue-i18n";
|
|
8
|
+
import "pinia";
|
|
9
|
+
import "crypto-js/aes";
|
|
10
|
+
import "crypto-js/enc-utf8";
|
|
11
|
+
import "crypto-js/pad-pkcs7";
|
|
12
|
+
import "crypto-js/mode-ecb";
|
|
13
|
+
import "crypto-js/md5";
|
|
14
|
+
import "crypto-js/enc-base64";
|
|
15
|
+
import "crypto-js/enc-hex";
|
|
16
|
+
import "dayjs";
|
|
17
|
+
import "@vueuse/core";
|
|
18
|
+
import "vue-router";
|
|
19
|
+
import "axios";
|
|
20
|
+
import "@ant-design/icons-vue";
|
|
21
|
+
import "@ant-design/colors";
|
|
22
|
+
import "@iconify/iconify";
|
|
23
|
+
import "vue-types";
|
|
24
|
+
import "@firefly-plus/icons-vue";
|
|
25
|
+
import "qrcode";
|
|
26
|
+
import "vue-simple-uploader";
|
|
27
|
+
import "spark-md5";
|
|
28
|
+
import "vue-simple-uploader/dist/style.css";
|
|
29
|
+
import "tinymce/tinymce";
|
|
30
|
+
import "tinymce/themes/silver";
|
|
31
|
+
import "tinymce/icons/default/icons";
|
|
32
|
+
import "tinymce/plugins/advlist";
|
|
33
|
+
import "tinymce/plugins/anchor";
|
|
34
|
+
import "tinymce/plugins/autolink";
|
|
35
|
+
import "tinymce/plugins/autosave";
|
|
36
|
+
import "tinymce/plugins/code";
|
|
37
|
+
import "tinymce/plugins/codesample";
|
|
38
|
+
import "tinymce/plugins/directionality";
|
|
39
|
+
import "tinymce/plugins/fullscreen";
|
|
40
|
+
import "tinymce/plugins/hr";
|
|
41
|
+
import "tinymce/plugins/insertdatetime";
|
|
42
|
+
import "tinymce/plugins/link";
|
|
43
|
+
import "tinymce/plugins/lists";
|
|
44
|
+
import "tinymce/plugins/media";
|
|
45
|
+
import "tinymce/plugins/nonbreaking";
|
|
46
|
+
import "tinymce/plugins/noneditable";
|
|
47
|
+
import "tinymce/plugins/pagebreak";
|
|
48
|
+
import "tinymce/plugins/paste";
|
|
49
|
+
import "tinymce/plugins/preview";
|
|
50
|
+
import "tinymce/plugins/print";
|
|
51
|
+
import "tinymce/plugins/save";
|
|
52
|
+
import "tinymce/plugins/searchreplace";
|
|
53
|
+
import "tinymce/plugins/spellchecker";
|
|
54
|
+
import "tinymce/plugins/tabfocus";
|
|
55
|
+
import "tinymce/plugins/table";
|
|
56
|
+
import "tinymce/plugins/template";
|
|
57
|
+
import "tinymce/plugins/textpattern";
|
|
58
|
+
import "tinymce/plugins/visualblocks";
|
|
59
|
+
import "tinymce/plugins/visualchars";
|
|
60
|
+
import "tinymce/plugins/wordcount";
|
|
61
|
+
import "tinymce/plugins/image";
|
|
62
|
+
import "tinymce/plugins/charmap";
|
|
63
|
+
import "tinymce/plugins/imagetools";
|
|
64
|
+
import "tinymce/plugins/help";
|
|
65
|
+
import "tinymce/plugins/quickbars";
|
|
66
|
+
import "tinymce/plugins/importcss";
|
|
67
|
+
import "tinymce/plugins/toc";
|
|
68
|
+
import "tinymce/plugins/emoticons";
|
|
69
|
+
import "sortablejs";
|
|
70
|
+
import "codemirror";
|
|
71
|
+
import "codemirror/theme/idea.css";
|
|
72
|
+
import "codemirror/theme/material-palenight.css";
|
|
73
|
+
import "codemirror/mode/javascript/javascript";
|
|
74
|
+
import "codemirror/mode/css/css";
|
|
75
|
+
import "codemirror/mode/htmlmixed/htmlmixed";
|
|
76
|
+
import "monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
77
|
+
import "monaco-editor/esm/vs/language/css/css.worker?worker";
|
|
78
|
+
import "monaco-editor/esm/vs/language/html/html.worker?worker";
|
|
79
|
+
import "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
|
|
80
|
+
import "monaco-editor/esm/vs/editor/editor.worker?worker";
|
|
81
|
+
import "monaco-editor";
|
|
82
|
+
import "vue-json-pretty";
|
|
83
|
+
import "vue-json-pretty/lib/styles.css";
|
|
84
|
+
import "firefly-plus-components";
|
|
85
|
+
import "vuedraggable";
|
|
86
|
+
import "uuid";
|
|
87
|
+
import "element-plus";
|
|
88
|
+
import "firefly-plus-components/index.css";
|
|
89
|
+
import "element-plus/dist/index.css";
|
|
90
|
+
import "vue-grid-layout";
|
|
91
|
+
const A = { class: "jnpf-content-wrapper" }, L = { class: "jnpf-content-wrapper-center" }, U = { class: "jnpf-content-wrapper-content" }, So = /* @__PURE__ */ D({
|
|
92
|
+
name: "systemData-dataSource",
|
|
93
|
+
__name: "index",
|
|
94
|
+
setup($) {
|
|
95
|
+
const { t: e } = P(), { createMessage: l } = j(), c = v(), u = [
|
|
96
|
+
{ title: "连接名称", dataIndex: "fullName" },
|
|
97
|
+
{ title: "连接驱动", dataIndex: "dbType", width: 150 },
|
|
98
|
+
{ title: "主机地址", dataIndex: "host", width: 200 },
|
|
99
|
+
{ title: "端口", dataIndex: "port", width: 60 },
|
|
100
|
+
{ title: "创建人", dataIndex: "creatorUser", width: 120 },
|
|
101
|
+
{ title: "创建时间", dataIndex: "creatorTime", width: 150, format: "date|YYYY-MM-DD HH:mm:ss" },
|
|
102
|
+
{ title: "最后修改时间", dataIndex: "lastModifyTime", width: 150, format: "date|YYYY-MM-DD HH:mm:ss" },
|
|
103
|
+
{ title: "排序", dataIndex: "sortCode", width: 70 }
|
|
104
|
+
], [f, { openModal: b }] = B(), [h, { reload: p, getForm: y }] = R({
|
|
105
|
+
api: H,
|
|
106
|
+
columns: u,
|
|
107
|
+
useSearchForm: !0,
|
|
108
|
+
formConfig: {
|
|
109
|
+
schemas: [
|
|
110
|
+
{
|
|
111
|
+
field: "keyword",
|
|
112
|
+
label: e("common.keyword"),
|
|
113
|
+
component: "Input",
|
|
114
|
+
componentProps: {
|
|
115
|
+
placeholder: e("common.enterKeyword"),
|
|
116
|
+
submitOnPressEnter: !0
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
field: "dbType",
|
|
121
|
+
label: "连接驱动",
|
|
122
|
+
component: "Select",
|
|
123
|
+
componentProps: {
|
|
124
|
+
placeholder: "请选择",
|
|
125
|
+
fieldNames: { label: "fullName", value: "enCode" }
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
actionColumn: {
|
|
131
|
+
width: 100,
|
|
132
|
+
title: "操作",
|
|
133
|
+
dataIndex: "action"
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
function _(t) {
|
|
137
|
+
return [
|
|
138
|
+
{
|
|
139
|
+
label: e("common.editText"),
|
|
140
|
+
onClick: n.bind(null, t.id)
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: e("common.delText"),
|
|
144
|
+
color: "error",
|
|
145
|
+
modelConfirm: {
|
|
146
|
+
onOk: g.bind(null, t.id)
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
];
|
|
150
|
+
}
|
|
151
|
+
function g(t) {
|
|
152
|
+
V(t).then((r) => {
|
|
153
|
+
l.success(r.msg), p();
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
function n(t = "") {
|
|
157
|
+
b(!0, { id: t });
|
|
158
|
+
}
|
|
159
|
+
async function x() {
|
|
160
|
+
const t = await c.getDictionaryData("dbType");
|
|
161
|
+
y().updateSchema({ field: "dbType", componentProps: { options: t } });
|
|
162
|
+
}
|
|
163
|
+
return C(() => {
|
|
164
|
+
x();
|
|
165
|
+
}), (t, r) => {
|
|
166
|
+
const T = I("a-button");
|
|
167
|
+
return s(), M("div", A, [
|
|
168
|
+
d("div", L, [
|
|
169
|
+
d("div", U, [
|
|
170
|
+
i(o(F), { onRegister: o(h) }, {
|
|
171
|
+
tableTitle: m(() => [
|
|
172
|
+
i(T, {
|
|
173
|
+
type: "primary",
|
|
174
|
+
preIcon: "icon-ym icon-ym-btn-add",
|
|
175
|
+
onClick: r[0] || (r[0] = (a) => n())
|
|
176
|
+
}, {
|
|
177
|
+
default: m(() => [
|
|
178
|
+
k(S(o(e)("common.addText")), 1)
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
})
|
|
182
|
+
]),
|
|
183
|
+
bodyCell: m(({ column: a, record: w }) => [
|
|
184
|
+
a.key === "action" ? (s(), Y(o(E), {
|
|
185
|
+
key: 0,
|
|
186
|
+
actions: _(w)
|
|
187
|
+
}, null, 8, ["actions"])) : N("", !0)
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["onRegister"])
|
|
191
|
+
])
|
|
192
|
+
]),
|
|
193
|
+
i(O, {
|
|
194
|
+
onRegister: o(f),
|
|
195
|
+
onReload: o(p)
|
|
196
|
+
}, null, 8, ["onRegister", "onReload"])
|
|
197
|
+
]);
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
export {
|
|
202
|
+
So as default
|
|
203
|
+
};
|
|
204
|
+
//# sourceMappingURL=index-a57664c9.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-a57664c9.mjs","sources":["../src/views/systemData/dataSource/index.vue"],"sourcesContent":["<template>\r\n <div class=\"jnpf-content-wrapper\">\r\n <div class=\"jnpf-content-wrapper-center\">\r\n <div class=\"jnpf-content-wrapper-content\">\r\n <BasicTable @register=\"registerTable\">\r\n <template #tableTitle>\r\n <a-button type=\"primary\" preIcon=\"icon-ym icon-ym-btn-add\" @click=\"addOrUpdateHandle()\">{{ t('common.addText') }}</a-button>\r\n </template>\r\n <template #bodyCell=\"{ column, record }\">\r\n <template v-if=\"column.key === 'action'\">\r\n <TableAction :actions=\"getTableActions(record)\" />\r\n </template>\r\n </template>\r\n </BasicTable>\r\n </div>\r\n </div>\r\n <Form @register=\"registerForm\" @reload=\"reload\" />\r\n </div>\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import { BasicTable, useTable, TableAction, BasicColumn, ActionItem } from '@/components/Table';\r\n import { useI18n } from '@/hooks/web/useI18n';\r\n import { getDataSourceList, delDataSource } from '@/api/systemData/dataSource';\r\n import { useMessage } from '@/hooks/web/useMessage';\r\n import { useModal } from '@/components/Modal';\r\n import { onMounted } from 'vue';\r\n import { useBaseStore } from '@/store/modules/base';\r\n import Form from './Form.vue';\r\n\r\n defineOptions({ name: 'systemData-dataSource' });\r\n\r\n const { t } = useI18n();\r\n const { createMessage } = useMessage();\r\n const baseStore = useBaseStore();\r\n const columns: BasicColumn[] = [\r\n { title: '连接名称', dataIndex: 'fullName' },\r\n { title: '连接驱动', dataIndex: 'dbType', width: 150 },\r\n { title: '主机地址', dataIndex: 'host', width: 200 },\r\n { title: '端口', dataIndex: 'port', width: 60 },\r\n { title: '创建人', dataIndex: 'creatorUser', width: 120 },\r\n { title: '创建时间', dataIndex: 'creatorTime', width: 150, format: 'date|YYYY-MM-DD HH:mm:ss' },\r\n { title: '最后修改时间', dataIndex: 'lastModifyTime', width: 150, format: 'date|YYYY-MM-DD HH:mm:ss' },\r\n { title: '排序', dataIndex: 'sortCode', width: 70 },\r\n ];\r\n const [registerForm, { openModal: openFormModal }] = useModal();\r\n const [registerTable, { reload, getForm }] = useTable({\r\n api: getDataSourceList,\r\n columns,\r\n useSearchForm: true,\r\n formConfig: {\r\n schemas: [\r\n {\r\n field: 'keyword',\r\n label: t('common.keyword'),\r\n component: 'Input',\r\n componentProps: {\r\n placeholder: t('common.enterKeyword'),\r\n submitOnPressEnter: true,\r\n },\r\n },\r\n {\r\n field: 'dbType',\r\n label: '连接驱动',\r\n component: 'Select',\r\n componentProps: {\r\n placeholder: '请选择',\r\n fieldNames: { label: 'fullName', value: 'enCode' },\r\n },\r\n },\r\n ],\r\n },\r\n actionColumn: {\r\n width: 100,\r\n title: '操作',\r\n dataIndex: 'action',\r\n },\r\n });\r\n\r\n function getTableActions(record): ActionItem[] {\r\n return [\r\n {\r\n label: t('common.editText'),\r\n onClick: addOrUpdateHandle.bind(null, record.id),\r\n },\r\n {\r\n label: t('common.delText'),\r\n color: 'error',\r\n modelConfirm: {\r\n onOk: handleDelete.bind(null, record.id),\r\n },\r\n },\r\n ];\r\n }\r\n function handleDelete(id) {\r\n delDataSource(id).then(res => {\r\n createMessage.success(res.msg);\r\n reload();\r\n });\r\n }\r\n function addOrUpdateHandle(id = '') {\r\n openFormModal(true, { id });\r\n }\r\n async function getDictionaryData() {\r\n const categoryList = (await baseStore.getDictionaryData('dbType')) as any[];\r\n getForm().updateSchema({ field: 'dbType', componentProps: { options: categoryList } });\r\n }\r\n\r\n onMounted(() => {\r\n getDictionaryData();\r\n });\r\n</script>\r\n"],"names":["t","useI18n","createMessage","useMessage","baseStore","useBaseStore","columns","registerForm","openFormModal","useModal","registerTable","reload","getForm","useTable","getDataSourceList","getTableActions","record","addOrUpdateHandle","handleDelete","id","delDataSource","res","getDictionaryData","categoryList","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BQ,UAAA,EAAE,GAAAA,MAAMC,KACR,EAAE,eAAAC,MAAkBC,KACpBC,IAAYC,KACZC,IAAyB;AAAA,MAC7B,EAAE,OAAO,QAAQ,WAAW,WAAW;AAAA,MACvC,EAAE,OAAO,QAAQ,WAAW,UAAU,OAAO,IAAI;AAAA,MACjD,EAAE,OAAO,QAAQ,WAAW,QAAQ,OAAO,IAAI;AAAA,MAC/C,EAAE,OAAO,MAAM,WAAW,QAAQ,OAAO,GAAG;AAAA,MAC5C,EAAE,OAAO,OAAO,WAAW,eAAe,OAAO,IAAI;AAAA,MACrD,EAAE,OAAO,QAAQ,WAAW,eAAe,OAAO,KAAK,QAAQ,2BAA2B;AAAA,MAC1F,EAAE,OAAO,UAAU,WAAW,kBAAkB,OAAO,KAAK,QAAQ,2BAA2B;AAAA,MAC/F,EAAE,OAAO,MAAM,WAAW,YAAY,OAAO,GAAG;AAAA,IAAA,GAE5C,CAACC,GAAc,EAAE,WAAWC,EAAe,CAAA,IAAIC,KAC/C,CAACC,GAAe,EAAE,QAAAC,GAAQ,SAAAC,EAAS,CAAA,IAAIC,EAAS;AAAA,MACpD,KAAKC;AAAA,MACL,SAAAR;AAAA,MACA,eAAe;AAAA,MACf,YAAY;AAAA,QACV,SAAS;AAAA,UACP;AAAA,YACE,OAAO;AAAA,YACP,OAAON,EAAE,gBAAgB;AAAA,YACzB,WAAW;AAAA,YACX,gBAAgB;AAAA,cACd,aAAaA,EAAE,qBAAqB;AAAA,cACpC,oBAAoB;AAAA,YACtB;AAAA,UACF;AAAA,UACA;AAAA,YACE,OAAO;AAAA,YACP,OAAO;AAAA,YACP,WAAW;AAAA,YACX,gBAAgB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