Commit d1283e92 authored by Wallen姚文辉's avatar Wallen姚文辉

新增测试用例

parent d512c54d
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1724137749703" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12246" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M901.632 926.72c0 12.8-5.12 25.088-14.336 34.304-9.216 9.216-21.504 14.336-34.304 14.336H170.496c-12.8 0-25.6-5.12-34.304-14.336-9.216-9.216-14.336-21.504-14.336-34.304V48.64c0-12.8 5.12-25.6 14.336-34.304C144.896 5.12 157.696 0 170.496 0h418.816c12.8 0 25.6 5.12 34.816 14.336l263.68 263.68c9.216 9.216 14.336 21.504 14.336 34.816V926.72z" fill="#EBECF0" p-id="12247"></path><path d="M901.632 926.72v48.64c0 12.8-5.12 25.6-14.336 34.304-9.216 9.216-21.504 14.336-34.304 14.336H170.496c-27.136 0-48.64-22.016-48.64-48.64V926.72c0 12.8 5.12 25.088 14.336 34.304 9.216 9.216 21.504 14.336 34.304 14.336h682.496c27.136 0 48.64-22.016 48.64-48.64z" fill="#C1C7D0" p-id="12248"></path><path d="M24.064 536.576h975.36v243.712c0 27.136-22.016 48.64-48.64 48.64H73.216c-12.8 0-25.6-5.12-34.304-14.336-9.216-9.216-14.336-21.504-14.336-34.816v-243.2z" fill="#10D6E5" p-id="12249"></path><path d="M121.856 536.576V438.784L24.064 536.576h97.792z m779.776 0l1.024-97.792 97.28 97.792h-98.304z" fill="#00B3C6" p-id="12250"></path><path d="M901.632 312.832v6.656h-263.68c-27.136 0-48.64-22.016-48.64-48.64V0c12.8 0 25.6 5.12 34.816 14.336l264.192 263.68c8.704 9.216 13.824 21.504 13.312 34.816z" fill="#C1C7D0" p-id="12251"></path><path d="M196.608 761.856h-49.664v-148.992h49.664v148.992zM268.8 761.856h-44.544v-148.992h59.392l26.624 93.184 26.112-93.184h59.392v148.992h-43.52v-45.568l1.024-23.552 2.56-26.624h-1.024l-26.624 95.744h-33.792l-27.648-95.744 1.536 22.016 1.536 23.552v50.176zM457.728 761.856H409.6l53.248-148.992h49.664l53.248 148.992H517.12l-5.12-19.456h-48.64l-5.632 19.456z m46.08-51.2l-16.384-53.248-15.36 53.248h31.744zM727.552 679.936v81.92h-31.744l-1.536-14.336c-9.728 11.264-25.088 16.896-45.568 16.896-46.592-2.048-70.656-27.136-72.192-75.264 2.56-51.2 28.672-77.824 77.824-80.384 39.936 1.024 64 19.456 71.168 55.296h-47.104c-3.072-12.288-11.776-18.432-25.088-18.432-18.432 0.512-27.648 15.36-28.16 43.52 0.512 27.136 11.264 40.448 31.744 40.448 12.8-1.536 21.504-7.168 25.088-16.896h-22.016v-32.256h67.584zM881.152 761.856h-124.928v-148.992h122.368v34.816h-72.704v20.992h61.44v34.816h-61.44v23.552h75.264v34.816z" fill="#FFFFFF" p-id="12252"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1724152388057" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="32316" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M625.664 132.608v67.072h309.76v43.008h-309.76v69.632h309.76v43.008h-309.76v68.608h309.76v43.008h-309.76v68.608h309.76v43.008h-309.76v68.608h309.76v43.008h-309.76v68.096h309.76v43.008h-309.76v89.088H1024v-757.76H625.664zM0 914.944L577.024 1024V0L0 109.056" p-id="32317"></path><path d="M229.376 660.48h-89.6l118.272-187.904-112.64-180.736h92.16l65.536 119.808 67.584-119.808h89.088l-112.64 177.664L466.944 660.48h-93.696l-70.144-125.44-73.728 125.44z" p-id="32318"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1724138074866" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="29175" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM790.2 326H602V137.8L790.2 326z m1.8 562H232V136h302v216c0 23.2 18.8 42 42 42h216v494z" p-id="29176"></path><path d="M402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-0.8-55.5-49.2-100.8-108.5-101.6-61.4-0.7-111.5 45.6-111.5 103z" p-id="29177"></path><path d="M512 744m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z" p-id="29178"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1724137556916" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4279" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M61.44 81.92a61.44 61.44 0 0 0-61.44 61.44v711.68a81.92 81.92 0 0 0 81.92 81.92h706.56a81.92 81.92 0 0 0 81.92-81.92v-604.16a81.92 81.92 0 0 0-81.92-81.92H365.18912a40.96 40.96 0 0 1-34.4064-18.75968l-25.9072-40.1408A61.44 61.44 0 0 0 253.2352 81.92H61.44z" fill="#0099EE" p-id="4280"></path><path d="M61.44 256a61.44 61.44 0 0 0-61.44 61.44v563.2a61.44 61.44 0 0 0 61.44 61.44h901.12a61.44 61.44 0 0 0 61.44-61.44V317.44a61.44 61.44 0 0 0-61.44-61.44H61.44z" fill="#29B4FF" p-id="4281"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1724138027996" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="26421" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M833.4336 179.2l-483.584 113.7664V674.176a143.3344 143.3344 0 0 0-56.8832-11.4176C230.144 662.7584 179.2 700.928 179.2 748.0832c0 47.1296 50.944 85.3504 113.7664 85.3504 62.848 0 113.792-38.2208 113.792-85.3504V336.4864l369.7664-87.0144V560.384a143.3344 143.3344 0 0 0-56.8832-11.4176c-62.8224 0-113.7664 38.2208-113.7664 85.3504 0 47.104 50.944 85.3248 113.7664 85.3248 62.848 0 113.792-38.1952 113.792-85.3248V179.2z m76.8 844.8H113.7664C51.2 1024 0 972.8 0 910.2336V113.7664C0 51.2 51.2 0 113.7664 0h796.4672C972.8 0 1024 51.2 1024 113.7664v796.4672C1024 972.8 972.8 1024 910.2336 1024z" fill="#F16D00" p-id="26422"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1724137868064" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16284" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M145.621959 0c-44.79888 0-79.998 36.81188-79.998 81.61076v860.77848c0 44.79888 35.19912 81.61076 79.998 81.61076h732.781681a81.969151 81.969151 0 0 0 81.61076-81.61076V324.80468L657.60916 0h-511.987201z" fill="#F05542" p-id="16285"></path><path d="M657.60916 0v233.59416c0 25.59936 17.61236 92.79768 97.61036 92.79768h204.79488L657.60916 0z" fill="#FFFFFF" p-id="16286"></path><path d="M226.208745 708.129497c0.40959-1.791955 0.972776-3.507112 1.715157-5.094273L230.40704 697.633759a99.530312 99.530312 0 0 0 5.836654-17.381965l5.862253-24.0122a2497.98555 2497.98555 0 0 1 9.59976-38.245444c1.61276-6.092648 3.532712-12.466888 5.785456-19.122722l7.039824-20.633084 7.423814-21.887453c2.508737-7.475013 4.761481-15.257219 6.758231-23.244219a3.839904 3.839904 0 0 0 0.153596-1.20317c0-0.79358-0.255994-1.305567-0.742381-1.510362s-1.151971-0.307192-1.945551-0.307192c-2.508737 0-4.582285-0.38399-6.220645-1.126372a10.188545 10.188545 0 0 1-5.913452-7.039824 29.18327 29.18327 0 0 1 0.998375-15.436414c1.049574-2.636734 2.40634-4.710282 4.044699-6.143846s3.455914-2.508737 5.401465-3.148722 3.839904-1.177571 5.708657-1.58716 3.481513-0.81918 4.863878-1.279968 2.40634-1.279968 2.995126-2.483138c0.998375-2.099148 1.919952-4.326292 2.76473-6.681433s1.919952-4.531087 3.22552-6.527837 2.892728-3.660708 4.81268-4.940676 4.40309-1.945551 7.500612-1.945552c2.201545 0 4.147096 0.588785 5.862253 1.791956s3.174321 2.687933 4.42869 4.505487 2.329542 3.737507 3.225519 5.785455l2.40634 5.63186a310.00825 310.00825 0 0 1 43.800505 4.198295c7.500612 1.407965 15.026824 3.507112 22.578635 6.297442s14.361241 6.425439 20.40269 10.879728 11.007725 9.702157 14.847629 15.743607 5.785455 12.978876 5.785456 20.78668c0 3.9935-0.460788 8.140596-1.356767 12.441289l-1.049573 5.247869c-0.79358 4.198295-2.483138 8.089398-5.017475 11.698907s-5.427064 6.860628-8.626984 9.753356c-8.908577 8.191795-18.661933 15.078023-29.260069 20.633084s-21.657059 10.214145-33.151171 14.02845-23.244219 6.988625-35.250319 9.59976-23.858604 5.043074-35.557511 7.347016l-4.198295 0.588785c-2.303942 0.307192-3.660708 1.151971-4.044699 2.559936-1.99675 6.911827-3.58391 12.953276-4.735881 18.149947s-2.227144 10.162946-3.22552 14.924427l-2.995125 14.258843c-0.998375 4.761481-2.252744 10.034949-3.737506 15.820405-0.511987 1.894353-1.407965 4.147096-2.687933 6.758231s-2.841529 5.043074-4.659084 7.347016-3.865503 4.275093-6.220644 5.913452-4.81268 2.483138-7.423814 2.483138c-1.791955 0-3.353516-0.511987-4.659084-1.510362s-2.38074-2.278343-3.225519-3.814305-1.510362-3.225519-1.945552-5.017474-0.665583-3.507112-0.665583-5.094273v-1.715157c0-0.537587 0-1.126372 0.204795-1.638359z m59.544111-110.845229l-0.819179 2.636734a73.828554 73.828554 0 0 0-1.715157 6.451039 11.007725 11.007725 0 0 0-0.307193 2.022349c0 0.511987 0.076798 0.921577 0.230394 1.279968s0.486388 0.537587 0.972776 0.537587c0.307192 0 1.254369-0.127997 2.841529-0.383991s3.532712-0.563186 5.785455-0.972775 4.684683-0.844779 7.270219-1.356766 5.094273-0.998375 7.500612-1.510363a343.159421 343.159421 0 0 0 42.955726-12.594885c7.347016-2.687933 14.38684-5.60626 21.068274-8.703782s12.646084-6.39984 17.842754-9.906953c5.503862-3.711907 9.906952-7.398215 13.209269-11.110122s4.940676-7.654209 4.940677-11.852503c0-2.508737-0.332792-4.735882-0.972776-6.681433s-1.382365-3.737507-2.175946-5.324667c-2.995125-4.889478-6.758231-8.754981-11.238119-11.545312s-9.394965-4.889478-14.694032-6.297442-10.854129-2.303942-16.639584-2.687933-11.494113-0.588785-17.100373-0.588785c-1.510362 0-3.763106 0.102397-6.835029 0.307192s-6.246244 0.460788-9.59976 0.742381-6.451039 0.665583-9.292568 1.126372-4.78708 0.972776-5.785455 1.587161c-0.511987 0.307192-0.921577 0.79358-1.279968 1.510362s-0.614385 1.305567-0.819179 1.791955l-3.302318 8.319792c-1.407965 3.532712-2.892728 7.526212-4.505487 11.929302s-3.276718 9.062173-5.017475 13.951651-3.430314 9.676558-5.017474 14.335642l-4.42869 13.055673a167.59901 167.59901 0 0 0-3.071923 9.932552zM421.045474 692.693083c4.607885-3.302317 9.266968-5.375866 14.028449-6.220645s9.778956-1.535962 15.078023-2.022349l37.503063-151.804205-3.379116-0.076798c-1.843154-0.051199-3.891103-0.204795-6.143846-0.460789s-4.479888-0.665583-6.681433-1.279968-3.839904-1.459164-4.940677-2.559936a54.552236 54.552236 0 0 1-4.044699-6.502237c-0.691183-1.331167-1.305567-2.713532-1.791955-4.121497s-0.742381-2.79033-0.742381-4.198295c0-2.303942 0.972776-4.223894 2.918327-5.785456s4.351891-2.79033 7.19342-3.737506 5.913452-1.61276 9.21577-2.02235 6.297443-0.588785 9.010974-0.588785c12.594885 0 24.268193 0.38399 35.019925 1.126372s20.81228 2.38074 30.156046 4.863878 18.149946 6.041449 26.39294 10.649334 16.127597 10.751731 23.628209 18.457139c2.79033 2.892728 5.478263 6.143846 8.0126 9.753356a74.238144 74.238144 0 0 1 11.494113 25.420164c1.20317 4.838279 1.791955 9.98375 1.791955 15.385216a95.792805 95.792805 0 0 1-1.663959 17.381965 115.529912 115.529912 0 0 1-30.540036 54.680233c-6.963026 6.963026-14.566036 12.978876-22.885828 18.073148s-16.895578 9.548561-25.804155 13.337267-17.945151 7.091023-27.160921 9.906952-18.149946 5.299068-26.853728 7.500613h0.153596c-3.891103 1.20317-8.089398 2.252744-12.594885 3.148721s-9.062173 1.638359-13.644459 2.252744-9.164571 1.075173-13.721257 1.433564-8.831779 0.537587-12.82528 0.537586c-4.40309 0-8.089398-0.281593-11.110122-0.819179s-5.427064-1.305567-7.270218-2.252744-3.174321-2.022349-3.967901-3.225519-1.20317-2.508737-1.20317-3.891103c0-1.99675 0.563186-4.070298 1.715157-6.220644s3.071923-4.223894 5.657459-6.118247z m65.99515-43.058124l-3.737507 15.743607c-1.279968 5.401465-2.559936 10.700532-3.737506 15.897202l3.455913-0.742381a309.470663 309.470663 0 0 0 21.913053-5.990251 212.986675 212.986675 0 0 0 32.639184-12.978875 178.427539 178.427539 0 0 0 34.866328-22.297043c5.401465-4.40309 10.137347-9.113372 14.258844-14.182045s7.372616-10.342141 9.830154-15.897203 3.686308-11.314917 3.686308-17.330766c0-6.092648-1.20317-11.878103-3.60951-17.330767s-5.631859-10.495738-9.676558-15.154821-8.754981-8.80618-14.105248-12.441289-10.982125-6.732632-16.76758-9.343767-11.673308-4.582285-17.61236-5.913452-11.570911-2.022349-16.869978-2.022349c-7.500612 19.404315-13.900452 39.090223-19.19952 59.108922s-10.41894 40.267793-15.334017 60.875278zM715.054124 553.176571c-0.79358 1.20317-1.817555 3.276718-3.071924 6.220644s-2.559936 6.348641-3.891102 10.188545-2.687933 7.935802-4.044699 12.236494-2.611135 8.319792-3.737507 12.082898-2.124747 7.039824-2.918327 9.906953-1.305567 4.735882-1.510362 5.631859c-0.204795 1.100772-0.563186 2.739132-1.126372 4.940676l-1.433564 5.708658c11.21252-3.788705 22.271443-6.937427 33.227969-9.446164a146.940326 146.940326 0 0 1 39.679008-3.583911c2.81593 0.102397 5.555061 0.486388 8.242994 1.126372s5.017475 1.663958 6.963026 3.071923 2.918327 3.404715 2.918327 5.990251l-0.153596 1.868753a18.252344 18.252344 0 0 1-3.225519 8.473388 9.036574 9.036574 0 0 1-4.275093 3.302318c-1.100772-0.102397-2.175946-0.153596-3.22552-0.153597h-3.225519c-7.091023 0-14.233244 0.614385-21.375466 1.868754s-14.361241 2.943926-21.60586 5.094272-14.463638 4.710282-21.682658 7.654209-14.38684 6.067048-21.58026 9.369366l-15.154821 65.559961c-0.204795 1.689558-1.023974 3.225519-2.483138 4.582285s-2.867128 2.022349-4.275093 2.02235h-3.60951c-3.788705 0-6.425439-1.561561-7.884603-4.659084s-2.175946-7.091023-2.175945-12.0061c0-4.095898 0.358391-8.575786 1.049573-13.414064s1.510362-9.574161 2.40634-14.182046l2.40634-12.594885c0.716782-3.788705 1.049574-6.707032 1.049574-8.703782-1.20317-1.689558-2.40634-3.507112-3.60951-5.401465s-1.791955-4.249494-1.791955-7.039824c0-4.40309 1.151971-7.910202 3.455913-10.495738s5.350266-5.145471 9.138972-7.654209c0.40959-0.307192 0.81918-0.844779 1.279968-1.638359s0.844779-1.689558 1.20317-2.687932 0.639984-1.99675 0.895977-2.995126l0.665584-2.559936 6.143846-22.194645a1206.216245 1206.216245 0 0 1 16.127597-54.526636l3.967901-12.082898c0.40959-1.305567 1.075173-3.148721 2.022349-5.555062s2.099148-4.761481 3.455914-7.039824 2.867128-4.300692 4.582285-5.99025 3.558311-2.559936 5.555061-2.559936c4.505487 0 7.577411 0.38399 9.21577 1.126372s2.713532 1.715157 3.225519 2.918327l1.356766 3.302318c1.61276-0.204795 3.865503-0.563186 6.83503-1.126372s5.99025-1.177571 9.138971-1.868754 6.067048-1.382365 8.780581-2.022349 4.659084-1.177571 5.862253-1.58716c6.707032-1.791955 12.850879-3.353516 18.457139-4.659084s10.905327-2.38074 15.897202-3.225519 9.804555-1.484763 14.41244-1.868754 9.241369-0.588785 13.951651-0.588785c2.201545 0 4.249494 0.102397 6.143846 0.307193s3.532712 0.563186 4.863879 1.126371 2.431939 1.356766 3.225519 2.40634 1.20317 2.431939 1.20317 4.121497a14.617235 14.617235 0 0 1-2.534336 7.423815 15.61561 15.61561 0 0 1-9.471764 6.502237c-0.691183 0.204795-1.945551 0.486388-3.737506 0.81918l-6.220645 1.126371-7.500612 1.279968-7.577411 1.279968c-3.788705 0.895978-8.063798 1.868753-12.825279 2.918327s-9.702157 2.227144-14.847629 3.532712-10.316542 2.687933-15.513212 4.198295-10.111747 3.046324-14.694033 4.659084-8.729382 3.251119-12.364491 4.940676-6.553436 3.430314-8.652583 5.22227z" fill="#FFFFFF" p-id="16287"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1724137899360" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17367" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M968.704 135.168h-430.08v752.64h430.08c15.36 0 26.624-12.288 26.624-26.624V162.816c0-15.36-11.264-27.648-26.624-27.648z" fill="#FF8A65" p-id="17368"></path><path d="M512 646.144h376.832v53.248H512z m0 107.52h376.832v54.272H512z m161.792-483.328c-89.088 0-161.792 72.704-161.792 161.792C512 521.216 584.704 593.92 673.792 593.92s161.792-72.704 161.792-161.792H673.792V270.336z" fill="#FBE9E7" p-id="17369"></path><path d="M727.04 216.064v161.792h161.792c0-89.088-72.704-161.792-161.792-161.792z" fill="#FBE9E7" p-id="17370"></path><path d="M592.896 996.352L28.672 888.832V135.168L592.896 27.648z" fill="#E64A19" p-id="17371"></path><path d="M319.488 327.68H192.512v368.64h78.848V569.344h40.96c44.032 0 78.848-11.264 104.448-34.816 25.6-22.528 38.912-53.248 38.912-90.112C455.68 366.592 409.6 327.68 319.488 327.68z m-14.336 178.176h-33.792V391.168h33.792c43.008 0 64.512 18.432 64.512 56.32 0 39.936-21.504 58.368-64.512 58.368z" fill="#FFFFFF" p-id="17372"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1724137604309" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5326" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M147.2 0C102.4 0 65.6 35.2 65.6 80v862.4c0 44.8 35.2 81.6 81.6 81.6h731.2c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0H147.2z" fill="#F9CA06" p-id="5327"></path><path d="M960 324.8v16H755.2s-100.8-19.2-97.6-107.2c0 0 3.2 91.2 96 91.2H960z" fill="#F7BC04" p-id="5328"></path><path d="M657.6 0v232c0 27.2 17.6 92.8 97.6 92.8H960L657.6 0z" fill="#FFFFFF" p-id="5329"></path><path d="M364.8 688h-52.8v161.6c0 6.4-4.8 11.2-12.8 11.2-6.4 0-11.2-4.8-11.2-11.2V688h-52.8c-4.8 0-9.6-3.2-9.6-9.6 0-6.4 4.8-11.2 9.6-11.2h129.6c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6z m187.2 172.8c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-1.6-3.2-1.6-6.4 0-4.8 3.2-11.2 11.2-11.2 3.2 0 6.4 1.6 9.6 4.8l54.4 73.6 54.4-73.6c3.2-3.2 6.4-4.8 9.6-4.8 6.4 0 11.2 4.8 11.2 11.2 0 3.2 0 4.8-1.6 6.4l-57.6 76.8 62.4 83.2c0 1.6 1.6 4.8 1.6 6.4 0 6.4-4.8 11.2-11.2 11.2zM731.2 688h-52.8v161.6c0 6.4-4.8 11.2-12.8 11.2-6.4 0-11.2-4.8-11.2-11.2V688h-52.8c-4.8 0-9.6-3.2-9.6-9.6 0-6.4 4.8-11.2 9.6-11.2h129.6c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6z" fill="#FFFFFF" p-id="5330"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1724137954196" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="19224" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M935.466106 186.149631 86.484212 186.149631c-13.734816 0-24.970718 11.235902-24.970718 24.970718l0 586.771961c0 13.728676 11.235902 24.969695 24.970718 24.969695l848.981894 0c13.739932 0 24.969695-11.241019 24.969695-24.969695L960.435801 211.121372C960.432731 197.386556 949.206038 186.149631 935.466106 186.149631L935.466106 186.149631zM196.510094 735.466538c0 6.855128-5.621021 12.485359-12.486382 12.485359l-56.17951 0c-6.864338 0-12.486382-5.630231-12.486382-12.485359l0-56.180534c0-6.879688 5.621021-12.485359 12.486382-12.485359l56.17951 0c6.864338 0 12.486382 5.606695 12.486382 12.485359L196.510094 735.466538 196.510094 735.466538zM196.510094 598.133729c0 6.850012-5.621021 12.485359-12.486382 12.485359l-56.17951 0c-6.864338 0-12.486382-5.635347-12.486382-12.485359l0-56.180534c0-6.879688 5.621021-12.483312 12.486382-12.483312l56.17951 0c6.864338 0 12.486382 5.604648 12.486382 12.483312L196.510094 598.133729 196.510094 598.133729zM196.510094 467.061508c0 6.864338-5.621021 12.487406-12.486382 12.487406l-56.17951 0c-6.864338 0-12.486382-5.622044-12.486382-12.487406l0-56.180534c0-6.864338 5.621021-12.485359 12.486382-12.485359l56.17951 0c6.864338 0 12.486382 5.621021 12.486382 12.485359L196.510094 467.061508 196.510094 467.061508zM196.510094 329.727677c0 6.864338-5.621021 12.485359-12.486382 12.485359l-56.17951 0c-6.864338 0-12.486382-5.619998-12.486382-12.485359l0-56.181557c0-6.864338 5.621021-12.485359 12.486382-12.485359l56.17951 0c6.864338 0 12.486382 5.621021 12.486382 12.485359L196.510094 329.727677 196.510094 329.727677zM766.917342 739.63958c0 13.728676-11.226692 24.969695-24.968671 24.969695L280.00267 764.609275c-13.732769 0-24.969695-11.241019-24.969695-24.969695L255.032976 268.862447c0-13.733792 11.236925-24.970718 24.969695-24.970718l461.946001 0c13.743002 0 24.968671 11.236925 24.968671 24.970718L766.917342 739.63958 766.917342 739.63958zM906.592498 735.466538c0 6.855128-5.622044 12.485359-12.486382 12.485359l-56.17951 0c-6.865361 0-12.485359-5.630231-12.485359-12.485359l0-56.180534c0-6.879688 5.619998-12.485359 12.485359-12.485359l56.17951 0c6.864338 0 12.486382 5.606695 12.486382 12.485359L906.592498 735.466538 906.592498 735.466538zM906.592498 598.133729c0 6.850012-5.622044 12.485359-12.486382 12.485359l-56.17951 0c-6.865361 0-12.485359-5.635347-12.485359-12.485359l0-56.180534c0-6.879688 5.619998-12.483312 12.485359-12.483312l56.17951 0c6.864338 0 12.486382 5.604648 12.486382 12.483312L906.592498 598.133729 906.592498 598.133729zM906.592498 467.061508c0 6.864338-5.622044 12.487406-12.486382 12.487406l-56.17951 0c-6.865361 0-12.485359-5.622044-12.485359-12.487406l0-56.180534c0-6.864338 5.619998-12.485359 12.485359-12.485359l56.17951 0c6.864338 0 12.486382 5.621021 12.486382 12.485359L906.592498 467.061508 906.592498 467.061508zM906.592498 329.727677c0 6.864338-5.622044 12.485359-12.486382 12.485359l-56.17951 0c-6.865361 0-12.485359-5.619998-12.485359-12.485359l0-56.181557c0-6.864338 5.619998-12.485359 12.485359-12.485359l56.17951 0c6.864338 0 12.486382 5.621021 12.486382 12.485359L906.592498 329.727677 906.592498 329.727677zM410.788365 619.968014l231.058446-115.2867L410.788365 389.036457 410.788365 619.968014zM410.788365 619.968014" fill="#272636" p-id="19225"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1724137831294" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="15234" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M145.6 0C100.8 0 64 35.2 64 80v862.4C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z" fill="#14A9DA" p-id="15235"></path><path d="M960 326.4v16H755.2s-100.8-20.8-99.2-108.8c0 0 4.8 92.8 97.6 92.8H960z" fill="#0F93D0" p-id="15236"></path><path d="M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z" fill="#FFFFFF" p-id="15237"></path><path d="M291.2 862.4h-48c-9.6 0-17.6-8-17.6-17.6v-158.4c0-9.6 8-16 17.6-16h48c60.8 0 99.2 41.6 99.2 96s-38.4 96-99.2 96z m0-171.2h-41.6v148.8h41.6c48 0 75.2-33.6 75.2-73.6 0-41.6-27.2-75.2-75.2-75.2z m232 174.4c-57.6 0-96-43.2-96-99.2s38.4-99.2 96-99.2c56 0 94.4 41.6 94.4 99.2 0 56-38.4 99.2-94.4 99.2z m0-177.6c-43.2 0-70.4 33.6-70.4 78.4 0 44.8 27.2 76.8 70.4 76.8 41.6 0 70.4-32 70.4-76.8S564.8 688 523.2 688z m294.4 6.4c1.6 1.6 3.2 4.8 3.2 8 0 6.4-4.8 11.2-11.2 11.2-3.2 0-6.4-1.6-8-3.2-11.2-14.4-30.4-22.4-48-22.4-41.6 0-73.6 32-73.6 78.4 0 44.8 32 76.8 73.6 76.8 17.6 0 35.2-6.4 48-20.8 1.6-3.2 4.8-4.8 8-4.8 6.4 0 11.2 6.4 11.2 12.8 0 3.2-1.6 4.8-3.2 8-14.4 16-35.2 27.2-64 27.2-56 0-99.2-40-99.2-99.2s43.2-99.2 99.2-99.2c28.8 0 49.6 11.2 64 27.2z" fill="#FFFFFF" p-id="15238"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1724140040421" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31111" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M371.2 76.8H512V0h435.2c51.2 0 76.8 25.6 76.8 76.8v870.4c0 51.2-25.6 76.8-76.8 76.8H76.8c-51.2 0-76.8-25.6-76.8-76.8V76.8c0-51.2 25.6-76.8 76.8-76.8h294.4v76.8z m140.8 230.4h-140.8v230.4a51.2 51.2 0 0 0 51.2 51.2h179.2a51.2 51.2 0 0 0 51.2-51.2v-153.6H512v-76.8z m140.8-76.8H512v76.8h140.8V230.4zM512 153.6h-140.8v76.8H512V153.6z m140.8-76.8H512v76.8h140.8V76.8z" fill="#FFAF06" p-id="31112"></path><path d="M448 448h128v76.8h-128z" fill="#FFA940" p-id="31113"></path></svg>
\ No newline at end of file
...@@ -13,6 +13,7 @@ import UploadCae from '@/views/tool/UploadCae.vue'; ...@@ -13,6 +13,7 @@ import UploadCae from '@/views/tool/UploadCae.vue';
import TestReport from '@/views/tool/TestReport'; import TestReport from '@/views/tool/TestReport';
import ReportLsit from '@/views/tool/ReportLsit'; import ReportLsit from '@/views/tool/ReportLsit';
import AduitReportList from '@/views/tool/AduitReportList'; import AduitReportList from '@/views/tool/AduitReportList';
import TestCase from '@/views/autotest/TestCase.vue';
import Echarts from "vue-echarts"; import Echarts from "vue-echarts";
import 'echarts'; import 'echarts';
import ViewUIPlus from 'view-ui-plus'; import ViewUIPlus from 'view-ui-plus';
...@@ -76,6 +77,10 @@ const routers = [ ...@@ -76,6 +77,10 @@ const routers = [
path: 'aduitreportlist', path: 'aduitreportlist',
name: 'aduitreportlist', name: 'aduitreportlist',
component: AduitReportList component: AduitReportList
}, {
path: 'testcase',
name: 'testcase',
component: TestCase
} }
] ]
......
<template>
<div>
<a @click="gohome()" style="font-size: large;">主目录</a>
/<a v-for="item in path" @click="choicePath(item)" style="font-size: large;">{{ item }}/</a>
</div>
<div class="fileBox" @contextmenu.prevent @click.right="rightclick" @click="leftclicek" style="">
<div v-for="item in contents" class="file" :style="{ 'background-color': each_color(item) }"
@click='changechoice($event, item)' @dblclick="dbcli(item)">
<img :src="getImage(item)" width="100px" height="100px" style="margin-top: 15px;">
<p v-if="!(renamestatu && choice == item)">{{ getname(item.name) }}</p>
<input v-else v-model="lishiname" style="width: 150px" autofocus @keyup.enter="rename" />
</div>
</div>
<div v-if="edit" class="pop" :style="{ 'left': mouse.left + 'px', 'top': mouse.top + 'px' }">
<div v-if="choice && !choice.floder" class="editbutton" @click="downloadFile()">下载</div>
<div class="editbutton" @click="lishiname = this.choice.name; this.renamestatu = true; this.edit = false">重命名
</div>
<div class="editbutton" @click="deletefile()">删除</div>
</div>
<div v-if="add" class="pop" :style="{ 'left': mouse.left + 'px', 'top': mouse.top + 'px' }">
<div class="editbutton" @click="addinfo.type = 'file'; this.add = false; addmoadl = true">新建文件</div>
<div class="editbutton" @click="addinfo.type = 'floder'; this.add = false; addmoadl = true">新建文件夹</div>
<div class="editbutton" @click="uploadfile = true; this.add = false;">上传文件</div>
</div>
<Modal v-model="addmoadl" :closable="false">
<Input v-model="addinfo.name" />
<template #footer>
<Button @click="closeShow()">取消</Button>
<Button type="primary" @click="send()">确认</Button>
</template>
</Modal>
<Modal v-model="uploadfile" :closable="false">
<Upload multiple type="drag" :before-upload="handleUpload" action="">
<div style="padding: 20px 0">
<Icon type="ios-cloud-upload" size="52" style="color: #3399ff"></Icon>
<p v-if="!file">请选择上传文件</p>
<div v-else style="color: #19be6b;">{{ file.name }}</div>
</div>
</Upload>
<template #footer>
<Button type="primary" @click="upload()">上传</Button>
<Button @click="uploadfile = false; this.file = null">关闭</Button>
</template>
</Modal>
</template>
<script>
export default {
props: ['isCollapsed',],
data() {
return {
page_id: 25,
edit: false,
add: false,
renamestatu: false,
file: null,
addinfo: {
type: null,
name: null,
},
uploadfile: false,
lishiname: null,
choice: null,
contents: [],
choiceTarget: null,
addmoadl: false,
mouse: {
left: 0,
top: 0
},
title: "测试用例",
path: []
}
},
methods: {
each_color(item) {
if (item == this.choice) return 'rgb(198, 226, 255)'
},
getImage(item) {
if (item.floder) return require('@/assets/floderblue.svg')
var suffix = item.name.substring(item.name.lastIndexOf(".") + 1).toLowerCase()
if (['txt', 'log', 'py', 'js', 'php', 'java', 'log', 'sh', 'csv'].indexOf(suffix) != -1) return require('@/assets/txt.svg')
if (['xlsx'].indexOf(suffix) != -1) return require('@/assets/excel.svg')
if (['jpg', 'png', 'svg', 'gif', 'psd', 'webp'].indexOf(suffix) != -1) return require('@/assets/IMAGE.svg')
if (['wav', 'flac', 'ape', 'alac', 'wavpack', 'wv', 'mp3', 'aac', 'opus'].indexOf(suffix) != -1) return require('@/assets/mp3.svg')
if (['pdf'].indexOf(suffix) != -1) return require('@/assets/pdf.svg')
if (['mp4', 'avi', 'mov', 'wmv', 'mkv', 'flv', 'webm'].indexOf(suffix) != -1) return require('@/assets/video.svg')
if (['docx', 'doc'].indexOf(suffix) != -1) return require('@/assets/word.svg')
if (['pptx', 'ppt'].indexOf(suffix) != -1) return require('@/assets/ppt.svg')
if (['rar', 'tar', 'zip', '7z', 'gz', 'bz2', 'z'].indexOf(suffix) != -1) return require('@/assets/zip-file-01.svg')
return require('@/assets/file-unknown.svg')
},
closeShow() {
this.addinfo = {
type: null,
name: null
}
this.addmoadl = false
},
handleUpload(file) {
this.file = file;
},
send() {
if (!this.addinfo.name) return this.$Message.error('请输入名称')
this.$request("post", "/apptool/case/create", { path: this.path.join('/'), name: this.addinfo.name, type: this.addinfo.type }, this, () => { this.closeShow(); this.changePath() })
},
rename() {
if (this.lishiname == this.choice.name || !this.lishiname) return this.canclerename()
this.$request("post", "/apptool/case/rename", { path: this.path.join('/'), oldname: this.choice.name, newname: this.lishiname }, this, () => { this.canclerename(); this.changePath() })
},
deletefile() {
this.$request("post", "/apptool/case/delete", { path: this.path.join('/'), name: this.choice.name }, this, () => { this.changePath() })
},
getname(name) {
let a = name.split('.')
if (a.length > 1) {
const houzhui = a.pop()
let qian = a.join("")
console.info(qian)
if (17 - houzhui.length - 1 < qian.length) {
return qian.slice(0, 17 - houzhui.length - 3) + "...." + houzhui
}
} else {
if (name.length > 17) return name.slice(0, 15) + "..."
} return name
},
upload() {
const formData = new FormData();
formData.append('file', this.file);
formData.append("path", this.path);
this.$http.post('/apptool/case/upload', formData, {
headers: {
'Content-Type': 'multipart/form-data'
}
}).then(() => {
this.changePath();
this.file = null
}).catch(() => {
this.$Message.error("上传文件失败")
})
},
downloadFile() {
window.location.href = '/api/apptool/case/download?path='+this.path.join('/')+'&name='+this.choice.name;
this.edit=false;
},
canclerename() {
this.lishiname = null;
this.renamestatu = false;
},
changechoice(event, item) {
if (item == this.choice) return
this.choice = item
this.choiceTarget = event.currentTarget
if (this.edit) this.edit = false
if (this.add) this.add = false
if (this.renamestatu) this.canclerename()
},
dbcli(item) {
if (item.floder) {
this.path.push(item.name)
this.changePath()
}
},
choicePath(item) {
if (this.path.findIndex((each) => { return each == item }) == this.path.length - 1) return
else {
this.path = this.path.slice(0, this.path.findIndex((each) => { return each == item }) + 1)
this.changePath()
}
},
gohome() {
this.path = []
this.changePath();
},
changePath() {
const relpath = this.path.join("/")
this.$request("get", "/apptool/case/filelist?path=" + relpath, null, this, (data) => { this.contents = data.data })
},
rightclick(e) {
this.mouse.left = e.pageX;
this.mouse.top = e.pageY;
if (!this.choiceTarget) return this.add = true
const target = this.choiceTarget.getBoundingClientRect()
if (this.mouse.left >= target.left && this.mouse.left <= target.left + target.width && this.mouse.top >= target.top && this.mouse.top <= target.top + target.height) {
return this.edit = true
}
this.add = true
},
leftclicek(e) {
if (this.add) this.add = false
if (this.edit) this.edit = false
this.mouse.left = e.pageX;
this.mouse.top = e.pageY;
const target = this.choiceTarget.getBoundingClientRect()
if (!(this.mouse.left >= target.left && this.mouse.left <= target.left + target.width && this.mouse.top >= target.top && this.mouse.top <= target.top + target.height)) {
if (this.renamestatu) this.canclerename()
}
}
},
created() {
this.changePath()
}
};
</script>
<style>
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.editbutton:hover {
background-color: rgb(198, 226, 255);
}
.fileBox {
display: flex;
flex-wrap: wrap;
margin-top: 20px;
min-height: 170px;
background-color: beige;
}
.file {
height: 150px;
width: 150px;
margin: 10px 10px 10px 10px;
text-align: center;
border-radius: 10px;
}
.pop {
position: absolute;
background: white;
box-shadow: 1px 1px 4px #888;
font-size: 12px;
border-radius: 5px;
z-index: 999;
}
.pop>div {
margin: 15px 10px;
cursor: pointer;
}
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment