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,223 @@
|
|
|
1
|
+
import { defineComponent as P, ref as v, computed as f, onMounted as R, resolveComponent as m, openBlock as s, createBlock as x, createSlots as V, withCtx as n, createElementVNode as D, normalizeClass as k, createVNode as l, createElementBlock as u, Fragment as w, renderList as J, normalizeStyle as h, toDisplayString as N, createCommentVNode as A } from "vue";
|
|
2
|
+
import { Z as U, aO as B, aP as O, a0 as $, _ as E } 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 j = ["src"], G = /* @__PURE__ */ P({
|
|
90
|
+
__name: "index",
|
|
91
|
+
props: ["activeData"],
|
|
92
|
+
setup(t) {
|
|
93
|
+
const c = t, b = v(), y = v([]), C = U(), d = v(), I = f(() => c.activeData.option.carouselIndicatorPosition == "none" ? "none" : ""), S = f(() => {
|
|
94
|
+
const e = c.activeData.option.carouselIndicatorPosition, o = c.activeData.option.carouselDirection;
|
|
95
|
+
return e == "topLeft" && o == "horizontal";
|
|
96
|
+
}), T = f(() => {
|
|
97
|
+
const e = c.activeData.option.carouselIndicatorPosition, o = c.activeData.option.carouselDirection;
|
|
98
|
+
return e == "topLeft" && o == "vertical";
|
|
99
|
+
});
|
|
100
|
+
async function z() {
|
|
101
|
+
let e = JSON.parse(JSON.stringify(c.activeData.option.defaultValue));
|
|
102
|
+
for (let o = 0; o < e.length; o++) {
|
|
103
|
+
const r = e[o];
|
|
104
|
+
if (r.dataType == 1 && (r.imageUrl = C.apiUrl + r.imageUrl), r.dataType == 3) {
|
|
105
|
+
const p = await $(r.propsApi);
|
|
106
|
+
r.imageUrl = p != null && p.data ? p.data : [];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
y.value = e;
|
|
110
|
+
}
|
|
111
|
+
return R(() => z()), (e, o) => {
|
|
112
|
+
const r = m("el-carousel-item"), p = m("el-carousel"), _ = m("ArrowLeft"), g = m("el-icon"), L = m("ArrowRight"), F = m("el-card");
|
|
113
|
+
return s(), x(F, { class: "portal-card-box" }, V({
|
|
114
|
+
default: n(() => [
|
|
115
|
+
D("div", {
|
|
116
|
+
class: k(["portal-card-body", { "carousel-arrows-hover": t.activeData.option.carouselArrow == "hover" }])
|
|
117
|
+
}, [
|
|
118
|
+
l(p, {
|
|
119
|
+
ref_key: "carouselRef",
|
|
120
|
+
ref: d,
|
|
121
|
+
class: k(["portal-carousel", {
|
|
122
|
+
"carousel-indicator-top": S.value,
|
|
123
|
+
"carousel-indicator-left": T.value
|
|
124
|
+
}]),
|
|
125
|
+
autoplay: t.activeData.option.carouselAutoplay,
|
|
126
|
+
interval: t.activeData.option.carouselInterval,
|
|
127
|
+
direction: t.activeData.option.carouselDirection,
|
|
128
|
+
"indicator-position": I.value,
|
|
129
|
+
arrow: "never"
|
|
130
|
+
}, {
|
|
131
|
+
default: n(() => [
|
|
132
|
+
(s(!0), u(w, null, J(y.value, (i, a) => (s(), x(r, { key: a }, {
|
|
133
|
+
default: n(() => [
|
|
134
|
+
l(B, {
|
|
135
|
+
class: "web-link",
|
|
136
|
+
linkType: i.linkType,
|
|
137
|
+
urlAddress: i.urlAddress,
|
|
138
|
+
linkTarget: i.linkTarget,
|
|
139
|
+
type: i.type,
|
|
140
|
+
propertyJson: i.propertyJson
|
|
141
|
+
}, {
|
|
142
|
+
default: n(() => [
|
|
143
|
+
(s(), u("img", {
|
|
144
|
+
key: b.value,
|
|
145
|
+
style: h({ "object-fit": t.activeData.option.imageFillStyle }),
|
|
146
|
+
src: i.imageUrl
|
|
147
|
+
}, null, 12, j)),
|
|
148
|
+
i.textDefaultValue ? (s(), u("div", {
|
|
149
|
+
key: 0,
|
|
150
|
+
class: "text-ellipsis bottom-text",
|
|
151
|
+
style: h({
|
|
152
|
+
color: t.activeData.option.textFontColor,
|
|
153
|
+
"font-size": t.activeData.option.textFontSize + "px",
|
|
154
|
+
"text-align": t.activeData.option.textLeft,
|
|
155
|
+
"font-weight": t.activeData.option.textFontWeight ? "bolder" : "normal",
|
|
156
|
+
"font-style": t.activeData.option.textFontStyle ? "italic" : "",
|
|
157
|
+
"text-decoration": t.activeData.option.cardDecoration ? "underline" : "normal",
|
|
158
|
+
background: t.activeData.option.textBgColor,
|
|
159
|
+
padding: t.activeData.option.carouselIndicatorPosition == "bottomRight" && t.activeData.option.carouselDirection == "horizontal" ? "0 10px 15px" : ""
|
|
160
|
+
})
|
|
161
|
+
}, N(i.textDefaultValue), 5)) : A("", !0)
|
|
162
|
+
]),
|
|
163
|
+
_: 2
|
|
164
|
+
}, 1032, ["linkType", "urlAddress", "linkTarget", "type", "propertyJson"])
|
|
165
|
+
]),
|
|
166
|
+
_: 2
|
|
167
|
+
}, 1024))), 128))
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
}, 8, ["autoplay", "interval", "direction", "indicator-position", "class"]),
|
|
171
|
+
t.activeData.option.carouselArrow !== "never" ? (s(), u(w, { key: 0 }, [
|
|
172
|
+
D("div", {
|
|
173
|
+
class: "portal-carousel-arrow arrow-left",
|
|
174
|
+
onClick: o[0] || (o[0] = (i) => {
|
|
175
|
+
var a;
|
|
176
|
+
return (a = d.value) == null ? void 0 : a.prev();
|
|
177
|
+
})
|
|
178
|
+
}, [
|
|
179
|
+
l(g, { size: 25 }, {
|
|
180
|
+
default: n(() => [
|
|
181
|
+
l(_)
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
})
|
|
185
|
+
]),
|
|
186
|
+
D("div", {
|
|
187
|
+
class: "portal-carousel-arrow arrow-right",
|
|
188
|
+
onClick: o[1] || (o[1] = (i) => {
|
|
189
|
+
var a;
|
|
190
|
+
return (a = d.value) == null ? void 0 : a.next();
|
|
191
|
+
})
|
|
192
|
+
}, [
|
|
193
|
+
l(g, { size: 25 }, {
|
|
194
|
+
default: n(() => [
|
|
195
|
+
l(L)
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
})
|
|
199
|
+
])
|
|
200
|
+
], 64)) : A("", !0)
|
|
201
|
+
], 2)
|
|
202
|
+
]),
|
|
203
|
+
_: 2
|
|
204
|
+
}, [
|
|
205
|
+
t.activeData.title ? {
|
|
206
|
+
name: "header",
|
|
207
|
+
fn: n(() => [
|
|
208
|
+
l(O, {
|
|
209
|
+
title: t.activeData.title,
|
|
210
|
+
card: t.activeData.card
|
|
211
|
+
}, null, 8, ["title", "card"])
|
|
212
|
+
]),
|
|
213
|
+
key: "0"
|
|
214
|
+
} : void 0
|
|
215
|
+
]), 1024);
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
const Io = /* @__PURE__ */ E(G, [["__scopeId", "data-v-82188e62"]]);
|
|
220
|
+
export {
|
|
221
|
+
Io as default
|
|
222
|
+
};
|
|
223
|
+
//# sourceMappingURL=index-da857153.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-da857153.mjs","sources":["../src/components/VisualPortal/Portal/HCarousel/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\r\n class=\"portal-card-body\"\r\n :class=\"{ 'carousel-arrows-hover': activeData.option.carouselArrow == 'hover' }\">\r\n <el-carousel\r\n ref=\"carouselRef\"\r\n class=\"portal-carousel\"\r\n :autoplay=\"activeData.option.carouselAutoplay\"\r\n :interval=\"activeData.option.carouselInterval\"\r\n :direction=\"activeData.option.carouselDirection\"\r\n :indicator-position=\"getIndicatorPosition\"\r\n arrow=\"never\"\r\n :class=\"{\r\n 'carousel-indicator-top': getIndicatorTop,\r\n 'carousel-indicator-left': getIndicatorLeft,\r\n }\">\r\n <el-carousel-item v-for=\"(item, index) in list\" :key=\"index\">\r\n <web-link\r\n class=\"web-link\"\r\n :linkType=\"item.linkType\"\r\n :urlAddress=\"item.urlAddress\"\r\n :linkTarget=\"item.linkTarget\"\r\n :type=\"item.type\"\r\n :propertyJson=\"item.propertyJson\">\r\n <img :key=\"key\" :style=\"{ 'object-fit': activeData.option.imageFillStyle }\" :src=\"item.imageUrl\" />\r\n <div\r\n class=\"text-ellipsis bottom-text\"\r\n v-if=\"item.textDefaultValue\"\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.cardDecoration ? 'underline' : 'normal',\r\n background: activeData.option.textBgColor,\r\n padding: activeData.option.carouselIndicatorPosition == 'bottomRight' && activeData.option.carouselDirection == 'horizontal' ? '0 10px 15px' : '',\r\n }\">\r\n {{ item.textDefaultValue }}\r\n </div>\r\n </web-link>\r\n </el-carousel-item>\r\n </el-carousel>\r\n <template v-if=\"activeData.option.carouselArrow !== 'never'\">\r\n <div class=\"portal-carousel-arrow arrow-left\" @click=\"carouselRef?.prev()\">\r\n <el-icon :size=\"25\"><ArrowLeft /></el-icon>\r\n </div>\r\n <div class=\"portal-carousel-arrow arrow-right\" @click=\"carouselRef?.next()\">\r\n <el-icon :size=\"25\"><ArrowRight /></el-icon>\r\n </div>\r\n </template>\r\n </div>\r\n </el-card>\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import { ref, onMounted, computed } 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 { useGlobSetting } from '@/hooks/setting';\r\n\r\n const props = defineProps(['activeData']);\r\n const key = ref<any>();\r\n const list = ref<any[]>([]);\r\n const globSetting = useGlobSetting();\r\n const carouselRef = ref<any>();\r\n\r\n // el-carousel 仅支持底部/外侧指示点,顶部与左侧通过 class 覆盖实现\r\n const getIndicatorPosition = computed(() => {\r\n const position = props.activeData.option.carouselIndicatorPosition;\r\n return position == 'none' ? 'none' : '';\r\n });\r\n\r\n const getIndicatorTop = computed(() => {\r\n const position = props.activeData.option.carouselIndicatorPosition;\r\n const direction = props.activeData.option.carouselDirection;\r\n return position == 'topLeft' && direction == 'horizontal';\r\n });\r\n\r\n const getIndicatorLeft = computed(() => {\r\n const position = props.activeData.option.carouselIndicatorPosition;\r\n const direction = props.activeData.option.carouselDirection;\r\n return position == 'topLeft' && direction == 'vertical';\r\n });\r\n\r\n async function initData() {\r\n let val = JSON.parse(JSON.stringify(props.activeData.option.defaultValue));\r\n for (let i = 0; i < val.length; i++) {\r\n const ele = val[i];\r\n if (ele.dataType == 1) ele.imageUrl = globSetting.apiUrl + ele.imageUrl;\r\n if (ele.dataType == 3) {\r\n const res = await getDataInterfaceRes(ele.propsApi);\r\n ele.imageUrl = res?.data ? res.data : [];\r\n }\r\n }\r\n list.value = val;\r\n }\r\n\r\n onMounted(() => initData());\r\n</script>\r\n<style lang=\"less\" scoped>\r\n .portal-card-body {\r\n position: relative;\r\n height: 100%;\r\n .portal-carousel {\r\n height: 100%;\r\n :deep(.el-carousel__container) {\r\n height: 100%;\r\n }\r\n :deep(.el-carousel__button) {\r\n opacity: 0.3;\r\n }\r\n :deep(.el-carousel__indicator.is-active .el-carousel__button) {\r\n opacity: 1;\r\n }\r\n &.carousel-indicator-top {\r\n :deep(.el-carousel__indicators--horizontal) {\r\n top: 0;\r\n bottom: auto;\r\n transform: translateX(-50%);\r\n }\r\n }\r\n &.carousel-indicator-left {\r\n :deep(.el-carousel__indicators--vertical) {\r\n left: 0;\r\n right: auto;\r\n transform: translateY(-50%);\r\n }\r\n }\r\n }\r\n .web-link {\r\n position: relative;\r\n }\r\n .web-link,\r\n img {\r\n width: 100%;\r\n height: 100%;\r\n }\r\n .bottom-text {\r\n position: absolute;\r\n width: calc(100% - 20px);\r\n height: 30px;\r\n line-height: 30px;\r\n bottom: 0;\r\n font-size: 14px;\r\n background: #000;\r\n color: #fff;\r\n padding: 0 10px;\r\n box-sizing: content-box;\r\n }\r\n }\r\n .carousel-arrows-hover {\r\n .portal-carousel-arrow {\r\n display: none;\r\n }\r\n &:hover {\r\n .portal-carousel-arrow {\r\n display: flex;\r\n }\r\n }\r\n }\r\n .portal-carousel-arrow {\r\n position: absolute;\r\n top: 50%;\r\n transform: translateY(-50%);\r\n z-index: 2;\r\n width: 25px;\r\n height: 25px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n color: #fff;\r\n background-color: rgba(31, 45, 61, 0.11);\r\n border-radius: 50%;\r\n cursor: pointer;\r\n opacity: 0.3;\r\n transition: opacity 0.3s;\r\n &:hover {\r\n opacity: 0.5;\r\n }\r\n &.arrow-left {\r\n left: 10px;\r\n }\r\n &.arrow-right {\r\n right: 10px;\r\n }\r\n }\r\n</style>\r\n"],"names":["props","__props","key","ref","list","globSetting","useGlobSetting","carouselRef","getIndicatorPosition","computed","getIndicatorTop","position","direction","getIndicatorLeft","initData","val","i","ele","res","getDataInterfaceRes","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEE,UAAMA,IAAQC,GACRC,IAAMC,KACNC,IAAOD,EAAW,CAAA,CAAE,GACpBE,IAAcC,KACdC,IAAcJ,KAGdK,IAAuBC,EAAS,MACnBT,EAAM,WAAW,OAAO,6BACtB,SAAS,SAAS,EACtC,GAEKU,IAAkBD,EAAS,MAAM;AAC/B,YAAAE,IAAWX,EAAM,WAAW,OAAO,2BACnCY,IAAYZ,EAAM,WAAW,OAAO;AACnC,aAAAW,KAAY,aAAaC,KAAa;AAAA,IAAA,CAC9C,GAEKC,IAAmBJ,EAAS,MAAM;AAChC,YAAAE,IAAWX,EAAM,WAAW,OAAO,2BACnCY,IAAYZ,EAAM,WAAW,OAAO;AACnC,aAAAW,KAAY,aAAaC,KAAa;AAAA,IAAA,CAC9C;AAED,mBAAeE,IAAW;AACpB,UAAAC,IAAM,KAAK,MAAM,KAAK,UAAUf,EAAM,WAAW,OAAO,YAAY,CAAC;AACzE,eAASgB,IAAI,GAAGA,IAAID,EAAI,QAAQC,KAAK;AAC7B,cAAAC,IAAMF,EAAIC,CAAC;AAEb,YADAC,EAAI,YAAY,MAAOA,EAAA,WAAWZ,EAAY,SAASY,EAAI,WAC3DA,EAAI,YAAY,GAAG;AACrB,gBAAMC,IAAM,MAAMC,EAAoBF,EAAI,QAAQ;AAClD,UAAAA,EAAI,WAAWC,KAAA,QAAAA,EAAK,OAAOA,EAAI,OAAO;QACxC;AAAA,MACF;AACA,MAAAd,EAAK,QAAQW;AAAA,IACf;AAEU,WAAAK,EAAA,MAAMN,GAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { defineComponent as O, resolveComponent as c, openBlock as d, createElementBlock as M, Fragment as S, createVNode as o, unref as t, mergeProps as N, withCtx as a, createTextVNode as u, toDisplayString as p, createBlock as f, createCommentVNode as g } from "vue";
|
|
2
|
+
import { a as A, af as F, b as V, c as $, ag as j, B as v, h as z, as as E, ay as H, az as U, l as L, m as P } from "./index-5b8b1ba9.mjs";
|
|
3
|
+
import { _ as q } from "./Form.vue_vue_type_script_setup_true_lang-ae83b1bb.mjs";
|
|
4
|
+
import { T as G } from "./TableAction-fcabc30c.mjs";
|
|
5
|
+
const Y = /* @__PURE__ */ O({
|
|
6
|
+
__name: "index",
|
|
7
|
+
setup(J) {
|
|
8
|
+
const { createMessage: _ } = P(), { t: s } = z(), b = A(), [y, {}] = F(), [T, { openModal: x }] = V(), C = [
|
|
9
|
+
{
|
|
10
|
+
title: "名称",
|
|
11
|
+
dataIndex: "fullName"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
title: "编码",
|
|
15
|
+
dataIndex: "enCode"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
title: "排序",
|
|
19
|
+
dataIndex: "sortCode",
|
|
20
|
+
width: 70,
|
|
21
|
+
align: "center"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: "是否树",
|
|
25
|
+
dataIndex: "isTree",
|
|
26
|
+
width: 70,
|
|
27
|
+
align: "center"
|
|
28
|
+
}
|
|
29
|
+
], [k, { reload: r }] = $({
|
|
30
|
+
api: E,
|
|
31
|
+
columns: C,
|
|
32
|
+
pagination: !1,
|
|
33
|
+
isTreeTable: !0,
|
|
34
|
+
resizeHeightOffset: -10,
|
|
35
|
+
actionColumn: {
|
|
36
|
+
width: 150,
|
|
37
|
+
title: "操作",
|
|
38
|
+
dataIndex: "action"
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
function m(e = "") {
|
|
42
|
+
x(!0, { id: e });
|
|
43
|
+
}
|
|
44
|
+
function D(e) {
|
|
45
|
+
return e.id === "0" || e.id === "1" ? [] : [
|
|
46
|
+
{
|
|
47
|
+
label: s("common.editText"),
|
|
48
|
+
onClick: m.bind(null, e.id)
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: s("common.delText"),
|
|
52
|
+
color: "error",
|
|
53
|
+
modelConfirm: {
|
|
54
|
+
onOk: h.bind(null, e.id)
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: s("common.exportText"),
|
|
59
|
+
modelConfirm: {
|
|
60
|
+
onOk: w.bind(null, e.id),
|
|
61
|
+
content: "您确定要导出该字典分类, 是否继续?"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
];
|
|
65
|
+
}
|
|
66
|
+
function h(e) {
|
|
67
|
+
H(e).then((n) => {
|
|
68
|
+
_.success(n.msg), b.setDictionaryList(), r();
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function w(e) {
|
|
72
|
+
U(e).then((n) => {
|
|
73
|
+
L({ url: n.data.url });
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return (e, n) => {
|
|
77
|
+
const I = c("a-button"), B = c("jnpf-upload-btn"), R = c("a-tag");
|
|
78
|
+
return d(), M(S, null, [
|
|
79
|
+
o(t(j), N(e.$attrs, {
|
|
80
|
+
onRegister: t(y),
|
|
81
|
+
title: "字典分类管理",
|
|
82
|
+
width: "700px",
|
|
83
|
+
class: "full-drawer",
|
|
84
|
+
"destroy-on-close": ""
|
|
85
|
+
}), {
|
|
86
|
+
default: a(() => [
|
|
87
|
+
o(t(v), { onRegister: t(k) }, {
|
|
88
|
+
tableTitle: a(() => [
|
|
89
|
+
o(I, {
|
|
90
|
+
type: "primary",
|
|
91
|
+
preIcon: "icon-ym icon-ym-btn-add",
|
|
92
|
+
onClick: n[0] || (n[0] = (i) => m())
|
|
93
|
+
}, {
|
|
94
|
+
default: a(() => [
|
|
95
|
+
u(p(t(s)("common.addText")), 1)
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
}),
|
|
99
|
+
o(B, {
|
|
100
|
+
url: "/api/system/DictionaryData/Actions/Import",
|
|
101
|
+
accept: ".bdd",
|
|
102
|
+
onOnSuccess: t(r)
|
|
103
|
+
}, null, 8, ["onOnSuccess"])
|
|
104
|
+
]),
|
|
105
|
+
bodyCell: a(({ column: i, record: l }) => [
|
|
106
|
+
i.key === "isTree" ? (d(), f(R, {
|
|
107
|
+
key: 0,
|
|
108
|
+
color: l.isTree == 1 ? "success" : "error"
|
|
109
|
+
}, {
|
|
110
|
+
default: a(() => [
|
|
111
|
+
u(p(l.isTree == 1 ? "是" : "否"), 1)
|
|
112
|
+
]),
|
|
113
|
+
_: 2
|
|
114
|
+
}, 1032, ["color"])) : g("", !0),
|
|
115
|
+
i.key === "action" ? (d(), f(t(G), {
|
|
116
|
+
key: 1,
|
|
117
|
+
actions: D(l)
|
|
118
|
+
}, null, 8, ["actions"])) : g("", !0)
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
}, 8, ["onRegister"])
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
}, 16, ["onRegister"]),
|
|
125
|
+
o(q, {
|
|
126
|
+
onRegister: t(T),
|
|
127
|
+
onReload: t(r)
|
|
128
|
+
}, null, 8, ["onRegister", "onReload"])
|
|
129
|
+
], 64);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
export {
|
|
134
|
+
Y as _
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=index.vue_vue_type_script_setup_true_lang-0eb8f454.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue_vue_type_script_setup_true_lang-0eb8f454.mjs","sources":["../src/views/systemData/dictionary/components/index.vue"],"sourcesContent":["<template>\r\n <BasicDrawer v-bind=\"$attrs\" @register=\"registerDrawer\" title=\"字典分类管理\" width=\"700px\" class=\"full-drawer\" destroy-on-close>\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=\"/api/system/DictionaryData/Actions/Import\" accept=\".bdd\" @on-success=\"reload\"></jnpf-upload-btn>\r\n </template>\r\n <template #bodyCell=\"{ column, record }\">\r\n <template v-if=\"column.key === 'isTree'\">\r\n <a-tag :color=\"record.isTree == 1 ? 'success' : 'error'\">{{ record.isTree == 1 ? '是' : '否' }}</a-tag>\r\n </template>\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 </BasicDrawer>\r\n <BasicForm @register=\"registerForm\" @reload=\"reload\" />\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import { getDictionaryType, delDictionaryType, exportData } from '@/api/systemData/dictionary';\r\n import BasicForm from './Form.vue';\r\n import { BasicDrawer, useDrawerInner } from '@/components/Drawer';\r\n import { BasicTable, useTable, TableAction, BasicColumn, ActionItem } from '@/components/Table';\r\n import { useModal } from '@/components/Modal';\r\n import { useBaseStore } from '@/store/modules/base';\r\n import { useMessage } from '@/hooks/web/useMessage';\r\n import { useI18n } from '@/hooks/web/useI18n';\r\n import { downloadByUrl } from '@/utils/file/download';\r\n\r\n const { createMessage } = useMessage();\r\n const { t } = useI18n();\r\n const baseStore = useBaseStore();\r\n const [registerDrawer, {}] = useDrawerInner();\r\n const [registerForm, { openModal: openFormModal }] = useModal();\r\n const columns: BasicColumn[] = [\r\n {\r\n title: '名称',\r\n dataIndex: 'fullName',\r\n },\r\n {\r\n title: '编码',\r\n dataIndex: 'enCode',\r\n },\r\n {\r\n title: '排序',\r\n dataIndex: 'sortCode',\r\n width: 70,\r\n align: 'center',\r\n },\r\n {\r\n title: '是否树',\r\n dataIndex: 'isTree',\r\n width: 70,\r\n align: 'center',\r\n },\r\n ];\r\n const [registerTable, { reload }] = useTable({\r\n api: getDictionaryType,\r\n columns,\r\n pagination: false,\r\n isTreeTable: true,\r\n resizeHeightOffset: -10,\r\n actionColumn: {\r\n width: 150,\r\n title: '操作',\r\n dataIndex: 'action',\r\n },\r\n });\r\n\r\n function addOrUpdateHandle(id = '') {\r\n openFormModal(true, { id });\r\n }\r\n function getTableActions(record): ActionItem[] {\r\n if (record.id === '0' || record.id === '1') return [];\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 label: t('common.exportText'),\r\n modelConfirm: {\r\n onOk: handleExport.bind(null, record.id),\r\n content: '您确定要导出该字典分类, 是否继续?',\r\n },\r\n },\r\n ];\r\n }\r\n function handleDelete(id) {\r\n delDictionaryType(id).then(res => {\r\n createMessage.success(res.msg);\r\n baseStore.setDictionaryList();\r\n reload();\r\n });\r\n }\r\n function handleExport(id) {\r\n exportData(id).then(res => {\r\n downloadByUrl({ url: res.data.url });\r\n });\r\n }\r\n</script>\r\n"],"names":["createMessage","useMessage","t","useI18n","baseStore","useBaseStore","registerDrawer","useDrawerInner","registerForm","openFormModal","useModal","columns","registerTable","reload","useTable","getDictionaryType","addOrUpdateHandle","id","getTableActions","record","handleDelete","handleExport","delDictionaryType","res","exportData","downloadByUrl"],"mappings":";;;;;;;AA8BQ,UAAA,EAAE,eAAAA,MAAkBC,KACpB,EAAE,GAAAC,MAAMC,KACRC,IAAYC,KACZ,CAACC,GAAgB,EAAE,IAAIC,EAAe,GACtC,CAACC,GAAc,EAAE,WAAWC,EAAe,CAAA,IAAIC,KAC/CC,IAAyB;AAAA,MAC7B;AAAA,QACE,OAAO;AAAA,QACP,WAAW;AAAA,MACb;AAAA,MACA;AAAA,QACE,OAAO;AAAA,QACP,WAAW;AAAA,MACb;AAAA,MACA;AAAA,QACE,OAAO;AAAA,QACP,WAAW;AAAA,QACX,OAAO;AAAA,QACP,OAAO;AAAA,MACT;AAAA,MACA;AAAA,QACE,OAAO;AAAA,QACP,WAAW;AAAA,QACX,OAAO;AAAA,QACP,OAAO;AAAA,MACT;AAAA,IAAA,GAEI,CAACC,GAAe,EAAE,QAAAC,EAAQ,CAAA,IAAIC,EAAS;AAAA,MAC3C,KAAKC;AAAA,MACL,SAAAJ;AAAA,MACA,YAAY;AAAA,MACZ,aAAa;AAAA,MACb,oBAAoB;AAAA,MACpB,cAAc;AAAA,QACZ,OAAO;AAAA,QACP,OAAO;AAAA,QACP,WAAW;AAAA,MACb;AAAA,IAAA,CACD;AAEQ,aAAAK,EAAkBC,IAAK,IAAI;AACpB,MAAAR,EAAA,IAAM,EAAE,IAAAQ,EAAA,CAAI;AAAA,IAC5B;AACA,aAASC,EAAgBC,GAAsB;AAC7C,aAAIA,EAAO,OAAO,OAAOA,EAAO,OAAO,MAAY,KAC5C;AAAA,QACL;AAAA,UACE,OAAOjB,EAAE,iBAAiB;AAAA,UAC1B,SAASc,EAAkB,KAAK,MAAMG,EAAO,EAAE;AAAA,QACjD;AAAA,QACA;AAAA,UACE,OAAOjB,EAAE,gBAAgB;AAAA,UACzB,OAAO;AAAA,UACP,cAAc;AAAA,YACZ,MAAMkB,EAAa,KAAK,MAAMD,EAAO,EAAE;AAAA,UACzC;AAAA,QACF;AAAA,QACA;AAAA,UACE,OAAOjB,EAAE,mBAAmB;AAAA,UAC5B,cAAc;AAAA,YACZ,MAAMmB,EAAa,KAAK,MAAMF,EAAO,EAAE;AAAA,YACvC,SAAS;AAAA,UACX;AAAA,QACF;AAAA,MAAA;AAAA,IAEJ;AACA,aAASC,EAAaH,GAAI;AACN,MAAAK,EAAAL,CAAE,EAAE,KAAK,CAAOM,MAAA;AAClB,QAAAvB,EAAA,QAAQuB,EAAI,GAAG,GAC7BnB,EAAU,kBAAkB,GACrBS;MAAA,CACR;AAAA,IACH;AACA,aAASQ,EAAaJ,GAAI;AACb,MAAAO,EAAAP,CAAE,EAAE,KAAK,CAAOM,MAAA;AACzB,QAAAE,EAAc,EAAE,KAAKF,EAAI,KAAK,IAAK,CAAA;AAAA,MAAA,CACpC;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { defineComponent as S, computed as I, resolveComponent as m, openBlock as t, createBlock as n, unref as v, withCtx as y, createCommentVNode as i, createElementBlock as $, Fragment as B, createTextVNode as P } from "vue";
|
|
2
|
+
import { c as x, B as L, h as j, m as D } from "./index-5b8b1ba9.mjs";
|
|
3
|
+
const R = /* @__PURE__ */ S({
|
|
4
|
+
__name: "index",
|
|
5
|
+
props: {
|
|
6
|
+
list: { type: Array, default: () => [] },
|
|
7
|
+
activeStep: { type: Number, default: 0 },
|
|
8
|
+
hasPage: { type: Number, default: 0 },
|
|
9
|
+
sourceDisabled: { type: Boolean, default: !1 },
|
|
10
|
+
fieldTreeData: { type: Array, default: () => [] },
|
|
11
|
+
parameterJson: { type: Array, default: () => [] }
|
|
12
|
+
},
|
|
13
|
+
setup(p) {
|
|
14
|
+
const r = p, { t: h } = j(), { createConfirm: g } = D(), C = [
|
|
15
|
+
{ fullName: "字符串", id: "varchar" },
|
|
16
|
+
{ fullName: "整型", id: "int" },
|
|
17
|
+
{ fullName: "日期时间", id: "datetime" },
|
|
18
|
+
{ fullName: "浮点", id: "decimal" }
|
|
19
|
+
], k = [{ field: "currentPage" }, { field: "pageSize" }, { field: "keyword" }], b = [{ field: "showKey" }, { field: "showValue" }], N = [
|
|
20
|
+
{ title: "参数名", dataIndex: "field" },
|
|
21
|
+
{ title: "类型", dataIndex: "dataType" },
|
|
22
|
+
{ title: "来源", dataIndex: "source" },
|
|
23
|
+
{ title: "参数值", dataIndex: "defaultValue" },
|
|
24
|
+
{ title: "操作", dataIndex: "action", width: 50 }
|
|
25
|
+
], [T] = x({
|
|
26
|
+
columns: N,
|
|
27
|
+
showIndexColumn: !1,
|
|
28
|
+
immediate: !1,
|
|
29
|
+
pagination: !1,
|
|
30
|
+
useSearchForm: !1,
|
|
31
|
+
showTableSetting: !1,
|
|
32
|
+
isCanResizeParent: !0
|
|
33
|
+
}), _ = I(() => {
|
|
34
|
+
const l = [
|
|
35
|
+
{ fullName: "变量", id: 2 },
|
|
36
|
+
{ fullName: "自定义", id: 3 }
|
|
37
|
+
], d = { fullName: "接口参数", id: 1 }, s = { fullName: "分页参数", id: 4 }, c = { fullName: "回显参数", id: 5 };
|
|
38
|
+
return r.hasPage ? [d, r.activeStep == 1 ? s : c, ...l] : [d, ...l];
|
|
39
|
+
});
|
|
40
|
+
function u(l, d, s) {
|
|
41
|
+
s === "source" && (l.defaultValue = ""), r.list[d] = l;
|
|
42
|
+
}
|
|
43
|
+
function V(l) {
|
|
44
|
+
g({
|
|
45
|
+
iconType: "warning",
|
|
46
|
+
title: h("common.tipTitle"),
|
|
47
|
+
content: "此操作删除该数据, 是否继续?",
|
|
48
|
+
onOk: () => {
|
|
49
|
+
r.list.splice(l, 1);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return (l, d) => {
|
|
54
|
+
const s = m("a-input"), c = m("jnpf-select"), w = m("jnpf-tree-select"), U = m("a-button");
|
|
55
|
+
return t(), n(v(L), {
|
|
56
|
+
onRegister: v(T),
|
|
57
|
+
dataSource: p.list
|
|
58
|
+
}, {
|
|
59
|
+
bodyCell: y(({ column: f, record: e, index: o }) => [
|
|
60
|
+
f.key === "field" ? (t(), n(s, {
|
|
61
|
+
key: 0,
|
|
62
|
+
value: e.field,
|
|
63
|
+
"onUpdate:value": (a) => e.field = a,
|
|
64
|
+
placeholder: "请输入",
|
|
65
|
+
allowClear: "",
|
|
66
|
+
onChange: (a) => u(e, o)
|
|
67
|
+
}, null, 8, ["value", "onUpdate:value", "onChange"])) : i("", !0),
|
|
68
|
+
f.key === "dataType" ? (t(), n(c, {
|
|
69
|
+
key: 1,
|
|
70
|
+
value: e.dataType,
|
|
71
|
+
"onUpdate:value": (a) => e.dataType = a,
|
|
72
|
+
options: C,
|
|
73
|
+
placeholder: "请选择",
|
|
74
|
+
onChange: (a) => u(e, o)
|
|
75
|
+
}, null, 8, ["value", "onUpdate:value", "onChange"])) : i("", !0),
|
|
76
|
+
f.key === "source" ? (t(), n(c, {
|
|
77
|
+
key: 2,
|
|
78
|
+
value: e.source,
|
|
79
|
+
"onUpdate:value": (a) => e.source = a,
|
|
80
|
+
options: _.value,
|
|
81
|
+
placeholder: "请选择",
|
|
82
|
+
disabled: p.sourceDisabled,
|
|
83
|
+
onChange: (a) => u(e, o, "source")
|
|
84
|
+
}, null, 8, ["value", "onUpdate:value", "options", "disabled", "onChange"])) : i("", !0),
|
|
85
|
+
f.key === "defaultValue" ? (t(), $(B, { key: 3 }, [
|
|
86
|
+
e.source === 1 || e.source == 4 || e.source == 5 ? (t(), n(c, {
|
|
87
|
+
key: 0,
|
|
88
|
+
value: e.defaultValue,
|
|
89
|
+
"onUpdate:value": (a) => e.defaultValue = a,
|
|
90
|
+
options: e.source === 1 ? p.parameterJson : e.source === 4 ? k : b,
|
|
91
|
+
fieldNames: { label: "field", value: "field" },
|
|
92
|
+
placeholder: "请选择",
|
|
93
|
+
allowClear: "",
|
|
94
|
+
onChange: (a) => u(e, o)
|
|
95
|
+
}, null, 8, ["value", "onUpdate:value", "options", "onChange"])) : e.source === 2 ? (t(), n(w, {
|
|
96
|
+
key: 1,
|
|
97
|
+
value: e.defaultValue,
|
|
98
|
+
"onUpdate:value": (a) => e.defaultValue = a,
|
|
99
|
+
options: p.fieldTreeData,
|
|
100
|
+
placeholder: "请选择",
|
|
101
|
+
lastLevel: "",
|
|
102
|
+
allowClear: "",
|
|
103
|
+
lastLevelKey: "type",
|
|
104
|
+
lastLevelValue: 1,
|
|
105
|
+
onChange: (a) => u(e, o)
|
|
106
|
+
}, null, 8, ["value", "onUpdate:value", "options", "onChange"])) : e.source === 3 ? (t(), n(s, {
|
|
107
|
+
key: 2,
|
|
108
|
+
value: e.defaultValue,
|
|
109
|
+
"onUpdate:value": (a) => e.defaultValue = a,
|
|
110
|
+
placeholder: "请输入",
|
|
111
|
+
allowClear: "",
|
|
112
|
+
onChange: (a) => u(e, o)
|
|
113
|
+
}, null, 8, ["value", "onUpdate:value", "onChange"])) : i("", !0)
|
|
114
|
+
], 64)) : i("", !0),
|
|
115
|
+
f.key === "action" ? (t(), n(U, {
|
|
116
|
+
key: 4,
|
|
117
|
+
class: "action-btn",
|
|
118
|
+
type: "link",
|
|
119
|
+
color: "error",
|
|
120
|
+
onClick: (a) => V(o),
|
|
121
|
+
size: "small"
|
|
122
|
+
}, {
|
|
123
|
+
default: y(() => [
|
|
124
|
+
P("删除")
|
|
125
|
+
]),
|
|
126
|
+
_: 2
|
|
127
|
+
}, 1032, ["onClick"])) : i("", !0)
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 8, ["onRegister", "dataSource"]);
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
export {
|
|
135
|
+
R as _
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=index.vue_vue_type_script_setup_true_lang-10a915e2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue_vue_type_script_setup_true_lang-10a915e2.mjs","sources":["../src/views/systemData/dataInterface/components/parameter/index.vue"],"sourcesContent":["<template>\r\n <BasicTable @register=\"registerTable\" :dataSource=\"list\">\r\n <template #bodyCell=\"{ column, record, index }\">\r\n <template v-if=\"column.key === 'field'\">\r\n <a-input v-model:value=\"record.field\" placeholder=\"请输入\" allowClear @change=\"onTableChange(record, index)\" />\r\n </template>\r\n <template v-if=\"column.key === 'dataType'\">\r\n <jnpf-select v-model:value=\"record.dataType\" :options=\"typeList\" placeholder=\"请选择\" @change=\"onTableChange(record, index)\" />\r\n </template>\r\n <template v-if=\"column.key === 'source'\">\r\n <jnpf-select\r\n v-model:value=\"record.source\"\r\n :options=\"getSourceList\"\r\n placeholder=\"请选择\"\r\n :disabled=\"sourceDisabled\"\r\n @change=\"onTableChange(record, index, 'source')\" />\r\n </template>\r\n <template v-if=\"column.key === 'defaultValue'\">\r\n <jnpf-select\r\n v-if=\"record.source === 1 || record.source == 4 || record.source == 5\"\r\n v-model:value=\"record.defaultValue\"\r\n :options=\"record.source === 1 ? parameterJson : record.source === 4 ? pageParameters : echoParameters\"\r\n :fieldNames=\"{ label: 'field', value: 'field' }\"\r\n placeholder=\"请选择\"\r\n allowClear\r\n @change=\"onTableChange(record, index)\" />\r\n <jnpf-tree-select\r\n v-else-if=\"record.source === 2\"\r\n v-model:value=\"record.defaultValue\"\r\n :options=\"fieldTreeData\"\r\n placeholder=\"请选择\"\r\n lastLevel\r\n allowClear\r\n lastLevelKey=\"type\"\r\n :lastLevelValue=\"1\"\r\n @change=\"onTableChange(record, index)\" />\r\n <a-input v-else-if=\"record.source === 3\" v-model:value=\"record.defaultValue\" placeholder=\"请输入\" allowClear @change=\"onTableChange(record, index)\" />\r\n </template>\r\n <template v-if=\"column.key === 'action'\">\r\n <a-button class=\"action-btn\" type=\"link\" color=\"error\" @click=\"remove(index)\" size=\"small\">删除</a-button>\r\n </template>\r\n </template>\r\n </BasicTable>\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import { computed } from 'vue';\r\n import { BasicTable, useTable, BasicColumn } from '@/components/Table';\r\n import { useMessage } from '@/hooks/web/useMessage';\r\n import { useI18n } from '@/hooks/web/useI18n';\r\n\r\n const props = defineProps({\r\n list: { type: Array as any, default: () => [] },\r\n activeStep: { type: Number, default: 0 },\r\n hasPage: { type: Number, default: 0 },\r\n sourceDisabled: { type: Boolean, default: false },\r\n fieldTreeData: { type: Array, default: () => [] },\r\n parameterJson: { type: Array, default: () => [] },\r\n });\r\n const { t } = useI18n();\r\n const { createConfirm } = useMessage();\r\n const typeList = [\r\n { fullName: '字符串', id: 'varchar' },\r\n { fullName: '整型', id: 'int' },\r\n { fullName: '日期时间', id: 'datetime' },\r\n { fullName: '浮点', id: 'decimal' },\r\n ];\r\n const pageParameters = [{ field: 'currentPage' }, { field: 'pageSize' }, { field: 'keyword' }];\r\n const echoParameters = [{ field: 'showKey' }, { field: 'showValue' }];\r\n\r\n const columns: BasicColumn[] = [\r\n { title: '参数名', dataIndex: 'field' },\r\n { title: '类型', dataIndex: 'dataType' },\r\n { title: '来源', dataIndex: 'source' },\r\n { title: '参数值', dataIndex: 'defaultValue' },\r\n { title: '操作', dataIndex: 'action', width: 50 },\r\n ];\r\n const [registerTable] = useTable({\r\n columns,\r\n showIndexColumn: false,\r\n immediate: false,\r\n pagination: false,\r\n useSearchForm: false,\r\n showTableSetting: false,\r\n isCanResizeParent: true,\r\n });\r\n\r\n const getSourceList = computed(() => {\r\n const list = [\r\n { fullName: '变量', id: 2 },\r\n { fullName: '自定义', id: 3 },\r\n ];\r\n const parameter = { fullName: '接口参数', id: 1 };\r\n const page = { fullName: '分页参数', id: 4 };\r\n const echo = { fullName: '回显参数', id: 5 };\r\n return props.hasPage ? [parameter, props.activeStep == 1 ? page : echo, ...list] : [parameter, ...list];\r\n });\r\n\r\n function onTableChange(item, index, key?) {\r\n if (key === 'source') item.defaultValue = '';\r\n props.list[index] = item;\r\n }\r\n function remove(index) {\r\n createConfirm({\r\n iconType: 'warning',\r\n title: t('common.tipTitle'),\r\n content: '此操作删除该数据, 是否继续?',\r\n onOk: () => {\r\n props.list.splice(index, 1);\r\n },\r\n });\r\n }\r\n</script>\r\n"],"names":["props","__props","t","useI18n","createConfirm","useMessage","typeList","pageParameters","echoParameters","columns","registerTable","useTable","getSourceList","computed","list","parameter","page","echo","onTableChange","item","index","key","remove"],"mappings":";;;;;;;;;;;;;AAkDE,UAAMA,IAAQC,GAQR,EAAE,GAAAC,MAAMC,KACR,EAAE,eAAAC,MAAkBC,KACpBC,IAAW;AAAA,MACf,EAAE,UAAU,OAAO,IAAI,UAAU;AAAA,MACjC,EAAE,UAAU,MAAM,IAAI,MAAM;AAAA,MAC5B,EAAE,UAAU,QAAQ,IAAI,WAAW;AAAA,MACnC,EAAE,UAAU,MAAM,IAAI,UAAU;AAAA,IAAA,GAE5BC,IAAiB,CAAC,EAAE,OAAO,cAAc,GAAG,EAAE,OAAO,cAAc,EAAE,OAAO,UAAW,CAAA,GACvFC,IAAiB,CAAC,EAAE,OAAO,UAAa,GAAA,EAAE,OAAO,YAAA,CAAa,GAE9DC,IAAyB;AAAA,MAC7B,EAAE,OAAO,OAAO,WAAW,QAAQ;AAAA,MACnC,EAAE,OAAO,MAAM,WAAW,WAAW;AAAA,MACrC,EAAE,OAAO,MAAM,WAAW,SAAS;AAAA,MACnC,EAAE,OAAO,OAAO,WAAW,eAAe;AAAA,MAC1C,EAAE,OAAO,MAAM,WAAW,UAAU,OAAO,GAAG;AAAA,IAAA,GAE1C,CAACC,CAAa,IAAIC,EAAS;AAAA,MAC/B,SAAAF;AAAA,MACA,iBAAiB;AAAA,MACjB,WAAW;AAAA,MACX,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,kBAAkB;AAAA,MAClB,mBAAmB;AAAA,IAAA,CACpB,GAEKG,IAAgBC,EAAS,MAAM;AACnC,YAAMC,IAAO;AAAA,QACX,EAAE,UAAU,MAAM,IAAI,EAAE;AAAA,QACxB,EAAE,UAAU,OAAO,IAAI,EAAE;AAAA,MAAA,GAErBC,IAAY,EAAE,UAAU,QAAQ,IAAI,EAAE,GACtCC,IAAO,EAAE,UAAU,QAAQ,IAAI,EAAE,GACjCC,IAAO,EAAE,UAAU,QAAQ,IAAI,EAAE;AACvC,aAAOjB,EAAM,UAAU,CAACe,GAAWf,EAAM,cAAc,IAAIgB,IAAOC,GAAM,GAAGH,CAAI,IAAI,CAACC,GAAW,GAAGD,CAAI;AAAA,IAAA,CACvG;AAEQ,aAAAI,EAAcC,GAAMC,GAAOC,GAAM;AACxC,MAAIA,MAAQ,aAAUF,EAAK,eAAe,KACpCnB,EAAA,KAAKoB,CAAK,IAAID;AAAA,IACtB;AACA,aAASG,EAAOF,GAAO;AACP,MAAAhB,EAAA;AAAA,QACZ,UAAU;AAAA,QACV,OAAOF,EAAE,iBAAiB;AAAA,QAC1B,SAAS;AAAA,QACT,MAAM,MAAM;AACJ,UAAAF,EAAA,KAAK,OAAOoB,GAAO,CAAC;AAAA,QAC5B;AAAA,MAAA,CACD;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|