Compare commits
1673 Commits
login-page
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d9d6799d8 | |||
| 250bb0425e | |||
| b488fcb236 | |||
| 50b2c60987 | |||
| bc03feb450 | |||
| c803a9743f | |||
| e933f8d855 | |||
| 11e8805c94 | |||
| d9c5e08449 | |||
| 8a282a4bfc | |||
| f77e14e667 | |||
| 33e55f471e | |||
| f90640fbf5 | |||
| 8802b49c95 | |||
| 6231c94fe5 | |||
| 45946fd39b | |||
| 2798c7fd45 | |||
| 34150e10f9 | |||
| ee141d1248 | |||
| 2a67faf0fd | |||
| d26c3be39b | |||
| 5c22c7523e | |||
| c55fd130f6 | |||
| c3c3bd0c80 | |||
| 003310b32b | |||
| e18fdd158c | |||
| 6934ab5720 | |||
| e28f6a638b | |||
| f5b57e40c0 | |||
| f6759047b9 | |||
| 5fb03736c1 | |||
| 86453331a0 | |||
| a0d9718eaa | |||
| a07a8a9e2f | |||
| b48fe7f21b | |||
| 1e59550345 | |||
| 85ebb019bc | |||
| 9051e5a49f | |||
| fc512cabc6 | |||
| 10907aa39d | |||
| 80ab39b6fa | |||
| 7c042d00b4 | |||
| 131c3cf980 | |||
| 7a0647252a | |||
| 1b42d9347e | |||
| b4dfcd43ef | |||
| 6346d496f6 | |||
| 5197d1c972 | |||
| d4fea43e4c | |||
| d155ab7ee7 | |||
| 6548a0737f | |||
| a7ebbbd982 | |||
| 9ec2cee27a | |||
| c9b7ec66d5 | |||
| a43d56bdc9 | |||
| 59ff3f477d | |||
| 33ae979b08 | |||
| cde9b95ca2 | |||
| b5da3a1e14 | |||
| 317f6e73b1 | |||
| 6dbd583f05 | |||
| 1bca5d70ae | |||
| 622f842d3b | |||
| 230bcce9f3 | |||
| 695c9a4584 | |||
| 9cf49cd332 | |||
| 54bd5c3bb1 | |||
| ded0c5e48b | |||
| 4fa5127b3f | |||
| d3da53145d | |||
| 11d39744cd | |||
| 646081ecdd | |||
| ced700d11a | |||
| f60671e3d2 | |||
| 6338d9bb6f | |||
| 10a90f521b | |||
| ed6aae36be | |||
| 3e967f360e | |||
| fb8375ed79 | |||
| 2d5df21245 | |||
| bba5cfcca8 | |||
| 5735568b07 | |||
| be02bde78d | |||
| 0bc183b9a7 | |||
| 2d48fff9ef | |||
| 081d185d4c | |||
| 9dbafb2a30 | |||
| b66f4fa656 | |||
| 040d1c6152 | |||
| e520327e18 | |||
| 550dded6f2 | |||
| 67dab23d71 | |||
| c0dc0f1a85 | |||
| 1878e4c7c8 | |||
| 28d701a941 | |||
| c188d27792 | |||
| ba22540580 | |||
| b236c37d9b | |||
| 7aa7da4480 | |||
| 6f10cf0e42 | |||
| bf981931eb | |||
| b29b5b2989 | |||
| a64875ae92 | |||
| c7d0a24a0c | |||
| 892428f371 | |||
| 6b44e834c0 | |||
| f1fc336850 | |||
| 6760f5da45 | |||
| 1887b89136 | |||
| 34410be35d | |||
| d827e9b6d9 | |||
| 514464aea7 | |||
| aa12943ebe | |||
| e3175a72d0 | |||
| e1f3d60e9f | |||
| c95afd09f7 | |||
| 9e5a2fc6f2 | |||
| ee7b22a950 | |||
| 2579a38d01 | |||
| 0b28bf768e | |||
| e6cc472ece | |||
| 80db958437 | |||
| 87e16c05a2 | |||
| 571485133a | |||
| d9d3a2e245 | |||
| a01dda6a57 | |||
| 1e264be2df | |||
| 5d7288c822 | |||
| f7b7ccb609 | |||
| 7553aa7cbf | |||
| 1f203d1360 | |||
| f9d57de756 | |||
| 9464310b5c | |||
| bc545ae802 | |||
| 9317857270 | |||
| abc5eb852d | |||
| 0f8d3c8116 | |||
| e6e784d129 | |||
| f07c594798 | |||
| 863965fcd6 | |||
| b05e8600ec | |||
| 8030dc4e78 | |||
| 478e9717aa | |||
| f10ea6874f | |||
| 6f0eebf325 | |||
| f48b68c39d | |||
| eaece04a09 | |||
| 18e5406745 | |||
| d4f62511dc | |||
| a8eaeaf49d | |||
| ec64bb6b77 | |||
| e18c9b53e6 | |||
| cef8cce5b5 | |||
| 3f77b0c91e | |||
| dca767e782 | |||
| 2badc08f3c | |||
| e29443ee44 | |||
| 86ff03f58a | |||
| 015f8b9882 | |||
| f736d03805 | |||
| ba7a593d94 | |||
| 4b41d9b971 | |||
| 37ffac6326 | |||
| 22bd6cc960 | |||
| 8b0d57b9ce | |||
| e89f09edca | |||
| 0936b30387 | |||
| bdca87d0ec | |||
| 6072d2529e | |||
| b69aaa38d5 | |||
| de8bb56dad | |||
| 9d13beb26c | |||
| cacffe0fd5 | |||
| 083b308103 | |||
| cd604f6f96 | |||
| 848f1f0acf | |||
| 430d3d8317 | |||
| 8b8feae30c | |||
| 0a20cfcd41 | |||
| ea5262918c | |||
| 3de10b7b4d | |||
| a00fdbf800 | |||
| 4894044021 | |||
| 2d5ffbf610 | |||
| bec7346927 | |||
| 2e00998b54 | |||
| 1289bb1963 | |||
| d8662c88da | |||
| f3b9d9ff28 | |||
| 8808fbd0db | |||
| c633a29052 | |||
| 6295d72b11 | |||
| 19b844db04 | |||
| cd9ec05afb | |||
| 456c24e79d | |||
| 8208c792f5 | |||
| abe398d0c2 | |||
| 2bf2b47b5c | |||
| d472ef8da3 | |||
| 6190925043 | |||
| b6b51c9a66 | |||
| 63b4b034f8 | |||
| e4319fa591 | |||
| c4d0cb81b2 | |||
| ce53cdf835 | |||
| d971d09d12 | |||
| c36d7f442c | |||
| 57dfb24ff6 | |||
| 7a2fc4bf6e | |||
| 9d64ac0abd | |||
| 3aef27290d | |||
| 6a0579c738 | |||
| e4d3023358 | |||
| 2d022b500d | |||
| 1f462ebdfe | |||
| 5b36842c5d | |||
| de6c048f2e | |||
| af935f544b | |||
| 3ad68c7c3c | |||
| 94cef10a15 | |||
| a76d08c184 | |||
| 644152472d | |||
| 819e8ffcfa | |||
| b4d35f1369 | |||
| 5793fed56d | |||
| a7b0dd6b78 | |||
| 41f2805b25 | |||
| 5206b4a0c2 | |||
| 91bc1f23e7 | |||
| 3ccb161015 | |||
| fb8b1f0e22 | |||
| 11546c1ff1 | |||
| 7cfee636e2 | |||
| ff0ecd4992 | |||
| f5e5a080b3 | |||
| 4744abad33 | |||
| 07106650d8 | |||
| 6adae66d4a | |||
| e3138b4060 | |||
| e199994d96 | |||
| 1521042889 | |||
| ccf64a754a | |||
| 77d5992ef5 | |||
| eb994d3359 | |||
| 94ec729fd6 | |||
| 0d471688f2 | |||
| 513821eeee | |||
| 93b7985330 | |||
| 3de9f34952 | |||
| 16babe9622 | |||
| 18259ad519 | |||
| 72dc31a626 | |||
| 1ef81780c2 | |||
| 510908deee | |||
| 2e3f5d65a5 | |||
| 10c114e45c | |||
| 1d76809e3a | |||
| 26db853332 | |||
| 3229f82754 | |||
| 0e7a348236 | |||
| 2894dab8eb | |||
| 52191be6bc | |||
| 26fbbb9330 | |||
| 947bd7ad50 | |||
| ded3075d09 | |||
| 9cb9dc8021 | |||
| 250ba40253 | |||
| 09b7615ee0 | |||
| 9b07dc9d36 | |||
| 6c91486775 | |||
| c6f2356b07 | |||
| b1fd90dd0d | |||
| 7679d5cd27 | |||
| a47739b50c | |||
| e24f32c97e | |||
| ad0ad744d7 | |||
| 4fbaaf7d2b | |||
| 5803d5943e | |||
| 9c3d26fb81 | |||
| d160ad1fba | |||
| f465578e7f | |||
| 2713ff9b3b | |||
| bc52e41c1f | |||
| a6f7d87d65 | |||
| 161f8b769a | |||
| de78398c54 | |||
| 306bdf95b9 | |||
| 48a27ddb95 | |||
| 3fc7ef2f45 | |||
| cddcc53a0c | |||
| 7178c65e48 | |||
| 3aa6fc046d | |||
| 090fa24715 | |||
| 9f499e7536 | |||
| 5527688b10 | |||
| 3055e1824a | |||
| 965789d9ba | |||
| 6cedbe86b2 | |||
| 4261f46102 | |||
| 9f8a79bde2 | |||
| 96c8b64668 | |||
| 1851f9e6d8 | |||
| 124ac15afe | |||
| 1e00ebbba5 | |||
| 803aa860c0 | |||
| 0793342079 | |||
| 639f780ba3 | |||
| 2c8f8250e4 | |||
| d3ab4611ba | |||
| 77dc933e7c | |||
| 1054677920 | |||
| 0cbafa343f | |||
| 0e394a31fb | |||
| ea82b18ad3 | |||
| 0cabe1c54d | |||
| cb14f5f6cb | |||
| c015f249a8 | |||
| e8a9fe017c | |||
| 4751d02120 | |||
| 69041b829b | |||
| c195d8abf9 | |||
| 7ed30159ac | |||
| a9ef9d526b | |||
| a4bda28fbb | |||
| 07596c1739 | |||
| 18b969a3eb | |||
| acd7b19a8f | |||
| 3929eb58cf | |||
| 340a08e1c5 | |||
| 283e6e4a26 | |||
| 6d503f57e2 | |||
| 7279caf840 | |||
| 385767f13a | |||
| f0661e28cc | |||
| 275ac8cb92 | |||
| 11202bd0c5 | |||
| a47770ac79 | |||
| cf5c675983 | |||
| 39000a7b93 | |||
| b24202dbf1 | |||
| cf2e732672 | |||
| d9d6546226 | |||
| 8505c7f407 | |||
| df07ed9b06 | |||
| 53c814ed92 | |||
| b3666a1c61 | |||
| 20f116053c | |||
| cbef5df450 | |||
| c80e7aedc2 | |||
| c862ec8ba2 | |||
| b0d4a52869 | |||
| 6228106a10 | |||
| bede7b0f34 | |||
| 7221365583 | |||
| 0aa73e4170 | |||
| 9659ca91b2 | |||
| e59ecb9335 | |||
| 58e16934e9 | |||
| 7a7452db8f | |||
| fc92a8b868 | |||
| 50a36ecd86 | |||
| 31d9eac5f0 | |||
| e09f86232d | |||
| f7628e9d1a | |||
| 5286f029d9 | |||
| b9125e3972 | |||
| 1dbaae5277 | |||
| 0d0f5b3596 | |||
| dc2abf474a | |||
| 53d66e451c | |||
| da4d794d96 | |||
| b8ac1fcdd7 | |||
| 1f9af1e116 | |||
| 0abc9c6412 | |||
| 0c230c92da | |||
| 74dab3d4ea | |||
| 594f3bb5d3 | |||
| 23d6ad6150 | |||
| 2fbfc74811 | |||
| d9a2130ff0 | |||
| 80c2b51e12 | |||
| 76763a2ca8 | |||
| 22ae0424e4 | |||
| 0abc792e0f | |||
| db919672e0 | |||
| 5108a2624a | |||
| f84b034f43 | |||
| 17904dcf6c | |||
| 11af021292 | |||
| cdc839fb8f | |||
| d075105f3d | |||
| 002bf1b1b7 | |||
| f1bf9e1825 | |||
| b04b7bece0 | |||
| b213aa4f91 | |||
| 2e4c264ee0 | |||
| 282a64006b | |||
| 88e4ac5fab | |||
| 96b43b3a82 | |||
| dc8ec1a68a | |||
| 3386780692 | |||
| 86a10c1757 | |||
| 8a16513dca | |||
| ae6cb275b7 | |||
| 3d7e576cc0 | |||
| a37f26ef6c | |||
| 914fdd5535 | |||
| 4fa3096bae | |||
| 11df634a44 | |||
| 72eb70bf75 | |||
| f46e817d05 | |||
| 295fd58ee6 | |||
| 50ebb152dd | |||
| d544cf8dd7 | |||
| 6c65fccc9e | |||
| f83ab482a8 | |||
| bbc3095852 | |||
| 5eb22cb934 | |||
| 075c61add9 | |||
| 700cfbe83e | |||
| 88c4f567ef | |||
| 1986bd08da | |||
| 2aeaa09e14 | |||
| 6cc12ff451 | |||
| a538eebde3 | |||
| b7fdd5ea57 | |||
| de140ceec5 | |||
| 9a38ee072d | |||
| 9dfc52ea25 | |||
| 92b9335df4 | |||
| 09895359be | |||
| 7907be1a85 | |||
| 17da1ee45d | |||
| 3053d1120f | |||
| f35d7aeb7e | |||
| 7d25e6c9a1 | |||
| 5e24aac69b | |||
| c3bb84e927 | |||
| 02ea61fa22 | |||
| 88af60bde3 | |||
| 4b69dc96fc | |||
| 674dba6cf8 | |||
| 6765d1da15 | |||
| 9d48150272 | |||
| ab6957990d | |||
| 9eeeca210e | |||
| 60c5d15564 | |||
| 0ccd210146 | |||
| a65aa4e50a | |||
| 286cac787e | |||
| d83eabaf09 | |||
| 7355907be3 | |||
| 6047fde637 | |||
| f7995739c3 | |||
| 507d8660d6 | |||
| 6d5b8b32d2 | |||
| 8fb7be6a4a | |||
| 4a05490585 | |||
| f25fdea3db | |||
| b0be5df59e | |||
| dc8861ea94 | |||
| 8eb9454264 | |||
| 93cf9a3820 | |||
| ad360d5861 | |||
| bf49cd0061 | |||
| 758951a0aa | |||
| a191db7e1d | |||
| bfbc63f531 | |||
| a95adb9299 | |||
| 772b5206b7 | |||
| de37e6f06a | |||
| 258e930fed | |||
| 3d5f6bc8c4 | |||
| 384a55a1e2 | |||
| 1fab74e445 | |||
| d900d36e02 | |||
| dc64c78694 | |||
| e43a351dd6 | |||
| e233980308 | |||
| 7c4b440e8e | |||
| 582795e28b | |||
| 88e6dfcd65 | |||
| c75121ec4d | |||
| e0d10116da | |||
| 71c2b709df | |||
| 92ef67a236 | |||
| 18378cc8a2 | |||
| 3188d0805f | |||
| 0da53a04b5 | |||
| 7b5e32b815 | |||
| 90a688a356 | |||
| ff2ded180e | |||
| 352a664b44 | |||
| d5007b6b02 | |||
| 023d018c84 | |||
| c5a2453564 | |||
| d03583c865 | |||
| 9c8ed295eb | |||
| e3ee505f97 | |||
| 2d7a447665 | |||
| ab77085d2a | |||
| 30a3ca5d3e | |||
| 4d5f329c62 | |||
| e1434a93e5 | |||
| 9fdc8e047e | |||
| 5d1075db9c | |||
| 2f890e79bf | |||
| 22ba6e11b4 | |||
| ab323d0f8c | |||
| 76caf33fcd | |||
| a16b0b7266 | |||
| 05b0717a64 | |||
| 8f2b5fa22c | |||
| 4d30868332 | |||
| dbfd39c512 | |||
| cc91b838b3 | |||
| 2de9e98878 | |||
| a9ad891224 | |||
| 5f3b814afe | |||
| baf817624c | |||
| 64dd8bf883 | |||
| 1045145773 | |||
| 6e5f26704b | |||
| ddeca0a894 | |||
| 031a92831d | |||
| 35430b150c | |||
| 944d3830c1 | |||
| 63175bd00d | |||
| 07c60aa3b4 | |||
| 368e402286 | |||
| 3063478d69 | |||
| 2a412159bd | |||
| eb36425282 | |||
| 58e828b926 | |||
| 4b9cc44f81 | |||
| 4ec554ce0c | |||
| 3d03561159 | |||
| ff7fd89b9f | |||
| 198fd516a3 | |||
| c4742fecb4 | |||
| 0f410f0ce1 | |||
| 46f142f6cd | |||
| a484a928af | |||
| 1b9f5bac29 | |||
| c829cd3e59 | |||
| 5e66a30318 | |||
| eb015bf42e | |||
| 9fa1a206ef | |||
| bdb822da6e | |||
| 88ea143bad | |||
| a858f90537 | |||
| 9d544aa62e | |||
| 5760a69695 | |||
| dc42627c81 | |||
| a599c6f780 | |||
| 9cba8ef2d5 | |||
| e10dfb0901 | |||
| a022aca5b1 | |||
| 6cb9c468de | |||
| 5574c1342f | |||
| d2bb698692 | |||
| 741b5e4f8e | |||
| da64def2de | |||
| 6afb30432e | |||
| ad5be2d844 | |||
| bfa1eba6f5 | |||
| 527d8305c1 | |||
| aad0b9d461 | |||
| 5a429bafdf | |||
| 26321be920 | |||
| f52074b16f | |||
| fc944774d4 | |||
| 977f2bcea4 | |||
| f0afe10ec1 | |||
| d2dfed0d24 | |||
| 5ebd1cac3a | |||
| 622bc004ee | |||
| d235bdad8f | |||
| b675f8958b | |||
| 20c1c2e4f4 | |||
| 621920b712 | |||
| 958bdabf25 | |||
| 753183e70d | |||
| 644228c040 | |||
| 08953fa4aa | |||
| 3bdceea431 | |||
| 1a2340e83b | |||
| 93c20b5904 | |||
| 4ef67b7da7 | |||
| a442686d30 | |||
| 020b21df39 | |||
| 1a37adaef4 | |||
| 4a725465ae | |||
| 5e593b9ec7 | |||
| 15b1ce3601 | |||
| 74786ab680 | |||
| 83e7ef865e | |||
| c7d9951d60 | |||
| f8135db6dc | |||
| 9f76dfbc69 | |||
| 53f295ed8d | |||
| 0b99448629 | |||
| 3ffde89a21 | |||
| 5969a77c6b | |||
| 48a7d1e5dd | |||
| 3798c71bd6 | |||
| e64feb0246 | |||
| d3e8365cf6 | |||
| 58d0023b4d | |||
| c9afdb19d4 | |||
| c7f22dbde0 | |||
| 9fd75c3dde | |||
| eda2549643 | |||
| ba1c5115c0 | |||
| cabc2b0285 | |||
| 0c18408b3d | |||
| 0034fb9512 | |||
| 359b34dcfa | |||
| 75f9653524 | |||
| d9dff2cbf7 | |||
| 1af572081d | |||
| 5024c13682 | |||
| dcbbf3cc89 | |||
| 47a5dfedad | |||
| 6d91d68598 | |||
| e40860dd60 | |||
| e3b9b79ff0 | |||
| 3b331b81f8 | |||
| 5cddd9a956 | |||
| 019dd90757 | |||
| a8a1d9ed65 | |||
| 5b1d5d7ea8 | |||
| 636a725c08 | |||
| 3ffae048e2 | |||
| c5ca59239f | |||
| f4743c180b | |||
| 456f086f8d | |||
| ff6fd0b801 | |||
| ac0832aa50 | |||
| 3c896de836 | |||
| 0f4a05e2bf | |||
| c9c1f8108f | |||
| 2da8a0bcc4 | |||
| 81bfaea6f5 | |||
| fcdc8fddd9 | |||
| b6d76dad82 | |||
| f93da2a071 | |||
| 4c2ef7f4be | |||
| 7f8ae18966 | |||
| 3305e94ecf | |||
| b875eaeb0f | |||
| faad581140 | |||
| 550d366f49 | |||
| 6ec8a831eb | |||
| c3280283d6 | |||
| b7bfa39012 | |||
| bf06b0a6b2 | |||
| 9d1c8d78c1 | |||
| 8bd52b73cb | |||
| 052e380075 | |||
| d8137c9a7b | |||
| db6231925e | |||
| ca11cf85f4 | |||
| 0ab94297da | |||
| 51b9cb6973 | |||
| 03c5d34ebb | |||
| da615429bd | |||
| 8bf7b29a6a | |||
| 7b7a145e1f | |||
| b8415bbac5 | |||
| 69afd2b2bd | |||
| 4e4e05bacb | |||
| 1c19b82296 | |||
| 724e9e0675 | |||
| 44bb14b64f | |||
| 594f7bee0e | |||
| 06d9a86246 | |||
| 66f3a3a264 | |||
| e6a8558eb1 | |||
| 355601c89e | |||
| 6a901f44f3 | |||
| 900fe4fca7 | |||
| 77744a68b5 | |||
| d8e297a648 | |||
| 35f2487510 | |||
| dbf161e65f | |||
| 15d2137ca8 | |||
| 7c60df96ba | |||
| b2d7d8e817 | |||
| 9290f43130 | |||
| 64371322e3 | |||
| bdf756b343 | |||
| e2e744bcd2 | |||
| b830d2b077 | |||
| 3f1073df67 | |||
| f0e17090d5 | |||
| 096cbc6958 | |||
| 6e6654ebdf | |||
| af9f6b1400 | |||
| e8a961acfe | |||
| d59173ed63 | |||
| cbbdd6b069 | |||
| 9e92328958 | |||
| fcb26a9084 | |||
| 488d6f7e69 | |||
| 8626dcaabf | |||
| 514832dbfd | |||
| a8b258c13f | |||
| 327b6c23c7 | |||
| 7db20e1c53 | |||
| 112aad5f99 | |||
| 0a2dff2400 | |||
| b01e62d173 | |||
| bd1a9c2608 | |||
| b54780242e | |||
| d9f9f09f6f | |||
| 5b47f9a76b | |||
| 656639f246 | |||
| 61dbe4a6d1 | |||
| c2d5ef9261 | |||
| 97d8c822bd | |||
| ac07e5db3e | |||
| e5614f83bc | |||
| f0e975e5ec | |||
| cebadedc93 | |||
| 33963ed45d | |||
| 155812d124 | |||
| 29789d20ab | |||
| b67401d311 | |||
| 08f1f7b527 | |||
| 16eb5bcb72 | |||
| 49e38901a3 | |||
| b30258718f | |||
| 1df272319c | |||
| acc78ad635 | |||
| ee4f07ee8d | |||
| c3a23a3b7a | |||
| 745f0ecef3 | |||
| 34b379cb84 | |||
| 14b246b4c3 | |||
| fd82d7790e | |||
| 6138a75312 | |||
| 139227864e | |||
| 09de79ab55 | |||
| 74feb43995 | |||
| 1d2a8fd134 | |||
| c5c056738c | |||
| 9db5f79748 | |||
| 1a0ba55ea0 | |||
| 91fc645b50 | |||
| 19b9fe515d | |||
| d543764df1 | |||
| 082ea67ac7 | |||
| fdab52cd5a | |||
| 69c846b93a | |||
| e46d73b601 | |||
| dd6cb763ef | |||
| 8f6f58097c | |||
| c9abea45a6 | |||
| 466162e9c4 | |||
| 4d521c068f | |||
| 72cacd590e | |||
| efbc8e0b43 | |||
| 092daa83e2 | |||
| 9fb4be63ff | |||
| 6c9758a38a | |||
| 548ab19ae2 | |||
| 5c3556ccf4 | |||
| b064621c2a | |||
| 837d9de547 | |||
| 33c6fc64e8 | |||
| fa3e5abe74 | |||
| ad115d20dc | |||
| 528a1ae90b | |||
| 962cd06bc6 | |||
| d66880cdea | |||
| 646ea328a8 | |||
| 68a81ee41c | |||
| 0c81f18284 | |||
| 961c710e02 | |||
| e5e622d30d | |||
| 06ccfaf642 | |||
| f7752b939e | |||
| 2525f01523 | |||
| 4cab877eed | |||
| e5ecb660e1 | |||
| c6e2fe04e4 | |||
| 3d807a489d | |||
| d0bcfc3b2f | |||
| c432f38bea | |||
| 9736e12096 | |||
| 035066e531 | |||
| d5bdb9ad62 | |||
| 5261adbef9 | |||
| ffdd559370 | |||
| 58c709dc21 | |||
| f0bd08af83 | |||
| 8b262bd028 | |||
| f96d7284f3 | |||
| 73a834b91b | |||
| 76acf73ee1 | |||
| 008f5d88da | |||
| 6b590c6021 | |||
| d3362c9023 | |||
| 37184edfc5 | |||
| f817b41e0a | |||
| 0710e2cca2 | |||
| 664ee868ed | |||
| f36d66e80e | |||
| f7a6f32bbe | |||
| 993a664514 | |||
| 249fd97093 | |||
| b799ae1140 | |||
| 01a6f77138 | |||
| 59b6c52e8a | |||
| 4a920bf101 | |||
| 9860d06a06 | |||
| 839cae6594 | |||
| c388aa33c2 | |||
| 5f5d75c136 | |||
| 12d57e131f | |||
| 905b10d14a | |||
| f5b9bb5bca | |||
| bac30c03dc | |||
| eb47cc7c5d | |||
| 597c521583 | |||
| 33bffba6b2 | |||
| af14c7ab1a | |||
| a789b00790 | |||
| 0195a624c2 | |||
| a787ea5442 | |||
| 9bcdc22e45 | |||
| 3f76852e2f | |||
| 3815e9756d | |||
| 2304a30de0 | |||
| 1b2dd81fed | |||
| c86d700555 | |||
| 6dcb90f7f4 | |||
| f20df8ac89 | |||
| 867e2cc4ba | |||
| 49865f6426 | |||
| 9babeb38b1 | |||
| a7f3eb7eb1 | |||
| 77e8b09d2a | |||
| ec7374a5fd | |||
| 3601efccc0 | |||
| 616f3c64cd | |||
| dee0ad410f | |||
| 522c990d62 | |||
| c0e08a5136 | |||
| b40ca2f5ea | |||
| 7d92f8771f | |||
| 1f5d770714 | |||
| 1b0a7d4c95 | |||
| 32b60b6eb5 | |||
| a55b2dc7ca | |||
| 6968085081 | |||
| 5b033e0e07 | |||
| 8cee9c6fa0 | |||
| a5b97bc4ed | |||
| f4dfb848bf | |||
| e3aab0fc5b | |||
| e728f0346b | |||
| d04e52bb43 | |||
| f5b0e5dac5 | |||
| 29cbfb522a | |||
| a3b6ef258d | |||
| 693ef3e779 | |||
| 40527cabc1 | |||
| 5387281210 | |||
| 3fb6937c87 | |||
| b8870850b4 | |||
| 094ca57d6a | |||
| d948069b5e | |||
| a42cbf248b | |||
| 5677e6a371 | |||
| 94b658b834 | |||
| 70b8ef3262 | |||
| 44c34efc96 | |||
| 2ce3afa020 | |||
| 539a832228 | |||
| 2ab5f8cb58 | |||
| c49c3916be | |||
| 231224a5e5 | |||
| 08c00e7aa8 | |||
| 364c5f8391 | |||
| 46e49cbdc9 | |||
| dd35b3e786 | |||
| a554388123 | |||
| 30936c180d | |||
| 582ea2d3fa | |||
| 6aaf6517e4 | |||
| eb75a988af | |||
| 4068a3ece2 | |||
| 75aad09601 | |||
| 6addf5c416 | |||
| 876e1c061f | |||
| e44e999251 | |||
| bebb3b0533 | |||
| 771c2e51dc | |||
| 3c07963da5 | |||
| e98300c9a2 | |||
| ceccac616f | |||
| c5edc81049 | |||
| 0493d19972 | |||
| 43fd681f76 | |||
| 548460d986 | |||
| 6fcb57a45e | |||
| bc5a8cd240 | |||
| 013cd22d7b | |||
| f654f43f42 | |||
| d4e27d47eb | |||
| 99a83acacb | |||
| df934dbddd | |||
| ce002d94df | |||
| 2005110dcb | |||
| f6084ea1e6 | |||
| 95492cff61 | |||
| 82169c54e1 | |||
| 222ff384ce | |||
| 181d85c7eb | |||
| 35a82362e8 | |||
| 43bf5ea968 | |||
| 7e3783b479 | |||
| df09ed518a | |||
| 46835b6291 | |||
| 663da01396 | |||
| 9e5c7cc01f | |||
| 16ac865866 | |||
| 58375de2f7 | |||
| ff7a5a80fc | |||
| 792598efd4 | |||
| 5b1d849d31 | |||
| fe7010f227 | |||
| e1d266e9cc | |||
| 450892e79d | |||
| aacf116e4b | |||
| d6c66a21a2 | |||
| 1cc8bdda80 | |||
| 7c60afa122 | |||
| 7f8e5d748b | |||
| 4f15dc2d17 | |||
| ddfa9ae6ee | |||
| a08187ca0e | |||
| 28819215fd | |||
| 1cd0ff363c | |||
| 389a92c738 | |||
| 0a94c81031 | |||
| 87fe9ecb7f | |||
| 4a2d6de9f5 | |||
| f7953889ba | |||
| 925e2050d1 | |||
| a2f7ba9a4f | |||
| 46ae0c462a | |||
| fbc133f96d | |||
| e6f9136247 | |||
| fb12826a5d | |||
| f7a908f5c8 | |||
| bb95804f3c | |||
| f958cfe64b | |||
| 1f1db511e6 | |||
| 93b3e54035 | |||
| 3a30575fd5 | |||
| 9d486e9cc8 | |||
| 7f7f1f8ffc | |||
| 04ddc1c111 | |||
| db46e5c093 | |||
| fa3794437d | |||
| ffaf43a9ee | |||
| b4c2b2dc85 | |||
| f60831777c | |||
| c459a39053 | |||
| 7e50c5c770 | |||
| 831ca12558 | |||
| e98f198920 | |||
| fe44add18f | |||
| 5557787d77 | |||
| 80a0c69805 | |||
| 89c9f93daa | |||
| 2ef736324b | |||
| cf35a9c679 | |||
| 461532214c | |||
| bf21ac030b | |||
| d0e8ea1eac | |||
| cca5e02384 | |||
| dd3dd6ff4f | |||
| 67ca5f4cb3 | |||
| 503f68fec8 | |||
| f395483903 | |||
| c64ae3a93a | |||
| bfbcb144ae | |||
| 4a52639e79 | |||
| 540ea2ee58 | |||
| 6104c464e9 | |||
| 461bf39813 | |||
| faf399ca44 | |||
| 14c91d242b | |||
| e6a451c0a5 | |||
| b3cdcf5bff | |||
| 4006e70c37 | |||
| 177d1eefd5 | |||
| 8462c41b9c | |||
| 3670c8e515 | |||
| 3737d0e943 | |||
| a80b0513f2 | |||
| 66a53e62d9 | |||
| 70e63279aa | |||
| db597dc3b4 | |||
| 8b316d6157 | |||
| 89262801a8 | |||
| 23fc6a465d | |||
| 875a2414d2 | |||
| 7a035b61fd | |||
| 9161156e99 | |||
| 932db393cb | |||
| d9b7901b75 | |||
| d5e8e5eb60 | |||
| bd95bcc71f | |||
| 504f01d10e | |||
| 37ad46224d | |||
| 5e88772da7 | |||
| 36bb407c3f | |||
| 9fe45a2a96 | |||
| 023bfdf71d | |||
| a8fa9fd1af | |||
| d232174098 | |||
| fa27c4a601 | |||
| 10b05f7aac | |||
| cb9d0ed593 | |||
| 7f73ea2433 | |||
| 6919e5864b | |||
| 6f0a977a68 | |||
| 1d3f287e90 | |||
| 75fc4c9919 | |||
| bf1e9e1b91 | |||
| e8bc79ff9f | |||
| 6a150ee3a3 | |||
| f0f611f0be | |||
| b5896cfdaf | |||
| 2e0096b03b | |||
| 0750c07959 | |||
| 402bb51a41 | |||
| 16906ba5ad | |||
| 9e57671572 | |||
| eee6eb0581 | |||
| 5a980b216e | |||
| 1d9013260a | |||
| 0c0db501da | |||
| e4432a8ad0 | |||
| d75f859b50 | |||
| a086f5bc8c | |||
| 567f825e62 | |||
| 29b289b07c | |||
| e8172b12b1 | |||
| b97e27a2f4 | |||
| a8978500d5 | |||
| 4ec6d2b7ac | |||
| 5336f93d0a | |||
| 0d9affdf6f | |||
| 7a4e3d4a90 | |||
| e87678d036 | |||
| ab03f77fe4 | |||
| a3871e2b0f | |||
| 5c992ed4c6 | |||
| 72acb451e7 | |||
| aebaf7c724 | |||
| 5551d70879 | |||
| ebab63a988 | |||
| b82d58f40f | |||
| b2c41c13b5 | |||
| 80be7f8f03 | |||
| 5240a15504 | |||
| 08cecb1ac7 | |||
| 8b7edc68f0 | |||
| 42568efef5 | |||
| afd0af7c3b | |||
| 279a91b326 | |||
| 7cf641f948 | |||
| 79014159ea | |||
| 13d7859a2d | |||
| 28648fa672 | |||
| 3d576487d4 | |||
| 3cd8a56f49 | |||
| 553c9dceb1 | |||
| c4c740ed3a | |||
| d6cbe09cc7 | |||
| 0ef44d20f2 | |||
| f850722613 | |||
| 846959b798 | |||
| 859da91fac | |||
| 16f34a9d14 | |||
| 2c731c13c0 | |||
| 9422e97eb6 | |||
| 1544de5562 | |||
| 2cff827e3f | |||
| 82217dfc7b | |||
| 7178081da8 | |||
| 0aa3af32cd | |||
| dcd5a839c1 | |||
| 1233dfcf4d | |||
| 1e7d839973 | |||
| 1a5a6473c7 | |||
| c2ae93de14 | |||
| 434142d600 | |||
| 50d36b6c25 | |||
| 220df936f2 | |||
| 36ff657d03 | |||
| 475a36560d | |||
| 6b26d20bf4 | |||
| 500ecdd25f | |||
| 0d3f205c5a | |||
| d589d0cb22 | |||
| 8cfe09751e | |||
| abf23dfc56 | |||
| 727bdd191c | |||
| 56dad0348e | |||
| 307b6bd35b | |||
| ece2d3d547 | |||
| 10e171ee13 | |||
| 62ae40416c | |||
| 010978def8 | |||
| 08f6b42d17 | |||
| 2e94b562f2 | |||
| 29cdcd0294 | |||
| 075fa637dc | |||
| 87f2994e75 | |||
| 0e48a7ead2 | |||
| 719c8cae4c | |||
| 7f0d50e633 | |||
| 5294bc9228 | |||
| 40cce2781b | |||
| 7878c02f58 | |||
| 4f8a13c6a3 | |||
| f5d3f3ca3c | |||
| ab63688a05 | |||
| 0690582b2c | |||
| 57d87a6bca | |||
| 933b7b8e50 | |||
| 472849e532 | |||
| 09e55b2d1c | |||
| bcbf165268 | |||
| 837a858217 | |||
| 7cd6591a6b | |||
| 28a1a7c19f | |||
| 7fec4cdd26 | |||
| dd584274a2 | |||
| a3121678db | |||
| 18696c2cca | |||
| f6260bf4c1 | |||
| 9e9633f708 | |||
| 948d29534c | |||
| 08e52acf07 | |||
| 5f166bd769 | |||
| 1590e22ded | |||
| 55ce25dd5a | |||
| d01f8d30a5 | |||
| 269e66ee7e | |||
| 0150e940d3 | |||
| 6fd060e089 | |||
| 3bb613aa35 | |||
| 5daed2e6cf | |||
| b026363af3 | |||
| c29aadf0c6 | |||
| a2c057e016 | |||
| 0b73277d08 | |||
| 0806357172 | |||
| 068eee2278 | |||
| a8b130a0c9 | |||
| 1f7d096953 | |||
| 75fa18127b | |||
| 044f79cabc | |||
| d544667510 | |||
| ebd8fc816f | |||
| a5165f390d | |||
| dd2f87e97b | |||
| 8c477a6b94 | |||
| a1f2fb4c23 | |||
| 6158cc9381 | |||
| 4a2217b7ed | |||
| e8df63e1e6 | |||
| 529b5e328c | |||
| aebb7c28bd | |||
| 2f7c9dcdb5 | |||
| 3b17c7ad37 | |||
| 67f1c84f7e | |||
| d2c5eedfce | |||
| 6e5b2fd9b5 | |||
| 906c9adbd6 | |||
| 4f7cc7bc86 | |||
| 78676d06c3 | |||
| b850d28339 | |||
| c84011187a | |||
| 0c6049d629 | |||
| 66921d4de2 | |||
| f44f3768bc | |||
| 0f985a5d21 | |||
| 64492576aa | |||
| 57093aa400 | |||
| 5fe34208af | |||
| 18b7a30b17 | |||
| 2e5203df43 | |||
| 60e96b0fea | |||
| d8ec7e2b16 | |||
| 40ddeacd61 | |||
| 81de151125 | |||
| ec007f0428 | |||
| c1dd711df6 | |||
| 91653141c0 | |||
| f92ca6fe62 | |||
| f00ddf4bfb | |||
| 8ac4115e1d | |||
| 8e9b5f6832 | |||
| 5cafadb8e2 | |||
| 9d207f98cf | |||
| bc4f29f6cf | |||
| 50e9432b26 | |||
| 6172fc9b4d | |||
| 22bd704ae6 | |||
| 998e511f2f | |||
| 0b0a225034 | |||
| d276b7fc20 | |||
| bf4b65d7d8 | |||
| 670949c9c2 | |||
| 70ad64b4b4 | |||
| 2e6ede0405 | |||
| 155ca06ef3 | |||
| a39438d7dd | |||
| d39f4a3219 | |||
| 8bc867ee0e | |||
| 5c3ec8f436 | |||
| baea82bfbb | |||
| b26fd59881 | |||
| 620ac95b19 | |||
| 53975f1262 | |||
| 7101ec6df8 | |||
| 7e697415bc | |||
| 9c493b91d7 | |||
| 47a4dedb14 | |||
| 96cda6be32 | |||
| 466d6b4b5e | |||
| 15e200c787 | |||
| 54ef73b6db | |||
| 769f660e3a | |||
| ab9810d80b | |||
| 9ce58b394f | |||
| 7d1dfbd558 | |||
| 43eb54205d | |||
| dcde0dd367 | |||
| aec3517421 | |||
| 7d899c8d9d | |||
| 0a4591acc3 | |||
| b0c9165b66 | |||
| 29da0409e9 | |||
| a92677a5b9 | |||
| 1a397b28f3 | |||
| f2f4bd5066 | |||
| 21d23b8100 | |||
| b568ac9dd2 | |||
| 5316071a55 | |||
| 0b7e7b05c5 | |||
| 4fc505c885 | |||
| 3ed900f1be | |||
| 229b6d68b8 | |||
| cda4ce1765 | |||
| 817b940c24 | |||
| 10b4bc2305 | |||
| d182fc260e | |||
| c9f30c473f | |||
| 8bb5eb8ebd | |||
| b6c67e5353 | |||
| 1d56ba7158 | |||
| 81a4684a2c | |||
| 2a75dc0dc5 | |||
| 0874aad6a5 | |||
| c83e9aa189 | |||
| bba13a958d | |||
| 59ad407b89 | |||
| bcba6058e1 | |||
| 50beff0bbb | |||
| 165f67cc5b | |||
| 7b17286222 | |||
| 3cdd46cdce | |||
| 34d33028ec | |||
| 38d66931f5 | |||
| ae1ca9ad7f | |||
| 210a6d51a5 | |||
| 5c9ba7b7f1 | |||
| 8c167c313a | |||
| 417bf3667c | |||
| 0c180afadd | |||
| e18cfb89d6 | |||
| cc9a1a1760 | |||
| a240d39e19 | |||
| 7f012015cd | |||
| f0cfb3b874 | |||
| df9fda1057 | |||
| 1c1bfad35e | |||
| 7b0f2d49b5 | |||
| 617896a85b | |||
| 8b70140c71 | |||
| deec1b0bd6 | |||
| 465ae51f6c | |||
| b6a156b353 | |||
| a959b4708b | |||
| 977e153c5d | |||
| 77e5044a63 | |||
| 5f9f2e3861 | |||
| 94b692621f | |||
| a8ca0fa98e | |||
| d2e8926ca6 | |||
| ff978b77d4 | |||
| 35e80620b2 | |||
| 2ed180822c | |||
| a477278651 | |||
| 6e40152bc9 | |||
| 29d964cafd | |||
| 952397783b | |||
| 58ed5b4ec8 | |||
| 675a750ae6 | |||
| 680a156838 | |||
| 902e35e6db | |||
| 9fefb78dd8 | |||
| 8502a8c540 | |||
| e0073230e5 | |||
| d74845021f | |||
| 6fa1c0364d | |||
| 7a459bb031 | |||
| eb7ba37bf3 | |||
| c484687413 | |||
| fa25714764 | |||
| 72d9cd0f42 | |||
| 55bd97f7f6 | |||
| 62978c681e | |||
| 0e1b70a774 | |||
| 1137cf5443 | |||
| 83bba86b56 | |||
| be16c04fc6 | |||
| a64112037d | |||
| c8c2184003 | |||
| 1d1331d6db | |||
| 99cef99cf0 | |||
| bd08e5978a | |||
| bea56eb9f4 | |||
| f80a62c29e | |||
| 170501f16d | |||
| 5a2a668168 | |||
| a2becf2105 | |||
| 3f4bd0da1b | |||
| 14fe3b0fd0 | |||
| 7032dd71e8 | |||
| 7933b1ad54 | |||
| ddd3b7167b | |||
| be0653a6f2 | |||
| be8a1dafb9 | |||
| d67ba84af0 | |||
| ab9b88046d | |||
| 6007b0b727 | |||
| 422fe61a53 | |||
| 407a7b624b | |||
| 0cb20131b4 | |||
| 3e2e9ff834 | |||
| 9d5f87ea57 | |||
| 3b5ddb5a0c | |||
| dbb1ea9192 | |||
| 4b04a4ca93 | |||
| 6bb5695f56 | |||
| 6863464467 | |||
| 8f1565e920 | |||
| e11dd25d68 | |||
| 3548558a64 | |||
| 6e923a6a46 | |||
| 5f06aaf4a4 | |||
| 45d96c1dbd | |||
| 8e157193f0 | |||
| 5c9f68c967 | |||
| 27b2048f03 | |||
| 3cdbd545ff | |||
| 7737cb1246 | |||
| 7798b51ee9 | |||
| b2a03a42d1 | |||
| a543097734 | |||
| 09e4aae936 | |||
| ffede3caf1 | |||
| 846d321151 | |||
| d960d9f1fb | |||
| f3224014a4 | |||
| 9128d9f9a5 | |||
| 1f2e9ad706 | |||
| 48cc4ba137 | |||
| a3293f7a54 | |||
| 032f214345 | |||
| 2c4e4ea703 | |||
| 5e92efc70f | |||
| 0b7de5d43e | |||
| cd7b1775f6 | |||
| 627f790edc | |||
| 4deec2010d | |||
| 05cb535943 | |||
| 54597de58c | |||
| 0fc8b927a1 | |||
| 1088f62d16 | |||
| 2ad18a13c0 | |||
| 6742b603cb | |||
| 599fe261f2 | |||
| 46ceb837f6 | |||
| c2ecb57f37 | |||
| d0a48896b0 | |||
| 67969a1d89 | |||
| 765f2fa723 | |||
| 2e1ee9d901 | |||
| 0772564f08 | |||
| 6e00f7a135 | |||
| f38355927a | |||
| e5102b5edb | |||
| 27524bfd19 | |||
| 9063a38770 | |||
| ca66f403e7 | |||
| 43d8f637b2 | |||
| 1d1418ac44 | |||
| a1b294eb8a | |||
| 98926ea2cc | |||
| 6baec746a8 | |||
| 1fc6bb90eb | |||
| 1b7addaa6e | |||
| 18f9769662 | |||
| d34c9f21a8 | |||
| d1da209214 | |||
| f4d53b86fd | |||
| a8267e7fe4 | |||
| d394888cfa | |||
| 9c9985fced | |||
| dec3592a67 | |||
| 5baa6b5f12 | |||
| 3908fc321a | |||
| 5f0942f1e9 | |||
| 49258fd3d7 | |||
| 495b5e2b0b | |||
| e0fc78e849 | |||
| c0a087584f | |||
| e8bf51ffc3 | |||
| 44ca28dd4c | |||
| dfb734529d | |||
| 791b19ff68 | |||
| a5cc8bd34a | |||
| 9b2af9bafd | |||
| 2be9591824 | |||
| 180abc2fe2 | |||
| abf59f38e7 | |||
| 3141de1357 | |||
| 1eef137381 | |||
| 60e26f7792 | |||
| 2767780dec | |||
| 3348e72b58 | |||
| ca10c07690 | |||
| 228adb1656 | |||
| f62a87528f | |||
| 4426659fac | |||
| 214ca1de9f | |||
| 16c86c21a9 | |||
| a92b3bade0 | |||
| 866273b11c | |||
| d2fe559c7c | |||
| 41e675ae6a | |||
| 8e1169a8d9 | |||
| 6de4675aa9 | |||
| 19e6a1929b | |||
| b817782b9b | |||
| 2324e5d7a9 | |||
| b585793c46 | |||
| 31923bec62 | |||
| 48b2345a98 | |||
| dafe2a811f | |||
| 87465906b4 | |||
| 18c571dd97 | |||
| 2d668eb4fa | |||
| 26e3893f3a | |||
| 6bbbc68ff7 | |||
| bd55b5fd74 | |||
| b91095ed9a | |||
| 28087d6363 | |||
| 83a7b5d45c | |||
| a51b724288 | |||
| b6a5b083c1 | |||
| d5de70daf6 | |||
| eb12dd8db7 | |||
| d29aa5293b | |||
| ab29dc7af6 | |||
| e17ca0a906 | |||
| f4d4c19754 | |||
| d1c0f7a05f | |||
| 995afc0a0b | |||
| 950155c799 | |||
| 69daae8e32 | |||
| f9f4b11da5 | |||
| 4b69759518 | |||
| f5fc1b901d | |||
| ca0cc0f24c | |||
| 970a4c8b83 | |||
| fb21d5fdeb | |||
| ff02b82dc4 | |||
| ed90f4090a | |||
| 527c96b31a | |||
| 7fd86fde99 | |||
| 3c4f2251d2 | |||
| f4aa043eed | |||
| 696ad9847b | |||
| 8452e4b2af | |||
| dd60f6c1f3 | |||
| 4439f94956 | |||
| b87e2f6898 | |||
| a6340fc43b | |||
| d6fb98752c | |||
| 414cfedb3e | |||
| da02f085e2 | |||
| ac7eb6e3db | |||
| 3e2f850711 | |||
| f2c9ad8982 | |||
| afd993db51 | |||
| 6bb5f3808e | |||
| c7824fba5a | |||
| 30143b24bf | |||
| cb50d0c36b | |||
| 66e12a6eb3 | |||
| dc5c0a666b | |||
| e2c8bfde55 | |||
| 1c6c75d05d | |||
| c04469f150 | |||
| fd743bd70e | |||
| 0497f281bc | |||
| 460e21e4b7 | |||
| 74befaef51 | |||
| fd0099fb64 | |||
| 86d2ac0e66 | |||
| 5693c85f30 | |||
| 3308386da5 | |||
| 3de3f4dd35 | |||
| 75db016c07 | |||
| 8ebd0b289d | |||
| 64f178c81c | |||
| 07638e9ee2 | |||
| c00d41c25e | |||
| 7d54cf22ea | |||
| 27df213f2b | |||
| 9020192e82 | |||
| b624bea048 | |||
| d0f51f7999 | |||
| a51ed2559c | |||
| f7cf2797e8 | |||
| 2f9ce76435 | |||
| 052ca6e1a7 | |||
| a115d81fa7 | |||
| d6b0f9359c | |||
| dc19b07de7 | |||
| 3c6d526dc2 | |||
| 84b0bc7e84 | |||
| 5b95e6416f | |||
| 54ba0288e1 | |||
| 0cbc13389f | |||
| c1fb620227 | |||
| 9a0c58504c | |||
| 4c0724fb90 | |||
| 670543f8cf | |||
| 5412720930 | |||
| 73f9f1a6a4 | |||
| a81d685b67 | |||
| 441eaacecf | |||
| 4faecb7e94 | |||
| c60f909bc0 | |||
| ff29668daa | |||
| ce615db5cc | |||
| c87ca9f9e6 | |||
| af6135f1ed | |||
| b4423eef37 | |||
| 3935efb5ab | |||
| 24a87e913c | |||
| 11527ff5d6 | |||
| b042def28c | |||
| e4e72de99a | |||
| d70b97e841 | |||
| 81c42f2cea | |||
| fe713e8c12 | |||
| 99dddaac1e | |||
| 41a6e83487 | |||
| 19bf28d403 | |||
| d785fb4ef8 | |||
| 75b69a1a1a | |||
| a3c34fe7f7 | |||
| 152cb4bfd5 | |||
| 894dc4365f | |||
| d3ec9d8eae | |||
| 884040a950 | |||
| 1116990af4 | |||
| 87bb6a731d | |||
| cf8f3df998 | |||
| 85ed5e633e | |||
| 5cfe0ed512 | |||
| 28cf54a525 | |||
| 94146b4211 | |||
| 4903a20abb | |||
| 2f19afe7fc | |||
| a16cff8d9b | |||
| eaa3651304 | |||
| 3870728572 | |||
| 34544e97e2 | |||
| 23e0a83c56 | |||
| d8d698125e | |||
| ae743ee020 | |||
| ef7fce7468 | |||
| aea2a84b09 | |||
| 9c21cabd45 | |||
| bce69d2c1f | |||
| 290e3a55f7 | |||
| ca4d1bd219 | |||
| 0dd36d8c7f | |||
| 5d60e80783 | |||
| aa1a043c22 | |||
| 746a843a8e | |||
| d64d0d7ed4 | |||
| e37601b0af | |||
| ba808581fb | |||
| 2b96f78d5d | |||
| 229e125e3f | |||
| 9cee3499e2 | |||
| 941a2bf68c | |||
| 79ec9901c1 | |||
| 076410a790 | |||
| 3e542dacbd | |||
| cc8cf5c64d | |||
| fcce660bea | |||
| 29fee8e3aa | |||
| cdb22c78f1 | |||
| 4d5de1e536 | |||
| 8378b547df | |||
| d79c81d0f8 | |||
| 7d48cde471 | |||
| 5607c2b820 | |||
| 3f27d0b1a1 | |||
| 786010bb59 | |||
| e30c920892 | |||
| 6791d345c3 | |||
| c8cab05b83 | |||
| f98e57c3aa | |||
| 5c317813ec | |||
| 559ba3955c | |||
| 50fcebb09a | |||
| f38a165c67 | |||
| 7a21e5ddf1 | |||
| 9092299b3d | |||
| 57cab8a928 | |||
| b21c7dd8d5 | |||
| 00d4cf328b | |||
| 859ebe036d | |||
| 3fcafcbbc4 | |||
| 488b4f6dab | |||
| 3aea263ba1 | |||
| 2023fd2b75 | |||
| 9100972c83 | |||
| 164bd4c333 | |||
| 1d3f903801 | |||
| 544ca8d4c3 | |||
| 0eb6409298 | |||
| e6221f9379 | |||
| a6c1472757 | |||
| 59be02c13b | |||
| 4f4667705c | |||
| b9c099d283 | |||
| 573abe5ff4 | |||
| 8b4e07a1ea | |||
| 7649109b29 | |||
| 1c3ed66e8c | |||
| b4b7481028 | |||
| a695fc293c | |||
| 4cd3f6dbfe |
1
.gitignore
vendored
1
.gitignore
vendored
@ -25,6 +25,7 @@ scripts/var.less
|
||||
|
||||
# IDE - VSCode
|
||||
.vscode/*
|
||||
.vscode
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
|
||||
30
.husky/_/husky.sh
Normal file
30
.husky/_/husky.sh
Normal file
@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
if [ -z "$husky_skip_init" ]; then
|
||||
debug () {
|
||||
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
|
||||
}
|
||||
|
||||
readonly hook_name="$(basename "$0")"
|
||||
debug "starting $hook_name..."
|
||||
|
||||
if [ "$HUSKY" = "0" ]; then
|
||||
debug "HUSKY env variable is set to 0, skipping hook"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -f ~/.huskyrc ]; then
|
||||
debug "sourcing ~/.huskyrc"
|
||||
. ~/.huskyrc
|
||||
fi
|
||||
|
||||
export readonly husky_skip_init=1
|
||||
sh -e "$0" "$@"
|
||||
exitCode="$?"
|
||||
|
||||
if [ $exitCode != 0 ]; then
|
||||
echo "husky - $hook_name hook exited with code $exitCode (error)"
|
||||
exit $exitCode
|
||||
fi
|
||||
|
||||
exit 0
|
||||
fi
|
||||
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"compile-hero.disable-compile-files-on-did-save-code": true
|
||||
}
|
||||
17
angular.json
17
angular.json
@ -34,7 +34,6 @@
|
||||
],
|
||||
"styles": [
|
||||
"node_modules/perfect-scrollbar/css/perfect-scrollbar.css",
|
||||
"node_modules/quill/dist/quill.snow.css",
|
||||
"src/styles.less",
|
||||
{
|
||||
"input": "src/styles/default.less",
|
||||
@ -47,9 +46,8 @@
|
||||
"inject": false
|
||||
}
|
||||
],
|
||||
|
||||
|
||||
"scripts": [
|
||||
"node_modules/quill/dist/quill.min.js",
|
||||
"node_modules/perfect-scrollbar/dist/perfect-scrollbar.js",
|
||||
"node_modules/qrious/dist/qrious.min.js"
|
||||
],
|
||||
@ -83,6 +81,18 @@
|
||||
"maximumError": "10mb"
|
||||
}]
|
||||
},
|
||||
"test": {
|
||||
"fileReplacements": [{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/eascs/environment.test.ts"
|
||||
}],
|
||||
"outputHashing": "all",
|
||||
"budgets": [{
|
||||
"type": "initial",
|
||||
"maximumWarning": "4mb",
|
||||
"maximumError": "10mb"
|
||||
}]
|
||||
},
|
||||
"development": {
|
||||
"buildOptimizer": false,
|
||||
"optimization": false,
|
||||
@ -127,7 +137,6 @@
|
||||
"karmaConfig": "karma.conf.js",
|
||||
"tsConfig": "tsconfig.spec.json",
|
||||
"scripts": [
|
||||
"node_modules/quill/dist/quill.min.js",
|
||||
"node_modules/perfect-scrollbar/dist/perfect-scrollbar.js"
|
||||
],
|
||||
"styles": [],
|
||||
|
||||
4665
package-lock.json
generated
4665
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
59
package.json
59
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tms-obc-web",
|
||||
"version": "0.0.0",
|
||||
"version": "1.2.0",
|
||||
"description": "运营后台-WEB",
|
||||
"author": "cipchk <cipchk@qq.com>",
|
||||
"repository": {
|
||||
@ -16,6 +16,7 @@
|
||||
"hmr": "ng s -o --hmr",
|
||||
"build": "npm run ng-high-memory build --",
|
||||
"build:dev": "npm run build -- -c dev",
|
||||
"build:test": "npm run build -- -c test",
|
||||
"analyze": "npm run ng-high-memory build -- --source-map",
|
||||
"analyze:view": "source-map-explorer dist/**/*.js",
|
||||
"lint": "npm run lint:ts && npm run lint:style",
|
||||
@ -66,8 +67,6 @@
|
||||
"ngx-trend": "^7.0.0",
|
||||
"perfect-scrollbar": "^1.5.2",
|
||||
"qrious": "^4.0.2",
|
||||
"quill": "^1.3.7",
|
||||
"quill-image-resize-module": "^3.0.0",
|
||||
"rxjs": "~6.6.0",
|
||||
"screenfull": "^5.1.0",
|
||||
"tslib": "^2.3.0",
|
||||
@ -75,22 +74,22 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "~12.2.0",
|
||||
"@angular/cli": "~12.2.0",
|
||||
"@angular/compiler-cli": "~12.2.0",
|
||||
"@types/jasmine": "~3.8.0",
|
||||
"@types/node": "^12.11.1",
|
||||
"jasmine-core": "~3.8.0",
|
||||
"karma": "~6.3.0",
|
||||
"karma-chrome-launcher": "~3.1.0",
|
||||
"karma-coverage": "~2.0.3",
|
||||
"karma-jasmine": "~4.0.0",
|
||||
"karma-jasmine-html-reporter": "~1.7.0",
|
||||
"typescript": "~4.3.5",
|
||||
"@angular-eslint/builder": "~12.3.1",
|
||||
"@angular-eslint/eslint-plugin": "~12.3.1",
|
||||
"@angular-eslint/eslint-plugin-template": "~12.3.1",
|
||||
"@angular-eslint/schematics": "~12.3.1",
|
||||
"@angular-eslint/template-parser": "~12.3.1",
|
||||
"@angular/cli": "~12.2.0",
|
||||
"@angular/compiler-cli": "~12.2.0",
|
||||
"@angular/language-service": "~12.2.0",
|
||||
"@delon/testing": "^12.3.0",
|
||||
"@types/d3-geo": "^3.0.2",
|
||||
"@types/d3-sankey": "^0.11.2",
|
||||
"@types/file-saver": "^2.0.3",
|
||||
"@types/jasmine": "~3.8.0",
|
||||
"@types/jasminewd2": "~2.0.3",
|
||||
"@types/js-base64": "^3.0.0",
|
||||
"@types/node": "^12.11.1",
|
||||
"@typescript-eslint/eslint-plugin": "~4.29.2",
|
||||
"@typescript-eslint/parser": "~4.29.2",
|
||||
"eslint": "^7.32.0",
|
||||
@ -99,29 +98,31 @@
|
||||
"eslint-plugin-jsdoc": "~36.0.7",
|
||||
"eslint-plugin-prefer-arrow": "~1.2.3",
|
||||
"eslint-plugin-prettier": "~3.4.1",
|
||||
"@angular/language-service": "~12.2.0",
|
||||
"source-map-explorer": "^2.5.2",
|
||||
"husky": "^6.0.0",
|
||||
"jasmine-core": "~3.8.0",
|
||||
"jasmine-spec-reporter": "~5.0.0",
|
||||
"karma": "~6.3.0",
|
||||
"karma-chrome-launcher": "~3.1.0",
|
||||
"karma-coverage": "~2.0.3",
|
||||
"karma-coverage-istanbul-reporter": "~3.0.2",
|
||||
"karma-jasmine": "~4.0.0",
|
||||
"karma-jasmine-html-reporter": "~1.7.0",
|
||||
"lint-staged": "^11.1.2",
|
||||
"ng-alain": "^12.3.0",
|
||||
"ng-alain-plugin-theme": "^12.0.0",
|
||||
"ng-alain-sts": "^0.0.1",
|
||||
"node-fetch": "^2.6.1",
|
||||
"prettier": "^2.2.1",
|
||||
"protractor": "~7.0.0",
|
||||
"source-map-explorer": "^2.5.2",
|
||||
"stylelint": "^13.13.1",
|
||||
"stylelint-config-prettier": "^8.0.2",
|
||||
"stylelint-config-rational-order": "^0.1.2",
|
||||
"stylelint-config-standard": "^22.0.0",
|
||||
"stylelint-declaration-block-no-ignored-properties": "^2.4.0",
|
||||
"stylelint-order": "^4.1.0",
|
||||
"@delon/testing": "^12.3.0",
|
||||
"ng-alain": "^12.3.0",
|
||||
"ng-alain-plugin-theme": "^12.0.0",
|
||||
"ng-alain-sts": "^0.0.1",
|
||||
"@types/jasminewd2": "~2.0.3",
|
||||
"jasmine-spec-reporter": "~5.0.0",
|
||||
"karma-coverage-istanbul-reporter": "~3.0.2",
|
||||
"protractor": "~7.0.0",
|
||||
"ts-node": "~8.3.0",
|
||||
"node-fetch": "^2.6.1",
|
||||
"husky": "^6.0.0",
|
||||
"lint-staged": "^11.1.2",
|
||||
"@types/file-saver": "^2.0.3",
|
||||
"@types/js-base64": "^3.0.0"
|
||||
"typescript": "~4.3.5"
|
||||
},
|
||||
"lint-staged": {
|
||||
"(src)/**/*.{html,ts}": [
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-18 09:51:21
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-03-23 15:21:39
|
||||
* @LastEditTime : 2022-05-16 17:27:31
|
||||
* @FilePath : \\tms-obc-web\\proxy.conf.js
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -18,9 +18,19 @@ module.exports = {
|
||||
// secure: false, // Ignore invalid SSL certificates
|
||||
// changeOrigin: true
|
||||
// }
|
||||
// '//api': {
|
||||
// target: {
|
||||
// host: 'tms-api.yunduoxing.com',
|
||||
// protocol: 'https:',
|
||||
// port: 443
|
||||
// },
|
||||
// secure: false,
|
||||
// changeOrigin: true,
|
||||
// logLevel: 'debug'
|
||||
// },
|
||||
'//api': {
|
||||
target: {
|
||||
host: 'tms-api-test.eascs.com',
|
||||
host: 'tms-api-dev.eascs.com',
|
||||
protocol: 'https:',
|
||||
port: 443
|
||||
},
|
||||
|
||||
@ -1,23 +1,19 @@
|
||||
/* eslint-disable import/order */
|
||||
/* eslint-disable import/no-duplicates */
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { default as ngLang } from '@angular/common/locales/zh';
|
||||
import { APP_INITIALIZER, DEFAULT_CURRENCY_CODE, LOCALE_ID, NgModule, Type } from '@angular/core';
|
||||
import { APP_INITIALIZER, DEFAULT_CURRENCY_CODE, NgModule, Type } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { SimpleInterceptor } from '@delon/auth';
|
||||
import { NzNotificationModule } from 'ng-zorro-antd/notification';
|
||||
import zh from '@angular/common/locales/zh';
|
||||
registerLocaleData(zh);
|
||||
// #region global third module
|
||||
|
||||
import { BidiModule } from '@angular/cdk/bidi';
|
||||
const GLOBAL_THIRD_MODULES: Array<Type<any>> = [BidiModule];
|
||||
const GLOBAL_THIRD_MODULES: Array<Type<any>> = [];
|
||||
|
||||
// #endregion
|
||||
|
||||
// #region Http Interceptors
|
||||
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
||||
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
||||
|
||||
import { BusinessInterceptor, DefaultInterceptor } from '@core';
|
||||
|
||||
@ -42,35 +38,20 @@ const APPINIT_PROVIDES = [
|
||||
multi: true
|
||||
},
|
||||
{ provide: DEFAULT_CURRENCY_CODE, useValue: '¥' },
|
||||
AuthGuard
|
||||
{ provide: RouteReuseStrategy, useClass: ReuseTabStrategy, deps: [ReuseTabService] }
|
||||
];
|
||||
// #endregion
|
||||
|
||||
import { AppComponent } from './app.component';
|
||||
import { CoreModule } from './core/core.module';
|
||||
import { GlobalConfigModule } from './global-config.module';
|
||||
import { LayoutModule } from './layout/layout.module';
|
||||
import { RoutesModule } from './routes/routes.module';
|
||||
import { SharedModule } from './shared/shared.module';
|
||||
import { STWidgetModule } from './shared/widget/st-widget.module';
|
||||
import { registerLocaleData } from '@angular/common';
|
||||
import { AuthGuard } from './core/guards/auth.guard';
|
||||
import { RouteReuseStrategy, RouterModule } from '@angular/router';
|
||||
import { ReuseTabService, ReuseTabStrategy } from '@delon/abc/reuse-tab';
|
||||
|
||||
@NgModule({
|
||||
declarations: [AppComponent],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
BrowserAnimationsModule,
|
||||
HttpClientModule,
|
||||
GlobalConfigModule.forRoot(),
|
||||
CoreModule,
|
||||
SharedModule,
|
||||
LayoutModule,
|
||||
RoutesModule,
|
||||
STWidgetModule,
|
||||
NzNotificationModule,
|
||||
...GLOBAL_THIRD_MODULES
|
||||
],
|
||||
imports: [BrowserModule, BrowserAnimationsModule, HttpClientModule, CoreModule, RoutesModule, RouterModule, ...GLOBAL_THIRD_MODULES],
|
||||
providers: [...INTERCEPTOR_PROVIDES, ...APPINIT_PROVIDES],
|
||||
bootstrap: [AppComponent]
|
||||
})
|
||||
|
||||
@ -1,10 +1,11 @@
|
||||
import { NgModule, Optional, SkipSelf } from '@angular/core';
|
||||
import { AuthGuard } from './guards/auth.guard';
|
||||
import { EATokenGuard } from './guards/token.guard';
|
||||
|
||||
import { throwIfAlreadyLoaded } from './module-import-guard';
|
||||
|
||||
@NgModule({
|
||||
providers: [EATokenGuard]
|
||||
providers: [AuthGuard, EATokenGuard]
|
||||
})
|
||||
export class CoreModule {
|
||||
constructor(@Optional() @SkipSelf() parentModule: CoreModule) {
|
||||
|
||||
@ -4,10 +4,13 @@ import { cacheConf } from '@conf/cache.conf';
|
||||
import { sysConf } from '@conf/sys.conf';
|
||||
import { ACLService } from '@delon/acl';
|
||||
import { MenuService, SettingsService, TitleService, _HttpClient } from '@delon/theme';
|
||||
import { AlainConfigService } from '@delon/util';
|
||||
import { environment } from '@env/environment';
|
||||
import { AmapService, EACacheService, EAUserService } from '@shared';
|
||||
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
||||
import { NzIconService } from 'ng-zorro-antd/icon';
|
||||
import { NzImageService } from 'ng-zorro-antd/image';
|
||||
import { NzUploadFile } from 'ng-zorro-antd/upload';
|
||||
import { Observable, zip } from 'rxjs';
|
||||
import { catchError, map } from 'rxjs/operators';
|
||||
|
||||
@ -31,10 +34,22 @@ export class StartupService {
|
||||
private userSrv: EAUserService,
|
||||
private amapService: AmapService,
|
||||
public cacheSrv: EACacheService,
|
||||
private coreSrv: CoreService
|
||||
private coreSrv: CoreService,
|
||||
private nzImageService: NzImageService,
|
||||
private alainConfigService: AlainConfigService
|
||||
) {
|
||||
iconSrv.addIcon(...ICONS_AUTO, ...ICONS);
|
||||
this.settingService.setLayout('fixSiderbar', true);
|
||||
// 全局修改sf图片预览方式
|
||||
alainConfigService.set('sf', {
|
||||
ui: {
|
||||
preview: (file: NzUploadFile) => {
|
||||
if (file.url) {
|
||||
this.nzImageService.preview([{ src: file.url }]);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// TODO: 退出登录时需要清理用户信息
|
||||
|
||||
@ -12,12 +12,14 @@ import { environment } from '@env/environment';
|
||||
|
||||
const alainConfig: AlainConfig = {
|
||||
st: {
|
||||
bordered: true,
|
||||
req: { method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' } },
|
||||
res: { reName: { list: 'data.records', total: 'data.total' } },
|
||||
page: { show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000], toTop: false },
|
||||
modal: { size: 'lg' }
|
||||
modal: { size: 'lg' },
|
||||
ps: 20
|
||||
},
|
||||
sf: { button: { search: '查询' }, ui: { placeholder: '请输入' } },
|
||||
sf: { button: { search: '查询' } },
|
||||
pageHeader: { homeI18n: 'home', recursiveBreadcrumb: true },
|
||||
auth: { login_url: '/passport/login' },
|
||||
acl: { guard_url: '/exception/403' },
|
||||
|
||||
@ -27,6 +27,7 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
|
||||
import { NzGridModule } from 'ng-zorro-antd/grid';
|
||||
import { LayoutPassportComponent } from './passport/passport.component';
|
||||
import { PRO_COMPONENTS } from './pro/index';
|
||||
import { SearchDrawerModule } from '../shared/components/search-drawer/search-drawer.module';
|
||||
|
||||
const COMPONENTS: Array<Type<any>> = [...PRO_COMPONENTS, LayoutPassportComponent];
|
||||
|
||||
@ -57,7 +58,8 @@ const COMPONENTS: Array<Type<any>> = [...PRO_COMPONENTS, LayoutPassportComponent
|
||||
ThemeBtnModule,
|
||||
ScrollbarModule,
|
||||
NzGridModule,
|
||||
NzMessageModule
|
||||
NzMessageModule,
|
||||
SearchDrawerModule
|
||||
],
|
||||
declarations: COMPONENTS,
|
||||
exports: COMPONENTS
|
||||
|
||||
@ -1,126 +0,0 @@
|
||||
body {
|
||||
background : radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
|
||||
height : 100vh;
|
||||
overflow : hidden;
|
||||
display : flex;
|
||||
font-family : 'Anton', sans-serif;
|
||||
justify-content: center;
|
||||
align-items : center;
|
||||
}
|
||||
|
||||
$shooting-time: 3000ms;
|
||||
|
||||
.night {
|
||||
position : relative;
|
||||
width : 100%;
|
||||
height : 100%;
|
||||
transform : rotateZ(45deg);
|
||||
// animation: sky 200000ms linear infinite;
|
||||
}
|
||||
|
||||
.shooting_star {
|
||||
position : absolute;
|
||||
left : 50%;
|
||||
top : 50%;
|
||||
// width: 100px;
|
||||
height : 2px;
|
||||
background : linear-gradient(-45deg, rgba(95, 145, 255, 1), rgba(0, 0, 255, 0));
|
||||
border-radius: 999px;
|
||||
filter : drop-shadow(0 0 6px rgba(105, 155, 255, 1));
|
||||
animation :
|
||||
tail $shooting-time ease-in-out infinite,
|
||||
shooting $shooting-time ease-in-out infinite;
|
||||
|
||||
&::before {
|
||||
content : '';
|
||||
position : absolute;
|
||||
top : calc(50% - 1px);
|
||||
right : 0;
|
||||
// width: 30px;
|
||||
height : 2px;
|
||||
background : linear-gradient(-45deg, rgba(0, 0, 255, 0), rgba(95, 145, 255, 1), rgba(0, 0, 255, 0));
|
||||
transform : translateX(50%) rotateZ(45deg);
|
||||
border-radius: 100%;
|
||||
animation : shining $shooting-time ease-in-out infinite;
|
||||
}
|
||||
|
||||
&::after {
|
||||
// CodePen Error
|
||||
// @extend .shooting_star::before;
|
||||
|
||||
content : '';
|
||||
position : absolute;
|
||||
top : calc(50% - 1px);
|
||||
right : 0;
|
||||
// width: 30px;
|
||||
height : 2px;
|
||||
background : linear-gradient(-45deg, rgba(0, 0, 255, 0), rgba(95, 145, 255, 1), rgba(0, 0, 255, 0));
|
||||
transform : translateX(50%) rotateZ(45deg);
|
||||
border-radius: 100%;
|
||||
animation : shining $shooting-time ease-in-out infinite;
|
||||
transform : translateX(50%) rotateZ(-45deg);
|
||||
}
|
||||
|
||||
@for $i from 1 through 20 {
|
||||
&:nth-child(#{$i}) {
|
||||
$delay : random(9999) + 0ms;
|
||||
top : calc(50% - #{random(400) - 200px});
|
||||
left : calc(50% - #{random(300) + 0px});
|
||||
// animation-delay: $delay;
|
||||
// opacity: random(50) / 100 + 0.5;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
// animation-delay: $delay;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes tail {
|
||||
0% {
|
||||
width: 0;
|
||||
}
|
||||
|
||||
30% {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
100% {
|
||||
width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes shining {
|
||||
0% {
|
||||
width: 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
100% {
|
||||
width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes shooting {
|
||||
0% {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: translateX(300px);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes sky {
|
||||
0% {
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(45 + 360deg);
|
||||
}
|
||||
}
|
||||
@ -1,64 +0,0 @@
|
||||
$n: 20; // 流星數量
|
||||
|
||||
|
||||
$shadow: ();
|
||||
|
||||
|
||||
@for $i from 1 through $n {
|
||||
$v: random(90) + 9; // left
|
||||
$h: random(150) + 10; // top
|
||||
$d: random(70)/10 + 12; // 秒數
|
||||
|
||||
.meteor-#{$i} {
|
||||
position : fixed;
|
||||
top : $h + px;
|
||||
left : $v*1%;
|
||||
width : 130px;
|
||||
height : 1px;
|
||||
transform : rotate(-45deg);
|
||||
background-image: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
|
||||
animation : meteor $d+s linear infinite;
|
||||
|
||||
&:before {
|
||||
content : "";
|
||||
position : fixed;
|
||||
width : 4px;
|
||||
height : 5px;
|
||||
border-radius: 50%;
|
||||
margin-top : -2px;
|
||||
background : rgba(#fff, .7);
|
||||
box-shadow : 0 0 15px 3px #fff;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes meteor {
|
||||
0% {
|
||||
opacity : 1;
|
||||
margin-top : -300px;
|
||||
margin-right: -300px;
|
||||
}
|
||||
|
||||
12% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
13% {
|
||||
margin-top : 600px;
|
||||
margin-left : -900px;
|
||||
opacity : 0.6;
|
||||
animation-delay: 2000ms;
|
||||
}
|
||||
|
||||
15% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
|
||||
100% {
|
||||
margin-top : 700px;
|
||||
margin-left: -900px;
|
||||
opacity : 0;
|
||||
}
|
||||
}
|
||||
@ -1,325 +0,0 @@
|
||||
export default class Particle {
|
||||
getLimitedRandom = function (min: number, max: number, roundToInteger?: any) {
|
||||
var number = Math.random() * (max - min) + min;
|
||||
if (roundToInteger) {
|
||||
number = Math.round(number);
|
||||
}
|
||||
return number;
|
||||
};
|
||||
|
||||
returnRandomArrayitem = function (array: string | any[]) {
|
||||
return array[Math.floor(Math.random() * array.length)];
|
||||
};
|
||||
|
||||
constructor() {}
|
||||
|
||||
init() {
|
||||
var ParticleNetworkAnimation: any, PNA: any;
|
||||
ParticleNetworkAnimation = PNA = function () {};
|
||||
|
||||
PNA.prototype.init = function (element: any) {
|
||||
console.log(this);
|
||||
this.$el = document.getElementsByClassName(element);
|
||||
|
||||
this.container = element;
|
||||
this.canvas = document.createElement('canvas');
|
||||
this.sizeCanvas();
|
||||
this.container.appendChild(this.canvas);
|
||||
this.ctx = this.canvas.getContext('2d');
|
||||
this.particleNetwork = new ParticleNetwork(this);
|
||||
|
||||
this.bindUiActions();
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
PNA.prototype.bindUiActions = function () {
|
||||
(window as any).on('resize', () => {
|
||||
// this.sizeContainer();
|
||||
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
||||
this.sizeCanvas();
|
||||
this.particleNetwork.createParticles();
|
||||
});
|
||||
};
|
||||
|
||||
PNA.prototype.sizeCanvas = function () {
|
||||
this.canvas.width = this.container.offsetWidth;
|
||||
this.canvas.height = this.container.offsetHeight;
|
||||
};
|
||||
|
||||
console.log(PNA);
|
||||
|
||||
const Particle: any = function (parent: any, x?: any, y?: any) {
|
||||
// this.network = parent;
|
||||
// this.canvas = parent.canvas;
|
||||
// this.ctx = parent.ctx;
|
||||
// this.particleColor = ;
|
||||
// this.radius = ;
|
||||
// this.opacity = 0;
|
||||
// this.x = x || Math.random() * this.canvas.width;
|
||||
// this.y = y || Math.random() * this.canvas.height;
|
||||
// this.velocity = {
|
||||
// x: (Math.random() - 0.5) * parent.options.velocity,
|
||||
// y: (Math.random() - 0.5) * parent.options.velocity
|
||||
// };
|
||||
return {
|
||||
network: parent,
|
||||
canvas: parent.canvas,
|
||||
ctx: parent.ctx,
|
||||
// particleColor: this.returnRandomArrayitem(parent.options.particleColors),
|
||||
// radius: this.getLimitedRandom(1.5, 2.5),
|
||||
opacity: 0,
|
||||
x: x || Math.random() * parent.canvas.width,
|
||||
y: y || Math.random() * parent.canvas.height,
|
||||
velocity: {
|
||||
x: (Math.random() - 0.5) * parent.options.velocity,
|
||||
y: (Math.random() - 0.5) * parent.options.velocity
|
||||
}
|
||||
};
|
||||
};
|
||||
console.log(new Particle(this));
|
||||
|
||||
Particle.prototype.update = function () {
|
||||
if (this.opacity < 1) {
|
||||
this.opacity += 0.01;
|
||||
} else {
|
||||
this.opacity = 1;
|
||||
}
|
||||
// Change dir if outside map
|
||||
if (this.x > this.canvas.width + 100 || this.x < -100) {
|
||||
this.velocity.x = -this.velocity.x;
|
||||
}
|
||||
if (this.y > this.canvas.height + 100 || this.y < -100) {
|
||||
this.velocity.y = -this.velocity.y;
|
||||
}
|
||||
|
||||
// Update position
|
||||
this.x += this.velocity.x;
|
||||
this.y += this.velocity.y;
|
||||
};
|
||||
|
||||
Particle.prototype.draw = function () {
|
||||
// Draw particle
|
||||
this.ctx.beginPath();
|
||||
this.ctx.fillStyle = this.particleColor;
|
||||
this.ctx.globalAlpha = this.opacity;
|
||||
this.ctx.arc(this.x, this.y, this.radius, 0, 2 * Math.PI);
|
||||
this.ctx.fill();
|
||||
};
|
||||
|
||||
var ParticleNetwork: any = function (this: any, parent: { canvas: any; ctx: any }) {
|
||||
this.options = {
|
||||
velocity: 1, // the higher the faster
|
||||
density: 15000, // the lower the denser
|
||||
netLineDistance: 200,
|
||||
netLineColor: '#929292',
|
||||
particleColors: ['#aaa'] // ['#6D4E5C', '#aaa', '#FFC458' ]
|
||||
};
|
||||
this.canvas = parent.canvas;
|
||||
this.ctx = parent.ctx;
|
||||
|
||||
this.init();
|
||||
};
|
||||
|
||||
ParticleNetwork.prototype.init = function () {
|
||||
// Create particle objects
|
||||
this.createParticles(true);
|
||||
|
||||
// Update canvas
|
||||
this.animationFrame = requestAnimationFrame(this.update.bind(this));
|
||||
|
||||
this.bindUiActions();
|
||||
};
|
||||
|
||||
ParticleNetwork.prototype.createParticles = function (isInitial: any) {
|
||||
// Initialise / reset particles
|
||||
var me = this;
|
||||
this.particles = [];
|
||||
var quantity = (this.canvas.width * this.canvas.height) / this.options.density;
|
||||
|
||||
if (isInitial) {
|
||||
var counter = 0;
|
||||
clearInterval(this.createIntervalId);
|
||||
this.createIntervalId = setInterval(() => {
|
||||
if (counter < quantity - 1) {
|
||||
// Create particle object
|
||||
this.particles.push(new Particle(this));
|
||||
} else {
|
||||
clearInterval(me.createIntervalId);
|
||||
}
|
||||
counter++;
|
||||
}, 50);
|
||||
} else {
|
||||
// Create particle objects
|
||||
for (var i = 0; i < quantity; i++) {
|
||||
this.particles.push(new Particle(this));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
ParticleNetwork.prototype.createInteractionParticle = function () {
|
||||
// Add interaction particle
|
||||
this.interactionParticle = new Particle(this);
|
||||
this.interactionParticle.velocity = {
|
||||
x: 0,
|
||||
y: 0
|
||||
};
|
||||
this.particles.push(this.interactionParticle);
|
||||
return this.interactionParticle;
|
||||
};
|
||||
|
||||
ParticleNetwork.prototype.removeInteractionParticle = function () {
|
||||
// Find it
|
||||
var index = this.particles.indexOf(this.interactionParticle);
|
||||
if (index > -1) {
|
||||
// Remove it
|
||||
this.interactionParticle = undefined;
|
||||
this.particles.splice(index, 1);
|
||||
}
|
||||
};
|
||||
|
||||
ParticleNetwork.prototype.update = function () {
|
||||
if (this.canvas) {
|
||||
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
||||
this.ctx.globalAlpha = 1;
|
||||
|
||||
// Draw connections
|
||||
for (var i = 0; i < this.particles.length; i++) {
|
||||
for (var j = this.particles.length - 1; j > i; j--) {
|
||||
var distance,
|
||||
p1 = this.particles[i],
|
||||
p2 = this.particles[j];
|
||||
|
||||
// check very simply if the two points are even a candidate for further measurements
|
||||
distance = Math.min(Math.abs(p1.x - p2.x), Math.abs(p1.y - p2.y));
|
||||
if (distance > this.options.netLineDistance) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// the two points seem close enough, now let's measure precisely
|
||||
distance = Math.sqrt(Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2));
|
||||
if (distance > this.options.netLineDistance) {
|
||||
continue;
|
||||
}
|
||||
|
||||
this.ctx.beginPath();
|
||||
this.ctx.strokeStyle = this.options.netLineColor;
|
||||
this.ctx.globalAlpha = ((this.options.netLineDistance - distance) / this.options.netLineDistance) * p1.opacity * p2.opacity;
|
||||
this.ctx.lineWidth = 0.7;
|
||||
this.ctx.moveTo(p1.x, p1.y);
|
||||
this.ctx.lineTo(p2.x, p2.y);
|
||||
this.ctx.stroke();
|
||||
}
|
||||
}
|
||||
|
||||
// Draw particles
|
||||
for (var i = 0; i < this.particles.length; i++) {
|
||||
this.particles[i].update();
|
||||
this.particles[i].draw();
|
||||
}
|
||||
|
||||
if (this.options.velocity !== 0) {
|
||||
this.animationFrame = requestAnimationFrame(this.update.bind(this));
|
||||
}
|
||||
} else {
|
||||
cancelAnimationFrame(this.animationFrame);
|
||||
}
|
||||
};
|
||||
|
||||
ParticleNetwork.prototype.bindUiActions = function () {
|
||||
// Mouse / touch event handling
|
||||
this.spawnQuantity = 3;
|
||||
this.mouseIsDown = false;
|
||||
this.touchIsMoving = false;
|
||||
|
||||
this.onMouseMove = (e: { offsetX: any; offsetY: any }) => {
|
||||
if (!this.interactionParticle) {
|
||||
this.createInteractionParticle();
|
||||
}
|
||||
this.interactionParticle.x = e.offsetX;
|
||||
this.interactionParticle.y = e.offsetY;
|
||||
};
|
||||
|
||||
this.onTouchMove = (e: { preventDefault: () => void; changedTouches: { clientX: any; clientY: any }[] }) => {
|
||||
e.preventDefault();
|
||||
this.touchIsMoving = true;
|
||||
if (!this.interactionParticle) {
|
||||
this.createInteractionParticle();
|
||||
}
|
||||
this.interactionParticle.x = e.changedTouches[0].clientX;
|
||||
this.interactionParticle.y = e.changedTouches[0].clientY;
|
||||
};
|
||||
|
||||
this.onMouseDown = () => {
|
||||
this.mouseIsDown = true;
|
||||
var counter = 0;
|
||||
var quantity = this.spawnQuantity;
|
||||
var intervalId = setInterval(() => {
|
||||
if (this.mouseIsDown) {
|
||||
if (counter === 1) {
|
||||
quantity = 1;
|
||||
}
|
||||
for (var i = 0; i < quantity; i++) {
|
||||
if (this.interactionParticle) {
|
||||
this.particles.push(new Particle(this, this.interactionParticle.x, this.interactionParticle.y));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
clearInterval(intervalId);
|
||||
}
|
||||
counter++;
|
||||
}, 50);
|
||||
};
|
||||
|
||||
this.onTouchStart = (e: { preventDefault: () => void; changedTouches: { clientX: any; clientY: any }[] }) => {
|
||||
e.preventDefault();
|
||||
setTimeout(() => {
|
||||
if (!this.touchIsMoving) {
|
||||
for (var i = 0; i < this.spawnQuantity; i++) {
|
||||
this.particles.push(new Particle(this, e.changedTouches[0].clientX, e.changedTouches[0].clientY));
|
||||
}
|
||||
}
|
||||
}, 200);
|
||||
};
|
||||
|
||||
this.onMouseUp = () => {
|
||||
this.mouseIsDown = false;
|
||||
};
|
||||
|
||||
this.onMouseOut = function () {
|
||||
this.removeInteractionParticle();
|
||||
};
|
||||
|
||||
this.onTouchEnd = function (e: { preventDefault: () => void }) {
|
||||
e.preventDefault();
|
||||
this.touchIsMoving = false;
|
||||
this.removeInteractionParticle();
|
||||
};
|
||||
|
||||
// this.canvas.addEventListener('mousemove', this.onMouseMove);
|
||||
// this.canvas.addEventListener('touchmove', this.onTouchMove);
|
||||
// this.canvas.addEventListener('mousedown', this.onMouseDown);
|
||||
// this.canvas.addEventListener('touchstart', this.onTouchStart);
|
||||
// this.canvas.addEventListener('mouseup', this.onMouseUp);
|
||||
// this.canvas.addEventListener('mouseout', this.onMouseOut);
|
||||
// this.canvas.addEventListener('touchend', this.onTouchEnd);
|
||||
};
|
||||
|
||||
ParticleNetwork.prototype.unbindUiActions = function () {
|
||||
if (this.canvas) {
|
||||
// this.canvas.removeEventListener('mousemove', this.onMouseMove);
|
||||
// this.canvas.removeEventListener('touchmove', this.onTouchMove);
|
||||
// this.canvas.removeEventListener('mousedown', this.onMouseDown);
|
||||
// this.canvas.removeEventListener('touchstart', this.onTouchStart);
|
||||
// this.canvas.removeEventListener('mouseup', this.onMouseUp);
|
||||
// this.canvas.removeEventListener('mouseout', this.onMouseOut);
|
||||
// this.canvas.removeEventListener('touchend', this.onTouchEnd);
|
||||
}
|
||||
};
|
||||
|
||||
const pna = new PNA();
|
||||
console.log(pna);
|
||||
|
||||
pna.init(document.getElementsByClassName('particle-network-animation')[0]);
|
||||
}
|
||||
}
|
||||
@ -1,67 +1,15 @@
|
||||
<nz-layout class="layout">
|
||||
<!-- <nz-header style="z-index: 999;">
|
||||
<nz-header>
|
||||
<div nz-row>
|
||||
<div nz-col nzSpan="24" style="display: flex;align-items: center;">
|
||||
<img width="32" height="32" src="./assets/images/user/logo.svg" [routerLink]="['/']" />
|
||||
<label class="title ml-sm">运多星网络货运管理平台</label>
|
||||
</div>
|
||||
</div>
|
||||
</nz-header> -->
|
||||
<nz-content class="content" id="content">
|
||||
<nz-row>
|
||||
<nz-col nzXs="0" nzSm="0" nzMd="0" nzLg="14" nzXl="14" nzXXl="14" style="z-index: 9999;">
|
||||
<div style="width: 100%;height: 100%;display: flex;align-items: center;padding: 60px;">
|
||||
<div class="earth-box">
|
||||
<div class="earth" style="width: 100%;height: 100%;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</nz-col>
|
||||
<nz-col nzXs="24" nzSm="24" nzMd="24" nzLg="9" nzXl="8" nzXXl="7" style="z-index: 9999; ">
|
||||
<router-outlet></router-outlet>
|
||||
</nz-col>
|
||||
</nz-row>
|
||||
<div class="meteor-1"></div>
|
||||
<div class="meteor-2"></div>
|
||||
<div class="meteor-3"></div>
|
||||
<div class="meteor-4"></div>
|
||||
<div class="meteor-5"></div>
|
||||
<div class="meteor-6"></div>
|
||||
<div class="meteor-7"></div>
|
||||
<div class="meteor-8"></div>
|
||||
<div class="meteor-9"></div>
|
||||
<div class="meteor-10"></div>
|
||||
<div class="meteor-11"></div>
|
||||
<div class="meteor-12"></div>
|
||||
<div class="meteor-13"></div>
|
||||
<div class="meteor-14"></div>
|
||||
<div class="meteor-15"></div>
|
||||
<div class="meteor-16"></div>
|
||||
<div class="meteor-17"></div>
|
||||
<div class="meteor-18"></div>
|
||||
<div class="meteor-19"></div>
|
||||
<div class="meteor-20"></div>
|
||||
<div class=" particle-network-animation"></div>
|
||||
<!-- <div class="night">
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
<div class="shooting_star"></div>
|
||||
</div> -->
|
||||
</nz-header>
|
||||
<nz-content class="content">
|
||||
<div class="inner-content">
|
||||
<router-outlet></router-outlet>
|
||||
</div>
|
||||
</nz-content>
|
||||
</nz-layout>
|
||||
@ -7,71 +7,11 @@
|
||||
}
|
||||
|
||||
.ant-layout-header {
|
||||
background : #ffffff;
|
||||
// box-shadow: 0px 5px 5px #d1d1d1;
|
||||
}
|
||||
|
||||
nz-content {
|
||||
background : url('../../../assets/images/login/login-bg.jpg') 100% 100% no-repeat;
|
||||
background-size: cover;
|
||||
// overflow : auto;
|
||||
}
|
||||
|
||||
passport-login {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.earth-box {
|
||||
background : url('../../../assets/images/login/4-界面背景.png') 100% 100% no-repeat;
|
||||
background-size : cover;
|
||||
background-position: center;
|
||||
// overflow : hidden;
|
||||
width : 100%;
|
||||
height : 100%;
|
||||
}
|
||||
|
||||
.earth {
|
||||
// animation : eatthAnimation 60s linear infinite;
|
||||
// -webkit-animation: eatthAnimation 60s linear infinite;
|
||||
max-width : 100%;
|
||||
height : 100%;
|
||||
// margin-top : -50px;
|
||||
// max-height : calc(100% - 64px);
|
||||
// border-radius : 40%;
|
||||
}
|
||||
|
||||
.logo {
|
||||
position: absolute;
|
||||
left : calc(50% - 82px);
|
||||
width : 164px;
|
||||
top : calc(50% - 82px);
|
||||
}
|
||||
|
||||
.earth:hover {
|
||||
animation-play-state : paused;
|
||||
-webkit-animation-play-state: paused;
|
||||
}
|
||||
|
||||
@keyframes eatthAnimation {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes eatthAnimation {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
background: #ffffff;
|
||||
box-shadow: 0px 5px 5px #d1d1d1;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,35 +1,15 @@
|
||||
import { Component, Inject, OnInit } from '@angular/core';
|
||||
import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth';
|
||||
import Particle from './particle';
|
||||
|
||||
@Component({
|
||||
selector: 'layout-passport',
|
||||
templateUrl: './passport.component.html',
|
||||
styleUrls: ['./passport.component.less', './d.scss']
|
||||
styleUrls: ['./passport.component.less']
|
||||
})
|
||||
export class LayoutPassportComponent implements OnInit {
|
||||
constructor() {}
|
||||
|
||||
ngOnInit(): void {
|
||||
// this.tokenService.clear();
|
||||
// this.loadJS();
|
||||
|
||||
const particle = new Particle();
|
||||
particle.init();
|
||||
}
|
||||
|
||||
loadJS() {
|
||||
var script = document.createElement('script');
|
||||
script.type = 'text/javascript';
|
||||
script.src = './assets/login/js/script.js';
|
||||
script.id = 'particle';
|
||||
document.getElementsByTagName('head')[0].appendChild(script);
|
||||
|
||||
setTimeout(() => {
|
||||
var content = document.getElementById('content');
|
||||
if (content) {
|
||||
content.style.overflow = 'auto';
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template #subLink let-i>
|
||||
<a *ngIf="!i.externalLink" [routerLink]="i.link" [target]="i.target">{{ i.text }} </a>
|
||||
<a *ngIf="!i.externalLink" (click)="routeTo(i.link)" [target]="i.target">{{ i.text }} </a>
|
||||
<a *ngIf="i.externalLink" [attr.href]="i.externalLink" [attr.target]="i.target">{{ i.text }} </a>
|
||||
</ng-template>
|
||||
<ul *ngIf="menus" nz-menu [nzMode]="mode" [nzTheme]="pro.theme"
|
||||
@ -22,7 +22,7 @@
|
||||
<ng-container *ngFor="let l1 of menus">
|
||||
<li *ngIf="l1.children!.length === 0" nz-menu-item class="alain-pro__menu-item"
|
||||
[class.alain-pro__menu-item--disabled]="l1.disabled" [nzSelected]="l1._selected" [nzDisabled]="l1.disabled">
|
||||
<a *ngIf="!l1.externalLink" [routerLink]="l1.link" (click)="closeCollapsed()" class="alain-pro__menu-title">
|
||||
<a *ngIf="!l1.externalLink" (click)="routeTo(l1.link);closeCollapsed()" class="alain-pro__menu-title">
|
||||
<ng-template [ngTemplateOutlet]="mainLink" [ngTemplateOutletContext]="{ $implicit: l1 }"></ng-template>
|
||||
</a>
|
||||
<a *ngIf="l1.externalLink" [attr.href]="l1.externalLink" [attr.target]="l1.target" (click)="closeCollapsed()"
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core';
|
||||
import { NavigationEnd, Router } from '@angular/router';
|
||||
import { ReuseTabService } from '@delon/abc/reuse-tab';
|
||||
import { MenuService } from '@delon/theme';
|
||||
import { InputBoolean } from '@delon/util';
|
||||
import { SearchDrawerService } from '@shared';
|
||||
import { NzMenuModeType } from 'ng-zorro-antd/menu';
|
||||
import { Subject } from 'rxjs';
|
||||
import { filter, takeUntil } from 'rxjs/operators';
|
||||
@ -25,7 +27,14 @@ export class LayoutProMenuComponent implements OnInit, OnDestroy {
|
||||
@Input() @InputBoolean() disabledAcl = false;
|
||||
@Input() mode: NzMenuModeType = 'inline';
|
||||
|
||||
constructor(private menuSrv: MenuService, private router: Router, public pro: BrandService, private cdr: ChangeDetectorRef) {}
|
||||
constructor(
|
||||
private menuSrv: MenuService,
|
||||
private router: Router,
|
||||
public pro: BrandService,
|
||||
private cdr: ChangeDetectorRef,
|
||||
private reuseService: ReuseTabService,
|
||||
private searchDrawerService: SearchDrawerService
|
||||
) {}
|
||||
|
||||
private cd(): void {
|
||||
this.cdr.markForCheck();
|
||||
@ -121,4 +130,12 @@ export class LayoutProMenuComponent implements OnInit, OnDestroy {
|
||||
unsubscribe$.next();
|
||||
unsubscribe$.complete();
|
||||
}
|
||||
|
||||
routeTo(link: string | undefined) {
|
||||
if (link) {
|
||||
this.reuseService.clear();
|
||||
this.searchDrawerService.unsubscribe();
|
||||
this.router.navigate([link]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
<span class="mr-md">客服电话:0755-88393483</span>
|
||||
<!--Search-->
|
||||
<layout-pro-search class="hidden-xs"></layout-pro-search>
|
||||
<!--Link-->
|
||||
|
||||
@ -37,4 +37,5 @@
|
||||
</div>
|
||||
</div>
|
||||
<ng-template #settingHost></ng-template>
|
||||
<theme-btn></theme-btn>
|
||||
<theme-btn></theme-btn>
|
||||
<app-search-drawer></app-search-drawer>
|
||||
@ -1,26 +1,33 @@
|
||||
@{alain-pro-prefix} {
|
||||
&__menu {
|
||||
display: block;
|
||||
|
||||
&-item {
|
||||
&--disabled {
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
&-only-icon {
|
||||
@{alain-pro-prefix}__menu-item {
|
||||
padding-right: 8px !important;
|
||||
padding-left: 8px !important;
|
||||
|
||||
&:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@{alain-pro-prefix}__menu-icon {
|
||||
margin-right: 0;
|
||||
font-size: @alain-pro-top-nav-only-icon-fs;
|
||||
min-width: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
&-title {
|
||||
position: relative;
|
||||
|
||||
&-badge {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@ -31,27 +38,34 @@
|
||||
line-height: 18px;
|
||||
background: @alain-pro-header-title-badge-bg;
|
||||
border-radius: 50%;
|
||||
> em {
|
||||
|
||||
>em {
|
||||
color: @alain-pro-header-title-badge-color;
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-img {
|
||||
width: @alain-pro-sider-menu-img-wh !important;
|
||||
height: @alain-pro-sider-menu-img-wh !important;
|
||||
width: @alain-pro-sider-menu-img-wh !important;
|
||||
height: @alain-pro-sider-menu-img-wh !important;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&__side-nav {
|
||||
@{alain-pro-prefix}__menu {
|
||||
&-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
&-text {
|
||||
flex: 1;
|
||||
// opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-menu-inline-collapsed {
|
||||
@{alain-pro-prefix}__menu-title-badge {
|
||||
position: absolute;
|
||||
@ -59,10 +73,28 @@
|
||||
right: -16px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
> em {
|
||||
|
||||
>em {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@{aside-collapsed-prefix} {
|
||||
@{alain-pro-prefix} {
|
||||
&__menu {
|
||||
&-icon {
|
||||
overflow: inherit;
|
||||
}
|
||||
|
||||
&-title {
|
||||
&-text {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { AccountComponentsCenterComponent } from './components/center/center.component';
|
||||
import { AccountComponentsEditPayPasswordComponent } from './components/edit-paypassword/edit-paypassword.component'
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: '', redirectTo: 'center', pathMatch: 'full' },
|
||||
@ -21,7 +22,16 @@ const routes: Routes = [
|
||||
data: {
|
||||
title: '账户中心'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'edit-paypassword',
|
||||
component: AccountComponentsEditPayPasswordComponent,
|
||||
data: {
|
||||
title: '修改支付密码',
|
||||
titleI18n: 'app.my.edit.paypassword',
|
||||
// guard: {ability: ['accountcenter-editpaypassword']}
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
||||
@ -15,11 +15,13 @@ import { AccountRoutingModule } from './account-routing.module';
|
||||
import { AccountComponentsCenterComponent } from './components/center/center.component';
|
||||
import { AccountComponentsEditNameComponent } from './components/edit-name/edit-name.component';
|
||||
import { AccountComponentsCenterEditComponent } from './components/edit-password/edit-password.component';
|
||||
import { AccountComponentsEditPayPasswordComponent } from './components/edit-paypassword/edit-paypassword.component'
|
||||
|
||||
const COMPONENTS = [
|
||||
AccountComponentsCenterComponent,
|
||||
AccountComponentsEditNameComponent,
|
||||
AccountComponentsCenterEditComponent
|
||||
AccountComponentsCenterEditComponent,
|
||||
AccountComponentsEditPayPasswordComponent
|
||||
];
|
||||
const COMPONENTS_NOROUNT = [AccountComponentsEditNameComponent];
|
||||
|
||||
|
||||
@ -12,9 +12,9 @@
|
||||
<div nz-col [nzSpan]="10">{{ infoData.phone }}</div>
|
||||
<div nz-col [nzSpan]="10">
|
||||
<span *ngIf="infoData.phone; else elsePhone"><i nz-icon [nzType]="'check-circle'" [nzTheme]="'fill'"
|
||||
style="color: #52c41a"></i> 已绑定</span>
|
||||
<ng-template #elsePhone><i nz-icon [nzType]="'question-circle'" [nzTheme]="'fill'"
|
||||
style="color: #ccc"></i> 未绑定</ng-template>
|
||||
style="color: #52c41a"></i> 已绑定</span>
|
||||
<ng-template #elsePhone><i nz-icon [nzType]="'question-circle'" [nzTheme]="'fill'"
|
||||
style="color: #ccc"></i> 未绑定</ng-template>
|
||||
</div>
|
||||
</div>
|
||||
</nz-list-item-meta-title>
|
||||
@ -30,19 +30,45 @@
|
||||
</div>
|
||||
<div nz-col [nzSpan]="10">定期更换密码有助于账号安全</div>
|
||||
<div nz-col [nzSpan]="10">
|
||||
<span *ngIf="infoData.isPwd; else elsePwd"
|
||||
><i nz-icon [nzType]="'check-circle'" [nzTheme]="'fill'" style="color: #52c41a"></i> 已设置</span
|
||||
>
|
||||
<ng-template #elsePwd
|
||||
><i nz-icon [nzType]="'question-circle'" [nzTheme]="'fill'" style="color: #ccc"></i> 未设置</ng-template
|
||||
>
|
||||
<span *ngIf="infoData.isPwd; else elsePwd"><i nz-icon [nzType]="'check-circle'" [nzTheme]="'fill'"
|
||||
style="color: #52c41a"></i> 已设置</span>
|
||||
<ng-template #elsePwd><i nz-icon [nzType]="'question-circle'" [nzTheme]="'fill'"
|
||||
style="color: #ccc"></i> 未设置</ng-template>
|
||||
</div>
|
||||
</div>
|
||||
</nz-list-item-meta-title>
|
||||
</nz-list-item-meta>
|
||||
<div class="item-btn"><a (click)="edit('password')">修改</a></div>
|
||||
</nz-list-item>
|
||||
<!-- <nz-list-item *ngIf="defaultCompany.enterpriseId"> -->
|
||||
<nz-list-item>
|
||||
<nz-list-item-meta>
|
||||
<nz-list-item-meta-title>
|
||||
<div nz-row [nzGutter]="16">
|
||||
<div nz-col [nzSpan]="4" class="li-label">
|
||||
<!-- <svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1"
|
||||
width="19px" height="23px">
|
||||
<g transform="matrix(1 0 0 1 -345 -324 )">
|
||||
<path
|
||||
d="M 15.6123766269722 8.00244105491571 C 15.6119034283768 8.00244105491571 15.6114302297875 8.00244117202714 15.61095703125 8.00244140625 L 15.197197265625 8.00244140625 C 15.1815563889208 8.00244140625 15.168876953125 7.98976197045419 15.168876953125 7.97412109375 L 15.168876953125 5.885498046875 C 15.1737779288544 4.39846216264915 14.595081789561 2.96885593837806 13.55716796875 1.9039453125 C 12.7321123508105 1.05143460529325 11.655620403345 0.485695706108903 10.485546875 0.2896875 C 6.987421875 -0.313818359375 3.801953125 2.4227734375 3.801953125 5.97130859375 L 3.801953125 7.97412109375 C 3.801953125 7.98976197045419 3.78927368920419 8.00244140625 3.7736328125 8.00244140625 L 3.407451171875 8.00244140625 C 1.80531036111513 8.00259780422134 0.50660155486636 9.3014334003565 0.506601562499998 10.90357421875 L 0.506601562499998 19.88734375 C 0.506601562499998 21.489282355869 1.80522937670661 22.7879101700756 3.40716796875 22.7879101700756 L 15.579521484375 22.78791015625 C 17.1817432795434 22.7879101700756 18.48037109375 21.489282355869 18.48037109375 19.8873437638256 L 18.48037109375 10.874970703125 C 18.4803734804811 10.8734601705268 18.4803746738472 10.8719496362745 18.4803746738472 10.8704391017907 C 18.4803746738472 9.28648751795714 17.1963282108058 8.00244105491571 15.6123766269722 8.00244105491571 Z M 5.165859375 7.97412109375 L 5.16416015625 5.885498046875 C 5.16416015625 3.28484375 6.8866015625 1.56580078125 9.484140625 1.56580078125 C 10.7585546875 1.56580078125 11.718046875 1.963984375 12.583798828125 2.85494140625 C 13.430859375 3.72720703125 13.8035546875 4.66234375 13.8035546875 5.88521484375 L 13.8035546875 7.97412109375 C 13.8035546875 7.98976197045419 13.7908752517042 8.00244140625 13.775234375 8.00244140625 L 5.1941796875 8.00244140625 C 5.17853881079581 8.00244140625 5.165859375 7.98976197045419 5.165859375 7.97412109375 Z M 17.1215625 19.9156640625 L 17.1249609375 19.9156640625 C 17.1249609375 20.926982421875 16.622275390625 21.429384765625 15.61095703125 21 L 3.4111328125 21 C 2.55948707595672 21.429384765625 1.869091796875 20.7389894865433 1.869091796875 19.88734375 L 1.869091796875 11.115126953125 C 1.869091796875 10.1483643640389 2.65280772341387 9.3646484375 3.6195703125 9.3646484375 L 15.579521484375 9.3646484375 C 16.4311672209183 9.3646484375 17.1215625 10.0550437165817 17.1215625 10.906689453125 L 17.1215625 19.9156640625 Z "
|
||||
fill-rule="nonzero" fill="#3370ff" stroke="none" transform="matrix(1 0 0 1 345 324 )" />
|
||||
</g>
|
||||
</svg> -->
|
||||
<span class="icon iconfont icon-mima" style="color: #aaa"></span> 支付密码
|
||||
</div>
|
||||
<div nz-col [nzSpan]="10">定期更换支付密码有助于账号安全</div>
|
||||
<div nz-col [nzSpan]="10">
|
||||
<span *ngIf="ifHasPayPw; else elsePwd"><i nz-icon [nzType]="'check-circle'" [nzTheme]="'fill'"
|
||||
style="color: #52c41a"></i> 已设置</span>
|
||||
<ng-template #elsePwd><i nz-icon [nzType]="'question-circle'" [nzTheme]="'fill'"
|
||||
style="color: #ccc"></i> 未设置</ng-template>
|
||||
</div>
|
||||
</div>
|
||||
</nz-list-item-meta-title>
|
||||
</nz-list-item-meta>
|
||||
<div class="item-btn"><a (click)="edit('payPassword')">设置</a></div>
|
||||
</nz-list-item>
|
||||
</nz-list>
|
||||
|
||||
</nz-card>
|
||||
</div>
|
||||
</div>
|
||||
@ -17,7 +17,7 @@
|
||||
right: 20px;
|
||||
}
|
||||
.item-btn {
|
||||
width: 28px;
|
||||
width: 36px;
|
||||
text-align: center;
|
||||
}
|
||||
.li-label {
|
||||
|
||||
@ -53,6 +53,8 @@ export class AccountComponentsCenterComponent implements OnInit {
|
||||
},
|
||||
];
|
||||
idx: any = 0;
|
||||
defaultCompany: any = {};
|
||||
ifHasPayPw = false;
|
||||
constructor(public service: AccountService, private modal: ModalHelper, private http: _HttpClient, private router: Router, private modalService: NzModalService,) {}
|
||||
|
||||
ngOnInit() {
|
||||
@ -136,9 +138,32 @@ export class AccountComponentsCenterComponent implements OnInit {
|
||||
getInfo() {
|
||||
this.service.http.post(this.service.$api_get_current_user_info).subscribe((res) => {
|
||||
this.infoData = res.data;
|
||||
// this.getDeafaultCompany();
|
||||
this.getPayPw();
|
||||
});
|
||||
}
|
||||
|
||||
getDeafaultCompany() {
|
||||
this.service.request(this.service.$api_getUserDefaultEnterpriseProject).subscribe(res => {
|
||||
if (res === null) {
|
||||
this.router.navigate(['/changeproject']);
|
||||
return;
|
||||
}
|
||||
this.defaultCompany = res
|
||||
if (res.projectId) {
|
||||
this.getPayPw()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
getPayPw() {
|
||||
this.service.request(this.service.$api_isUserVerifyPassword, {}).subscribe(res => {
|
||||
this.ifHasPayPw = res
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
edit(tpye: string) {
|
||||
if (tpye === 'phone') {
|
||||
const modalRef = this.modalService.create({
|
||||
@ -170,6 +195,10 @@ export class AccountComponentsCenterComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (tpye === 'payPassword') {
|
||||
this.router.navigate(['/account/edit-paypassword']);
|
||||
}
|
||||
// if (tpye === 'info') {
|
||||
// this.router.navigate(['/account/editInfo'], {
|
||||
// queryParams: { realName: this.infoData.realName, certificateNumber: this.infoData.certificateNumber },
|
||||
|
||||
@ -227,7 +227,7 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
|
||||
}
|
||||
submitForm() {
|
||||
const params = {
|
||||
smsVerifyCode: this.sf.value.smsVerifyCode,
|
||||
smsVerifyCode: this.sf?.value.smsVerifyCode,
|
||||
};
|
||||
|
||||
this.service.http.post(this.service.$api_get_verifyPhone, params).subscribe((res) => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* @Description :
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-27 10:30:56
|
||||
@ -9,14 +9,11 @@
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
|
||||
import { Component, Inject, OnInit, ViewChild } from '@angular/core';
|
||||
import { FormBuilder, FormControl, FormGroup, ValidatorFn, Validators } from '@angular/forms';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { STChange, STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st';
|
||||
import { Component, Inject, OnInit } from '@angular/core';
|
||||
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
|
||||
import { Router } from '@angular/router';
|
||||
import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth';
|
||||
|
||||
import { SFComponent, SFSchema, SFSelectWidgetSchema, SFUISchema } from '@delon/form';
|
||||
import { NzDrawerRef, NzDrawerService } from 'ng-zorro-antd/drawer';
|
||||
import { NzFormTooltipIcon } from 'ng-zorro-antd/form';
|
||||
import { NzModalRef } from 'ng-zorro-antd/modal';
|
||||
import { AccountService } from '../../services/account.service';
|
||||
@ -30,14 +27,13 @@ export class AccountComponentsCenterEditComponent implements OnInit {
|
||||
record: any;
|
||||
count = 0;
|
||||
type = 'create';
|
||||
isVisibleView = false
|
||||
isVisibleView = false;
|
||||
passwordVisible = false;
|
||||
passwordVisible2 = false;
|
||||
password: any;
|
||||
password2: any;
|
||||
interval$: any;
|
||||
confirmationValidator =
|
||||
(control: FormControl): { [s: string]: boolean } => {
|
||||
confirmationValidator = (control: FormControl): { [s: string]: boolean } => {
|
||||
if (!control.value) {
|
||||
return { required: true };
|
||||
} else if (control?.value !== this.validateForm?.value?.passWord) {
|
||||
@ -51,7 +47,6 @@ export class AccountComponentsCenterEditComponent implements OnInit {
|
||||
};
|
||||
constructor(
|
||||
public router: Router,
|
||||
public ar: ActivatedRoute,
|
||||
private modalRef: NzModalRef,
|
||||
private fb: FormBuilder,
|
||||
public service: AccountService,
|
||||
@ -61,19 +56,21 @@ export class AccountComponentsCenterEditComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
this.initForm();
|
||||
}
|
||||
initForm () {
|
||||
this.validateForm = this.fb.group({
|
||||
passWord: [null,
|
||||
[
|
||||
Validators.required,
|
||||
Validators.maxLength(16),
|
||||
Validators.minLength(8),
|
||||
Validators.pattern('^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z-_]{8,16}$')
|
||||
]],
|
||||
passWordTo: [null, [ Validators.required, Validators.maxLength(16), Validators.minLength(8), this.confirmationValidator,]],
|
||||
smsVerifyCode: [null, [Validators.required]],
|
||||
});
|
||||
}
|
||||
initForm() {
|
||||
this.validateForm = this.fb.group({
|
||||
passWord: [
|
||||
null,
|
||||
[
|
||||
Validators.required,
|
||||
Validators.maxLength(16),
|
||||
Validators.minLength(8),
|
||||
Validators.pattern('^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z-_]{8,16}$')
|
||||
]
|
||||
],
|
||||
passWordTo: [null, [Validators.required, Validators.maxLength(16), Validators.minLength(8), this.confirmationValidator]],
|
||||
smsVerifyCode: [null, [Validators.required]]
|
||||
});
|
||||
}
|
||||
destroyModal(): void {
|
||||
this.modalRef.destroy();
|
||||
}
|
||||
@ -84,28 +81,28 @@ export class AccountComponentsCenterEditComponent implements OnInit {
|
||||
this.service.msgSrv.success('发送成功');
|
||||
e.preventDefault();
|
||||
this.codeCountDown();
|
||||
}else {
|
||||
} else {
|
||||
this.service.msgSrv.success(res.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
save() {
|
||||
if(!this.validateForm.valid) {
|
||||
this.service.msgSrv.warning('必填项为空或格式错误,请检查!')
|
||||
if (!this.validateForm.valid) {
|
||||
this.service.msgSrv.warning('必填项为空或格式错误,请检查!');
|
||||
return;
|
||||
}
|
||||
const params = {
|
||||
const params = {
|
||||
...this.validateForm.value
|
||||
};
|
||||
this.service.request(this.service.$api_set_phoneUpdatePassword, params).subscribe((res) => {
|
||||
this.service.request(this.service.$api_set_phoneUpdatePassword, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('修改密码成功!');
|
||||
this.isVisibleView = true;
|
||||
setTimeout(() => {
|
||||
this.tokenService.clear();
|
||||
this.router.navigate(['/passport/login'])
|
||||
this.modalRef.close()
|
||||
}, 3000)
|
||||
this.router.navigate(['/passport/login']);
|
||||
this.modalRef.close();
|
||||
}, 3000);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -120,11 +117,11 @@ export class AccountComponentsCenterEditComponent implements OnInit {
|
||||
}, 1000);
|
||||
}
|
||||
handleCancel() {
|
||||
this.isVisibleView = false
|
||||
}
|
||||
handleOK() {
|
||||
this.modalRef.close()
|
||||
this.tokenService.clear();
|
||||
this.router.navigate(['/passport/login'])
|
||||
}
|
||||
this.isVisibleView = false;
|
||||
}
|
||||
handleOK() {
|
||||
this.modalRef.close();
|
||||
this.tokenService.clear();
|
||||
this.router.navigate(['/passport/login']);
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,171 @@
|
||||
<page-header-wrapper [title]="''" [logo]="logo">
|
||||
<ng-template #logo>
|
||||
<button nz-button nz-tooltip nzTooltipTitle="返回上一页" (click)="goBack()">
|
||||
<i nz-icon nzType="left" nzTheme="outline"></i>
|
||||
</button>
|
||||
</ng-template>
|
||||
</page-header-wrapper>
|
||||
<nz-card>
|
||||
<div class="container">
|
||||
<div>
|
||||
<div style="display: flex; align-items: center; min-height: 150px">
|
||||
<nz-steps [nzCurrent]="step" style="display: contents" [nzProgressDot]="progressTemplate">
|
||||
<nz-step nzTitle="安全验证"></nz-step>
|
||||
<nz-step nzTitle="重设密码"></nz-step>
|
||||
<nz-step nzTitle="完成"></nz-step>
|
||||
</nz-steps>
|
||||
<ng-template #progressTemplate let-dot let-status="status" let-index="index">
|
||||
<ng-container *ngIf="status === 'finish'; else finshTemplate">
|
||||
<i nz-icon nzType="check" nzTheme="outline" style="color: #fff"></i>
|
||||
</ng-container>
|
||||
<ng-template #finshTemplate>
|
||||
{{ index + 1 }}
|
||||
</ng-template>
|
||||
</ng-template>
|
||||
</div>
|
||||
<nz-card [nzBordered]="false">
|
||||
<div style="width: 480px; margin: 0 auto" [ngSwitch]="step.toString()">
|
||||
<div *ngSwitchCase="0">
|
||||
<sf #step1sf *ngIf="step1Schema" [schema]="step1Schema" button="none" [layout]="'horizontal'">
|
||||
<ng-template sf-template="smsVerifyCode" let-smsVerifyCode let-ui="ui" let-schema="schema">
|
||||
<nz-input-group [nzSuffix]="suffixTemplateInfo">
|
||||
<input
|
||||
type="text"
|
||||
maxlength="6"
|
||||
nz-input
|
||||
placeholder="请输入验证码"
|
||||
[ngModel]="smsVerifyCode.formProperty.value"
|
||||
(ngModelChange)="smsVerifyCode.setValue($event)"
|
||||
/>
|
||||
</nz-input-group>
|
||||
</ng-template>
|
||||
<div nz-col [nzPush]="5">
|
||||
<button
|
||||
nz-button
|
||||
type="submit"
|
||||
nzType="primary"
|
||||
(click)="nextStep()"
|
||||
[disabled]="!step1sf.valid"
|
||||
[nzLoading]="service.http.loading"
|
||||
>
|
||||
下一步
|
||||
</button>
|
||||
</div>
|
||||
</sf>
|
||||
</div>
|
||||
|
||||
<div *ngSwitchCase="1">
|
||||
<form nz-form [formGroup]="formGroup3" class="myForm">
|
||||
<nz-form-item>
|
||||
<nz-form-label nzSpan="6" nzRequired nzFor="passWord">设置支付密码</nz-form-label>
|
||||
<nz-form-control nzSpan="18" [nzErrorTip]="passwordErrorTpl">
|
||||
<nz-input-group [nzSuffix]="pwdIconEye">
|
||||
<input
|
||||
nz-input
|
||||
[type]="isShowPwd ? 'text' : 'password'"
|
||||
formControlName="passWord"
|
||||
minlength="6"
|
||||
maxlength="6"
|
||||
(ngModelChange)="validateConfirmPassword()"
|
||||
placeholder="请输入支付密码"
|
||||
/>
|
||||
</nz-input-group>
|
||||
<ng-template #pwdIconEye>
|
||||
<span (click)="isShowPwd = !isShowPwd">
|
||||
<ng-container *ngIf="isShowPwd; else showPwdTempalte">
|
||||
<i nz-icon nzType="eye" nzTheme="outline"></i>
|
||||
</ng-container>
|
||||
<ng-template #showPwdTempalte>
|
||||
<i nz-icon nzType="eye-invisible" nzTheme="outline"></i>
|
||||
</ng-template>
|
||||
</span>
|
||||
</ng-template>
|
||||
<ng-template #passwordErrorTpl let-control>
|
||||
<ng-container *ngIf="control.hasError('required')"> 请输入支付密码! </ng-container>
|
||||
<ng-container *ngIf="control.hasError('minlength') || control.hasError('pattern') || control.hasError('confirm')">
|
||||
6位数字,不能为连续数字或者相同数字(如123456、111111)
|
||||
</ng-container>
|
||||
</ng-template>
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
<nz-form-item>
|
||||
<nz-form-label nzSpan="6" nzRequired nzFor="passWordTo">重复支付密码</nz-form-label>
|
||||
<nz-form-control nzSpan="18" nzDisableAutoTips [nzErrorTip]="confirmPasswordErrorTpl">
|
||||
<nz-input-group [nzSuffix]="confirmPwdIconEye">
|
||||
<input
|
||||
nz-input
|
||||
[type]="isShowConfirmPwd ? 'text' : 'password'"
|
||||
formControlName="passWordTo"
|
||||
minlength="6"
|
||||
maxlength="6"
|
||||
(ngModelChange)="validateConfirmPassword()"
|
||||
placeholder="请输入支付密码"
|
||||
/>
|
||||
</nz-input-group>
|
||||
<ng-template #confirmPwdIconEye>
|
||||
<span (click)="isShowConfirmPwd = !isShowConfirmPwd">
|
||||
<ng-container *ngIf="isShowConfirmPwd; else showConfirmPwdTempalte">
|
||||
<i nz-icon nzType="eye" nzTheme="outline"></i>
|
||||
</ng-container>
|
||||
<ng-template #showConfirmPwdTempalte>
|
||||
<i nz-icon nzType="eye-invisible" nzTheme="outline"></i>
|
||||
</ng-template>
|
||||
</span>
|
||||
</ng-template>
|
||||
<ng-template #confirmPasswordErrorTpl let-control>
|
||||
<ng-container *ngIf="control.hasError('required')"> 请输入确认密码! </ng-container>
|
||||
<ng-container *ngIf="control.hasError('passWordTo')"> 两次输入的密码不一致! </ng-container>
|
||||
</ng-template>
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
<nz-form-item>
|
||||
<nz-form-control nzSpan="18" nzOffset="6">
|
||||
<button
|
||||
[disabled]="!formGroup3.valid"
|
||||
[nzLoading]="service.http.loading"
|
||||
nz-button
|
||||
nzType="primary"
|
||||
(click)="formSubmit()"
|
||||
style="width: 74px"
|
||||
>
|
||||
确认
|
||||
</button>
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
</form>
|
||||
</div>
|
||||
<div *ngSwitchCase="2" class="success-card">
|
||||
<div class="card-icon">
|
||||
<i nz-icon nzType="check" nzTheme="outline" style="color: #fff; font-size: 20px"></i>
|
||||
</div>
|
||||
<p class="card-title">密码设置成功</p>
|
||||
<p class="card-descr">请牢记您的新支付密码,3秒后自动跳转至个人中心...</p>
|
||||
<!-- <button
|
||||
nz-button
|
||||
type="button"
|
||||
nzType="primary"
|
||||
nzSize="large"
|
||||
class="mt-lg"
|
||||
style="font-size: 14px"
|
||||
[routerLink]="['/passport/login']"
|
||||
>
|
||||
立即登录
|
||||
</button> -->
|
||||
</div>
|
||||
<div *ngSwitchDefault></div>
|
||||
</div>
|
||||
</nz-card>
|
||||
</div>
|
||||
</div>
|
||||
</nz-card>
|
||||
|
||||
<ng-template #suffixTemplateInfo>
|
||||
<ng-container *ngIf="count < 1; else intervalTemplate">
|
||||
<span class="msg-btn" style="color: #3370ff; cursor: pointer" (click)="getMsgCode()">获取验证码</span>
|
||||
</ng-container>
|
||||
<ng-template #intervalTemplate>
|
||||
<!-- {{ count > 0 ? '请等待' + count + 's' : ('app.register.get-verification-code' | translate) }} -->
|
||||
{{ count > 0 ? '请等待' + count + 's' : ('app.register.get-verification-code') }}
|
||||
</ng-template>
|
||||
</ng-template>
|
||||
<app-captcha #dun [phone]="phone" (done)="captchaDone($event)"></app-captcha>
|
||||
@ -0,0 +1,93 @@
|
||||
:host {
|
||||
::ng-deep {
|
||||
page-grid {
|
||||
background-color: #f0f3f7;
|
||||
|
||||
div.container {
|
||||
width: 80%;
|
||||
margin: 0 auto;
|
||||
padding: 30px 1rem 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-steps-item-process .ant-steps-item-icon {
|
||||
background-color: #3370ff;
|
||||
border-color: #3370ff;
|
||||
}
|
||||
|
||||
.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-icon {
|
||||
background: #3370ff;
|
||||
}
|
||||
|
||||
.ant-steps-dot .ant-steps-item-icon,
|
||||
.ant-steps-dot.ant-steps-small .ant-steps-item-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-left: 55px;
|
||||
line-height: 32px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
// 文本
|
||||
.ant-steps-item-wait .ant-steps-item-icon > .ant-steps-icon {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
// 连接线
|
||||
.ant-steps-dot .ant-steps-item-tail,
|
||||
.ant-steps-dot.ant-steps-small .ant-steps-item-tail {
|
||||
top: 12px;
|
||||
margin: 0 0 0 90px;
|
||||
}
|
||||
|
||||
.ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-tail::after {
|
||||
background-color: rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon,
|
||||
.ant-steps-dot.ant-steps-small .ant-steps-item-process .ant-steps-item-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail::after {
|
||||
background-color: rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
.ant-steps-dot .ant-steps-item-tail::after,
|
||||
.ant-steps-dot.ant-steps-small .ant-steps-item-tail::after {
|
||||
width: calc(100% - 62px);
|
||||
height: 1.5px;
|
||||
margin-left: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.success-card {
|
||||
text-align: center;
|
||||
|
||||
.card-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
margin: auto;
|
||||
background-color: #52c41a;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
margin: 14px 0 0;
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.card-descr {
|
||||
margin: 8px 0 0;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { AccountComponentsEditPayPasswordComponent } from './edit-paypassword.component';
|
||||
|
||||
describe('AccountComponentsEditPayPasswordComponent', () => {
|
||||
let component: AccountComponentsEditPayPasswordComponent;
|
||||
let fixture: ComponentFixture<AccountComponentsEditPayPasswordComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [AccountComponentsEditPayPasswordComponent],
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(AccountComponentsEditPayPasswordComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,237 @@
|
||||
import { AfterViewInit, Component, Inject, OnInit, Optional, ViewChild } from '@angular/core';
|
||||
import { FormBuilder, FormControl, FormGroup, ValidatorFn, Validators } from '@angular/forms';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { ReuseTabService } from '@delon/abc/reuse-tab';
|
||||
import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth';
|
||||
import { SFComponent, SFSchema, SFTextareaWidgetSchema, SFTextWidgetSchema, SFUISchema } from '@delon/form';
|
||||
import { SettingsService } from '@delon/theme';
|
||||
import { CaptchaComponent } from 'src/app/shared/components/captcha';
|
||||
|
||||
import { AccountService } from '../../services/account.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-account-components-edit-password',
|
||||
templateUrl: './edit-paypassword.component.html',
|
||||
styleUrls: ['./edit-paypassword.component.less'],
|
||||
})
|
||||
export class AccountComponentsEditPayPasswordComponent implements OnInit, AfterViewInit {
|
||||
@ViewChild('dun', { static: false })
|
||||
private dun!: CaptchaComponent;
|
||||
|
||||
step: 0 | 1 | 2 = 0;
|
||||
|
||||
step1Schema!: SFSchema;
|
||||
ui!: SFUISchema;
|
||||
@ViewChild('step1sf', { static: false })
|
||||
step1sf!: SFComponent;
|
||||
|
||||
phone: string;
|
||||
|
||||
formGroup3!: FormGroup;
|
||||
confirmPasswordValidator!: ValidatorFn;
|
||||
|
||||
isShowPwd = false;
|
||||
isShowConfirmPwd = false;
|
||||
|
||||
count = 0;
|
||||
interval$: any;
|
||||
|
||||
constructor(
|
||||
private fb: FormBuilder,
|
||||
public service: AccountService,
|
||||
private route: ActivatedRoute,
|
||||
private settingService: SettingsService,
|
||||
private router: Router,
|
||||
@Inject(ReuseTabService)
|
||||
private reuseTabService: ReuseTabService,
|
||||
@Optional()
|
||||
@Inject(DA_SERVICE_TOKEN)
|
||||
private tokenService: ITokenService,
|
||||
) {
|
||||
this.phone = route.snapshot.queryParams.phone;
|
||||
}
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
this.dun.init();
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
if (this.phone) {
|
||||
this.initStep1SF();
|
||||
} else {
|
||||
this.service.http.post(this.service.$api_get_current_user_info).subscribe((res) => {
|
||||
if (res) {
|
||||
this.phone = res.data?.phone;
|
||||
this.initStep1SF();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
this.confirmPasswordValidator = (control) => {
|
||||
if (!control.value) {
|
||||
return { error: true, required: true };
|
||||
} else if (control.value !== this.formGroup3.controls.passWord.value) {
|
||||
return { passWordTo: true, error: true };
|
||||
}
|
||||
return {};
|
||||
};
|
||||
|
||||
this.formGroup3 = this.fb.group({
|
||||
passWord: [
|
||||
null,
|
||||
[
|
||||
Validators.required,
|
||||
Validators.maxLength(6),
|
||||
Validators.minLength(6),
|
||||
Validators.pattern('([\\d]){6,6}'),
|
||||
this.blurTestPw
|
||||
|
||||
],
|
||||
],
|
||||
passWordTo: [null, [this.confirmPasswordValidator, Validators.required, Validators.maxLength(6), Validators.minLength(6)]],
|
||||
voucher: [null, [Validators.required]],
|
||||
});
|
||||
}
|
||||
|
||||
initStep1SF() {
|
||||
this.step1Schema = {
|
||||
properties: {
|
||||
phone: {
|
||||
title: '手机号',
|
||||
type: 'string',
|
||||
ui: {
|
||||
widget: 'text',
|
||||
defaultText: this.phone.toString(),
|
||||
} as SFTextWidgetSchema,
|
||||
},
|
||||
smsVerifyCode: {
|
||||
type: 'string',
|
||||
title: '验证码',
|
||||
ui: {
|
||||
widget: 'custom',
|
||||
errors: {
|
||||
required: '请输入验证码',
|
||||
},
|
||||
} as SFTextareaWidgetSchema,
|
||||
},
|
||||
},
|
||||
required: ['smsVerifyCode'],
|
||||
};
|
||||
|
||||
this.ui = {
|
||||
'*': { spanLabelFixed: 90, grid: { span: 16, gutter: 4 } },
|
||||
};
|
||||
}
|
||||
|
||||
nextStep() {
|
||||
if (this.step1sf.valid) {
|
||||
this.service.request(this.service.$api_get_verifyPhone, this.step1sf.value).subscribe((res) => {
|
||||
if (res) {
|
||||
this.formGroup3.patchValue(res, { onlySelf: true });
|
||||
this.step = 1;
|
||||
this.count = 0;
|
||||
clearInterval(this.interval$);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
formSubmit() {
|
||||
for (const i in this.formGroup3.controls) {
|
||||
if (true) {
|
||||
this.formGroup3.controls[i].markAsDirty();
|
||||
this.formGroup3.controls[i].updateValueAndValidity();
|
||||
}
|
||||
}
|
||||
|
||||
if (this.formGroup3.valid) {
|
||||
const param = Object.assign({}, this.formGroup3.value);
|
||||
this.service.http.post(this.service.$api_voucherUpdatePayPassword, param).subscribe((res) => {
|
||||
if (res.success === true) {
|
||||
this.step++;
|
||||
setTimeout(() => {
|
||||
// this.settingService.setUser({});
|
||||
// // 清空路由复用信息
|
||||
// this.reuseTabService.clear();
|
||||
// // 设置用户Token信息
|
||||
// this.tokenService.clear();
|
||||
this.router.navigate(['/account/center']);
|
||||
}, 3000);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
getMsgCode() {
|
||||
if (this.phone) {
|
||||
this.getCode(`${this.service.$api_get_msg_code}`);
|
||||
} else {
|
||||
this.service.request(this.service.$api_get_current_user_info).subscribe((res) => {
|
||||
this.phone = res.phone;
|
||||
this.getCode(`${this.service.$api_get_msg_code}`);
|
||||
});
|
||||
}
|
||||
}
|
||||
goBack() {
|
||||
window.history.go(-1);
|
||||
}
|
||||
getCode(url: string, params?: any) {
|
||||
this.service.http.post(url, null, params).subscribe((res) => {
|
||||
// code==503046 弹出网易盾
|
||||
if (res.success && res.data.code === '1') {
|
||||
this.service.msgSrv.success('发送成功');
|
||||
this.codeCountDown();
|
||||
} else if (res.data.code === '503046') {
|
||||
this.dun.popUp();
|
||||
} else {
|
||||
this.service.msgSrv.success(res.sendResult);
|
||||
}
|
||||
});
|
||||
}
|
||||
/* code倒计时 */
|
||||
codeCountDown() {
|
||||
this.count = 59;
|
||||
this.interval$ = setInterval(() => {
|
||||
this.count -= 1;
|
||||
if (this.count <= 0) {
|
||||
clearInterval(this.interval$);
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
/* 网易盾验证通过 */
|
||||
captchaDone(validate: any) {
|
||||
this.codeCountDown();
|
||||
}
|
||||
|
||||
validateConfirmPassword(): void {
|
||||
|
||||
setTimeout(() => this.formGroup3.controls.passWordTo.updateValueAndValidity());
|
||||
}
|
||||
// blurTestPw(){
|
||||
// const reg = /[^\d]/g
|
||||
// const val: any = this.formGroup3.controls.passWord.value
|
||||
// if(val.length === 6) {
|
||||
// const pattern = /([\d])\1{2,}/g
|
||||
// const pattern2 = /(?:(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){5}|(?:9(?=8)|8(?=7)|7(?=6)|6(?=5)|5(?=4)|4(?=3)|3(?=2)|2(?=1)|1(?=0)){5})\d/g
|
||||
// if(pattern.test(val) || pattern2.test(val)){
|
||||
// return false
|
||||
// } else {
|
||||
// return true
|
||||
// }
|
||||
// } else {
|
||||
// return false
|
||||
// }
|
||||
// }
|
||||
blurTestPw = (control: FormControl): { [s: string]: boolean } => {
|
||||
if (!control.value) {
|
||||
return { required: true };
|
||||
} else if (control.value.length === 6) {
|
||||
const pattern = /([\d])\1{2,}/g
|
||||
const pattern2 = /(?:(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){5}|(?:9(?=8)|8(?=7)|7(?=6)|6(?=5)|5(?=4)|4(?=3)|3(?=2)|2(?=1)|1(?=0)){5})\d/g
|
||||
if(pattern.test(control.value) || pattern2.test(control.value)){
|
||||
return { confirm: true, error: true };
|
||||
}
|
||||
}
|
||||
return {};
|
||||
};
|
||||
}
|
||||
@ -36,6 +36,15 @@ export class AccountService extends BaseService {
|
||||
$api_set_voucherUpdatePhone = `/api/mdc/cuc/userBasicInfo/forgetPassword/voucherUpdatePhone`;
|
||||
// 凭证修改密码
|
||||
$api_set_phoneUpdatePassword = `/api/mdc/cuc/userBasicInfo/phoneUpdatePassword`;
|
||||
// 凭证修改设置身份密码
|
||||
$api_voucherUpdatePayPassword = '/api/mdc/cuc/userVerify/forgetPassword/voucherUpdatePassword';
|
||||
// 根据当前登录用户绑定的手机号码获取短信验证码
|
||||
public $api_get_msg_code = `/api/mdc/pbc/smsSend/getSmVerificationCodeByToken`;
|
||||
// 用户下默认企业项目
|
||||
$api_getUserDefaultEnterpriseProject = '/api/mdc/cuc/enterpriseProject/getUserDefaultEnterpriseProject';
|
||||
// 当前登录用户是否设置用户验证密码
|
||||
$api_isUserVerifyPassword = '/api/mdc/cuc/userVerify/isUserVerifyPassword';
|
||||
|
||||
constructor(public injector: Injector) {
|
||||
super(injector);
|
||||
}
|
||||
|
||||
@ -1,14 +1,43 @@
|
||||
import { AfterViewInit, Component, OnInit } from '@angular/core';
|
||||
import { fromEvent } from 'rxjs';
|
||||
import { AfterViewInit, Component, OnDestroy, OnInit } from '@angular/core';
|
||||
import { OnReuseDestroy, OnReuseInit, ReuseHookOnReuseInitType } from '@delon/abc/reuse-tab';
|
||||
import { SFComponent, SFSchema } from '@delon/form';
|
||||
import { SearchDrawerService } from '@shared';
|
||||
import { fromEvent, Subscription } from 'rxjs';
|
||||
import { debounceTime } from 'rxjs/operators';
|
||||
|
||||
/**
|
||||
* 列表基础组件
|
||||
* 功能:
|
||||
* 1、计算列表滚动高度(scrollY)
|
||||
* 实现:
|
||||
* 1、列表组件需继承BasicTableComponent,并且提供SearchDrawerService派生类
|
||||
* 2、引入commom-table.less 样式文件
|
||||
* 3、列表使用table-box class包裹。组件会自动减去layout-pro-header、page-header-wrapper和nz-tabs-nav标签的高度,以及header_box和height_box class的高度,最后减去deviationHeight的偏移高度
|
||||
* 2、提供筛选抽屉,并返回sf实例(sf)
|
||||
* 实现:
|
||||
* 1、列表组件需继承BasicTableComponent,并且提供SearchDrawerService派生类
|
||||
* 2、实例化schema,及给schema赋值sf配置
|
||||
* 3、重写search()方法。当筛选抽屉触发查询时会调用这个方法
|
||||
* 提供:
|
||||
* 1、抽屉的sf实例
|
||||
* 2、sf.value的数据=>sfValue
|
||||
*/
|
||||
@Component({
|
||||
template: ''
|
||||
})
|
||||
export class BasicTableComponent implements AfterViewInit {
|
||||
export class BasicTableComponent implements AfterViewInit, OnDestroy, OnReuseDestroy, OnReuseInit {
|
||||
scrollY = '400px';
|
||||
|
||||
constructor() {}
|
||||
sf!: SFComponent;
|
||||
sfValue: Record<string, any> = {};
|
||||
schema: SFSchema = {};
|
||||
|
||||
deviationHeight = 0;
|
||||
|
||||
constructor(public searchDrawerService: SearchDrawerService) {}
|
||||
_onReuseInit(type?: ReuseHookOnReuseInitType): void {
|
||||
this.search();
|
||||
}
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
setTimeout(() => {
|
||||
@ -21,20 +50,82 @@ export class BasicTableComponent implements AfterViewInit {
|
||||
});
|
||||
}
|
||||
|
||||
_onReuseDestroy(): void {
|
||||
// this.drawer.forEach(sub => sub.unsubscribe());
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
this.searchDrawerService.unsubscribe();
|
||||
}
|
||||
|
||||
openDrawer() {
|
||||
if (this.searchDrawerService.drawer?.length > 0) {
|
||||
this.searchDrawerService.create(this.sfValue, this.schema);
|
||||
} else {
|
||||
const drawer = this.searchDrawerService.create(this.sfValue, this.schema);
|
||||
this.searchDrawerService.drawer.push(
|
||||
drawer.initEvent.subscribe((sf: SFComponent) => {
|
||||
if (sf) {
|
||||
this.sf = sf;
|
||||
}
|
||||
})
|
||||
);
|
||||
this.searchDrawerService.drawer.push(
|
||||
drawer.closeEvent.subscribe((res: Record<string, any>) => {
|
||||
this.sfValue = res;
|
||||
if (res) {
|
||||
this.search();
|
||||
}
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
getScrollY() {
|
||||
const windowHeight = window.innerHeight || Math.max(document.documentElement.clientHeight, document.body.clientHeight);
|
||||
const header = document.getElementsByTagName('layout-pro-header')?.[0];
|
||||
if (windowHeight && header) {
|
||||
let scrollY = windowHeight - header.clientHeight - 35 - 49;
|
||||
// 剔除页头高度
|
||||
const headerWrapper = document.getElementsByTagName('page-header-wrapper')?.[0];
|
||||
if (headerWrapper) {
|
||||
scrollY -= headerWrapper.clientHeight;
|
||||
}
|
||||
const tabset = document.getElementsByTagName('nz-tabset')?.[0];
|
||||
// 计算所有tabs高度
|
||||
const tabset = document.getElementsByTagName('nz-tabs-nav');
|
||||
let tabsetHeight = 0;
|
||||
for (let index = 0; index < tabset.length; index++) {
|
||||
tabsetHeight += tabset[index].clientHeight;
|
||||
}
|
||||
if (tabset) {
|
||||
scrollY -= tabset.clientHeight;
|
||||
scrollY -= tabsetHeight;
|
||||
}
|
||||
// 剔除高度容器
|
||||
const headerBox = document.getElementsByClassName('header_box');
|
||||
let headerBoxHeight = 0;
|
||||
for (let index = 0; index < headerBox.length; index++) {
|
||||
headerBoxHeight += headerBox[index].clientHeight;
|
||||
}
|
||||
if (headerBox) {
|
||||
scrollY -= headerBoxHeight;
|
||||
}
|
||||
|
||||
// 剔除高度容器
|
||||
const heightBox = document.getElementsByClassName('height_box');
|
||||
let heightBoxHeight = 0;
|
||||
for (let index = 0; index < heightBox.length; index++) {
|
||||
heightBoxHeight += heightBox[index].clientHeight;
|
||||
}
|
||||
if (heightBox) {
|
||||
scrollY -= heightBoxHeight;
|
||||
}
|
||||
|
||||
if (typeof this.deviationHeight === 'number') {
|
||||
scrollY -= this.deviationHeight;
|
||||
}
|
||||
this.scrollY = scrollY + 'px';
|
||||
}
|
||||
}
|
||||
|
||||
search() {}
|
||||
}
|
||||
|
||||
1
src/app/routes/commom/index.ts
Normal file
1
src/app/routes/commom/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './components/basic-table/basic-table.component';
|
||||
@ -9,7 +9,7 @@
|
||||
}
|
||||
|
||||
.ant-tabs-tab {
|
||||
margin: 0 0 0 16px;
|
||||
margin : 0 0 0 16px;
|
||||
padding: 12px 0;
|
||||
}
|
||||
|
||||
@ -21,31 +21,77 @@
|
||||
.ant-card-body {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.tab_header {
|
||||
display : flex;
|
||||
align-items: center;
|
||||
|
||||
.page_title {
|
||||
font-weight: bold;
|
||||
font-size : 17px;
|
||||
|
||||
.driver {
|
||||
color : #ff4d4f;
|
||||
margin-left : 17px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
nz-tabset {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.double_tabset_box {
|
||||
margin : -24px -24px 0;
|
||||
background: #ffffff;
|
||||
|
||||
.tab_header {
|
||||
.page_title {
|
||||
font-weight: bold;
|
||||
font-size : 17px;
|
||||
|
||||
.driver {
|
||||
color : #ff4d4f;
|
||||
margin-left : 17px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.header_tab {
|
||||
|
||||
nz-tabs-nav {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ant-table-pagination.ant-pagination {
|
||||
margin: 8px;
|
||||
}
|
||||
|
||||
.ant-table-thead > tr > th,
|
||||
.ant-table-tbody > tr > td,
|
||||
.ant-table tfoot > tr > th,
|
||||
.ant-table tfoot > tr > td {
|
||||
.ant-table-thead>tr>th,
|
||||
.ant-table-tbody>tr>td,
|
||||
.ant-table tfoot>tr>th,
|
||||
.ant-table tfoot>tr>td {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.ant-table.ant-table-bordered > .ant-table-container {
|
||||
.ant-table.ant-table-bordered>.ant-table-container {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.ant-pagination-item {
|
||||
min-width: 24px;
|
||||
height: 24px;
|
||||
min-width : 24px;
|
||||
height : 24px;
|
||||
line-height: 21px;
|
||||
}
|
||||
|
||||
.ant-pagination-total-text {
|
||||
height: 24px;
|
||||
height : 24px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
@ -53,8 +99,8 @@
|
||||
.ant-pagination-next,
|
||||
.ant-pagination-jump-prev,
|
||||
.ant-pagination-jump-next {
|
||||
min-width: 24px;
|
||||
height: 24px;
|
||||
min-width : 24px;
|
||||
height : 24px;
|
||||
line-height: 21px;
|
||||
}
|
||||
|
||||
@ -66,5 +112,42 @@
|
||||
.ant-select-single .ant-select-selector .ant-select-selection-placeholder {
|
||||
line-height: 21px;
|
||||
}
|
||||
|
||||
.text-truncate {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
// 强制头部居中
|
||||
.ant-table-container table>thead>tr>.options {
|
||||
text-align: center !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.header_box {
|
||||
display : flex;
|
||||
align-items : center;
|
||||
justify-content: space-between;
|
||||
min-height : 47px;
|
||||
|
||||
.page_title {
|
||||
font-weight: bold;
|
||||
font-size : 17px;
|
||||
|
||||
.driver {
|
||||
color : #ff4d4f;
|
||||
margin-left : 17px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.height_box {}
|
||||
|
||||
.filter-box {
|
||||
.com-input {
|
||||
width : 150px;
|
||||
height: 32PX;
|
||||
}
|
||||
}
|
||||
17
src/app/routes/commom/less/common-table-bar.less
Normal file
17
src/app/routes/commom/less/common-table-bar.less
Normal file
@ -0,0 +1,17 @@
|
||||
:host::ng-deep {
|
||||
nz-card {
|
||||
margin: -8px -8px 0 !important
|
||||
}
|
||||
|
||||
.height_box {
|
||||
margin-bottom: 18px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.total-footer {
|
||||
position : absolute;
|
||||
bottom : 0px;
|
||||
height : 32px;
|
||||
margin : 4px 8px;
|
||||
line-height: 32px;
|
||||
}
|
||||
48
src/app/routes/commom/less/trajectory.less
Normal file
48
src/app/routes/commom/less/trajectory.less
Normal file
@ -0,0 +1,48 @@
|
||||
:host::ng-deep {
|
||||
.text-truncate {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.map_st {
|
||||
max-height: 350px;
|
||||
max-width : 360px;
|
||||
position : absolute;
|
||||
top : 20px;
|
||||
right : 49px;
|
||||
}
|
||||
|
||||
.map_radio {
|
||||
position : absolute;
|
||||
top : 20px;
|
||||
left : 20px;
|
||||
background : #F4F4F5;
|
||||
box-shadow : 0px 2px 8px 1px rgb(0 0 0 / 10%);
|
||||
border-radius: 4px 4px 4px 4px;
|
||||
|
||||
.ant-radio-button-wrapper {
|
||||
background: #F4F4F5;
|
||||
border : unset;
|
||||
}
|
||||
|
||||
.ant-radio-button-wrapper-checked {
|
||||
color : #CF3834;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {
|
||||
background-color: #d9d9d9;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail_title {
|
||||
font-size : 16px;
|
||||
font-weight: 500;
|
||||
color : #252A3D;
|
||||
line-height: 24px;
|
||||
|
||||
span {
|
||||
color : #E60012;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
@ -22,11 +22,8 @@ import { ContractManagementService } from '../../services/contract-management.se
|
||||
})
|
||||
export class ContractManagementDetailComponent implements OnInit {
|
||||
constructor(
|
||||
private nzModalService: NzModalService,
|
||||
public service: ContractManagementService,
|
||||
public route: ActivatedRoute,
|
||||
private datePipe: DatePipe,
|
||||
private router: Router
|
||||
public route: ActivatedRoute
|
||||
) {}
|
||||
textStatus = '合同详情';
|
||||
name: any;
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
nz-button
|
||||
nzType="primary"
|
||||
[disabled]="!sf.valid"
|
||||
[nzLoading]="false"
|
||||
[nzLoading]="isLoading && st.loading"
|
||||
(click)="st?.load(1)"
|
||||
acl
|
||||
[acl-ability]="['CONTRACT-INDEX-listFrame']"
|
||||
@ -75,12 +75,13 @@
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||
[loading]="false"
|
||||
[loading]="service.http.loading"
|
||||
[scroll]="{ x: '1200px', y: '370px' }"
|
||||
(change)="stChange($event)"
|
||||
>
|
||||
<ng-template st-row="contractCode" let-item let-index="index">
|
||||
<a [routerLink]="'/contract-management/index/detail/' + item.id">{{ item?.contractCode }}</a>
|
||||
<a *ngIf="item.esignFlowStatus == '2'" (click)="service.openURL(item?.contractFilePath)">{{ item?.contractCode }}</a>
|
||||
<a *ngIf="item.esignFlowStatus !== '2'" [routerLink]="'/contract-management/index/detail/' + item.id">{{ item?.contractCode }}</a>
|
||||
</ng-template>
|
||||
</st>
|
||||
</nz-card>
|
||||
|
||||
@ -26,43 +26,50 @@ export class ContractManagementFrameComponent implements OnInit {
|
||||
ui: SFUISchema = {};
|
||||
_$expand = false;
|
||||
selectedRows: any[] = [];
|
||||
isLoading: boolean = false;
|
||||
constructor(
|
||||
public service: ContractManagementService,
|
||||
private nzModalService: NzModalService,
|
||||
private router: Router,
|
||||
public shipperservice: ShipperBaseService,
|
||||
private datePipe: DatePipe,
|
||||
) {}
|
||||
private datePipe: DatePipe
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.initST();
|
||||
this.initSF();
|
||||
}
|
||||
/**
|
||||
* 查询参数
|
||||
*/
|
||||
get reqParams() {
|
||||
const params = {
|
||||
...this.sf?.value,
|
||||
}
|
||||
delete params.signTime;
|
||||
delete params._$expand;
|
||||
if(this.datePipe.transform(this.sf?.value?.signTime?.[0], 'yyyy-MM-dd HH:mm:ss') && this.datePipe.transform(this.sf?.value?.signTime?.[1], 'yyyy-MM-dd HH:mm:ss')) {
|
||||
params.signTime = {
|
||||
start: this.datePipe.transform(this.sf?.value?.signTime?.[0], 'yyyy-MM-dd HH:mm:ss'),
|
||||
end: this.datePipe.transform(this.sf?.value?.signTime?.[1], 'yyyy-MM-dd HH:mm:ss'),
|
||||
}
|
||||
}
|
||||
if(this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[0], 'yyyy-MM-dd HH:mm:ss') && this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[1], 'yyyy-MM-dd HH:mm:ss')) {
|
||||
params.effectiveEndTime = {
|
||||
start: this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[0], 'yyyy-MM-dd HH:mm:ss'),
|
||||
end: this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[1], 'yyyy-MM-dd HH:mm:ss'),
|
||||
}
|
||||
}
|
||||
return {
|
||||
...params
|
||||
/**
|
||||
* 查询参数
|
||||
*/
|
||||
get reqParams() {
|
||||
const params = {
|
||||
...this.sf?.value
|
||||
};
|
||||
delete params.signTime;
|
||||
delete params._$expand;
|
||||
if (
|
||||
this.datePipe.transform(this.sf?.value?.signTime?.[0], 'yyyy-MM-dd HH:mm:ss') &&
|
||||
this.datePipe.transform(this.sf?.value?.signTime?.[1], 'yyyy-MM-dd HH:mm:ss')
|
||||
) {
|
||||
params.signTime = {
|
||||
start: this.datePipe.transform(this.sf?.value?.signTime?.[0], 'yyyy-MM-dd HH:mm:ss'),
|
||||
end: this.datePipe.transform(this.sf?.value?.signTime?.[1], 'yyyy-MM-dd HH:mm:ss')
|
||||
};
|
||||
}
|
||||
if (
|
||||
this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[0], 'yyyy-MM-dd HH:mm:ss') &&
|
||||
this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[1], 'yyyy-MM-dd HH:mm:ss')
|
||||
) {
|
||||
params.effectiveEndTime = {
|
||||
start: this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[0], 'yyyy-MM-dd HH:mm:ss'),
|
||||
end: this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[1], 'yyyy-MM-dd HH:mm:ss')
|
||||
};
|
||||
}
|
||||
return {
|
||||
...params
|
||||
};
|
||||
}
|
||||
/**
|
||||
* 初始化数据列表
|
||||
*/
|
||||
@ -70,7 +77,7 @@ export class ContractManagementFrameComponent implements OnInit {
|
||||
this.columns = [
|
||||
{
|
||||
title: '合同编号',
|
||||
width: '100px',
|
||||
width: '130px',
|
||||
className: 'text-center',
|
||||
render: 'contractCode'
|
||||
},
|
||||
@ -90,7 +97,7 @@ export class ContractManagementFrameComponent implements OnInit {
|
||||
title: '合同名称',
|
||||
width: '100px',
|
||||
className: 'text-center',
|
||||
index: 'templateName'
|
||||
index: 'contractName'
|
||||
},
|
||||
{ title: '网络货运人', index: 'enterpriseInfoName', width: '120px', className: 'text-center' },
|
||||
{ title: '合同对象', index: 'contractObjectName', width: '120px', className: 'text-center' },
|
||||
@ -121,6 +128,19 @@ export class ContractManagementFrameComponent implements OnInit {
|
||||
'5': { text: '已过期', color: 'warning' },
|
||||
'7': { text: '已拒签', color: 'warning' }
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
className: 'text-center',
|
||||
fixed: 'right',
|
||||
width: '80px',
|
||||
buttons: [
|
||||
{
|
||||
text: '签署',
|
||||
iif: item => item.esignFlowStatus === '0' || item.esignFlowStatus === '1' || item.esignFlowStatus === '13',
|
||||
click: item => this.service.StartTheProcessToESignById(item.id, () => this.st.load(1))
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
}
|
||||
@ -141,11 +161,11 @@ export class ContractManagementFrameComponent implements OnInit {
|
||||
enum: [
|
||||
{ label: '全部', value: '' },
|
||||
{ label: '货主', value: 1 },
|
||||
{ label: '司机', value: 2 },
|
||||
{ label: '司机', value: 2 }
|
||||
],
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
placeholder: '请选择'
|
||||
}
|
||||
},
|
||||
contractType: {
|
||||
@ -156,8 +176,8 @@ export class ContractManagementFrameComponent implements OnInit {
|
||||
widget: 'dict-select',
|
||||
containsAllLable: true,
|
||||
params: { dictKey: 'contract:type' },
|
||||
containAllLable:true,
|
||||
} as SFSelectWidgetSchema,
|
||||
containAllLable: true
|
||||
} as SFSelectWidgetSchema
|
||||
},
|
||||
enterpriseInfoId: {
|
||||
type: 'string',
|
||||
@ -177,8 +197,8 @@ export class ContractManagementFrameComponent implements OnInit {
|
||||
title: '合同对象',
|
||||
ui: {
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value,
|
||||
},
|
||||
_$expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
signTime: {
|
||||
@ -187,8 +207,8 @@ export class ContractManagementFrameComponent implements OnInit {
|
||||
ui: {
|
||||
widget: 'custom',
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value,
|
||||
},
|
||||
_$expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
effectiveEndTime: {
|
||||
@ -197,8 +217,8 @@ export class ContractManagementFrameComponent implements OnInit {
|
||||
ui: {
|
||||
widget: 'custom',
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value,
|
||||
},
|
||||
_$expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
esignFlowStatus: {
|
||||
@ -209,12 +229,12 @@ export class ContractManagementFrameComponent implements OnInit {
|
||||
widget: 'dict-select',
|
||||
containsAllLable: true,
|
||||
params: { dictKey: 'esign:flow:status' },
|
||||
containAllLable:true,
|
||||
containAllLable: true,
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value,
|
||||
},
|
||||
} as SFSelectWidgetSchema,
|
||||
},
|
||||
_$expand: (value: boolean) => value
|
||||
}
|
||||
} as SFSelectWidgetSchema
|
||||
}
|
||||
},
|
||||
type: 'object'
|
||||
};
|
||||
@ -293,6 +313,7 @@ export class ContractManagementFrameComponent implements OnInit {
|
||||
resetSF() {
|
||||
this.sf.reset();
|
||||
this._$expand = false;
|
||||
this.isLoading = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-07 15:57:49
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-02-23 20:11:50
|
||||
* @LastEditTime : 2022-05-07 17:52:57
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-list\\contract-list.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
@ -29,8 +29,8 @@
|
||||
</sf>
|
||||
</div>
|
||||
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
|
||||
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="false"
|
||||
(click)="st?.load(1)" acl [acl-ability]="['CONTRACT-INDEX-searchDetail']">查询</button>
|
||||
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="isLoading && st.loading"
|
||||
(click)="st?.load(1)" acl [acl-ability]="['CONTRACT-INDEX-searchDetail']">查询</button>
|
||||
<button nz-button (click)="resetSF()">重置</button>
|
||||
<button nz-button nzType="link" (click)="expandToggle()">
|
||||
{{ !_$expand ? '展开' : '收起' }}
|
||||
@ -48,14 +48,15 @@
|
||||
</nz-alert>
|
||||
</div>
|
||||
|
||||
<st #st [data]="service.$api_listDetailed_page" [columns]="columns" [req]="{ params: reqParams }"
|
||||
[loading]="false" [scroll]="{ x: '1200px', y: '370px' }" (change)="stChange($event)">
|
||||
<st #st [data]="service.$api_listDetailed_page" [columns]="columns" [req]="{ params: reqParams }" [loading]="false"
|
||||
[scroll]="{ x: '1200px', y: '370px' }" (change)="stChange($event)">
|
||||
<ng-template st-row="contractCode" let-item let-index="index">
|
||||
<a [routerLink]="'/contract-management/index/detail/' + item.id">{{ item?.contractCode }}</a>
|
||||
<a *ngIf="item.esignFlowStatus == '2'" (click)="service.openURL(item?.contractFilePath)">{{ item?.contractCode }}</a>
|
||||
<a *ngIf="item.esignFlowStatus !== '2'" [routerLink]="'/contract-management/index/detail/' + item.id">{{ item?.contractCode }}</a>
|
||||
</ng-template>
|
||||
<ng-template st-row="signingObject" let-item let-index="index">
|
||||
<span *ngIf="item.signingObject == 0"></span>
|
||||
<span></span>
|
||||
<span *ngIf="item.signingObject == 0"></span>
|
||||
<span></span>
|
||||
</ng-template>
|
||||
</st>
|
||||
</nz-card>
|
||||
|
||||
@ -25,20 +25,24 @@ export class ContractManagementContractListComponent implements OnInit {
|
||||
columns: STColumn[] = [];
|
||||
ui: SFUISchema = {};
|
||||
_$expand = false;
|
||||
isLoading: boolean = false;
|
||||
/**
|
||||
* 查询参数
|
||||
*/
|
||||
* 查询参数
|
||||
*/
|
||||
get reqParams() {
|
||||
const params = {
|
||||
...this.sf?.value,
|
||||
}
|
||||
...this.sf?.value
|
||||
};
|
||||
delete params.signTime;
|
||||
delete params._$expand;
|
||||
if (this.datePipe.transform(this.sf?.value?.signTime?.[0], 'yyyy-MM-dd HH:mm:ss') && this.datePipe.transform(this.sf?.value?.signTime?.[1], 'yyyy-MM-dd HH:mm:ss')) {
|
||||
if (
|
||||
this.datePipe.transform(this.sf?.value?.signTime?.[0], 'yyyy-MM-dd HH:mm:ss') &&
|
||||
this.datePipe.transform(this.sf?.value?.signTime?.[1], 'yyyy-MM-dd HH:mm:ss')
|
||||
) {
|
||||
params.signTime = {
|
||||
start: this.datePipe.transform(this.sf?.value?.signTime?.[0], 'yyyy-MM-dd HH:mm:ss'),
|
||||
end: this.datePipe.transform(this.sf?.value?.signTime?.[1], 'yyyy-MM-dd HH:mm:ss'),
|
||||
}
|
||||
end: this.datePipe.transform(this.sf?.value?.signTime?.[1], 'yyyy-MM-dd HH:mm:ss')
|
||||
};
|
||||
}
|
||||
return {
|
||||
...params
|
||||
@ -50,12 +54,12 @@ export class ContractManagementContractListComponent implements OnInit {
|
||||
private nzModalService: NzModalService,
|
||||
public shipperservice: ShipperBaseService,
|
||||
private router: Router,
|
||||
private datePipe: DatePipe,
|
||||
) { }
|
||||
private datePipe: DatePipe
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.initST()
|
||||
this.initSF()
|
||||
this.initST();
|
||||
this.initSF();
|
||||
}
|
||||
/**
|
||||
* 初始化数据列表
|
||||
@ -64,7 +68,7 @@ export class ContractManagementContractListComponent implements OnInit {
|
||||
this.columns = [
|
||||
{
|
||||
title: '合同编号',
|
||||
width: '100px',
|
||||
width: '130px',
|
||||
className: 'text-center',
|
||||
render: 'contractCode'
|
||||
},
|
||||
@ -72,7 +76,7 @@ export class ContractManagementContractListComponent implements OnInit {
|
||||
title: '签约对象',
|
||||
width: '100px',
|
||||
className: 'text-center',
|
||||
index: 'documentType'
|
||||
index: 'signingObjectLabel'
|
||||
},
|
||||
{
|
||||
title: '合同类型',
|
||||
@ -105,72 +109,133 @@ export class ContractManagementContractListComponent implements OnInit {
|
||||
'3': { text: '已撤销', color: 'warning' },
|
||||
'4': { text: '已作废', color: 'warning' },
|
||||
'5': { text: '已过期', color: 'warning' },
|
||||
'7': { text: '已拒签', color: 'warning' },
|
||||
},
|
||||
'7': { text: '已拒签', color: 'warning' }
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
title: '操作',
|
||||
className: 'text-center',
|
||||
fixed: 'right',
|
||||
width: '80px',
|
||||
buttons: [
|
||||
{
|
||||
text: '签署',
|
||||
iif: item => item.esignFlowStatus === '0' || item.esignFlowStatus === '1' || item.esignFlowStatus === '13',
|
||||
click: item => this.service.StartTheProcessToESignById(item.id, () => this.st.load(1))
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
}
|
||||
/**
|
||||
* 初始化查询表单
|
||||
*/
|
||||
* 初始化查询表单
|
||||
*/
|
||||
initSF() {
|
||||
this.schema = {
|
||||
properties: {
|
||||
_$expand: { type: 'boolean', ui: { hidden: true } },
|
||||
contractCode: {
|
||||
type: 'string',
|
||||
title: '合同编号',
|
||||
title: '合同编号'
|
||||
},
|
||||
businessCode: {
|
||||
type: 'string',
|
||||
title: '业务单号'
|
||||
},
|
||||
shipperName: {
|
||||
signingObject: {
|
||||
type: 'string',
|
||||
title: '托运人'
|
||||
},
|
||||
carrierName: {
|
||||
type: 'string',
|
||||
title: '承运人',
|
||||
title: '签约对象',
|
||||
enum: [
|
||||
{ label: '全部', value: '' },
|
||||
{ label: '货主', value: 1 },
|
||||
{ label: '司机', value: 2 }
|
||||
],
|
||||
ui: {
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value,
|
||||
},
|
||||
widget: 'select',
|
||||
placeholder: '请选择'
|
||||
}
|
||||
},
|
||||
documentType: {
|
||||
title: '单据类型',
|
||||
contractType: {
|
||||
title: '合同类型',
|
||||
type: 'string',
|
||||
default: '',
|
||||
ui: {
|
||||
widget: 'dict-select',
|
||||
containsAllLabel: true,
|
||||
params: { dictKey: 'contract:document:type' },
|
||||
containAllLable: true,
|
||||
containsAllLable: true,
|
||||
params: { dictKey: 'contract:type' },
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value,
|
||||
_$expand: (value: boolean) => value
|
||||
},
|
||||
} as SFSelectWidgetSchema,
|
||||
containAllLable: true
|
||||
} as SFSelectWidgetSchema
|
||||
},
|
||||
resourceType: {
|
||||
title: '货源类型',
|
||||
type: 'string',
|
||||
default: '',
|
||||
ui: {
|
||||
widget: 'dict-select',
|
||||
params: { dictKey: 'goodresource:type' },
|
||||
containsAllLable: true,
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value
|
||||
}
|
||||
} as SFSelectWidgetSchema
|
||||
},
|
||||
enterpriseInfoId: {
|
||||
type: 'string',
|
||||
title: '网络货运人',
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
allowClear: true,
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value
|
||||
},
|
||||
asyncData: () => this.shipperservice.getNetworkFreightForwarder()
|
||||
}
|
||||
},
|
||||
contractObjectName: {
|
||||
type: 'string',
|
||||
title: '合同对象',
|
||||
ui: {
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
signTime: {
|
||||
title: '签署日期',
|
||||
type: 'string',
|
||||
ui: {
|
||||
widget: 'custom',
|
||||
widget: 'sl-from-to-search',
|
||||
format: 'yyyy-MM-dd',
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value,
|
||||
},
|
||||
}
|
||||
_$expand: (value: boolean) => value
|
||||
}
|
||||
} as SFDateWidgetSchema
|
||||
},
|
||||
esignFlowStatus: {
|
||||
title: '状态',
|
||||
type: 'string',
|
||||
default: '',
|
||||
ui: {
|
||||
widget: 'dict-select',
|
||||
params: { dictKey: 'esign:flow:status' },
|
||||
containsAllLable: true,
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value
|
||||
}
|
||||
} as SFSelectWidgetSchema
|
||||
}
|
||||
},
|
||||
type: 'object',
|
||||
type: 'object'
|
||||
};
|
||||
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
|
||||
}
|
||||
/**
|
||||
* 查询字段个数
|
||||
*/
|
||||
* 查询字段个数
|
||||
*/
|
||||
get queryFieldCount(): number {
|
||||
return Object.keys(this.schema?.properties || {}).length;
|
||||
}
|
||||
@ -235,6 +300,7 @@ export class ContractManagementContractListComponent implements OnInit {
|
||||
resetSF() {
|
||||
this.sf.reset();
|
||||
this._$expand = false;
|
||||
this.isLoading = true;
|
||||
}
|
||||
/**
|
||||
* 伸缩查询条件
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-07 13:29:57
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-02-24 10:08:28
|
||||
* @LastEditTime : 2022-05-07 17:56:08
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-partner\\contract-partner.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
@ -41,7 +41,7 @@
|
||||
nz-button
|
||||
nzType="primary"
|
||||
[disabled]="!sf.valid"
|
||||
[nzLoading]="false"
|
||||
[nzLoading]="service.http.loading"
|
||||
(click)="st?.load(1)"
|
||||
acl
|
||||
[acl-ability]="['CONTRACT-INDEX-listFrame']"
|
||||
@ -80,7 +80,8 @@
|
||||
(change)="stChange($event)"
|
||||
>
|
||||
<ng-template st-row="contractCode" let-item let-index="index">
|
||||
<a [routerLink]="'/contract-management/index/detail/' + item.id">{{ item?.contractCode }}</a>
|
||||
<a *ngIf="item.esignFlowStatus == '2'" (click)="service.openURL(item?.contractFilePath)">{{ item?.contractCode }}</a>
|
||||
<a *ngIf="item.esignFlowStatus !== '2'" [routerLink]="'/contract-management/index/detail/' + item.id">{{ item?.contractCode }}</a>
|
||||
</ng-template>
|
||||
</st>
|
||||
</nz-card>
|
||||
|
||||
@ -70,7 +70,7 @@ export class ContractManagementPartnerComponent implements OnInit {
|
||||
this.columns = [
|
||||
{
|
||||
title: '合同编号',
|
||||
width: '100px',
|
||||
width: '130px',
|
||||
className: 'text-center',
|
||||
render: 'contractCode'
|
||||
},
|
||||
@ -78,7 +78,7 @@ export class ContractManagementPartnerComponent implements OnInit {
|
||||
title: '签约对象',
|
||||
width: '100px',
|
||||
className: 'text-center',
|
||||
index: 'signingObject'
|
||||
index: 'signingObjectLabel'
|
||||
},
|
||||
{
|
||||
title: '合同类型',
|
||||
@ -121,6 +121,19 @@ export class ContractManagementPartnerComponent implements OnInit {
|
||||
'5': { text: '已过期', color: 'warning' },
|
||||
'7': { text: '已拒签', color: 'warning' }
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
className: 'text-center',
|
||||
fixed: 'right',
|
||||
width: '80px',
|
||||
buttons: [
|
||||
{
|
||||
text: '签署',
|
||||
iif: item => item.esignFlowStatus === '0' || item.esignFlowStatus === '1' || item.esignFlowStatus === '13',
|
||||
click: item => this.service.StartTheProcessToESignById(item.id, () => this.st.load(1))
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-05 11:01:55
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-01-18 17:16:27
|
||||
* @LastEditTime : 2022-04-15 14:07:19
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-template-detail\\contract-template-detail.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
@ -34,9 +34,6 @@
|
||||
<nz-card>
|
||||
<div nz-col nzSpan="20" style="overflow: scroll">
|
||||
<nz-card class="card-height" *ngIf="!isUpdate">
|
||||
<div class="mb-md">
|
||||
<div>{{detailList?.templateName}}</div>
|
||||
</div>
|
||||
<div [innerHTML]="detailList?.templateContent | safehtml"></div>
|
||||
</nz-card>
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ import { OnChanges } from '@angular/core';
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-05 11:01:55
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-02-28 20:22:46
|
||||
* @LastEditTime : 2022-05-07 14:28:16
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-template-detail\\contract-template-detail.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -87,7 +87,6 @@ export class ContractManagementTemplateTextComponent implements OnInit {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
change: (tag: any, org: any) => {
|
||||
console.log(tag);
|
||||
switch (tag) {
|
||||
case 'MX':
|
||||
this.Types = [
|
||||
@ -95,7 +94,8 @@ export class ContractManagementTemplateTextComponent implements OnInit {
|
||||
{ label: '订单补充协议', value: '2' },
|
||||
{ label: '运单合同', value: '3' },
|
||||
{ label: '运单补充协议', value: '4' },
|
||||
{ label: '委托代收合同', value: '5' }
|
||||
{ label: '委托代收合同', value: '5' },
|
||||
{ label: '权力义务转让协议', value: '10' },
|
||||
];
|
||||
this.sf.getProperty('/contractType')!.schema.enum = this.Types;
|
||||
this.sf.getProperty('/contractType')!.widget.reset(this.Types);
|
||||
@ -176,7 +176,7 @@ export class ContractManagementTemplateTextComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
},
|
||||
required: ['templateName', 'templateType']
|
||||
required: ['templateName', 'templateType', 'contractType']
|
||||
};
|
||||
this.ui = {
|
||||
'*': {
|
||||
@ -204,14 +204,70 @@ export class ContractManagementTemplateTextComponent implements OnInit {
|
||||
};
|
||||
}
|
||||
initData(url: string) {
|
||||
console.log('编辑');
|
||||
|
||||
this.service.request(url, { id: this.route.snapshot.params.id }).subscribe(res => {
|
||||
if (res) {
|
||||
this.detailList = res;
|
||||
this.title = this.detailList?.templateName;
|
||||
this.sfdata = res;
|
||||
this.sfdata2 = res;
|
||||
|
||||
switch (res.templateType) {
|
||||
case 'MX':
|
||||
let Types1 = [
|
||||
{ label: '订单合同', value: '1' },
|
||||
{ label: '订单补充协议', value: '2' },
|
||||
{ label: '运单合同', value: '3' },
|
||||
{ label: '运单补充协议', value: '4' },
|
||||
{ label: '委托代收合同', value: '5' },
|
||||
{ label: '权力义务转让协议', value: '10' },
|
||||
];
|
||||
setTimeout(() => {
|
||||
if (this.sf) {
|
||||
this.sf.getProperty('/contractType')!.schema.enum = Types1;
|
||||
this.sf.getProperty('/contractType')!.widget.reset(Types1);
|
||||
if (res.contractType) {
|
||||
this.sf.setValue('/contractType', res.contractType);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return;
|
||||
break;
|
||||
case 'KJ':
|
||||
const Types2 = [
|
||||
{ label: '网络货物运输服务合同', value: '6' },
|
||||
{ label: '运输服务承揽合同', value: '7' }
|
||||
];
|
||||
setTimeout(() => {
|
||||
if (this.sf) {
|
||||
this.sf.getProperty('/contractType')!.schema.enum = Types2;
|
||||
this.sf.getProperty('/contractType')!.widget.reset(Types2);
|
||||
if (res.contractType) {
|
||||
this.sf.setValue('/contractType', res.contractType);
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
break;
|
||||
case 'HHR':
|
||||
const Types3 = [
|
||||
{ label: '企业合伙人入驻合同', value: '8' },
|
||||
{ label: '个人合伙人入驻合同', value: '9' }
|
||||
];
|
||||
setTimeout(() => {
|
||||
if (this.sf) {
|
||||
this.sf.getProperty('/contractType')!.schema.enum = Types3;
|
||||
this.sf.getProperty('/contractType')!.widget.reset(Types3);
|
||||
if (res.contractType) {
|
||||
this.sf.setValue('/contractType', res.contractType);
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -220,22 +276,26 @@ export class ContractManagementTemplateTextComponent implements OnInit {
|
||||
}
|
||||
|
||||
save() {
|
||||
// if (!this.sf.value.templateName || !this.sf.value.templateType || !this.sf2.value.templateContent || !this.title) {
|
||||
// this.service.msgSrv.error('必填参数为空,请检查再重新保存!');
|
||||
// return;
|
||||
// }
|
||||
// if (this.sf.value.templateType == 'MX') {
|
||||
// if (this.sf.value.contractType == '') {
|
||||
// this.service.msgSrv.error('必填参数为空,请检查再重新保存!');
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
if (
|
||||
!this.sf?.value.templateName ||
|
||||
!this.sf?.value.templateType ||
|
||||
!this.sf2.value.templateContent ||
|
||||
!(this.title || this.detailList.templateName)
|
||||
) {
|
||||
this.service.msgSrv.error('必填参数为空,请检查再重新保存!');
|
||||
return;
|
||||
}
|
||||
if (this.sf?.value.templateType == 'MX') {
|
||||
if (this.sf?.value.contractType == '') {
|
||||
this.service.msgSrv.error('必填参数为空,请检查再重新保存!');
|
||||
return;
|
||||
}
|
||||
}
|
||||
const params = {
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
...this.sf2.value,
|
||||
templateTitle: this.title || this.detailList.templateName
|
||||
templateTitle: this.detailList.templateName || this.title
|
||||
};
|
||||
console.log(params);
|
||||
this.service.request(this.service.$api_save_contractTemplate, params).subscribe((res: any) => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('保存成功!');
|
||||
@ -243,4 +303,5 @@ export class ContractManagementTemplateTextComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
}
|
||||
EditType() {}
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
nz-button
|
||||
nzType="primary"
|
||||
[disabled]="!sf.valid"
|
||||
[nzLoading]="false"
|
||||
[nzLoading]="service.http.loading"
|
||||
(click)="st?.load(1)"
|
||||
acl
|
||||
[acl-ability]="['CONTRACT-INDEX-listFrame']"
|
||||
@ -75,7 +75,8 @@
|
||||
[loading]="false"
|
||||
>
|
||||
<ng-template st-row="templateName" let-item let-index="index">
|
||||
<a (click)="view(item)">{{ item.templateName }}</a>
|
||||
<a (click)="service.openURL(item?.contractFilePath)">{{ item.templateName }}</a>
|
||||
<!-- <a (click)="view(item)">{{ item.templateName }}</a> -->
|
||||
</ng-template>
|
||||
<ng-template st-row="signingObject" let-item let-index="index">
|
||||
<span *ngIf="item?.signingObject == 1">货主</span>
|
||||
|
||||
@ -125,17 +125,18 @@ export class ContractManagementTemplateFrameComponent implements OnInit {
|
||||
{
|
||||
title: '合同模板名称',
|
||||
className: 'text-center',
|
||||
width: '300px',
|
||||
render: 'templateName'
|
||||
},
|
||||
{
|
||||
title: '签约对象',
|
||||
width: '100px',
|
||||
className: 'text-center',
|
||||
render: 'signingObjectLabel'
|
||||
index: 'signingObjectLabel'
|
||||
},
|
||||
{
|
||||
title: '合同类型',
|
||||
width: '100px',
|
||||
width: '200px',
|
||||
className: 'text-center',
|
||||
index: 'contractTypeLabel'
|
||||
},
|
||||
@ -145,15 +146,17 @@ export class ContractManagementTemplateFrameComponent implements OnInit {
|
||||
className: 'text-center',
|
||||
index: 'resourceTypeLabel'
|
||||
},
|
||||
{ title: '创建人', index: 'createUserId', width: '120px', className: 'text-center' },
|
||||
{ title: '创建人', index: 'createUserIdLabel', width: '120px', className: 'text-center' },
|
||||
{
|
||||
title: '创建时间',
|
||||
className: 'text-center',
|
||||
index: 'createTime'
|
||||
index: 'createTime',
|
||||
width: '200px'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
fixed: 'right',
|
||||
width: '110px',
|
||||
className: 'text-center',
|
||||
buttons: [
|
||||
{
|
||||
@ -242,7 +245,7 @@ export class ContractManagementTemplateFrameComponent implements OnInit {
|
||||
this.service.request(this.service.$api_deletebatch_contractTemplate, [value.id]).subscribe(res => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('删除成功!');
|
||||
this.st.reload(1)
|
||||
this.st.reload()
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
nz-button
|
||||
nzType="primary"
|
||||
[disabled]="!sf.valid"
|
||||
[nzLoading]="false"
|
||||
[nzLoading]="service.http.loading"
|
||||
(click)="st?.load(1)"
|
||||
acl
|
||||
[acl-ability]="['CONTRACT-INDEX-listFrame']"
|
||||
@ -75,7 +75,8 @@
|
||||
[loading]="false"
|
||||
>
|
||||
<ng-template st-row="templateName" let-item let-index="index">
|
||||
<a (click)="view(item)">{{ item.templateName }}</a>
|
||||
<a (click)="service.openURL(item?.contractFilePath)">{{ item.templateName }}</a>
|
||||
<!-- <a (click)="view(item)">{{ item.templateName }}</a> -->
|
||||
</ng-template>
|
||||
</st>
|
||||
</div>
|
||||
|
||||
@ -125,6 +125,7 @@ export class ContractManagementTemplatePartnerComponent implements OnInit {
|
||||
{
|
||||
title: '合同模板名称',
|
||||
className: 'text-center',
|
||||
width: '300px',
|
||||
render: 'templateName'
|
||||
},
|
||||
{
|
||||
@ -135,7 +136,7 @@ export class ContractManagementTemplatePartnerComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
title: '合同类型',
|
||||
width: '100px',
|
||||
width: '200px',
|
||||
className: 'text-center',
|
||||
index: 'contractTypeLabel'
|
||||
},
|
||||
@ -145,15 +146,17 @@ export class ContractManagementTemplatePartnerComponent implements OnInit {
|
||||
className: 'text-center',
|
||||
index: 'resourceTypeLabel'
|
||||
},
|
||||
{ title: '创建人', index: 'createUserId', width: '120px', className: 'text-center' },
|
||||
{ title: '创建人', index: 'createUserIdLabel', width: '120px', className: 'text-center' },
|
||||
{
|
||||
title: '创建时间',
|
||||
className: 'text-center',
|
||||
index: 'createTime'
|
||||
index: 'createTime',
|
||||
width: '200px'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
fixed: 'right',
|
||||
width: '110px',
|
||||
className: 'text-center',
|
||||
buttons: [
|
||||
{
|
||||
@ -242,7 +245,7 @@ export class ContractManagementTemplatePartnerComponent implements OnInit {
|
||||
this.service.request(this.service.$api_deletebatch_contractTemplate, [value.id]).subscribe(res => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('删除成功!');
|
||||
this.st.reload(1)
|
||||
this.st.reload()
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
nz-button
|
||||
nzType="primary"
|
||||
[disabled]="!sf.valid"
|
||||
[nzLoading]="false"
|
||||
[nzLoading]="service.http.loading"
|
||||
(click)="st?.load(1)"
|
||||
acl
|
||||
[acl-ability]="['CONTRACT-INDEX-listFrame']"
|
||||
|
||||
@ -125,6 +125,7 @@ export class ContractManagementTemplateDetailComponent implements OnInit {
|
||||
{
|
||||
title: '合同模板名称',
|
||||
className: 'text-center',
|
||||
width: '300px',
|
||||
render: 'templateName'
|
||||
},
|
||||
{
|
||||
@ -135,7 +136,7 @@ export class ContractManagementTemplateDetailComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
title: '合同类型',
|
||||
width: '100px',
|
||||
width: '200px',
|
||||
className: 'text-center',
|
||||
index: 'contractTypeLabel'
|
||||
},
|
||||
@ -145,15 +146,17 @@ export class ContractManagementTemplateDetailComponent implements OnInit {
|
||||
className: 'text-center',
|
||||
index: 'resourceTypeLabel'
|
||||
},
|
||||
{ title: '创建人', index: 'createUserId', width: '120px', className: 'text-center' },
|
||||
{ title: '创建人', index: 'createUserIdLabel', width: '120px', className: 'text-center' },
|
||||
{
|
||||
title: '创建时间',
|
||||
className: 'text-center',
|
||||
index: 'createTime'
|
||||
index: 'createTime',
|
||||
width: '200px'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
fixed: 'right',
|
||||
width: '110px',
|
||||
className: 'text-center',
|
||||
buttons: [
|
||||
{
|
||||
@ -242,7 +245,7 @@ export class ContractManagementTemplateDetailComponent implements OnInit {
|
||||
this.service.request(this.service.$api_deletebatch_contractTemplate, [value.id]).subscribe(res => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('删除成功!');
|
||||
this.st.reload(1)
|
||||
this.st.reload()
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
@ -9,15 +9,16 @@
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
|
||||
|
||||
<page-header-wrapper title="合同管理" [tab]="tpTab">
|
||||
</page-header-wrapper>
|
||||
<ng-template #tpTab>
|
||||
<nz-tabset [(nzSelectedIndex)]="selectedIndex">
|
||||
<nz-tab nzTitle="明细合同">
|
||||
<nz-tab nzTitle="明细合同" *ngIf="isShowDetail">
|
||||
<app-contract-management-contract-list></app-contract-management-contract-list>
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle="框架合同">
|
||||
<app-contract-management-contract-frame></app-contract-management-contract-frame>
|
||||
<nz-tab nzTitle="框架合同"*ngIf="isShowFrame">
|
||||
<app-contract-management-contract-frame ></app-contract-management-contract-frame>
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle="合伙人合同">
|
||||
<app-contract-management-contract-partner></app-contract-management-contract-partner>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* @Description :
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-07 13:27:10
|
||||
@ -10,18 +10,24 @@
|
||||
*/
|
||||
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ACLService } from '@delon/acl';
|
||||
import { ModalHelper, _HttpClient } from '@delon/theme';
|
||||
|
||||
@Component({
|
||||
selector: 'app-supply-management-index',
|
||||
templateUrl: './index.component.html',
|
||||
templateUrl: './index.component.html'
|
||||
})
|
||||
export class ContractManagementIndexComponent implements OnInit {
|
||||
selectedIndex = 0;
|
||||
|
||||
constructor(private http: _HttpClient, private modal: ModalHelper) { }
|
||||
|
||||
ngOnInit(): void { }
|
||||
isShowDetail = false;
|
||||
isShowFrame = false;
|
||||
|
||||
constructor(private http: _HttpClient, private modal: ModalHelper, private acl: ACLService) {
|
||||
const acls = acl.data.abilities || [];
|
||||
this.isShowDetail =acl.data.full || !!acls.find(acl => acl === 'CONTRACT-INDEX-searchDetail');
|
||||
this.isShowFrame =acl.data.full || !!acls.find(acl => acl === 'CONTRACT-INDEX-listFrame');
|
||||
|
||||
}
|
||||
|
||||
ngOnInit(): void {}
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
||||
</div>
|
||||
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
|
||||
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="false" (click)="st?.load(1)" acl [acl-ability]="['CONTRACT-POLICY-search']">查询</button>
|
||||
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="isLoading && st.loading" (click)="st?.load(1)" acl [acl-ability]="['CONTRACT-POLICY-search']">查询</button>
|
||||
<button nz-button (click)="resetSF()">重置</button>
|
||||
<button nz-button nzType="link" (click)="expandToggle()">
|
||||
{{ !_$expand ? '展开' : '收起' }}
|
||||
|
||||
@ -26,6 +26,7 @@ export class ContractManagementPolicyComponent implements OnInit {
|
||||
|
||||
selectedRows: any[] = [];
|
||||
paramValue = '';
|
||||
isLoading: boolean = false;
|
||||
constructor(public service: ContractManagementService, private modal: NzModalService, private router: Router) {}
|
||||
|
||||
/**
|
||||
@ -33,7 +34,7 @@ export class ContractManagementPolicyComponent implements OnInit {
|
||||
*/
|
||||
get reqParams() {
|
||||
const params: any = {
|
||||
...(this.sf && this.sf.value)
|
||||
...(this.sf && this.sf?.value)
|
||||
};
|
||||
delete params.expand;
|
||||
return params;
|
||||
@ -185,6 +186,7 @@ export class ContractManagementPolicyComponent implements OnInit {
|
||||
resetSF() {
|
||||
this.sf.reset();
|
||||
this._$expand = false;
|
||||
this.isLoading = true
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* @Description :
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-04 21:05:49
|
||||
@ -19,12 +19,16 @@ import { ContractManagementIndexComponent } from './components/index/index.compo
|
||||
import { ContractManagementPolicyComponent } from './components/policy/policy.component';
|
||||
import { ContractManagementTemplateComponent } from './components/template/template.component';
|
||||
const routes: Routes = [
|
||||
{ path: 'index', component: ContractManagementIndexComponent },
|
||||
{ path: 'index', component: ContractManagementIndexComponent, data: { guard: { ability: ['CONTRACT-INDEX-searchDetail'] } } },
|
||||
{ path: 'index/detail/:id', component: ContractManagementDetailComponent },
|
||||
{ path: 'template', component: ContractManagementTemplateComponent },
|
||||
{ path: 'template/text/:id', component: ContractManagementTemplateTextComponent },
|
||||
{ path: 'policy', component: ContractManagementPolicyComponent },
|
||||
{ path: 'partner', component: ContractManagementPartnerComponent },
|
||||
{ path: 'template', component: ContractManagementTemplateComponent, data: { guard: { ability: ['CONTRACT-TEMPLATE-search'] } } },
|
||||
{
|
||||
path: 'template/text/:id',
|
||||
component: ContractManagementTemplateTextComponent,
|
||||
data: { guard: { ability: ['CONTRACT-TEMPLATE-detail'] } }
|
||||
},
|
||||
{ path: 'policy', component: ContractManagementPolicyComponent, data: { guard: { ability: ['CONTRACT-POLICY-search'] } } },
|
||||
{ path: 'partner', component: ContractManagementPartnerComponent }
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
||||
@ -35,7 +35,18 @@ export class ContractManagementService extends BaseService {
|
||||
$api_listPartner_page = `/api/sdc/contract/listPartner/page`;
|
||||
// 获取订单合同表
|
||||
$api_contract_get = `/api/sdc/contract/get`;
|
||||
|
||||
// 发起E签宝跟据合同ID
|
||||
$api_startTheProcessToESignById = `/api/sdc/contract/startTheProcessToESignById`;
|
||||
constructor(public injector: Injector) {
|
||||
super(injector);
|
||||
}
|
||||
|
||||
StartTheProcessToESignById(id: string, callback: () => void) {
|
||||
this.request(this.$api_startTheProcessToESignById, { id }).subscribe(res => {
|
||||
if (res) {
|
||||
callback();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,7 +2,6 @@ import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard',
|
||||
templateUrl: './dashboard.component.html',
|
||||
styleUrls: ['./dashboard.component.less']
|
||||
template: ''
|
||||
})
|
||||
export class DashboardComponent {}
|
||||
|
||||
@ -0,0 +1,68 @@
|
||||
<!--
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-04-21 13:49:21
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-28 20:09:34
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\busitable\\busiindex\\busiindex.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
<!-- 页头 -->
|
||||
<page-header-wrapper [title]="'业务报表'"></page-header-wrapper>
|
||||
<nz-card nzTitle="运多星平台业务情况" [nzExtra]="extraTemplate" acl [acl-ability]="['busiindex-tabel']">
|
||||
<ng-template #extraTemplate>
|
||||
<div class="chooseBox">
|
||||
<button nz-button nzType="primary" (click)="exportFun()">导出</button>
|
||||
<div class="timeBox">
|
||||
<nz-radio-group [(ngModel)]="mode" nzButtonStyle="solid" (ngModelChange)="changeData()" >
|
||||
<label nz-radio-button nzValue="year">年</label>
|
||||
<label nz-radio-button nzValue="month">月</label>
|
||||
<label nz-radio-button nzValue="date">日</label>
|
||||
<label nz-radio-button nzValue="define">自定义</label>
|
||||
</nz-radio-group>
|
||||
<div class="dateBox">
|
||||
<nz-date-picker [(ngModel)]="date" [nzMode]="mode" [nzFormat]="dateFormat" *ngIf="mode !== 'define'" [nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-date-picker>
|
||||
<nz-range-picker [(ngModel)]="defineDate" [nzFormat]="dateFormat" *ngIf="mode === 'define'" [nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-range-picker>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<st #st multiSort [columns]="columns" [ps]="20" [data]="service.$api_listPerformanceReportPage"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[scroll]="{ x: '1200px' }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [20, 50, 100] }"></st>
|
||||
</nz-card>
|
||||
<nz-card nzTitle="业绩报表" [nzExtra]="extraTemplate01" acl [acl-ability]="['busiindex-report']">
|
||||
<ng-template #extraTemplate01>
|
||||
<div class="chooseBox">
|
||||
<div class="timeBox">
|
||||
<nz-radio-group [(ngModel)]="modeNext" nzButtonStyle="solid" (ngModelChange)="changeDataNext()" >
|
||||
<label nz-radio-button nzValue="year">年</label>
|
||||
<label nz-radio-button nzValue="month">月</label>
|
||||
</nz-radio-group>
|
||||
<div class="dateBox">
|
||||
<nz-date-picker [(ngModel)]="dateNext" [nzDisabledDate]="disabledDate" [nzMode]="modeNext" (ngModelChange)="onChangeNext($event)"></nz-date-picker>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
<div nz-row [nzGutter]="64">
|
||||
<div nz-col class="gutter-row" [nzSpan]="12">
|
||||
<div class="title">
|
||||
<div class="box" style="background-color: #3ba1ff;"></div> 环比(%)
|
||||
</div>
|
||||
<!-- <g2-custom delay="100" (render)="render($event)"></g2-custom> -->
|
||||
<!-- <app-busitable-curve></app-busitable-curve> -->
|
||||
<app-busitable-curve #curve [chartData]="chartData.chainRatio"></app-busitable-curve>
|
||||
</div>
|
||||
<div nz-col class="gutter-row" [nzSpan]="12">
|
||||
<div class="title">
|
||||
<div class="box" style="background-color: #f59a23;"></div> 业绩量(元)
|
||||
</div>
|
||||
<app-busitable-pillar #pillar [chartData]="chartData.performance"></app-busitable-pillar>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</nz-card>
|
||||
@ -0,0 +1,21 @@
|
||||
.chooseBox{
|
||||
display: flex;
|
||||
}
|
||||
.timeBox{
|
||||
display: flex;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
.dateBox{
|
||||
display: inline-block;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
.title{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.box{
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
margin-right: 10px;
|
||||
border-radius: 100px;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { DatatableBusiindexComponent } from './busiindex.component';
|
||||
|
||||
describe('DatatableBusiindexComponent', () => {
|
||||
let component: DatatableBusiindexComponent;
|
||||
let fixture: ComponentFixture<DatatableBusiindexComponent>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ DatatableBusiindexComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(DatatableBusiindexComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,148 @@
|
||||
import { Component, OnInit, ViewChild, NgZone } from '@angular/core';
|
||||
import { STColumn, STComponent } from '@delon/abc/st';
|
||||
import { DatePipe, _HttpClient } from '@delon/theme';
|
||||
import { differenceInCalendarDays } from 'date-fns';
|
||||
import { DataService } from '../../../services/data.service';
|
||||
import { BusitablePillarComponent } from '../pillar/pillar.component';
|
||||
import { BusitableCurveComponent } from './curve/curve.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-datatable-busiindex',
|
||||
templateUrl: './busiindex.component.html',
|
||||
styleUrls: ['./busiindex.component.less'],
|
||||
providers: [DatePipe]
|
||||
|
||||
})
|
||||
export class DatatableBusiindexComponent implements OnInit {
|
||||
@ViewChild('st') private readonly st!: STComponent;
|
||||
@ViewChild('curve') private readonly curve!: BusitableCurveComponent;
|
||||
@ViewChild('pillar') private readonly pillar!: BusitablePillarComponent;
|
||||
type = 1;
|
||||
mode = 'year';
|
||||
date: any = null;
|
||||
time: any = ['2022-01-01 00:00:00']
|
||||
defineDate = [];
|
||||
dateNext: any = null;
|
||||
modeNext = 'year';
|
||||
timeNext: any = ['2022-01-01 00:00:00']
|
||||
dateFormat = 'yyyy';
|
||||
today = new Date();
|
||||
chartData: any = {}
|
||||
|
||||
columns: STColumn[] = [
|
||||
{ title: '运营主体', index: 'networkTransporterName', className: 'text-center' },
|
||||
{ title: '合伙人数', index: 'partnerNumber', className: 'text-center' },
|
||||
{ title: '客户数', index: 'enterpriseNumbe', className: 'text-center' },
|
||||
{ title: '订单数', index: 'zsl', className: 'text-center' },
|
||||
{ title: '客户预存款', index: 'czcgje', className: 'text-right', type: 'widget', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.czcgje }) } },
|
||||
{ title: '业绩量', index: 'yisje', className: 'text-center' },
|
||||
{ title: '已收附加费', index: 'yisfjf', className: 'text-right', type: 'widget', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.yisfjf }) } },
|
||||
{ title: '平均附加费率', index: 'fjfl', className: 'text-center',format: (item)=> {
|
||||
return item.fjfl + '%'
|
||||
} },
|
||||
{ title: '已开票金额', index: 'ykpje', className: 'text-right', type: 'widget', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.ykpje }) } },
|
||||
];
|
||||
/**
|
||||
* 查询参数
|
||||
*/
|
||||
get reqParams() {
|
||||
if(this.mode === 'year') {
|
||||
this.type = 1
|
||||
} else if(this.mode === 'month') {
|
||||
this.type = 2
|
||||
} else if(this.mode === 'date') {
|
||||
this.type = 3
|
||||
} else {
|
||||
this.type = 4
|
||||
}
|
||||
let params: any = {
|
||||
time: this.time,
|
||||
type: this.type
|
||||
};
|
||||
|
||||
delete params._$expand;
|
||||
return { ...params };
|
||||
}
|
||||
|
||||
constructor(public service: DataService, private datePipe: DatePipe, private ngZone: NgZone) { }
|
||||
ngOnInit(): void {
|
||||
this.initData()
|
||||
}
|
||||
initData(flag?: boolean){
|
||||
let type = 1
|
||||
if(this.mode === 'year') {
|
||||
type = 1
|
||||
} else if(this.mode === 'month') {
|
||||
type = 2
|
||||
}
|
||||
if(this.modeNext === 'year') {
|
||||
type = 1
|
||||
} else if(this.modeNext === 'month') {
|
||||
type = 2
|
||||
}
|
||||
const params: any = {
|
||||
time: this.timeNext,
|
||||
type
|
||||
};
|
||||
this.service.request(this.service.$api_performanceReportHistogram, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.chartData = res
|
||||
if(flag) {
|
||||
this.pillar.reRender()
|
||||
this.curve.reRender()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
changeData(){
|
||||
if(this.mode === 'year') {
|
||||
this.dateFormat = 'yyyy'
|
||||
} else if(this.mode === 'month') {
|
||||
this.dateFormat = 'yyyy-MM'
|
||||
} else {
|
||||
this.dateFormat = 'yyyy-MM-dd'
|
||||
}
|
||||
}
|
||||
onChange(result: any) {
|
||||
if(this.mode === 'year') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy') + '-01-01 00:00:00']
|
||||
} else if(this.mode === 'month') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy-MM') + '-01 00:00:00']
|
||||
} else if(this.mode === 'date') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd') + ' 00:00:00']
|
||||
} else{
|
||||
this.time = [this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd') + ' 00:00:00', this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd') + ' 00:00:00']
|
||||
}
|
||||
this.st.reload({ ...this.reqParams });
|
||||
}
|
||||
|
||||
changeDataNext() {
|
||||
if(this.modeNext === 'year') {
|
||||
this.dateFormat = 'yyyy'
|
||||
} else if(this.modeNext === 'month') {
|
||||
this.dateFormat = 'yyyy-MM'
|
||||
}
|
||||
}
|
||||
onChangeNext(result: any) {
|
||||
if(result === null) {
|
||||
return
|
||||
}
|
||||
console.log(this.mode);
|
||||
if(this.modeNext === 'year') {
|
||||
this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy') + '-01-01 00:00:00']
|
||||
} else if(this.modeNext === 'month') {
|
||||
this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy-MM') + '-01 00:00:00']
|
||||
|
||||
console.log(this.dateNext);
|
||||
console.log(this.timeNext);
|
||||
|
||||
}
|
||||
this.initData(true)
|
||||
}
|
||||
disabledDate = (current: Date): boolean =>
|
||||
// Can not select days before today and today
|
||||
differenceInCalendarDays(current, this.today) > 0;
|
||||
exportFun(){
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<g2-custom delay="200" (render)="render($event)"></g2-custom>
|
||||
@ -0,0 +1,72 @@
|
||||
import { Component, ElementRef, Input, NgZone, OnChanges, OnInit, SimpleChanges, ViewChild } from '@angular/core';
|
||||
import { Chart } from '@antv/g2';
|
||||
import { DataService } from 'src/app/routes/datatable/services/data.service';
|
||||
@Component({
|
||||
selector: 'app-busitable-curve',
|
||||
templateUrl: './curve.component.html',
|
||||
styleUrls: ['./curve.component.less']
|
||||
})
|
||||
export class BusitableCurveComponent implements OnInit, OnChanges {
|
||||
el: any;
|
||||
@Input() chartData: any;
|
||||
chart: any;
|
||||
constructor(private service: DataService, private ngZone: NgZone) {
|
||||
|
||||
}
|
||||
ngOnChanges(changes: SimpleChanges): void {
|
||||
if (this.chartData) {
|
||||
setTimeout(()=>{
|
||||
this.chart.render(true)
|
||||
}, 1000)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
|
||||
}
|
||||
reRender() {
|
||||
this.chart.data(this.chartData);
|
||||
this.chart.render();
|
||||
}
|
||||
render(el: ElementRef<HTMLDivElement>): void {
|
||||
this.el = el.nativeElement
|
||||
setTimeout(() => {
|
||||
this.ngZone.runOutsideAngular(() => this.init(this.el));
|
||||
}, 500)
|
||||
}
|
||||
|
||||
private init(el: HTMLElement): void {
|
||||
this.chart = new Chart({
|
||||
container: el,
|
||||
autoFit: true,
|
||||
height: 500,
|
||||
});
|
||||
|
||||
this.chart.data(this.chartData);
|
||||
this.chart.scale({
|
||||
year: {
|
||||
range: [0, 1],
|
||||
},
|
||||
number: {
|
||||
min: -9999,
|
||||
nice: true,
|
||||
},
|
||||
});
|
||||
const itemTpl = `
|
||||
<div style="padding: 15px; color: red">
|
||||
环比: {value}%
|
||||
</div>
|
||||
`
|
||||
this.chart.tooltip({
|
||||
showCrosshairs: true, // 展示 Tooltip 辅助线
|
||||
shared: true,
|
||||
itemTpl: itemTpl
|
||||
});
|
||||
this.chart.line().position('time*number').label('number');
|
||||
this.chart.point().position('time*number');
|
||||
|
||||
this.chart.render();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
<!-- 页头 -->
|
||||
<page-header-wrapper [title]="'业务报表'"></page-header-wrapper>
|
||||
<nz-card nzTitle="业务员报表" [nzExtra]="extraTemplate">
|
||||
<ng-template #extraTemplate>
|
||||
<div class="chooseBox">
|
||||
<div class="timeBox">
|
||||
<nz-radio-group [(ngModel)]="mode" nzButtonStyle="solid" (ngModelChange)="changeData()">
|
||||
<label nz-radio-button nzValue="year">年</label>
|
||||
<label nz-radio-button nzValue="month">月</label>
|
||||
<label nz-radio-button nzValue="date">日</label>
|
||||
<label nz-radio-button nzValue="define">自定义</label>
|
||||
</nz-radio-group>
|
||||
<div class="dateBox">
|
||||
<nz-date-picker [(ngModel)]="date" [nzMode]="mode" [nzFormat]="dateFormat" *ngIf="mode !== 'define'" [nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-date-picker>
|
||||
<nz-range-picker [(ngModel)]="defineDate" [nzFormat]="dateFormat" *ngIf="mode === 'define'" [nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-range-picker>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ng-template>
|
||||
<st #st multiSort [columns]="columns" [ps]="20" [data]="service.$api_listOperationalReportPage"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[scroll]="{ x: '1200px' }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [20, 50, 100] }" [loading]="service.http.loading"></st>
|
||||
</nz-card>
|
||||
<nz-card nzTitle="业绩报表" [nzExtra]="extraTemplate01">
|
||||
<ng-template #extraTemplate01>
|
||||
<div class="chooseBox">
|
||||
<div class="timeBox">
|
||||
<nz-radio-group [(ngModel)]="modeNext" nzButtonStyle="solid" (ngModelChange)="changeDataNext()">
|
||||
<label nz-radio-button nzValue="year">年</label>
|
||||
<label nz-radio-button nzValue="month">月</label>
|
||||
</nz-radio-group>
|
||||
<div class="dateBox">
|
||||
<nz-date-picker [(ngModel)]="dateNext" [nzDisabledDate]="disabledDate" [nzMode]="mode" (ngModelChange)="onChangeNext($event)"></nz-date-picker>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<app-busitable-pillar #pillar [chartData]="chartData.performance"></app-busitable-pillar>
|
||||
</nz-card>
|
||||
@ -0,0 +1,11 @@
|
||||
.chooseBox{
|
||||
display: flex;
|
||||
}
|
||||
.timeBox{
|
||||
display: flex;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
.dateBox{
|
||||
display: inline-block;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { DatatableMantableComponent } from './mantable.component';
|
||||
|
||||
describe('DatatableMantableComponent', () => {
|
||||
let component: DatatableMantableComponent;
|
||||
let fixture: ComponentFixture<DatatableMantableComponent>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ DatatableMantableComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(DatatableMantableComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,138 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { STColumn, STComponent } from '@delon/abc/st';
|
||||
import { DatePipe, _HttpClient } from '@delon/theme';
|
||||
import { differenceInCalendarDays } from 'date-fns';
|
||||
import { DataService } from '../../../services/data.service';
|
||||
import { BusitablePillarComponent } from '../pillar/pillar.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-datatable-mantable',
|
||||
templateUrl: './mantable.component.html',
|
||||
styleUrls: ['./mantable.component.less'],
|
||||
providers: [DatePipe]
|
||||
|
||||
})
|
||||
export class DatatableMantableComponent implements OnInit {
|
||||
@ViewChild('pillar') private readonly pillar!: BusitablePillarComponent;
|
||||
@ViewChild('st') private readonly st!: STComponent;
|
||||
type = 1;
|
||||
mode = 'year';
|
||||
date: any = null;
|
||||
defineDate = [];
|
||||
time: any = ['2022-01-01 00:00:00']
|
||||
dateFormat = 'yyyy';
|
||||
today = new Date();
|
||||
dateNext: any = null;
|
||||
modeNext = 'year';
|
||||
chartData: any = {}
|
||||
timeNext: any = ['2022-01-01 00:00:00']
|
||||
flag = false;
|
||||
|
||||
columns: STColumn[] = [
|
||||
{ title: '部门', index: 'bm', className: 'text-center' },
|
||||
{ title: '业务员', index: 'ywy', className: 'text-center' },
|
||||
{ title: '合伙人数', index: 'hhrs', className: 'text-center' },
|
||||
{ title: '客户数', index: 'khs', className: 'text-center' },
|
||||
{ title: '客户活跃率', index: 'khhyl', className: 'text-center' },
|
||||
{ title: '客户预存款', index: 'kfyck', className: 'text-center', type: 'widget', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.kfyck }) } },
|
||||
{ title: '订单数', index: 'dds', className: 'text-center' },
|
||||
{ title: '订单金额', index: 'ddje', className: 'text-center', type: 'widget', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.ddje }) } },
|
||||
{ title: '业绩量', index: 'yjl', className: 'text-center' },
|
||||
{ title: '附加费金额', index: 'fjfje', className: 'text-center', type: 'widget', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.fjfje }) } },
|
||||
{ title: '平均附加费率', index: 'pjfjl', className: 'text-center' },
|
||||
{ title: '已开票金额', index: 'ykpje', className: 'text-center', type: 'widget', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.ykpje }) } },
|
||||
];
|
||||
/**
|
||||
* 查询参数
|
||||
*/
|
||||
get reqParams() {
|
||||
if(this.mode === 'year') {
|
||||
this.type = 1
|
||||
} else if(this.mode === 'month') {
|
||||
this.type = 2
|
||||
} else if(this.mode === 'date') {
|
||||
this.type = 3
|
||||
} else {
|
||||
this.type = 4
|
||||
}
|
||||
let params: any = {
|
||||
time: this.time,
|
||||
type: this.type
|
||||
};
|
||||
|
||||
delete params._$expand;
|
||||
return { ...params };
|
||||
}
|
||||
|
||||
constructor(public service: DataService, private datePipe: DatePipe) { }
|
||||
ngOnInit(): void { }
|
||||
|
||||
initData(){
|
||||
let type = 1
|
||||
if(this.mode === 'year') {
|
||||
type = 1
|
||||
} else if(this.mode === 'month') {
|
||||
type = 2
|
||||
}
|
||||
const params: any = {
|
||||
time: this.timeNext,
|
||||
type
|
||||
};
|
||||
this.service.request(this.service.$api_performanceReportHistogram, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.chartData = res
|
||||
if(this.flag) {
|
||||
this.pillar.reRender()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
changeData(){
|
||||
if(this.mode === 'year') {
|
||||
this.dateFormat = 'yyyy'
|
||||
} else if(this.mode === 'month') {
|
||||
this.dateFormat = 'yyyy-MM'
|
||||
} else {
|
||||
this.dateFormat = 'yyyy-MM-dd'
|
||||
}
|
||||
}
|
||||
onChange(result: any) {
|
||||
if(this.mode === 'year') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy') + '-01-01 00:00:00']
|
||||
} else if(this.mode === 'month') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy-MM') + '-01 00:00:00']
|
||||
} else if(this.mode === 'date') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd') + ' 00:00:00']
|
||||
} else{
|
||||
this.time = [this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd') + '00:00:00', this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd') + ' 00:00:00']
|
||||
}
|
||||
this.st.reload({ ...this.reqParams });
|
||||
}
|
||||
|
||||
changeDataNext() {
|
||||
if(this.mode === 'year') {
|
||||
this.dateFormat = 'yyyy'
|
||||
} else if(this.mode === 'month') {
|
||||
this.dateFormat = 'yyyy-MM'
|
||||
}
|
||||
}
|
||||
onChangeNext(result: any) {
|
||||
if(result === null) {
|
||||
return
|
||||
}
|
||||
if(this.mode === 'year') {
|
||||
this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy') + '-01-01 00:00:00']
|
||||
} else if(this.mode === 'month') {
|
||||
this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy-MM') + '-01 00:00:00']
|
||||
}
|
||||
this.flag = true
|
||||
this.initData()
|
||||
}
|
||||
disabledDate = (current: Date): boolean =>
|
||||
// Can not select days before today and today
|
||||
differenceInCalendarDays(current, this.today) > 0;
|
||||
exportFun(){
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<g2-custom delay="200" (render)="render($event)"></g2-custom>
|
||||
@ -0,0 +1,72 @@
|
||||
/*
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-04-06 14:32:03
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-18 14:25:25
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\busitable\\pillar\\pillar.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
import { Component, ElementRef, Input, NgZone, OnChanges, OnInit, SimpleChanges, ViewChild } from '@angular/core';
|
||||
import { Chart } from '@antv/g2';
|
||||
import { DataService } from 'src/app/routes/datatable/services/data.service';
|
||||
@Component({
|
||||
selector: 'app-busitable-pillar',
|
||||
templateUrl: './pillar.component.html',
|
||||
styleUrls: ['./pillar.component.less']
|
||||
})
|
||||
export class BusitablePillarComponent implements OnInit, OnChanges {
|
||||
el: any;
|
||||
@Input() chartData: any;
|
||||
chart: any;
|
||||
constructor(private service: DataService, private ngZone: NgZone) {
|
||||
|
||||
}
|
||||
ngOnChanges(changes: SimpleChanges): void {
|
||||
if (this.chartData) {
|
||||
// setTimeout(()=>{
|
||||
// this.chart.render(true)
|
||||
// }, 1000)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
|
||||
}
|
||||
reRender() {
|
||||
this.chart.data(this.chartData);
|
||||
this.chart.render();
|
||||
}
|
||||
render(el: ElementRef<HTMLDivElement>): void {
|
||||
this.el = el.nativeElement
|
||||
setTimeout(() => {
|
||||
this.ngZone.runOutsideAngular(() => this.init(this.el));
|
||||
}, 500)
|
||||
}
|
||||
|
||||
private init(el: HTMLElement): void {
|
||||
this.chart = new Chart({
|
||||
container: el,
|
||||
autoFit: true,
|
||||
height: 500,
|
||||
});
|
||||
|
||||
this.chart.data(this.chartData);
|
||||
|
||||
const itemTpl = `
|
||||
<div style="padding: 15px; color: red">
|
||||
业绩量: {value}
|
||||
</div>
|
||||
`
|
||||
this.chart.tooltip({
|
||||
showTitle: true,
|
||||
showMarkers: false,
|
||||
itemTpl: itemTpl
|
||||
});
|
||||
this.chart.interval().position('time*number');
|
||||
this.chart.render();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
<!--
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-03-30 13:55:41
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-18 16:13:49
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\compliance\\customer\\customer.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
<!-- 页头 -->
|
||||
<page-header-wrapper [title]="'数据报表'"></page-header-wrapper>
|
||||
<nz-card>
|
||||
<div nz-row nzGutter="8">
|
||||
<div nz-col [nzXl]="24" [nzLg]="24" [nzSm]="24" [nzXs]="24">
|
||||
<sf #sf [schema]="searchSchema" button="none"
|
||||
[ui]="{ '*': { spanLabelFixed: 0, grid: { xxl:5,xl:4, lg: 8, md: 12, sm: 12, xs: 24,gutter:20 } } }"
|
||||
[compact]="true">
|
||||
<ng-template sf-template="no4" let-me let-ui="ui" let-schema="schema">
|
||||
<div class="chooseBox">
|
||||
<div class="timeBox">
|
||||
<nz-radio-group [(ngModel)]="mode" nzButtonStyle="solid" (ngModelChange)="changeData()" acl [acl-ability]="['customer-search']">
|
||||
<label nz-radio-button nzValue="year">年</label>
|
||||
<label nz-radio-button nzValue="month">月</label>
|
||||
<label nz-radio-button nzValue="date">日</label>
|
||||
<label nz-radio-button nzValue="define">自定义</label>
|
||||
</nz-radio-group>
|
||||
<div class="dateBox">
|
||||
<nz-date-picker [(ngModel)]="date" [nzMode]="mode" [nzFormat]="dateFormat" *ngIf="mode !== 'define'"
|
||||
[nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-date-picker>
|
||||
<nz-range-picker [(ngModel)]="defineDate" [nzFormat]="dateFormat" *ngIf="mode === 'define'"
|
||||
[nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-range-picker>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
</sf>
|
||||
</div>
|
||||
</div>
|
||||
<st #st multiSort [scroll]="{ x: '2000px' }" [data]="service.$api_listCusComplianceReportPage" [columns]="columns"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[scroll]="{ x: '1200px' }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" [loading]="false">
|
||||
<ng-template st-row="freightPrice" let-item let-index="index">
|
||||
{{ item.freightPrice | currency }}
|
||||
</ng-template>
|
||||
</st>
|
||||
</nz-card>
|
||||
@ -0,0 +1,20 @@
|
||||
.chooseBox {
|
||||
display: flex;
|
||||
float : right;
|
||||
}
|
||||
|
||||
.timeBox {
|
||||
display: flex;
|
||||
margin : 0 0 0 10px;
|
||||
}
|
||||
|
||||
.dateBox {
|
||||
display: inline-block;
|
||||
margin : 0 0 0 10px;
|
||||
}
|
||||
|
||||
:host::ng-deep {
|
||||
.ant-form-item-control {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,153 @@
|
||||
import { SFComponent } from '@delon/form';
|
||||
/*
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-03-30 13:55:41
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-19 17:45:44
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\compliance\\customer\\customer.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { STColumn, STComponent, STRequestOptions } from '@delon/abc/st';
|
||||
import { SFSchema } from '@delon/form';
|
||||
import { ModalHelper, _HttpClient, DatePipe } from '@delon/theme';
|
||||
import { DataService } from '../../../services/data.service';
|
||||
import { differenceInCalendarDays } from 'date-fns';
|
||||
import { Placeholder } from '@angular/compiler/src/i18n/i18n_ast';
|
||||
|
||||
@Component({
|
||||
selector: 'app-datatable-compliance-customer',
|
||||
templateUrl: './customer.component.html',
|
||||
styleUrls: ['./customer.component.less'],
|
||||
providers: [DatePipe]
|
||||
})
|
||||
export class DatatableComplianceCustomerComponent implements OnInit {
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
mode = 'year';
|
||||
type = 1;
|
||||
date: any = null;
|
||||
defineDate = [];
|
||||
time: any = ['2022'];
|
||||
dateFormat = 'yyyy';
|
||||
dateNext: any = null;
|
||||
modeNext = 'year';
|
||||
timeNext: any = ['2022-01-01 00:00:00'];
|
||||
today = new Date();
|
||||
searchSchema: SFSchema = {
|
||||
properties: {
|
||||
customerName: {
|
||||
type: 'string',
|
||||
title: '',
|
||||
ui: {
|
||||
placeholder: '请输入客户名称',
|
||||
change: (value: any) => {
|
||||
console.log(value);
|
||||
this.st.reload({ ...this.reqParams });
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
salesmanName: {
|
||||
type: 'string',
|
||||
title: '',
|
||||
ui: {
|
||||
placeholder: '请输入业务员',
|
||||
change: (value: any) => {
|
||||
this.st.reload({ ...this.reqParams });
|
||||
}
|
||||
}
|
||||
},
|
||||
partnerName: {
|
||||
type: 'string',
|
||||
title: '',
|
||||
ui: {
|
||||
placeholder: '请输入客户名称',
|
||||
change: (value: any) => {
|
||||
console.log(value);
|
||||
this.st.reload({ ...this.reqParams });
|
||||
}
|
||||
}
|
||||
},
|
||||
no4: {
|
||||
type: 'string',
|
||||
title: '',
|
||||
ui: {
|
||||
class: 'custom',
|
||||
widget: 'custom',
|
||||
grid: { xxl: 9, xl: 12, lg: 24, md: 24, sm: 24, xs: 24 }
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
@ViewChild('st') private readonly st!: STComponent;
|
||||
columns: STColumn[] = [
|
||||
{ title: '公司名称',width: '200px', index: 'enterpriseName' ,},
|
||||
{ title: '注册时间', width: '200px', index: 'registerTime',},
|
||||
{ title: '客户类型', width: '200px', index: 'customerType' },
|
||||
{ title: '业务员',width: '200px', index: 'salesmanName' },
|
||||
{ title: '合伙人',width: '200px', index: 'partnerName' },
|
||||
{ title: '订单数',width: '200px', index: 'billCounts' },
|
||||
{ title: '订单不合格数',width: '200px', index: 'billQuaCounts' },
|
||||
{ title: '订单不合格率',width: '200px', index: 'billQuaCountsPer' },
|
||||
{ title: '货源单订单数',width: '200px', index: 'gsourceCounts' },
|
||||
{ title: '合同单数', width: '200px',index: 'billConCounts' },
|
||||
{ title: '货源单个',width: '200px', index: 'gsourceCounts' },
|
||||
{ title: '运费直付单数',width: '200px', index: 'freightDirPayCounts' },
|
||||
{ title: '运费代收单数',width: '200px', index: 'freightRepPayCounts' },
|
||||
{ title: '手机直付', width: '200px',index: 'updatedAt' },
|
||||
{ title: '汇款单数',width: '200px', index: 'updatedAt' },
|
||||
{ title: '及时付款',width: '200px', index: 'timelyPayPer' },
|
||||
|
||||
];
|
||||
|
||||
constructor(private http: _HttpClient, private modal: ModalHelper, public service: DataService, private datePipe: DatePipe) {}
|
||||
/**
|
||||
* 查询参数
|
||||
*/
|
||||
get reqParams() {
|
||||
if (this.mode === 'year') {
|
||||
this.type = 1;
|
||||
} else if (this.mode === 'month') {
|
||||
this.type = 2;
|
||||
} else if (this.mode === 'date') {
|
||||
this.type = 3;
|
||||
} else {
|
||||
this.type = 4;
|
||||
}
|
||||
const params: any = Object.assign({}, this.sf?.value || {});
|
||||
params.type = this.type;
|
||||
params.queryTime = this.time;
|
||||
delete params._$expand;
|
||||
return { ...params };
|
||||
}
|
||||
ngOnInit(): void {}
|
||||
onChange(result: any) {
|
||||
if (this.mode === 'year') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy')];
|
||||
} else if (this.mode === 'month') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy-MM')];
|
||||
} else if (this.mode === 'date') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd')];
|
||||
} else {
|
||||
this.time = [
|
||||
this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd'),
|
||||
this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd')
|
||||
];
|
||||
}
|
||||
this.st.reload({ ...this.reqParams });
|
||||
}
|
||||
changeData() {
|
||||
if (this.mode === 'year') {
|
||||
this.dateFormat = 'yyyy';
|
||||
} else if (this.mode === 'month') {
|
||||
this.dateFormat = 'yyyy-MM';
|
||||
} else {
|
||||
this.dateFormat = 'yyyy-MM-dd';
|
||||
}
|
||||
}
|
||||
disabledDate = (current: Date): boolean =>
|
||||
// Can not select days before today and today
|
||||
differenceInCalendarDays(current, this.today) > 0;
|
||||
}
|
||||
@ -0,0 +1,2 @@
|
||||
<g2-custom delay="100" (render)="render($event)"></g2-custom>
|
||||
|
||||
@ -0,0 +1,101 @@
|
||||
/*
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-04-28 20:27:07
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-05-07 10:16:08
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\compliance\\index\\curve\\curve.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
import { Component, ElementRef, Input, NgZone, OnChanges, OnInit, SimpleChanges, ViewChild } from '@angular/core';
|
||||
import { G2MiniAreaClickItem } from '@delon/chart/mini-area';
|
||||
|
||||
// import DataSet from '@antv/data-set';
|
||||
const DataSet = require('@antv/data-set');
|
||||
import { Chart } from '@antv/g2';
|
||||
import { DataService } from 'src/app/routes/datatable/services/data.service';
|
||||
@Component({
|
||||
selector: 'app-compliance-curve',
|
||||
templateUrl: './curve.component.html',
|
||||
styleUrls: ['./curve.component.less']
|
||||
})
|
||||
export class ComplianceCurveComponent implements OnInit,OnChanges {
|
||||
el: any;
|
||||
@Input() chartData: any;
|
||||
chart: any;
|
||||
constructor(private service: DataService, private ngZone: NgZone) {
|
||||
|
||||
}
|
||||
ngOnChanges(changes: SimpleChanges): void {
|
||||
if (this.chartData) {
|
||||
// setTimeout(()=>{
|
||||
// this.chart.render(true)
|
||||
// }, 1000)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
|
||||
}
|
||||
reRender() {
|
||||
setTimeout(() => {
|
||||
this.chart.data(this.chartData);
|
||||
this.chart.render();
|
||||
}, 1000)
|
||||
}
|
||||
render(el: ElementRef<HTMLDivElement>): void {
|
||||
this.el = el.nativeElement
|
||||
setTimeout(() => {
|
||||
console.log(this.chartData)
|
||||
this.ngZone.runOutsideAngular(() => this.init(this.el));
|
||||
}, 1000)
|
||||
}
|
||||
|
||||
private init(el: HTMLElement): void {
|
||||
this.chart = new Chart({
|
||||
container: el,
|
||||
autoFit: true,
|
||||
height: 500,
|
||||
});
|
||||
|
||||
this.chart.data(this.chartData);
|
||||
this.chart.scale({
|
||||
time: {
|
||||
range: [0, 1],
|
||||
},
|
||||
number: {
|
||||
min: 0,
|
||||
nice: true,
|
||||
},
|
||||
});
|
||||
|
||||
this.chart.tooltip({
|
||||
showCrosshairs: true,
|
||||
shared: true,
|
||||
});
|
||||
|
||||
this.chart.axis('proportion', {
|
||||
label: {
|
||||
formatter: (val: any) => {
|
||||
return (val*100).toFixed(0)+ ' %';
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
this.chart
|
||||
.line()
|
||||
.position('situationDate*proportion')
|
||||
.color('type')
|
||||
.tooltip('proportion*type', function(name: any, value: any) {
|
||||
return {
|
||||
name: name*100+'%',
|
||||
value: value
|
||||
};
|
||||
});
|
||||
|
||||
this.chart.render();
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
<!-- 页头 -->
|
||||
<page-header-wrapper [title]="'合规监控报表'"></page-header-wrapper>
|
||||
<nz-card>
|
||||
<!-- 搜索区 -->
|
||||
<div nz-row>
|
||||
<div nz-col nzSpan="18">
|
||||
<sf #sf [ui]="ui" [schema]="schema" [button]="'none'"></sf>
|
||||
</div>
|
||||
<div nz-col nzSpan="6">
|
||||
<div class="chooseBox">
|
||||
<div class="timeBox">
|
||||
<nz-radio-group [(ngModel)]="mode" nzButtonStyle="solid" (ngModelChange)="changeData()" acl [acl-ability]="['index-lRateQualified']">
|
||||
<label nz-radio-button nzValue="year">年</label>
|
||||
<label nz-radio-button nzValue="month">月</label>
|
||||
</nz-radio-group>
|
||||
<div class="dateBox">
|
||||
<nz-date-picker [(ngModel)]="date" [nzMode]="mode" [nzFormat]="dateFormat" (ngModelChange)="onChange($event)"></nz-date-picker>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nz-card>
|
||||
|
||||
<div nz-row [nzGutter]="16">
|
||||
<div nz-col class="gutter-row" [nzSpan]="6">
|
||||
<g2-card [title]="'订单合格率'" [bordered]="true" [total]="cardData1?.proportion || '0'" [footer]="footer1" contentHeight="46">
|
||||
<ng-template #footer1>
|
||||
<div class="card-f">
|
||||
<span class="card-f-l">合格:{{cardData1?.leftQuantity}}</span> <span>不合格:{{cardData1?.rightQuantity}}</span>
|
||||
</div>
|
||||
</ng-template>
|
||||
</g2-card>
|
||||
</div>
|
||||
<div nz-col class="gutter-row" [nzSpan]="6">
|
||||
<g2-card [title]="'货源单占比'" [bordered]="true" [total]="cardData2?.proportion|| '0'" [footer]="footer2" contentHeight="46">
|
||||
<ng-template #footer2>
|
||||
<div class="card-f">
|
||||
<span class="card-f-l">货源单:{{cardData2?.leftQuantity}}</span> <span>合同单:{{cardData2?.rightQuantity}}</span>
|
||||
</div>
|
||||
</ng-template>
|
||||
</g2-card>
|
||||
</div>
|
||||
<div nz-col class="gutter-row" [nzSpan]="6">
|
||||
<g2-card [title]="'运费直付占比'" [bordered]="true" [total]="cardData3?.proportion|| '0'" [footer]="footer3" contentHeight="46">
|
||||
<ng-template #footer3>
|
||||
<div class="card-f">
|
||||
<span class="card-f-l">司机:{{cardData3?.leftQuantity}}</span> <span>车队长:{{cardData3?.rightQuantity}}</span>
|
||||
</div>
|
||||
</ng-template>
|
||||
</g2-card>
|
||||
</div>
|
||||
<div nz-col class="gutter-row" [nzSpan]="6">
|
||||
<g2-card [title]="'付款及时率'" [bordered]="true" [total]="cardData4?.proportion|| '0'" [footer]="footer4" contentHeight="46">
|
||||
<ng-template #footer4>
|
||||
<div class="card-f">
|
||||
<span class="card-f-l">准时:{{cardData4?.leftQuantity}}</span> <span>逾期:{{cardData4?.rightQuantity}}</span>
|
||||
</div>
|
||||
</ng-template>
|
||||
</g2-card>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nz-card nzTitle="平台合规情况监控报表">
|
||||
<app-compliance-curve #curve [chartData]="chartData"></app-compliance-curve>
|
||||
<!-- <g2-custom delay="100" (render)="render($event)"></g2-custom> -->
|
||||
</nz-card>
|
||||
@ -0,0 +1,17 @@
|
||||
.card-f{
|
||||
color: #5a5a5a;
|
||||
.card-f-l{
|
||||
margin-right: 24px;
|
||||
}
|
||||
}
|
||||
.chooseBox{
|
||||
display: flex;
|
||||
}
|
||||
.timeBox{
|
||||
display: flex;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
.dateBox{
|
||||
display: inline-block;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
@ -0,0 +1,266 @@
|
||||
import { Component, ElementRef, NgZone, OnInit, ViewChild } from '@angular/core';
|
||||
import { DatePipe, ModalHelper, _HttpClient } from '@delon/theme';
|
||||
import { G2MiniAreaClickItem, G2MiniAreaData } from '@delon/chart/mini-area';
|
||||
import { format } from 'date-fns';
|
||||
import { SFComponent, SFDateWidgetSchema, SFRadioWidgetSchema, SFSchema, SFUISchema } from '@delon/form';
|
||||
import { G2TimelineData, G2TimelineMap } from '@delon/chart/timeline';
|
||||
import { Chart } from '@antv/g2';
|
||||
import { DataService } from '../../../services/data.service';
|
||||
import { ComplianceCurveComponent } from './curve/curve.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-datatable-compliance-index',
|
||||
templateUrl: './index.component.html',
|
||||
styleUrls: ['./index.component.less'],
|
||||
providers: [DatePipe]
|
||||
})
|
||||
export class DatatableComplianceIndexComponent implements OnInit {
|
||||
@ViewChild('curve') private readonly curve!: ComplianceCurveComponent;
|
||||
@ViewChild('sf', { static: false })
|
||||
|
||||
sf!: SFComponent;
|
||||
ui!: SFUISchema;
|
||||
schema: SFSchema = {};
|
||||
|
||||
mode = 'year';
|
||||
date: any = null;
|
||||
dateFormat = 'yyyy';
|
||||
time: any = '2022'
|
||||
chartData: any = {}
|
||||
|
||||
cardData1:any;
|
||||
cardData2:any;
|
||||
cardData3:any;
|
||||
cardData4:any;
|
||||
|
||||
constructor(private http: _HttpClient, private modal: ModalHelper, private ngZone: NgZone,public service: DataService, private datePipe: DatePipe) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.initSF();
|
||||
this.initdData();
|
||||
}
|
||||
|
||||
initdData(){
|
||||
const params ={
|
||||
...this.sf?.value,
|
||||
timeType:this.mode ==='month'?'M':'Y',
|
||||
time:this.time
|
||||
}
|
||||
this.service.request(this.service.$api_getBillRateQualified, params).subscribe(res => {
|
||||
|
||||
if (res) {
|
||||
this.cardData1 = res;
|
||||
console.log(this.cardData1);
|
||||
|
||||
this.cardData1.proportion = (this.cardData1?.proportion*100).toFixed(2) +'%'
|
||||
}
|
||||
});
|
||||
this.service.request(this.service.$api_getBillRateProportion, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.cardData2 = res;
|
||||
this.cardData2.proportion = (this.cardData2?.proportion*100).toFixed(2) +'%'
|
||||
}
|
||||
});
|
||||
this.service.request(this.service.$api_getBillRateDirectPayment, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.cardData3 = res;
|
||||
this.cardData3.proportion = (this.cardData3?.proportion*100).toFixed(2) +'%'
|
||||
}
|
||||
});
|
||||
this.service.request(this.service.$api_getBillTimelyPayment, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.cardData4 = res;
|
||||
this.cardData4.proportion = (this.cardData4?.proportion*100).toFixed(2) +'%'
|
||||
}
|
||||
});
|
||||
|
||||
this.service.request(this.service.$api_listMonitorSituation, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.chartData = res
|
||||
this.curve.reRender();
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
changeData(){
|
||||
if(this.mode === 'year') {
|
||||
this.dateFormat = 'yyyy'
|
||||
} else if(this.mode === 'month') {
|
||||
this.dateFormat = 'yyyy-MM'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
onChange(result: any) {
|
||||
if(result === null) {
|
||||
return
|
||||
}
|
||||
if(this.mode === 'year') {
|
||||
this.time = this.datePipe.transform(this.date, 'yyyy')
|
||||
} else if(this.mode === 'month') {
|
||||
this.time = this.datePipe.transform(this.date, 'yyyy-MM')
|
||||
}
|
||||
this.initdData();
|
||||
}
|
||||
|
||||
initSF() {
|
||||
this.schema = {
|
||||
properties: {
|
||||
enterpriseInfoId: {
|
||||
type: 'string',
|
||||
title: '',
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '网络货运人',
|
||||
asyncData: () => this.service.getNetworkFreightForwarder({}),
|
||||
change:()=>{
|
||||
this.initdData();
|
||||
},
|
||||
allowClear: true
|
||||
}
|
||||
},
|
||||
enterpriseProjectId: {
|
||||
type: 'string',
|
||||
title: '',
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '部门'
|
||||
}
|
||||
},
|
||||
salesmanId: {
|
||||
type: 'string',
|
||||
title: '',
|
||||
ui: {
|
||||
placeholder: '业务员',
|
||||
enter: () => this.initdData(),
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
this.ui = {
|
||||
'*': {
|
||||
grid: { span: 4 }
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
render(el: ElementRef<HTMLDivElement>) {
|
||||
this.ngZone.runOutsideAngular(() => this.init(el.nativeElement));
|
||||
}
|
||||
|
||||
private init(el: HTMLElement): void {
|
||||
const chart = new Chart({
|
||||
container: el,
|
||||
autoFit: true,
|
||||
height: 400
|
||||
});
|
||||
// 以三组数据为例, 需要展示 91/92/93年中a/b/c数据走势
|
||||
const data = [
|
||||
{ data: '1月', label: '订单合格率', value: 5 },
|
||||
{ data: '2月', label: '订单合格率', value: 10 },
|
||||
{ data: '3月', label: '订单合格率', value: 25 },
|
||||
{ data: '4月', label: '订单合格率', value: 35 },
|
||||
{ data: '5月', label: '订单合格率', value: 15 },
|
||||
{ data: '6月', label: '订单合格率', value: 5 },
|
||||
{ data: '7月', label: '订单合格率', value: 95 },
|
||||
{ data: '8月', label: '订单合格率', value: 45 },
|
||||
|
||||
{ data: '1月', label: '付款及时率', value: 10 },
|
||||
{ data: '2月', label: '付款及时率', value: 15 },
|
||||
{ data: '3月', label: '付款及时率', value: 30 },
|
||||
{ data: '4月', label: '付款及时率', value: 8 },
|
||||
{ data: '5月', label: '付款及时率', value: 9 },
|
||||
{ data: '6月', label: '付款及时率', value: 5 },
|
||||
{ data: '7月', label: '付款及时率', value: 80 },
|
||||
{ data: '8月', label: '付款及时率', value: 55 },
|
||||
|
||||
{ data: '1月', label: '货源占比率', value: 90 },
|
||||
{ data: '2月', label: '货源占比率', value: 30 },
|
||||
{ data: '3月', label: '货源占比率', value: 45 },
|
||||
{ data: '4月', label: '货源占比率', value: 35 },
|
||||
{ data: '5月', label: '货源占比率', value: 95 },
|
||||
{ data: '6月', label: '货源占比率', value: 35 },
|
||||
{ data: '7月', label: '货源占比率', value: 65 },
|
||||
{ data: '8月', label: '货源占比率', value: 63 },
|
||||
|
||||
{ data: '1月', label: '运费直付占比', value: 30 },
|
||||
{ data: '2月', label: '运费直付占比', value: 60 },
|
||||
{ data: '3月', label: '运费直付占比', value: 25 },
|
||||
{ data: '4月', label: '运费直付占比', value: 35 },
|
||||
{ data: '5月', label: '运费直付占比', value: 15 },
|
||||
{ data: '6月', label: '运费直付占比', value: 55 },
|
||||
{ data: '7月', label: '运费直付占比', value: 50 },
|
||||
{ data: '8月', label: '运费直付占比', value: 30 },
|
||||
];
|
||||
|
||||
chart.data(data);
|
||||
//刻度自定义
|
||||
chart.scale({
|
||||
data: {
|
||||
range: [0, 1],
|
||||
},
|
||||
value: {
|
||||
min: 0,
|
||||
nice: true,
|
||||
},
|
||||
});
|
||||
// 图表下方图形文字自定义
|
||||
chart.legend({
|
||||
items:[
|
||||
{
|
||||
name: '订单合格率',
|
||||
value: 'node_load1',
|
||||
marker: {
|
||||
symbol: 'circle',
|
||||
style: {fill: '#6193f7'}
|
||||
},
|
||||
},
|
||||
{
|
||||
name: '付款及时率',
|
||||
value: 'node_load2',
|
||||
marker: {symbol: 'circle',style: {fill: '#58d3a2'}},
|
||||
},
|
||||
{
|
||||
name: '货源占比率',
|
||||
value: 'node_load13',
|
||||
marker: {symbol: 'circle',style: {fill: '#5b6d8f'}},
|
||||
},
|
||||
{
|
||||
name: '运费直付占比',
|
||||
value: 'node_load13',
|
||||
marker: {symbol: 'circle',style: {fill: '#f0b915'}},
|
||||
},
|
||||
]
|
||||
});
|
||||
// 提示自定义
|
||||
chart.tooltip({
|
||||
showCrosshairs: true,
|
||||
shared: true,
|
||||
});
|
||||
|
||||
//数据格式化
|
||||
chart.axis('value', {
|
||||
label: {
|
||||
formatter: (val) => {
|
||||
return val + ' %';
|
||||
},
|
||||
},
|
||||
});
|
||||
// 在x*y的坐标点上按z值绘制线条, 如果z值相同将使用直线连接
|
||||
chart.line().position('data*value').color('label').tooltip('label*value', (name:any, value:any) => {
|
||||
return {
|
||||
name: name,
|
||||
value: value + '%'
|
||||
};
|
||||
});;
|
||||
// 在x*y的坐标上按z值绘制圆点
|
||||
chart.point().position('data*value').size(4).color('label').shape('circle');
|
||||
chart.render();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
<!--
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-03-30 17:57:46
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-18 17:21:43
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\compliance\\salesman\\salesman.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
<!-- 页头 -->
|
||||
<page-header-wrapper [title]="'业务员-合规报告'"></page-header-wrapper>
|
||||
<nz-card >
|
||||
|
||||
<div nz-row nzGutter="8">
|
||||
<div nz-col [nzXl]="24" [nzLg]="24" [nzSm]="24" [nzXs]="24">
|
||||
<sf #sf [schema]="searchSchema" button="none"
|
||||
[ui]="{ '*': { spanLabelFixed: 0, grid: { xxl:5,xl:4, lg: 8, md: 12, sm: 12, xs: 24,gutter:20 } } }"
|
||||
[compact]="true">
|
||||
<ng-template sf-template="no4" let-me let-ui="ui" let-schema="schema">
|
||||
<div class="chooseBox">
|
||||
<div class="timeBox">
|
||||
<nz-radio-group [(ngModel)]="mode" nzButtonStyle="solid" (ngModelChange)="changeData()" acl [acl-ability]="['salesman-ComplianceReportPage']">
|
||||
<label nz-radio-button nzValue="year">年</label>
|
||||
<label nz-radio-button nzValue="month">月</label>
|
||||
<label nz-radio-button nzValue="date">日</label>
|
||||
<label nz-radio-button nzValue="define">自定义</label>
|
||||
</nz-radio-group>
|
||||
<div class="dateBox">
|
||||
<nz-date-picker [(ngModel)]="date" [nzMode]="mode" [nzFormat]="dateFormat" *ngIf="mode !== 'define'"
|
||||
[nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-date-picker>
|
||||
<nz-range-picker [(ngModel)]="defineDate" [nzFormat]="dateFormat" *ngIf="mode === 'define'"
|
||||
[nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-range-picker>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
</sf>
|
||||
</div>
|
||||
</div>
|
||||
<st #st multiSort [columns]="columns" [ps]="20" [data]="service.$api_listPartComplianceReportPage"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[scroll]="{ x: '1200px' }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [20, 50, 100] }">
|
||||
</st>
|
||||
</nz-card>
|
||||
@ -0,0 +1,20 @@
|
||||
.chooseBox {
|
||||
display: flex;
|
||||
float : right;
|
||||
}
|
||||
|
||||
.timeBox {
|
||||
display: flex;
|
||||
margin : 0 0 0 10px;
|
||||
}
|
||||
|
||||
.dateBox {
|
||||
display: inline-block;
|
||||
margin : 0 0 0 10px;
|
||||
}
|
||||
|
||||
:host::ng-deep {
|
||||
.ant-form-item-control {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,220 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { STColumn, STComponent } from '@delon/abc/st';
|
||||
import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form';
|
||||
import { DatePipe, _HttpClient } from '@delon/theme';
|
||||
import { differenceInCalendarDays } from 'date-fns';
|
||||
import { DataService } from '../../../services/data.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-datatable-compliance-salesman',
|
||||
templateUrl: './salesman.component.html',
|
||||
styleUrls: ['./salesman.component.less'],
|
||||
providers: [DatePipe]
|
||||
|
||||
})
|
||||
export class DatatableComplianceSalesmanComponent implements OnInit {
|
||||
url = `/user`;
|
||||
@ViewChild('st', { static: false }) st!: STComponent;
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
_$expand = false;
|
||||
type = 1;
|
||||
mode = 'year';
|
||||
date: any = null;
|
||||
defineDate = [];
|
||||
time: any = ['2022-01-01 00:00:00']
|
||||
dateFormat = 'yyyy';
|
||||
today = new Date();
|
||||
ui: SFUISchema = {};
|
||||
schema: SFSchema = {};
|
||||
isLoading: boolean = false;
|
||||
searchSchema: SFSchema = {
|
||||
properties: {
|
||||
department: {
|
||||
type: 'string',
|
||||
title: '',
|
||||
ui: {
|
||||
placeholder: '请选择部门',
|
||||
change: (value: any) => {
|
||||
console.log(value);
|
||||
this.st.reload({ ...this.reqParams });
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
customerName: {
|
||||
type: 'string',
|
||||
title: '',
|
||||
ui: {
|
||||
placeholder: '请输入业务员',
|
||||
change: (value: any) => {
|
||||
console.log(value);
|
||||
this.st.reload({ ...this.reqParams });
|
||||
}
|
||||
},
|
||||
},
|
||||
salesmanName: {
|
||||
type: 'string',
|
||||
title: '',
|
||||
ui: {
|
||||
placeholder: '请输入客户名称',
|
||||
change: (value: any) => {
|
||||
this.st.reload({ ...this.reqParams });
|
||||
}
|
||||
}
|
||||
},
|
||||
no4: {
|
||||
type: 'string',
|
||||
title: '',
|
||||
ui: {
|
||||
class: 'custom',
|
||||
widget: 'custom',
|
||||
grid: { xxl: 9, xl: 10, lg: 12, md: 24, sm: 24, xs: 24 }
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
};
|
||||
columns: STColumn[] = [
|
||||
{ title: '部门', index: 'department', className: 'text-center', width: '200px' },
|
||||
{ title: '业务员', index: 'salesmen', className: 'text-center', width: '100px' },
|
||||
{ title: '客户数', index: 'cusCount', className: 'text-right', width: '100px', },
|
||||
{ title: '订单数', index: 'billCount', className: 'text-center', width: '120px' },
|
||||
{ title: '订单合格率', index: 'billComPer', className: 'text-right', width: '100px',format: (item: any) => {return ((item?.billComPer)*100).toFixed(2) + '%' }},
|
||||
{ title: '付款及时率', index: 'payTimePer', className: 'text-center', width: '130px',format: (item: any) => {return ((item?.payTimePer)*100).toFixed(2) + '%' } },
|
||||
{ title: '货源单占比', index: 'goodResPer', className: 'text-right', width: '120px',format: (item: any) => {return ((item?.goodResPer)*100).toFixed(2) + '%' } },
|
||||
{ title: '运费直付占比', index: 'feightPayPer', className: 'text-right', width: '100px', format: (item: any) => {return ((item?.feightPayPer)*100).toFixed(2) + '%' } },
|
||||
];
|
||||
/**
|
||||
* 查询参数
|
||||
*/
|
||||
get reqParams() {
|
||||
if(this.mode === 'year') {
|
||||
this.type = 1
|
||||
} else if(this.mode === 'month') {
|
||||
this.type = 2
|
||||
} else if(this.mode === 'date') {
|
||||
this.type = 3
|
||||
} else {
|
||||
this.type = 4
|
||||
}
|
||||
let params: any = {
|
||||
time: this.time,
|
||||
type: this.type,
|
||||
...this.sf?.value
|
||||
};
|
||||
|
||||
delete params._$expand;
|
||||
return { ...params };
|
||||
}
|
||||
constructor(public service: DataService, private datePipe: DatePipe) { }
|
||||
ngOnInit(): void {
|
||||
this.initSF();
|
||||
}
|
||||
/**
|
||||
* 初始化查询表单
|
||||
*/
|
||||
initSF() {
|
||||
this.schema = {
|
||||
properties: {
|
||||
_$expand: { type: 'boolean', ui: { hidden: true } },
|
||||
enterpriseName: {
|
||||
type: 'string',
|
||||
title: '货主名称',
|
||||
ui: {
|
||||
placeholder: '请输入',
|
||||
}
|
||||
},
|
||||
customerType: {
|
||||
type: 'string',
|
||||
title: '客户类型',
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
},
|
||||
enum: [
|
||||
{label: '直客', value: 2},
|
||||
{label: '渠道客户', value: 3},
|
||||
{label: '平台客户', value: 1},
|
||||
]
|
||||
},
|
||||
customerStatus: {
|
||||
type: 'string',
|
||||
title: '客户状态',
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
},
|
||||
enum: [
|
||||
{label: '未激活', value: 1},
|
||||
{label: '沉默', value: 2},
|
||||
{label: '流失', value: 3},
|
||||
{label: '活跃', value: 4},
|
||||
]
|
||||
},
|
||||
registerTime: {
|
||||
title: '注册时间',
|
||||
type: 'string',
|
||||
ui: {
|
||||
widget: 'sl-from-to', type: 'date', format: 'yyyy-MM-dd', visibleIf: {
|
||||
_$expand: (value: boolean) => value,
|
||||
},
|
||||
} as SFDateWidgetSchema,
|
||||
}
|
||||
},
|
||||
type: 'object'
|
||||
};
|
||||
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
|
||||
}
|
||||
changeData(){
|
||||
if(this.mode === 'year') {
|
||||
this.dateFormat = 'yyyy'
|
||||
} else if(this.mode === 'month') {
|
||||
this.dateFormat = 'yyyy-MM'
|
||||
} else {
|
||||
this.dateFormat = 'yyyy-MM-dd'
|
||||
}
|
||||
}
|
||||
onChange(result: any) {
|
||||
if(result === null) {
|
||||
return
|
||||
}
|
||||
if(this.mode === 'year') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy') + '-01-01 00:00:00']
|
||||
} else if(this.mode === 'month') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy-MM') + '-01 00:00:00']
|
||||
} else if(this.mode === 'date') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd') + ' 00:00:00']
|
||||
} else{
|
||||
this.time = [this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd') + '00:00:00', this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd') + ' 00:00:00']
|
||||
}
|
||||
this.st.reload({ ...this.reqParams });
|
||||
}
|
||||
disabledDate = (current: Date): boolean =>
|
||||
// Can not select days before today and today
|
||||
differenceInCalendarDays(current, this.today) > 0;
|
||||
|
||||
export() {
|
||||
// this.service.downloadFile(this.service.$api_exportUploadBill, this.sf?.value, {});
|
||||
}
|
||||
search() {
|
||||
this.st?.load(1)
|
||||
|
||||
}
|
||||
/**
|
||||
* 伸缩查询条件
|
||||
*/
|
||||
expandToggle() {
|
||||
this._$expand = !this._$expand;
|
||||
this.sf?.setValue('/_$expand', this._$expand);
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置表单
|
||||
*/
|
||||
resetSF() {
|
||||
this.sf.reset();
|
||||
this._$expand = false;
|
||||
this.isLoading = true
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<g2-custom delay="100" (render)="render($event)"></g2-custom>
|
||||
@ -0,0 +1,92 @@
|
||||
/*
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-04-06 13:43:29
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-06 19:20:24
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\customtable\\customindex\\curve\\curve.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
import { Component, ElementRef, Input, NgZone, OnChanges, OnInit, SimpleChanges, ViewChild } from '@angular/core';
|
||||
import { Chart } from '@antv/g2';
|
||||
import { DataService } from 'src/app/routes/datatable/services/data.service';
|
||||
@Component({
|
||||
selector: 'app-datatable-customindex-curve',
|
||||
templateUrl: './curve.component.html',
|
||||
styleUrls: ['./curve.component.less']
|
||||
})
|
||||
export class DatatableCustomindexCurveComponent implements OnInit, OnChanges {
|
||||
el: any;
|
||||
@Input() chartData: any;
|
||||
chart: any;
|
||||
constructor(private service: DataService, private ngZone: NgZone) {
|
||||
|
||||
}
|
||||
ngOnChanges(changes: SimpleChanges): void {
|
||||
if (this.chartData) {
|
||||
// setTimeout(()=>{
|
||||
// this.chart.render(true)
|
||||
// }, 1000)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
|
||||
}
|
||||
reRender() {
|
||||
setTimeout(() => {
|
||||
this.chart.data(this.chartData);
|
||||
this.chart.render();
|
||||
}, 1000)
|
||||
}
|
||||
render(el: ElementRef<HTMLDivElement>): void {
|
||||
this.el = el.nativeElement
|
||||
setTimeout(() => {
|
||||
this.ngZone.runOutsideAngular(() => this.init(this.el));
|
||||
},500)
|
||||
console.log(this.chartData);
|
||||
}
|
||||
|
||||
private init(el: HTMLElement): void {
|
||||
this.chart = new Chart({
|
||||
container: el,
|
||||
autoFit: true,
|
||||
height: 500,
|
||||
});
|
||||
|
||||
this.chart.data(this.chartData);
|
||||
this.chart.scale({
|
||||
time: {
|
||||
range: [0, 1],
|
||||
},
|
||||
number: {
|
||||
nice: true,
|
||||
},
|
||||
});
|
||||
|
||||
this.chart.tooltip({
|
||||
showCrosshairs: true,
|
||||
shared: true,
|
||||
});
|
||||
|
||||
this.chart.axis('number', {
|
||||
label: {
|
||||
formatter: (val: any) => {
|
||||
return val;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
this.chart
|
||||
.line()
|
||||
.position('time*number')
|
||||
.color('name')
|
||||
|
||||
|
||||
this.chart.render();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
<!--
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-04-06 13:20:56
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-29 17:55:02
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\customtable\\customindex\\customindex.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
<!-- 页头 -->
|
||||
<page-header-wrapper [title]="'客户报表'"></page-header-wrapper>
|
||||
<div nz-row [nzGutter]="16" acl [acl-ability]="['customindex-statisticsTotal']">
|
||||
<div nz-col class="gutter-row" [nzSpan]="6">
|
||||
<g2-card [title]="'货主'" [bordered]="true" [total]="hzData?.total || '0'"
|
||||
[footer]="'已认证' + ' ' + hzData?.auditPassTotal" contentHeight="46">
|
||||
</g2-card>
|
||||
</div>
|
||||
<div nz-col class="gutter-row" [nzSpan]="6">
|
||||
<g2-card [title]="'合伙人'" [bordered]="true" [total]="hhrData?.total || '0'"
|
||||
[footer]="'已认证' + ' ' + hhrData?.auditPassTotal" contentHeight="46">
|
||||
</g2-card>
|
||||
</div>
|
||||
<div nz-col class="gutter-row" [nzSpan]="6">
|
||||
<g2-card [title]="'司机'" [bordered]="true" [total]="sjData?.total || '0'"
|
||||
[footer]="'已认证' + ' ' + sjData?.auditPassTotal" contentHeight="46">
|
||||
</g2-card>
|
||||
</div>
|
||||
<div nz-col class="gutter-row" [nzSpan]="6">
|
||||
<g2-card [title]="'车辆'" [bordered]="true" [total]="clData?.total || '0'"
|
||||
[footer]="'已认证' + ' '+ clData?.auditPassTotal" contentHeight="46">
|
||||
</g2-card>
|
||||
</div>
|
||||
</div>
|
||||
<nz-card nzTitle="客户报表" [nzExtra]="extraTemplate" acl [acl-ability]="['customindex-client']">
|
||||
<ng-template #extraTemplate>
|
||||
<div class="chooseBox">
|
||||
<div class="timeBox">
|
||||
<nz-radio-group [(ngModel)]="mode" nzButtonStyle="solid" (ngModelChange)="changeData()">
|
||||
<label nz-radio-button nzValue="year">年</label>
|
||||
<label nz-radio-button nzValue="month">月</label>
|
||||
<label nz-radio-button nzValue="date">日</label>
|
||||
<label nz-radio-button nzValue="define">自定义</label>
|
||||
</nz-radio-group>
|
||||
<div class="dateBox">
|
||||
<nz-date-picker [(ngModel)]="date" [nzMode]="mode" [nzFormat]="dateFormat" *ngIf="mode !== 'define'"
|
||||
[nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-date-picker>
|
||||
<nz-range-picker [(ngModel)]="defineDate" [nzFormat]="dateFormat" *ngIf="mode === 'define'"
|
||||
[nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-range-picker>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<st #st multiSort [columns]="columns" [ps]="20" [data]="reportData" [scroll]="{ x: '1200px' }"
|
||||
[res]="{ reName: { list: 'data', total: 'data.total' } }"
|
||||
[page]="{ show: false, showSize: false, pageSizes: [20, 50, 100] }">
|
||||
<ng-template st-row="type" let-item>
|
||||
<div *ngIf="item.type == '1'">货主</div>
|
||||
<div *ngIf="item.type == '2'">合伙人</div>
|
||||
<div *ngIf="item.type == '3'">司机</div>
|
||||
<div *ngIf="item.type == '4'">车辆</div>
|
||||
</ng-template>
|
||||
</st>
|
||||
</nz-card>
|
||||
<nz-card nzTitle="用户新增报表" [nzExtra]="extraTemplate01" acl [acl-ability]="['customindex-totalAdd']">
|
||||
<ng-template #extraTemplate01>
|
||||
<div class="chooseBox">
|
||||
<div class="timeBox">
|
||||
<nz-radio-group [(ngModel)]="modeNext" nzButtonStyle="solid" (ngModelChange)="changeDataNext2()">
|
||||
<label nz-radio-button nzValue="year">年</label>
|
||||
<label nz-radio-button nzValue="month">月</label>
|
||||
</nz-radio-group>
|
||||
<div class="dateBox">
|
||||
<nz-date-picker [nzDisabledDate]="disabledDate" [(ngModel)]="dateNext" [nzMode]="modeNext"
|
||||
(ngModelChange)="onChangeNext($event)"></nz-date-picker>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<app-datatable-customindex-curve #curve [chartData]="chartData"></app-datatable-customindex-curve>
|
||||
</nz-card>
|
||||
@ -0,0 +1,11 @@
|
||||
.chooseBox{
|
||||
display: flex;
|
||||
}
|
||||
.timeBox{
|
||||
display: flex;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
.dateBox{
|
||||
display: inline-block;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { DatatableCustomindexComponent } from './customindex.component';
|
||||
|
||||
describe('DatatableCustomindexComponent', () => {
|
||||
let component: DatatableCustomindexComponent;
|
||||
let fixture: ComponentFixture<DatatableCustomindexComponent>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ DatatableCustomindexComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(DatatableCustomindexComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,236 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { STColumn, STComponent } from '@delon/abc/st';
|
||||
import { SFComponent } from '@delon/form';
|
||||
import { DatePipe, _HttpClient } from '@delon/theme';
|
||||
import { differenceInCalendarDays } from 'date-fns';
|
||||
import { DataService } from '../../../services/data.service';
|
||||
import { DatatableCustomindexCurveComponent } from './curve/curve.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-datatable-customindex',
|
||||
templateUrl: './customindex.component.html',
|
||||
styleUrls: ['./customindex.component.less'],
|
||||
providers: [DatePipe]
|
||||
})
|
||||
export class DatatableCustomindexComponent implements OnInit {
|
||||
@ViewChild('st') private readonly st!: STComponent;
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
@ViewChild('curve') private readonly curve!: DatatableCustomindexCurveComponent;
|
||||
type = 1;
|
||||
mode = 'year';
|
||||
date: any = null;
|
||||
defineDate = [];
|
||||
timeStart: any = '2022-01-01';
|
||||
timeEnd: any = '2022-12-31';
|
||||
dateFormat = 'yyyy';
|
||||
today = new Date();
|
||||
dateNext: any = null;
|
||||
modeNext = 'year';
|
||||
timeNext: any = ['2022-01-01 00:00:00'];
|
||||
chartData: any = [];
|
||||
flag = false;
|
||||
|
||||
columns: STColumn[] = [
|
||||
{ title: '用户类型', render: 'type', className: 'text-center' },
|
||||
{ title: '用户总数', index: 'total', className: 'text-center' },
|
||||
{ title: '已认证数量', index: 'auditPassTotal', className: 'text-center' },
|
||||
{ title: '活跃用户数', index: 'activeTotal', className: 'text-center' },
|
||||
{ title: '未激活用户数', index: 'notActivationTotal', className: 'text-center' },
|
||||
{ title: '沉默用户数', index: 'silentTotal', className: 'text-center' },
|
||||
{ title: '流失用户数', index: 'drainTotal', className: 'text-center' },
|
||||
{ title: '流失率', index: 'drainRate', className: 'text-center',format: (item: any) => {return ((item?.drainRate)*100).toFixed(2) + '%' }}
|
||||
];
|
||||
hzData: any;
|
||||
hhrData: any = {
|
||||
total: 0
|
||||
};
|
||||
sjData: any;
|
||||
clData: any;
|
||||
reportData: any = [];
|
||||
|
||||
constructor(public service: DataService, private datePipe: DatePipe) {}
|
||||
ngOnInit(): void {
|
||||
this.initCurveData();
|
||||
}
|
||||
initCurveData() {
|
||||
this.cardData();
|
||||
this.listData();
|
||||
this.addData('year', '2022-01-01');
|
||||
}
|
||||
listData(type?: string, stime?: any, etime?: any) {
|
||||
this.reportData = [];
|
||||
this.service
|
||||
.request(this.service.$api_statistics_totalDetail, {
|
||||
dateStart: stime || this.timeStart,
|
||||
dateEnd: etime || this.timeEnd,
|
||||
type: 1 //用户角色类型 1:货主 2:合伙人 3:司机 4:车辆
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.reportData.push(res);
|
||||
this.st.reload();
|
||||
}
|
||||
});
|
||||
this.service
|
||||
.request(this.service.$api_statistics_totalDetail, {
|
||||
dateStart: stime || this.timeStart,
|
||||
dateEnd: etime || this.timeEnd,
|
||||
type: 2
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.reportData.push(res);
|
||||
this.st.reload();
|
||||
}
|
||||
});
|
||||
this.service
|
||||
.request(this.service.$api_statistics_totalDetail, {
|
||||
dateStart: stime || this.timeStart,
|
||||
dateEnd: etime || this.timeEnd,
|
||||
type: 3
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.reportData.push(res);
|
||||
this.st.reload();
|
||||
}
|
||||
});
|
||||
this.service
|
||||
.request(this.service.$api_statistics_totalDetail, {
|
||||
dateStart: stime || this.timeStart,
|
||||
dateEnd: etime || this.timeEnd,
|
||||
type: 4
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.reportData.push(res);
|
||||
this.st.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
cardData() {
|
||||
this.service.request(this.service.$api_statistics_total, { type: 1 }).subscribe(res => {
|
||||
if (res) {
|
||||
this.hzData = res;
|
||||
}
|
||||
});
|
||||
this.service.request(this.service.$api_statistics_total, { type: 2 }).subscribe(res => {
|
||||
if (res) {
|
||||
|
||||
this.hhrData = res;
|
||||
console.log(this.hhrData);
|
||||
|
||||
}
|
||||
});
|
||||
this.service.request(this.service.$api_statistics_total, { type: 3 }).subscribe(res => {
|
||||
if (res) {
|
||||
this.sjData = res;
|
||||
}
|
||||
});
|
||||
this.service.request(this.service.$api_statistics_total, { type: 4 }).subscribe(res => {
|
||||
if (res) {
|
||||
this.clData = res;
|
||||
}
|
||||
});
|
||||
}
|
||||
addData(type?: string, time?: any) {
|
||||
this.chartData = []
|
||||
this.service
|
||||
.request(this.service.$api_statistics_totalAdd, {
|
||||
date: time,
|
||||
dateType: type === 'month' ? 2 : 1, //日期类型 1:年 2:月
|
||||
type: 1
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.chartData.push(...res);
|
||||
console.log(this.curve);
|
||||
this.curve.reRender();
|
||||
}
|
||||
});
|
||||
this.service
|
||||
.request(this.service.$api_statistics_totalAdd, {
|
||||
date: time,
|
||||
dateType: type === 'month' ? 2 : 1, //日期类型 1:年 2:月
|
||||
type: 2
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.chartData.push(...res);
|
||||
this.curve.reRender();
|
||||
}
|
||||
});
|
||||
this.service
|
||||
.request(this.service.$api_statistics_totalAdd, {
|
||||
date: time,
|
||||
dateType: type === 'month' ? 2 : 1, //日期类型 1:年 2:月
|
||||
type: 3
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.chartData.push(...res);
|
||||
this.curve.reRender();
|
||||
}
|
||||
});
|
||||
this.service
|
||||
.request(this.service.$api_statistics_totalAdd, {
|
||||
date: time,
|
||||
dateType: type === 'month' ? 2 : 1, //日期类型 1:年 2:月
|
||||
type: 4
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.chartData.push(...res);
|
||||
this.curve.reRender();
|
||||
}
|
||||
});
|
||||
}
|
||||
changeData() {
|
||||
if (this.mode === 'year') {
|
||||
this.dateFormat = 'yyyy';
|
||||
} else if (this.mode === 'month') {
|
||||
this.dateFormat = 'yyyy-MM';
|
||||
} else {
|
||||
this.dateFormat = 'yyyy-MM-dd';
|
||||
}
|
||||
}
|
||||
onChange(result: any) {
|
||||
if (this.mode === 'year') {
|
||||
this.timeStart = this.datePipe.transform(this.date, 'yyyy') + '-01-01';
|
||||
this.timeEnd = this.datePipe.transform(this.date, 'yyyy') + '-12-31';
|
||||
|
||||
} else if (this.mode === 'month') {
|
||||
this.timeStart = this.datePipe.transform(this.date, 'yyyy-MM') + '-01' ;
|
||||
this.timeEnd = this.datePipe.transform(this.date, 'yyyy-MM') + '-31';
|
||||
} else if (this.mode === 'date') {
|
||||
this.timeStart=this.datePipe.transform(this.date, 'yyyy-MM-dd');
|
||||
this.timeEnd = this.datePipe.transform(this.date, 'yyyy-MM-dd') ;
|
||||
} else {
|
||||
this.timeStart = this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd') ;
|
||||
this.timeEnd = this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd');
|
||||
}
|
||||
this.listData(this.mode, this.timeStart, this.timeEnd);
|
||||
}
|
||||
disabledDate = (current: Date): boolean =>
|
||||
// Can not select days before today and today
|
||||
differenceInCalendarDays(current, this.today) > 0;
|
||||
|
||||
changeDataNext2() {
|
||||
if (this.modeNext === 'year') {
|
||||
this.dateFormat = 'yyyy';
|
||||
} else if (this.modeNext === 'month') {
|
||||
this.dateFormat = 'yyyy-MM';
|
||||
}
|
||||
}
|
||||
onChangeNext(result: any) {
|
||||
if (result === null) {
|
||||
return;
|
||||
}
|
||||
if (this.modeNext === 'year') {
|
||||
this.timeNext = this.datePipe.transform(this.dateNext, 'yyyy') + '-01-01';
|
||||
} else if (this.modeNext === 'month') {
|
||||
this.timeNext = this.datePipe.transform(this.dateNext, 'yyyy-MM') + '-01';
|
||||
}
|
||||
this.addData(this.modeNext, this.timeNext);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
<!-- 页头 -->
|
||||
<page-header-wrapper [title]="'司机报表'"></page-header-wrapper>
|
||||
<nz-card>
|
||||
<!-- 搜索表单 -->
|
||||
<div nz-row nzGutter="8">
|
||||
<!-- 查询字段大于3个时,根据展开状态调整布局 -->
|
||||
<ng-container>
|
||||
<div nz-col [nzSpan]="_$expand ? 24 : 18">
|
||||
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
||||
</div>
|
||||
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
|
||||
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="isLoading && st.loading" (click)="search()"acl [acl-ability]="['driver-search']">查询</button>
|
||||
<button nz-button (click)="resetSF()" >重置</button>
|
||||
<!-- <button nz-button (click)="export()">导出</button> -->
|
||||
<button nz-button nzType="link" (click)="expandToggle()">
|
||||
{{ !_$expand ? '展开' : '收起' }}
|
||||
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
||||
</button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</div>
|
||||
</nz-card>
|
||||
<nz-card nzTitle="司机报表" [nzExtra]="extraTemplate">
|
||||
<ng-template #extraTemplate>
|
||||
<div class="chooseBox">
|
||||
<div class="timeBox">
|
||||
<nz-radio-group [(ngModel)]="mode" nzButtonStyle="solid" (ngModelChange)="changeData()">
|
||||
<label nz-radio-button nzValue="year">年</label>
|
||||
<label nz-radio-button nzValue="month">月</label>
|
||||
<label nz-radio-button nzValue="date">日</label>
|
||||
<label nz-radio-button nzValue="define">自定义</label>
|
||||
</nz-radio-group>
|
||||
<div class="dateBox">
|
||||
<nz-date-picker [(ngModel)]="date" [nzMode]="mode" [nzFormat]="dateFormat" *ngIf="mode !== 'define'" [nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-date-picker>
|
||||
<nz-range-picker [(ngModel)]="defineDate" [nzFormat]="dateFormat" *ngIf="mode === 'define'" [nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-range-picker>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<st #st multiSort [columns]="columns" [ps]="20" [data]="service.$api_listDriverReportPage"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[scroll]="{ x: '1200px' }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [20, 50, 100] }">
|
||||
</st>
|
||||
</nz-card>
|
||||
@ -0,0 +1,11 @@
|
||||
.chooseBox{
|
||||
display: flex;
|
||||
}
|
||||
.timeBox{
|
||||
display: flex;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
.dateBox{
|
||||
display: inline-block;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { DatatableDriverComponent } from './driver.component';
|
||||
|
||||
describe('DatatableDriverComponent', () => {
|
||||
let component: DatatableDriverComponent;
|
||||
let fixture: ComponentFixture<DatatableDriverComponent>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ DatatableDriverComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(DatatableDriverComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,178 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { STColumn, STComponent } from '@delon/abc/st';
|
||||
import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form';
|
||||
import { DatePipe, _HttpClient } from '@delon/theme';
|
||||
import { differenceInCalendarDays } from 'date-fns';
|
||||
import { DataService } from '../../../services/data.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-datatable-driver',
|
||||
templateUrl: './driver.component.html',
|
||||
styleUrls: ['./driver.component.less'],
|
||||
providers: [DatePipe]
|
||||
})
|
||||
export class DatatableDriverComponent implements OnInit {
|
||||
@ViewChild('st', { static: false }) st!: STComponent;
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
_$expand = false;
|
||||
type = 1;
|
||||
mode = 'year';
|
||||
date: any = null;
|
||||
defineDate = [];
|
||||
queryTime: any = [new Date().getFullYear()]
|
||||
dateFormat = 'yyyy';
|
||||
today = new Date();
|
||||
ui: SFUISchema = {};
|
||||
schema: SFSchema = {};
|
||||
|
||||
columns: STColumn[] = [
|
||||
{ title: '司机姓名', index: 'driverName', className: 'text-center' },
|
||||
{ title: '手机号', index: 'driverPhone', className: 'text-center' },
|
||||
{ title: '注册时间', index: 'driverRegisterTime', className: 'text-center' },
|
||||
{
|
||||
title: '司机状态', index: 'driverStatus', className: 'text-center', type: 'enum', enum: {
|
||||
0: '未激活',
|
||||
1: '活跃',
|
||||
2: '沉默',
|
||||
3: '流失',
|
||||
}
|
||||
},
|
||||
{ title: '运单数', index: 'wbAllCount', className: 'text-center' },
|
||||
{ title: '待接单运单', index: 'wbWaitCount', className: 'text-center' },
|
||||
{ title: '已完成运单', index: 'wbOverCount', className: 'text-center' },
|
||||
{ title: '运费金额', index: 'wbAllAmount', className: 'text-right', width: '100px', type: 'widget', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.wbAllAmount }) } },
|
||||
{ title: '已收运费金额', index: 'wbGetAmount', className: 'text-right', width: '100px', type: 'widget', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.wbGetAmount }) } },
|
||||
{ title: '待收运费金额', index: 'wbWaitAmount', className: 'text-right', width: '100px', type: 'widget', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.wbWaitAmount }) } },
|
||||
];
|
||||
isLoading: boolean = false;
|
||||
/**
|
||||
* 查询参数
|
||||
*/
|
||||
get reqParams() {
|
||||
if (this.mode === 'year') {
|
||||
this.type = 1
|
||||
} else if (this.mode === 'month') {
|
||||
this.type = 2
|
||||
} else if (this.mode === 'date') {
|
||||
this.type = 3
|
||||
} else {
|
||||
this.type = 4
|
||||
}
|
||||
let params: any = {
|
||||
queryTime: this.queryTime,
|
||||
...this.sf?.value
|
||||
};
|
||||
|
||||
delete params._$expand;
|
||||
return { ...params };
|
||||
}
|
||||
constructor(public service: DataService, private datePipe: DatePipe) { }
|
||||
ngOnInit(): void {
|
||||
this.initSF();
|
||||
}
|
||||
/**
|
||||
* 初始化查询表单
|
||||
*/
|
||||
initSF() {
|
||||
this.schema = {
|
||||
properties: {
|
||||
_$expand: { type: 'boolean', ui: { hidden: true } },
|
||||
driverName: {
|
||||
type: 'string',
|
||||
title: '司机姓名',
|
||||
ui: {
|
||||
placeholder: '请输入',
|
||||
}
|
||||
},
|
||||
driverPhone: {
|
||||
type: 'string',
|
||||
title: '手机号',
|
||||
ui: {
|
||||
placeholder: '请选择',
|
||||
}
|
||||
},
|
||||
driverStatus: {
|
||||
type: 'string',
|
||||
title: '司机状态',
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
},
|
||||
enum: [
|
||||
{ label: '未激活', value: 0 },
|
||||
{ label: '活跃', value: 1 },
|
||||
{ label: '沉默', value: 2 },
|
||||
{ label: '流失', value: 3 },
|
||||
]
|
||||
},
|
||||
driverRegisterTime: {
|
||||
title: '注册时间',
|
||||
type: 'string',
|
||||
ui: {
|
||||
widget: 'sl-from-to', type: 'date', format: 'yyyy-MM-dd', visibleIf: {
|
||||
_$expand: (value: boolean) => value,
|
||||
},
|
||||
} as SFDateWidgetSchema,
|
||||
}
|
||||
},
|
||||
type: 'object'
|
||||
};
|
||||
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
|
||||
}
|
||||
changeData() {
|
||||
if (this.mode === 'year') {
|
||||
this.dateFormat = 'yyyy'
|
||||
} else if (this.mode === 'month') {
|
||||
this.dateFormat = 'yyyy-MM'
|
||||
}
|
||||
}
|
||||
onChange(result: any) {
|
||||
if(result === null) {
|
||||
return
|
||||
}
|
||||
// if (this.mode === 'year') {
|
||||
// this.queryTime = this.datePipe.transform(this.date, 'yyyy')
|
||||
// } else if (this.mode === 'month') {
|
||||
// this.queryTime = this.datePipe.transform(this.date, 'yyyy-MM')
|
||||
// }
|
||||
|
||||
if(this.mode === 'year') {
|
||||
this.queryTime = [this.datePipe.transform(this.date, 'yyyy')]
|
||||
} else if(this.mode === 'month') {
|
||||
this.queryTime = [this.datePipe.transform(this.date, 'yyyy-MM')]
|
||||
} else if(this.mode === 'date') {
|
||||
this.queryTime = [this.datePipe.transform(this.date, 'yyyy-MM-dd')]
|
||||
} else{
|
||||
this.queryTime = [this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd'), this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd')]
|
||||
}
|
||||
|
||||
this.st.reload({ ...this.reqParams });
|
||||
}
|
||||
disabledDate = (current: Date): boolean =>
|
||||
// Can not select days before today and today
|
||||
differenceInCalendarDays(current, this.today) > 0;
|
||||
|
||||
export() {
|
||||
// this.service.downloadFile(this.service.$api_exportUploadBill, this.sf?.value, {});
|
||||
}
|
||||
search() {
|
||||
this.st?.load(1)
|
||||
|
||||
}
|
||||
/**
|
||||
* 伸缩查询条件
|
||||
*/
|
||||
expandToggle() {
|
||||
this._$expand = !this._$expand;
|
||||
this.sf?.setValue('/_$expand', this._$expand);
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置表单
|
||||
*/
|
||||
resetSF() {
|
||||
this.sf.reset();
|
||||
this._$expand = false;
|
||||
this.isLoading = true
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
<!--
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-03-30 17:57:46
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-19 15:09:26
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\customtable\\mancustomtable\\mancustomtable.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
<!-- 页头 -->
|
||||
<page-header-wrapper [title]="'业务员报告'"></page-header-wrapper>
|
||||
<nz-card >
|
||||
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzTabBarExtraContent]="extraTemplate">
|
||||
<nz-tab [nzTitle]="'客户'"></nz-tab>
|
||||
<nz-tab [nzTitle]="'合伙人'"></nz-tab>
|
||||
</nz-tabset>
|
||||
<ng-template #extraTemplate>
|
||||
<div class="chooseBox">
|
||||
<div class="timeBox">
|
||||
<sf #sf [schema]="searchSchema" button="none"
|
||||
[ui]="{ '*': { spanLabelFixed: 0, grid: { xxl:5,xl:4, lg: 8, md: 12, sm: 12, xs: 24,gutter:20 } } }"
|
||||
[compact]="true">
|
||||
<ng-template sf-template="no4" let-me let-ui="ui" let-schema="schema">
|
||||
<div class="chooseBox">
|
||||
<div class="timeBox">
|
||||
<nz-radio-group [(ngModel)]="mode" nzButtonStyle="solid" (ngModelChange)="changeData()" acl [acl-ability]="['mancustomtable-search']">
|
||||
<label nz-radio-button nzValue="year">年</label>
|
||||
<label nz-radio-button nzValue="month">月</label>
|
||||
<label nz-radio-button nzValue="date">日</label>
|
||||
<label nz-radio-button nzValue="define">自定义</label>
|
||||
</nz-radio-group>
|
||||
<div class="dateBox">
|
||||
<nz-date-picker [(ngModel)]="date" [nzMode]="mode" [nzFormat]="dateFormat" *ngIf="mode !== 'define'"
|
||||
[nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-date-picker>
|
||||
<nz-range-picker [(ngModel)]="defineDate" [nzFormat]="dateFormat" *ngIf="mode === 'define'"
|
||||
[nzDisabledDate]="disabledDate" (ngModelChange)="onChange($event)"></nz-range-picker>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
</sf>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<st #st multiSort [columns]="columns" [ps]="20" [data]="service.$api_listPartBusinessReportPage"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[scroll]="{ x: '1200px' }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [20, 50, 100] }">
|
||||
</st>
|
||||
</nz-card>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user