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,95 @@
|
|
|
1
|
+
import { _ as o } from "./Form.vue_vue_type_script_setup_true_lang-039f5c88.mjs";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "./commonFields-5ff2332b.mjs";
|
|
4
|
+
import "./index-5b8b1ba9.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
|
+
import "./formValidate-33d5595a.mjs";
|
|
92
|
+
export {
|
|
93
|
+
o as default
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=Form-b2915cd3.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form-b2915cd3.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { _ as o } from "./Form.vue_vue_type_script_setup_true_lang-1883a047.mjs";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "./index-5b8b1ba9.mjs";
|
|
4
|
+
import "lodash-es";
|
|
5
|
+
import "ant-design-vue";
|
|
6
|
+
import "vue-i18n";
|
|
7
|
+
import "pinia";
|
|
8
|
+
import "crypto-js/aes";
|
|
9
|
+
import "crypto-js/enc-utf8";
|
|
10
|
+
import "crypto-js/pad-pkcs7";
|
|
11
|
+
import "crypto-js/mode-ecb";
|
|
12
|
+
import "crypto-js/md5";
|
|
13
|
+
import "crypto-js/enc-base64";
|
|
14
|
+
import "crypto-js/enc-hex";
|
|
15
|
+
import "dayjs";
|
|
16
|
+
import "@vueuse/core";
|
|
17
|
+
import "vue-router";
|
|
18
|
+
import "axios";
|
|
19
|
+
import "@ant-design/icons-vue";
|
|
20
|
+
import "@ant-design/colors";
|
|
21
|
+
import "@iconify/iconify";
|
|
22
|
+
import "vue-types";
|
|
23
|
+
import "@firefly-plus/icons-vue";
|
|
24
|
+
import "qrcode";
|
|
25
|
+
import "vue-simple-uploader";
|
|
26
|
+
import "spark-md5";
|
|
27
|
+
import "vue-simple-uploader/dist/style.css";
|
|
28
|
+
import "tinymce/tinymce";
|
|
29
|
+
import "tinymce/themes/silver";
|
|
30
|
+
import "tinymce/icons/default/icons";
|
|
31
|
+
import "tinymce/plugins/advlist";
|
|
32
|
+
import "tinymce/plugins/anchor";
|
|
33
|
+
import "tinymce/plugins/autolink";
|
|
34
|
+
import "tinymce/plugins/autosave";
|
|
35
|
+
import "tinymce/plugins/code";
|
|
36
|
+
import "tinymce/plugins/codesample";
|
|
37
|
+
import "tinymce/plugins/directionality";
|
|
38
|
+
import "tinymce/plugins/fullscreen";
|
|
39
|
+
import "tinymce/plugins/hr";
|
|
40
|
+
import "tinymce/plugins/insertdatetime";
|
|
41
|
+
import "tinymce/plugins/link";
|
|
42
|
+
import "tinymce/plugins/lists";
|
|
43
|
+
import "tinymce/plugins/media";
|
|
44
|
+
import "tinymce/plugins/nonbreaking";
|
|
45
|
+
import "tinymce/plugins/noneditable";
|
|
46
|
+
import "tinymce/plugins/pagebreak";
|
|
47
|
+
import "tinymce/plugins/paste";
|
|
48
|
+
import "tinymce/plugins/preview";
|
|
49
|
+
import "tinymce/plugins/print";
|
|
50
|
+
import "tinymce/plugins/save";
|
|
51
|
+
import "tinymce/plugins/searchreplace";
|
|
52
|
+
import "tinymce/plugins/spellchecker";
|
|
53
|
+
import "tinymce/plugins/tabfocus";
|
|
54
|
+
import "tinymce/plugins/table";
|
|
55
|
+
import "tinymce/plugins/template";
|
|
56
|
+
import "tinymce/plugins/textpattern";
|
|
57
|
+
import "tinymce/plugins/visualblocks";
|
|
58
|
+
import "tinymce/plugins/visualchars";
|
|
59
|
+
import "tinymce/plugins/wordcount";
|
|
60
|
+
import "tinymce/plugins/image";
|
|
61
|
+
import "tinymce/plugins/charmap";
|
|
62
|
+
import "tinymce/plugins/imagetools";
|
|
63
|
+
import "tinymce/plugins/help";
|
|
64
|
+
import "tinymce/plugins/quickbars";
|
|
65
|
+
import "tinymce/plugins/importcss";
|
|
66
|
+
import "tinymce/plugins/toc";
|
|
67
|
+
import "tinymce/plugins/emoticons";
|
|
68
|
+
import "sortablejs";
|
|
69
|
+
import "codemirror";
|
|
70
|
+
import "codemirror/theme/idea.css";
|
|
71
|
+
import "codemirror/theme/material-palenight.css";
|
|
72
|
+
import "codemirror/mode/javascript/javascript";
|
|
73
|
+
import "codemirror/mode/css/css";
|
|
74
|
+
import "codemirror/mode/htmlmixed/htmlmixed";
|
|
75
|
+
import "monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
76
|
+
import "monaco-editor/esm/vs/language/css/css.worker?worker";
|
|
77
|
+
import "monaco-editor/esm/vs/language/html/html.worker?worker";
|
|
78
|
+
import "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
|
|
79
|
+
import "monaco-editor/esm/vs/editor/editor.worker?worker";
|
|
80
|
+
import "monaco-editor";
|
|
81
|
+
import "vue-json-pretty";
|
|
82
|
+
import "vue-json-pretty/lib/styles.css";
|
|
83
|
+
import "firefly-plus-components";
|
|
84
|
+
import "vuedraggable";
|
|
85
|
+
import "uuid";
|
|
86
|
+
import "element-plus";
|
|
87
|
+
import "firefly-plus-components/index.css";
|
|
88
|
+
import "element-plus/dist/index.css";
|
|
89
|
+
import "vue-grid-layout";
|
|
90
|
+
export {
|
|
91
|
+
o as default
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=Form-b2ce5535.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form-b2ce5535.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import { defineComponent as re, reactive as de, ref as N, computed as z, unref as c, resolveComponent as y, openBlock as i, createBlock as u, mergeProps as pe, withCtx as f, createElementVNode as I, createVNode as k, createElementBlock as h, Fragment as v, renderList as se, createTextVNode as x, toDisplayString as M, createCommentVNode as s, pushScopeId as me, popScopeId as ue } from "vue";
|
|
2
|
+
import { o as ce, Q as ye, aa as fe, a2 as P, R as he, r as be, a1 as ke, h as _e, ab as ve, ac as ge, ad as Ne, m as xe, _ as we } from "./index-5b8b1ba9.mjs";
|
|
3
|
+
import { g as Te } from "./commonFields-5ff2332b.mjs";
|
|
4
|
+
import { DownOutlined as Ie } from "@ant-design/icons-vue";
|
|
5
|
+
import "@vueuse/core";
|
|
6
|
+
import Le from "sortablejs";
|
|
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 "vue-router";
|
|
20
|
+
import "axios";
|
|
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 "codemirror";
|
|
70
|
+
import "codemirror/theme/idea.css";
|
|
71
|
+
import "codemirror/theme/material-palenight.css";
|
|
72
|
+
import "codemirror/mode/javascript/javascript";
|
|
73
|
+
import "codemirror/mode/css/css";
|
|
74
|
+
import "codemirror/mode/htmlmixed/htmlmixed";
|
|
75
|
+
import "monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
76
|
+
import "monaco-editor/esm/vs/language/css/css.worker?worker";
|
|
77
|
+
import "monaco-editor/esm/vs/language/html/html.worker?worker";
|
|
78
|
+
import "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
|
|
79
|
+
import "monaco-editor/esm/vs/editor/editor.worker?worker";
|
|
80
|
+
import "monaco-editor";
|
|
81
|
+
import "vue-json-pretty";
|
|
82
|
+
import "vue-json-pretty/lib/styles.css";
|
|
83
|
+
import "firefly-plus-components";
|
|
84
|
+
import "vuedraggable";
|
|
85
|
+
import "uuid";
|
|
86
|
+
import "element-plus";
|
|
87
|
+
import "firefly-plus-components/index.css";
|
|
88
|
+
import "element-plus/dist/index.css";
|
|
89
|
+
import "vue-grid-layout";
|
|
90
|
+
const Fe = (w) => (me("data-v-7da318e3"), w = w(), ue(), w), Ke = { class: "m-10px mb-0" }, Ce = { class: "caption" }, Ue = /* @__PURE__ */ Fe(() => /* @__PURE__ */ I("p", { class: "title" }, "字段设置", -1)), $e = {
|
|
91
|
+
key: 0,
|
|
92
|
+
class: "drag-handler icon-ym icon-ym-darg",
|
|
93
|
+
title: "点击拖动"
|
|
94
|
+
}, Se = { key: 1 }, De = /* @__PURE__ */ re({
|
|
95
|
+
__name: "Form",
|
|
96
|
+
emits: ["register", "reload"],
|
|
97
|
+
setup(w, { emit: A }) {
|
|
98
|
+
const B = A, { createMessage: b } = xe(), { t: U } = _e(), R = [
|
|
99
|
+
{ fullName: "字符串", id: "varchar" },
|
|
100
|
+
{ fullName: "整型", id: "int" },
|
|
101
|
+
{ fullName: "日期时间", id: "datetime" },
|
|
102
|
+
{ fullName: "浮点", id: "decimal" },
|
|
103
|
+
{ fullName: "长整型", id: "bigint" },
|
|
104
|
+
{ fullName: "文本", id: "text" }
|
|
105
|
+
], m = de({
|
|
106
|
+
value: {
|
|
107
|
+
table: "",
|
|
108
|
+
tableName: "",
|
|
109
|
+
newTable: ""
|
|
110
|
+
}
|
|
111
|
+
}), L = N(""), $ = N(""), g = N(!1), d = N([]), F = N([]), [O, { setFieldsValue: Z, resetFields: V, validate: q }] = ce({
|
|
112
|
+
baseColProps: { span: 8 },
|
|
113
|
+
labelWidth: 100,
|
|
114
|
+
schemas: [
|
|
115
|
+
{
|
|
116
|
+
field: "newTable",
|
|
117
|
+
label: "表名称",
|
|
118
|
+
component: "Input",
|
|
119
|
+
componentProps: { placeholder: "请输入", maxlength: 50 },
|
|
120
|
+
rules: [
|
|
121
|
+
{ required: !0, trigger: "blur", message: "必填" },
|
|
122
|
+
{ pattern: /(^_([A-Za-z0-9]_?)*$)|(^[A-Za-z](_?[A-Za-z0-9])*_?$)/, message: "请输入正确的表名称", trigger: "blur" }
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
field: "tableName",
|
|
127
|
+
label: "表说明",
|
|
128
|
+
component: "Input",
|
|
129
|
+
componentProps: { placeholder: "请输入", maxlength: 50 },
|
|
130
|
+
rules: [{ required: !0, trigger: "blur", message: "必填" }]
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}), E = z(() => {
|
|
134
|
+
let e = [
|
|
135
|
+
{ title: "拖动", dataIndex: "drag", key: "drag", align: "center", width: 50 },
|
|
136
|
+
{
|
|
137
|
+
width: 50,
|
|
138
|
+
title: "序号",
|
|
139
|
+
align: "center",
|
|
140
|
+
customRender: ({ index: t }) => t + 1
|
|
141
|
+
},
|
|
142
|
+
{ title: "列名", dataIndex: "field", key: "field" },
|
|
143
|
+
{ title: "类型", dataIndex: "dataType", key: "dataType", width: 200 },
|
|
144
|
+
{ title: "长度", dataIndex: "dataLength", key: "dataLength" },
|
|
145
|
+
{ title: "是否主键", dataIndex: "primaryKey", key: "primaryKey", align: "center", width: 80 },
|
|
146
|
+
{ title: "自增长ID", dataIndex: "identity", key: "identity", align: "center", width: 80 },
|
|
147
|
+
{ title: "允许空", dataIndex: "allowNull", key: "allowNull", align: "center", width: 80 },
|
|
148
|
+
{ title: "说明", dataIndex: "fieldName", key: "fieldName" },
|
|
149
|
+
{ title: "操作", dataIndex: "action", key: "action", width: 50 }
|
|
150
|
+
];
|
|
151
|
+
return ["Oracle", "PostgreSQL", "KingbaseES"].includes($.value) && (e = e.filter((t) => t.key != "identity")), e;
|
|
152
|
+
}), [j, { closePopup: Q, changeLoading: K, changeOkLoading: C }] = ye(G), W = z(() => c(m.value.table) ? U("common.editText") : U("common.addText"));
|
|
153
|
+
function G(e) {
|
|
154
|
+
m.value.table = e.table, L.value = e.linkId, $.value = e.dbType, d.value = [], ee(), K(!0), V(), m.value.table ? fe(c(L), m.value.table).then((t) => {
|
|
155
|
+
m.value = t.data.tableInfo, m.value.newTable = m.value.table, Z(m.value);
|
|
156
|
+
let l = t.data.tableFieldList.map((p) => ({
|
|
157
|
+
...p,
|
|
158
|
+
index: P(),
|
|
159
|
+
primaryKey: !!p.primaryKey,
|
|
160
|
+
allowNull: !!p.allowNull,
|
|
161
|
+
identity: !!p.identity
|
|
162
|
+
}));
|
|
163
|
+
g.value = t.data.hasTableData || !1, g.value && (l = l.map((p) => ({ ...p, disabled: !0 }))), d.value = l, K(!1);
|
|
164
|
+
}) : (g.value = !1, m.value.newTable = e.table || "", K(!1)), H();
|
|
165
|
+
}
|
|
166
|
+
function H() {
|
|
167
|
+
const e = document.querySelector(".drag-table .ant-table-tbody");
|
|
168
|
+
Le.create(e, {
|
|
169
|
+
handle: ".drag-handler",
|
|
170
|
+
animation: 150,
|
|
171
|
+
easing: "cubic-bezier(1, 0, 0, 1)",
|
|
172
|
+
onStart: () => {
|
|
173
|
+
},
|
|
174
|
+
// 结束拖动事件
|
|
175
|
+
onEnd: ({ newIndex: t, oldIndex: l }) => {
|
|
176
|
+
J(d.value, l, t);
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
const J = (e, t, l) => {
|
|
181
|
+
const p = e.splice(t, 1)[0];
|
|
182
|
+
e.splice(l, 0, p);
|
|
183
|
+
};
|
|
184
|
+
function X(e) {
|
|
185
|
+
d.value.splice(e, 1);
|
|
186
|
+
}
|
|
187
|
+
function S(e = void 0) {
|
|
188
|
+
const t = P();
|
|
189
|
+
let l = {};
|
|
190
|
+
e ? l = {
|
|
191
|
+
field: e.field,
|
|
192
|
+
dataType: e.dataType,
|
|
193
|
+
dataLength: e.dataLength,
|
|
194
|
+
allowNull: !!e.allowNull,
|
|
195
|
+
fieldName: e.fieldName,
|
|
196
|
+
primaryKey: !1,
|
|
197
|
+
index: t
|
|
198
|
+
} : l = {
|
|
199
|
+
field: "",
|
|
200
|
+
dataType: "varchar",
|
|
201
|
+
dataLength: 50,
|
|
202
|
+
allowNull: !0,
|
|
203
|
+
primaryKey: !1,
|
|
204
|
+
fieldName: "",
|
|
205
|
+
index: t
|
|
206
|
+
}, d.value.push(l);
|
|
207
|
+
}
|
|
208
|
+
function Y(e) {
|
|
209
|
+
e.identity = !1, e.allowNull = !1;
|
|
210
|
+
}
|
|
211
|
+
function ee() {
|
|
212
|
+
Te().then((e) => {
|
|
213
|
+
F.value = e.data.list;
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
function te() {
|
|
217
|
+
let e = !0;
|
|
218
|
+
for (let t = 0; t < d.value.length; t++) {
|
|
219
|
+
const l = d.value[t];
|
|
220
|
+
if (!l.field) {
|
|
221
|
+
b.error(`第${t + 1}行列名不能为空`), e = !1;
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
if (!/(^_([a-zA-Z0-9]_?)*$)|(^[a-zA-Z](_?[a-zA-Z0-9])*_?$)/.test(l.field)) {
|
|
225
|
+
b.error(`第${t + 1}行列名格式错误,请重新输入`), e = !1;
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
if (d.value.filter((T) => T.field == l.field).length > 1) {
|
|
229
|
+
b.error(`第${t + 1}行列名'${l.field}'已重复`), e = !1;
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
if (!l.fieldName) {
|
|
233
|
+
b.error(`第${t + 1}行说明不能为空`), e = !1;
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return e;
|
|
238
|
+
}
|
|
239
|
+
async function ae() {
|
|
240
|
+
const e = await q();
|
|
241
|
+
if (!e)
|
|
242
|
+
return;
|
|
243
|
+
if (!d.value.length)
|
|
244
|
+
return b.error("请至少添加一个字段");
|
|
245
|
+
if (!te())
|
|
246
|
+
return;
|
|
247
|
+
if (!d.value.some((n) => n.primaryKey))
|
|
248
|
+
return b.error("请选择一个字段作为主键");
|
|
249
|
+
C(!0);
|
|
250
|
+
const l = { ...m.value, ...e }, _ = {
|
|
251
|
+
tableFieldList: (g.value ? d.value.filter((n) => !n.disabled) : d.value).map((n) => ({
|
|
252
|
+
...n,
|
|
253
|
+
primaryKey: n.primaryKey ? 1 : 0,
|
|
254
|
+
allowNull: n.allowNull ? 1 : 0,
|
|
255
|
+
identity: n.identity && n.primaryKey ? 1 : 0
|
|
256
|
+
})),
|
|
257
|
+
tableInfo: l
|
|
258
|
+
};
|
|
259
|
+
(g.value ? ve : m.value.table ? ge : Ne)(c(L), _).then((n) => {
|
|
260
|
+
b.success(n.msg), C(!1), Q(), setTimeout(() => {
|
|
261
|
+
B("reload");
|
|
262
|
+
}, 200);
|
|
263
|
+
}).catch(() => {
|
|
264
|
+
C(!1);
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
return (e, t) => {
|
|
268
|
+
const l = y("a-menu-item"), p = y("a-menu"), _ = y("a-button"), T = y("a-dropdown"), n = y("a-checkbox"), D = y("a-input"), le = y("a-input-number"), ie = y("jnpf-select"), oe = y("a-table");
|
|
269
|
+
return i(), u(c(he), pe(e.$attrs, {
|
|
270
|
+
onRegister: c(j),
|
|
271
|
+
title: W.value,
|
|
272
|
+
showOkBtn: "",
|
|
273
|
+
onOk: ae
|
|
274
|
+
}), {
|
|
275
|
+
default: f(() => [
|
|
276
|
+
I("div", Ke, [
|
|
277
|
+
k(c(be), { onRegister: c(O) }, null, 8, ["onRegister"])
|
|
278
|
+
]),
|
|
279
|
+
I("div", Ce, [
|
|
280
|
+
Ue,
|
|
281
|
+
k(T, {
|
|
282
|
+
disabled: !F.value.length
|
|
283
|
+
}, {
|
|
284
|
+
overlay: f(() => [
|
|
285
|
+
k(p, null, {
|
|
286
|
+
default: f(() => [
|
|
287
|
+
(i(!0), h(v, null, se(F.value, (o) => (i(), u(l, {
|
|
288
|
+
key: o.field,
|
|
289
|
+
onClick: (a) => S(o)
|
|
290
|
+
}, {
|
|
291
|
+
default: f(() => [
|
|
292
|
+
x(M(o.field), 1)
|
|
293
|
+
]),
|
|
294
|
+
_: 2
|
|
295
|
+
}, 1032, ["onClick"]))), 128))
|
|
296
|
+
]),
|
|
297
|
+
_: 1
|
|
298
|
+
})
|
|
299
|
+
]),
|
|
300
|
+
default: f(() => [
|
|
301
|
+
k(_, null, {
|
|
302
|
+
default: f(() => [
|
|
303
|
+
x("常用字段"),
|
|
304
|
+
k(c(Ie))
|
|
305
|
+
]),
|
|
306
|
+
_: 1
|
|
307
|
+
})
|
|
308
|
+
]),
|
|
309
|
+
_: 1
|
|
310
|
+
}, 8, ["disabled"])
|
|
311
|
+
]),
|
|
312
|
+
k(oe, {
|
|
313
|
+
"data-source": d.value,
|
|
314
|
+
columns: E.value,
|
|
315
|
+
size: "small",
|
|
316
|
+
pagination: !1,
|
|
317
|
+
rowKey: "index",
|
|
318
|
+
class: "drag-table"
|
|
319
|
+
}, {
|
|
320
|
+
bodyCell: f(({ column: o, record: a, index: ne }) => [
|
|
321
|
+
o.key === "drag" ? (i(), h("i", $e)) : s("", !0),
|
|
322
|
+
a.disabled ? (i(), h(v, { key: 1 }, [
|
|
323
|
+
["primaryKey", "allowNull"].includes(o.key) ? (i(), u(n, {
|
|
324
|
+
key: 0,
|
|
325
|
+
checked: a[o.key]
|
|
326
|
+
}, null, 8, ["checked"])) : s("", !0),
|
|
327
|
+
o.key === "dataType" ? (i(), h(v, { key: 1 }, [
|
|
328
|
+
x(M(c(ke)(a[o.key])), 1)
|
|
329
|
+
], 64)) : s("", !0)
|
|
330
|
+
], 64)) : (i(), h(v, { key: 2 }, [
|
|
331
|
+
o.key === "field" ? (i(), u(D, {
|
|
332
|
+
key: 0,
|
|
333
|
+
value: a.field,
|
|
334
|
+
"onUpdate:value": (r) => a.field = r,
|
|
335
|
+
placeholder: "请输入",
|
|
336
|
+
maxlength: 50
|
|
337
|
+
}, null, 8, ["value", "onUpdate:value"])) : s("", !0),
|
|
338
|
+
o.key === "dataLength" ? (i(), u(le, {
|
|
339
|
+
key: 1,
|
|
340
|
+
value: a.dataLength,
|
|
341
|
+
"onUpdate:value": (r) => a.dataLength = r,
|
|
342
|
+
placeholder: "请输入",
|
|
343
|
+
disabled: a.dataType !== "varchar" && a.dataType !== "decimal"
|
|
344
|
+
}, null, 8, ["value", "onUpdate:value", "disabled"])) : s("", !0),
|
|
345
|
+
o.key === "dataType" ? (i(), u(ie, {
|
|
346
|
+
key: 2,
|
|
347
|
+
value: a.dataType,
|
|
348
|
+
"onUpdate:value": (r) => a.dataType = r,
|
|
349
|
+
placeholder: "请选择",
|
|
350
|
+
options: R
|
|
351
|
+
}, null, 8, ["value", "onUpdate:value"])) : s("", !0),
|
|
352
|
+
o.key === "primaryKey" ? (i(), u(n, {
|
|
353
|
+
key: 3,
|
|
354
|
+
checked: a.primaryKey,
|
|
355
|
+
"onUpdate:checked": (r) => a.primaryKey = r,
|
|
356
|
+
onChange: (r) => Y(a)
|
|
357
|
+
}, null, 8, ["checked", "onUpdate:checked", "onChange"])) : s("", !0),
|
|
358
|
+
o.key === "identity" ? (i(), h(v, { key: 4 }, [
|
|
359
|
+
a.primaryKey ? (i(), u(n, {
|
|
360
|
+
key: 0,
|
|
361
|
+
checked: a.identity,
|
|
362
|
+
"onUpdate:checked": (r) => a.identity = r
|
|
363
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : (i(), h("span", Se))
|
|
364
|
+
], 64)) : s("", !0),
|
|
365
|
+
o.key === "allowNull" ? (i(), u(n, {
|
|
366
|
+
key: 5,
|
|
367
|
+
checked: a.allowNull,
|
|
368
|
+
"onUpdate:checked": (r) => a.allowNull = r,
|
|
369
|
+
disabled: !!a.primaryKey
|
|
370
|
+
}, null, 8, ["checked", "onUpdate:checked", "disabled"])) : s("", !0),
|
|
371
|
+
o.key === "fieldName" ? (i(), u(D, {
|
|
372
|
+
key: 6,
|
|
373
|
+
value: a.fieldName,
|
|
374
|
+
"onUpdate:value": (r) => a.fieldName = r,
|
|
375
|
+
placeholder: "请输入",
|
|
376
|
+
maxlength: 50
|
|
377
|
+
}, null, 8, ["value", "onUpdate:value"])) : s("", !0)
|
|
378
|
+
], 64)),
|
|
379
|
+
o.key === "action" ? (i(), h(v, { key: 3 }, [
|
|
380
|
+
a.disabled ? s("", !0) : (i(), u(_, {
|
|
381
|
+
key: 0,
|
|
382
|
+
class: "action-btn",
|
|
383
|
+
type: "link",
|
|
384
|
+
color: "error",
|
|
385
|
+
onClick: (r) => X(ne),
|
|
386
|
+
size: "small"
|
|
387
|
+
}, {
|
|
388
|
+
default: f(() => [
|
|
389
|
+
x("删除")
|
|
390
|
+
]),
|
|
391
|
+
_: 2
|
|
392
|
+
}, 1032, ["onClick"]))
|
|
393
|
+
], 64)) : s("", !0)
|
|
394
|
+
]),
|
|
395
|
+
_: 1
|
|
396
|
+
}, 8, ["data-source", "columns"]),
|
|
397
|
+
I("div", {
|
|
398
|
+
class: "table-add-action",
|
|
399
|
+
onClick: t[0] || (t[0] = (o) => S())
|
|
400
|
+
}, [
|
|
401
|
+
k(_, {
|
|
402
|
+
type: "link",
|
|
403
|
+
preIcon: "icon-ym icon-ym-btn-add"
|
|
404
|
+
}, {
|
|
405
|
+
default: f(() => [
|
|
406
|
+
x("新增一行")
|
|
407
|
+
]),
|
|
408
|
+
_: 1
|
|
409
|
+
})
|
|
410
|
+
])
|
|
411
|
+
]),
|
|
412
|
+
_: 1
|
|
413
|
+
}, 16, ["onRegister", "title"]);
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
const ha = /* @__PURE__ */ we(De, [["__scopeId", "data-v-7da318e3"]]);
|
|
418
|
+
export {
|
|
419
|
+
ha as default
|
|
420
|
+
};
|
|
421
|
+
//# sourceMappingURL=Form-ca6e92bd.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form-ca6e92bd.mjs","sources":["../src/views/systemData/dataModel/Form.vue"],"sourcesContent":["<template>\r\n <BasicPopup v-bind=\"$attrs\" @register=\"registerModal\" :title=\"getTitle\" showOkBtn @ok=\"handleSubmit\">\r\n <div class=\"m-10px mb-0\">\r\n <BasicForm @register=\"registerForm\" />\r\n </div>\r\n <div class=\"caption\">\r\n <p class=\"title\">字段设置</p>\r\n <a-dropdown :disabled=\"!commonFieldList.length\">\r\n <template #overlay>\r\n <a-menu>\r\n <a-menu-item :key=\"item.field\" v-for=\"item in commonFieldList\" @click=\"handleAdd(item)\">{{ item.field }}</a-menu-item>\r\n </a-menu>\r\n </template>\r\n <a-button>常用字段<DownOutlined /></a-button>\r\n </a-dropdown>\r\n </div>\r\n <a-table :data-source=\"fieldList\" :columns=\"getColumns\" size=\"small\" :pagination=\"false\" rowKey=\"index\" class=\"drag-table\">\r\n <template #bodyCell=\"{ column, record, index }\">\r\n <template v-if=\"column.key === 'drag'\">\r\n <i class=\"drag-handler icon-ym icon-ym-darg\" title=\"点击拖动\" />\r\n </template>\r\n <template v-if=\"record.disabled\">\r\n <a-checkbox :checked=\"record[column.key]\" v-if=\"['primaryKey', 'allowNull'].includes(column.key)\" />\r\n <template v-if=\"column.key === 'dataType'\">{{ getDataTypeText(record[column.key]) }}</template>\r\n </template>\r\n <template v-else>\r\n <template v-if=\"column.key === 'field'\">\r\n <a-input v-model:value=\"record.field\" placeholder=\"请输入\" :maxlength=\"50\" />\r\n </template>\r\n <template v-if=\"column.key === 'dataLength'\">\r\n <a-input-number v-model:value=\"record.dataLength\" placeholder=\"请输入\" :disabled=\"record.dataType !== 'varchar' && record.dataType !== 'decimal'\" />\r\n </template>\r\n <template v-if=\"column.key === 'dataType'\">\r\n <jnpf-select v-model:value=\"record.dataType\" placeholder=\"请选择\" :options=\"options\" />\r\n </template>\r\n <template v-if=\"column.key === 'primaryKey'\">\r\n <a-checkbox v-model:checked=\"record.primaryKey\" @change=\"onKeyChange(record)\" />\r\n </template>\r\n <template v-if=\"column.key === 'identity'\">\r\n <a-checkbox v-model:checked=\"record.identity\" v-if=\"record.primaryKey\" />\r\n <span v-else></span>\r\n </template>\r\n <template v-if=\"column.key === 'allowNull'\">\r\n <a-checkbox v-model:checked=\"record.allowNull\" :disabled=\"!!record.primaryKey\" />\r\n </template>\r\n <template v-if=\"column.key === 'fieldName'\">\r\n <a-input v-model:value=\"record.fieldName\" placeholder=\"请输入\" :maxlength=\"50\" />\r\n </template>\r\n </template>\r\n <template v-if=\"column.key === 'action'\">\r\n <a-button class=\"action-btn\" type=\"link\" color=\"error\" @click=\"handleDelItem(index)\" size=\"small\" v-if=\"!record.disabled\">删除</a-button>\r\n </template>\r\n </template>\r\n </a-table>\r\n <div class=\"table-add-action\" @click=\"handleAdd()\">\r\n <a-button type=\"link\" preIcon=\"icon-ym icon-ym-btn-add\">新增一行</a-button>\r\n </div>\r\n </BasicPopup>\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import { getDataModelInfo as getInfo, createDataModel as create, updateDataModel as update, addTableFields } from '@/api/systemData/dataModel';\r\n import { getCommonFieldsList } from '@/api/systemData/commonFields';\r\n import { ref, unref, computed, reactive } from 'vue';\r\n import { DownOutlined } from '@ant-design/icons-vue';\r\n import { BasicPopup, usePopupInner } from '@/components/Popup';\r\n import { BasicForm, useForm } from '@/components/Form';\r\n import { useMessage } from '@/hooks/web/useMessage';\r\n import Sortablejs from 'sortablejs';\r\n import { getDataTypeText } from '@/utils/jnpf';\r\n import { buildBitUUID } from '@/utils/uuid';\r\n import { useI18n } from '@/hooks/web/useI18n';\r\n\r\n const emit = defineEmits(['register', 'reload']);\r\n const { createMessage } = useMessage();\r\n const { t } = useI18n();\r\n\r\n const options = [\r\n { fullName: '字符串', id: 'varchar' },\r\n { fullName: '整型', id: 'int' },\r\n { fullName: '日期时间', id: 'datetime' },\r\n { fullName: '浮点', id: 'decimal' },\r\n { fullName: '长整型', id: 'bigint' },\r\n { fullName: '文本', id: 'text' },\r\n ];\r\n const dataForm = reactive({\r\n value: {\r\n table: '',\r\n tableName: '',\r\n newTable: '',\r\n },\r\n });\r\n const linkId = ref('');\r\n const dbType = ref('');\r\n const hasTableData = ref(false);\r\n const fieldList = ref<any[]>([]);\r\n const commonFieldList = ref<any[]>([]);\r\n const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({\r\n baseColProps: { span: 8 },\r\n labelWidth: 100,\r\n schemas: [\r\n {\r\n field: 'newTable',\r\n label: '表名称',\r\n component: 'Input',\r\n componentProps: { placeholder: '请输入', maxlength: 50 },\r\n rules: [\r\n { required: true, trigger: 'blur', message: '必填' },\r\n { pattern: /(^_([A-Za-z0-9]_?)*$)|(^[A-Za-z](_?[A-Za-z0-9])*_?$)/, message: '请输入正确的表名称', trigger: 'blur' },\r\n ],\r\n },\r\n {\r\n field: 'tableName',\r\n label: '表说明',\r\n component: 'Input',\r\n componentProps: { placeholder: '请输入', maxlength: 50 },\r\n rules: [{ required: true, trigger: 'blur', message: '必填' }],\r\n },\r\n ],\r\n });\r\n const getColumns = computed(() => {\r\n let list: any[] = [\r\n { title: '拖动', dataIndex: 'drag', key: 'drag', align: 'center', width: 50 },\r\n {\r\n width: 50,\r\n title: '序号',\r\n align: 'center',\r\n customRender: ({ index }) => index + 1,\r\n },\r\n { title: '列名', dataIndex: 'field', key: 'field' },\r\n { title: '类型', dataIndex: 'dataType', key: 'dataType', width: 200 },\r\n { title: '长度', dataIndex: 'dataLength', key: 'dataLength' },\r\n { title: '是否主键', dataIndex: 'primaryKey', key: 'primaryKey', align: 'center', width: 80 },\r\n { title: '自增长ID', dataIndex: 'identity', key: 'identity', align: 'center', width: 80 },\r\n { title: '允许空', dataIndex: 'allowNull', key: 'allowNull', align: 'center', width: 80 },\r\n { title: '说明', dataIndex: 'fieldName', key: 'fieldName' },\r\n { title: '操作', dataIndex: 'action', key: 'action', width: 50 },\r\n ];\r\n if (['Oracle', 'PostgreSQL', 'KingbaseES'].includes(dbType.value)) list = list.filter(o => o.key != 'identity');\r\n return list;\r\n });\r\n const [registerModal, { closePopup, changeLoading, changeOkLoading }] = usePopupInner(init);\r\n\r\n const getTitle = computed(() => (!unref(dataForm.value.table) ? t('common.addText') : t('common.editText')));\r\n\r\n function init(data) {\r\n dataForm.value.table = data.table;\r\n linkId.value = data.linkId;\r\n dbType.value = data.dbType;\r\n fieldList.value = [];\r\n getFieldList();\r\n changeLoading(true);\r\n resetFields();\r\n if (dataForm.value.table) {\r\n getInfo(unref(linkId), dataForm.value.table).then(res => {\r\n dataForm.value = res.data.tableInfo;\r\n dataForm.value.newTable = dataForm.value.table;\r\n setFieldsValue(dataForm.value);\r\n let tableFieldList = res.data.tableFieldList.map(o => ({\r\n ...o,\r\n index: buildBitUUID(),\r\n primaryKey: !!o.primaryKey,\r\n allowNull: !!o.allowNull,\r\n identity: !!o.identity,\r\n }));\r\n hasTableData.value = res.data.hasTableData || false;\r\n if (hasTableData.value) {\r\n tableFieldList = tableFieldList.map(o => ({ ...o, disabled: true }));\r\n }\r\n fieldList.value = tableFieldList;\r\n changeLoading(false);\r\n });\r\n } else {\r\n hasTableData.value = false;\r\n dataForm.value.newTable = data.table || '';\r\n changeLoading(false);\r\n }\r\n initSort();\r\n }\r\n function initSort() {\r\n const table: any = document.querySelector(`.drag-table .ant-table-tbody`);\r\n Sortablejs.create(table, {\r\n handle: '.drag-handler',\r\n animation: 150,\r\n easing: 'cubic-bezier(1, 0, 0, 1)',\r\n onStart: () => {},\r\n // 结束拖动事件\r\n onEnd: ({ newIndex, oldIndex }: any) => {\r\n setNodeSort(fieldList.value, oldIndex, newIndex);\r\n },\r\n });\r\n }\r\n const setNodeSort = (data: any, oldIndex: any, newIndex: any) => {\r\n const currRow = data.splice(oldIndex, 1)[0];\r\n data.splice(newIndex, 0, currRow);\r\n };\r\n function handleDelItem(index) {\r\n fieldList.value.splice(index, 1);\r\n }\r\n function handleAdd(row: undefined | Recordable = undefined) {\r\n const index = buildBitUUID();\r\n let item = {};\r\n if (!row) {\r\n item = {\r\n field: '',\r\n dataType: 'varchar',\r\n dataLength: 50,\r\n allowNull: true,\r\n primaryKey: false,\r\n fieldName: '',\r\n index,\r\n };\r\n } else {\r\n item = {\r\n field: row.field,\r\n dataType: row.dataType,\r\n dataLength: row.dataLength,\r\n allowNull: !!row.allowNull,\r\n fieldName: row.fieldName,\r\n primaryKey: false,\r\n index,\r\n };\r\n }\r\n fieldList.value.push(item);\r\n }\r\n function onKeyChange(row) {\r\n row.identity = false;\r\n row.allowNull = false;\r\n }\r\n function getFieldList() {\r\n getCommonFieldsList().then(res => {\r\n commonFieldList.value = res.data.list;\r\n });\r\n }\r\n function exist() {\r\n let isOk = true;\r\n for (let i = 0; i < fieldList.value.length; i++) {\r\n const e = fieldList.value[i];\r\n if (!e.field) {\r\n createMessage.error(`第${i + 1}行列名不能为空`);\r\n isOk = false;\r\n break;\r\n }\r\n let reg = /(^_([a-zA-Z0-9]_?)*$)|(^[a-zA-Z](_?[a-zA-Z0-9])*_?$)/;\r\n if (!reg.test(e.field)) {\r\n createMessage.error(`第${i + 1}行列名格式错误,请重新输入`);\r\n isOk = false;\r\n break;\r\n }\r\n let num = fieldList.value.filter(o => o.field == e.field);\r\n if (num.length > 1) {\r\n createMessage.error(`第${i + 1}行列名'${e.field}'已重复`);\r\n isOk = false;\r\n break;\r\n }\r\n if (!e.fieldName) {\r\n createMessage.error(`第${i + 1}行说明不能为空`);\r\n isOk = false;\r\n break;\r\n }\r\n }\r\n return isOk;\r\n }\r\n async function handleSubmit() {\r\n const values = await validate();\r\n if (!values) return;\r\n if (!fieldList.value.length) return createMessage.error('请至少添加一个字段');\r\n if (!exist()) return;\r\n let boo = fieldList.value.some(o => o.primaryKey);\r\n if (!boo) return createMessage.error('请选择一个字段作为主键');\r\n changeOkLoading(true);\r\n const tableInfo = { ...dataForm.value, ...values };\r\n const tableFieldList = hasTableData.value ? fieldList.value.filter(o => !o.disabled) : fieldList.value;\r\n const query = {\r\n tableFieldList: tableFieldList.map(o => ({\r\n ...o,\r\n primaryKey: o.primaryKey ? 1 : 0,\r\n allowNull: o.allowNull ? 1 : 0,\r\n identity: o.identity && o.primaryKey ? 1 : 0,\r\n })),\r\n tableInfo,\r\n };\r\n const formMethod = hasTableData.value ? addTableFields : dataForm.value.table ? update : create;\r\n formMethod(unref(linkId), query)\r\n .then(res => {\r\n createMessage.success(res.msg);\r\n changeOkLoading(false);\r\n closePopup();\r\n setTimeout(() => {\r\n emit('reload');\r\n }, 200);\r\n })\r\n .catch(() => {\r\n changeOkLoading(false);\r\n });\r\n }\r\n</script>\r\n<style lang=\"less\" scoped>\r\n .caption {\r\n height: 60px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n padding: 0 10px;\r\n\r\n .title {\r\n line-height: 24px;\r\n font-size: 16px;\r\n }\r\n }\r\n</style>\r\n"],"names":["emit","__emit","createMessage","useMessage","t","useI18n","options","dataForm","reactive","linkId","ref","dbType","hasTableData","fieldList","commonFieldList","registerForm","setFieldsValue","resetFields","validate","useForm","getColumns","computed","list","index","o","registerModal","closePopup","changeLoading","changeOkLoading","usePopupInner","init","getTitle","unref","data","getFieldList","getInfo","res","tableFieldList","buildBitUUID","initSort","table","Sortablejs","newIndex","oldIndex","setNodeSort","currRow","handleDelItem","handleAdd","row","item","onKeyChange","getCommonFieldsList","exist","isOk","i","e","handleSubmit","values","tableInfo","query","addTableFields","update","create"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEE,UAAMA,IAAOC,GACP,EAAE,eAAAC,MAAkBC,MACpB,EAAE,GAAAC,MAAMC,MAERC,IAAU;AAAA,MACd,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,MAChC,EAAE,UAAU,OAAO,IAAI,SAAS;AAAA,MAChC,EAAE,UAAU,MAAM,IAAI,OAAO;AAAA,IAAA,GAEzBC,IAAWC,GAAS;AAAA,MACxB,OAAO;AAAA,QACL,OAAO;AAAA,QACP,WAAW;AAAA,QACX,UAAU;AAAA,MACZ;AAAA,IAAA,CACD,GACKC,IAASC,EAAI,EAAE,GACfC,IAASD,EAAI,EA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