fix(测试跟踪): 功能用例编辑附件上传问题
--bug=1023038 --user=宋昌昌 【测试跟踪】功能用例,添加缺陷-上传本地附件,上传后页面卡住 https://www.tapd.cn/55049933/s/1336520
|
@ -0,0 +1,4 @@
|
|||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M1.66634 13.9989C1.48225 13.9989 1.33301 13.8497 1.33301 13.6656V12.9989C1.33301 12.8148 1.48225 12.6656 1.66634 12.6656H14.333C14.5171 12.6656 14.6663 12.8148 14.6663 12.9989V13.6656C14.6663 13.8497 14.5171 13.9989 14.333 13.9989H1.66634Z" fill="#646A73"/>
|
||||
<path d="M4.12723 6.36788L7.33301 9.57365V1.68759C7.33301 1.49122 7.49219 1.33203 7.68856 1.33203H8.31078C8.50715 1.33203 8.66634 1.49122 8.66634 1.68759V9.58922L11.8877 6.36788C12.0265 6.22902 12.2517 6.22903 12.3905 6.36788L12.8305 6.80786C12.9693 6.94671 12.9693 7.17183 12.8305 7.31069L8.30501 11.8362C8.22382 11.9174 8.11314 11.9511 8.00746 11.9373C7.90177 11.9511 7.79109 11.9174 7.70991 11.8362L3.18442 7.31069C3.04557 7.17183 3.04557 6.94671 3.18442 6.80786L3.6244 6.36788C3.76325 6.22903 3.98838 6.22902 4.12723 6.36788Z" fill="#646A73"/>
|
||||
</svg>
|
After Width: | Height: | Size: 922 B |
|
@ -0,0 +1,3 @@
|
|||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M5.33301 2.66732V2.00065C5.33301 1.63246 5.63148 1.33398 5.99967 1.33398H9.99967C10.3679 1.33398 10.6663 1.63246 10.6663 2.00065V2.66732H14.239C14.3876 2.66732 14.4415 2.68279 14.4958 2.71184C14.5501 2.74089 14.5928 2.78352 14.6218 2.83784C14.6509 2.89216 14.6663 2.94605 14.6663 3.09463V3.57334C14.6663 3.72192 14.6509 3.7758 14.6218 3.83013C14.5928 3.88445 14.5501 3.92708 14.4958 3.95613C14.4415 3.98518 14.3876 4.00065 14.239 4.00065H13.333V14.0007C13.333 14.3688 13.0345 14.6673 12.6663 14.6673H3.33301C2.96482 14.6673 2.66634 14.3688 2.66634 14.0007V4.00065H1.76032C1.61174 4.00065 1.55785 3.98518 1.50353 3.95613C1.44921 3.92708 1.40658 3.88445 1.37753 3.83013C1.34848 3.7758 1.33301 3.72192 1.33301 3.57334V3.09463C1.33301 2.94605 1.34848 2.89216 1.37753 2.83784C1.40658 2.78352 1.44921 2.74089 1.50353 2.71184C1.55785 2.68279 1.61174 2.66732 1.76032 2.66732H5.33301ZM3.99967 4.00065V13.334H11.9997V4.00065H3.99967ZM6.33301 5.33398H6.99967C7.18377 5.33398 7.33301 5.48322 7.33301 5.66732V11.6673C7.33301 11.8514 7.18377 12.0007 6.99967 12.0007H6.33301C6.14891 12.0007 5.99967 11.8514 5.99967 11.6673V5.66732C5.99967 5.48322 6.14891 5.33398 6.33301 5.33398ZM8.99967 5.33398H9.66634C9.85044 5.33398 9.99967 5.48322 9.99967 5.66732V11.6673C9.99967 11.8514 9.85044 12.0007 9.66634 12.0007H8.99967C8.81558 12.0007 8.66634 11.8514 8.66634 11.6673V5.66732C8.66634 5.48322 8.81558 5.33398 8.99967 5.33398Z" fill="#646A73"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
|
@ -1,6 +1,6 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 2.5C4 1.94772 4.44772 1.5 5 1.5H14.7929C14.9255 1.5 15.0527 1.55268 15.1464 1.64645L19.8536 6.35355C19.9473 6.44732 20 6.5745 20 6.70711V21.5C20 22.0523 19.5523 22.5 19 22.5H5C4.44772 22.5 4 22.0523 4 21.5V2.5Z" fill="#D136D1"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 2.5C4 1.94772 4.44772 1.5 5 1.5H14.7929C14.9255 1.5 15.0527 1.55268 15.1464 1.64645L19.8536 6.35355C19.9473 6.44732 20 6.5745 20 6.70711V21.5C20 22.0523 19.5523 22.5 19 22.5H5C4.44772 22.5 4 22.0523 4 21.5V2.5Z" fill="#3370FF"/>
|
||||
<path d="M15 1.72408C15 1.6402 15.0871 1.58714 15.1464 1.64646V1.64646L19.8536 6.35357V6.35357C19.9129 6.41288 19.8598 6.50001 19.7759 6.50001H16C15.4477 6.50001 15 6.0523 15 5.50001V1.72408Z" fill="#245BDB"/>
|
||||
<path d="M15 1.72408C15 1.6402 15.0871 1.58714 15.1464 1.64646L19.8536 6.35357C19.9129 6.41288 19.8598 6.50001 19.7759 6.50001H16C15.4477 6.50001 15 6.0523 15 5.50001V1.72408Z" fill="#245BDB"/>
|
||||
<path d="M10.5347 6.53465H9.26733V7.80198H10.5347V9.06931H9.26733V10.3366H10.5347V11.604H9.26733V12.8317H10.5347V16H8V11.604H9.26733V10.3366H8V9.06931H9.26733V7.80198H8V6.53465H9.26733V5.26733H8V4H9.26733V5.26733H10.5347V6.53465Z" fill="white"/>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -0,0 +1,6 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 2.5C4 1.94772 4.44772 1.5 5 1.5H14.7929C14.9255 1.5 15.0527 1.55268 15.1464 1.64645L19.8536 6.35355C19.9473 6.44732 20 6.5745 20 6.70711V21.5C20 22.0523 19.5523 22.5 19 22.5H5C4.44772 22.5 4 22.0523 4 21.5V2.5Z" fill="#3370FF"/>
|
||||
<path d="M11.0095 16.5133L11.1055 16.9993H11.7055V14.6833H9.90554V15.3853H10.8535C10.8255 15.6853 10.7255 15.9153 10.5535 16.0753C10.3855 16.2313 10.1455 16.3093 9.83354 16.3093C9.62154 16.3093 9.44154 16.2693 9.29354 16.1893C9.14554 16.1053 9.02554 15.9953 8.93354 15.8593C8.84154 15.7233 8.77354 15.5713 8.72954 15.4033C8.68954 15.2313 8.66954 15.0553 8.66954 14.8753C8.66954 14.6873 8.68954 14.5053 8.72954 14.3293C8.77354 14.1533 8.84154 13.9973 8.93354 13.8613C9.02554 13.7213 9.14554 13.6113 9.29354 13.5313C9.44154 13.4473 9.62154 13.4053 9.83354 13.4053C10.0615 13.4053 10.2555 13.4653 10.4155 13.5853C10.5755 13.7053 10.6835 13.8853 10.7395 14.1253H11.6395C11.6155 13.8813 11.5495 13.6653 11.4415 13.4773C11.3335 13.2893 11.1955 13.1313 11.0275 13.0033C10.8635 12.8753 10.6775 12.7793 10.4695 12.7153C10.2655 12.6473 10.0535 12.6133 9.83354 12.6133C9.50554 12.6133 9.20954 12.6713 8.94554 12.7873C8.68554 12.9033 8.46554 13.0633 8.28554 13.2673C8.10554 13.4713 7.96754 13.7113 7.87154 13.9873C7.77554 14.2593 7.72754 14.5553 7.72754 14.8753C7.72754 15.1873 7.77554 15.4793 7.87154 15.7513C7.96754 16.0193 8.10554 16.2533 8.28554 16.4533C8.46554 16.6533 8.68554 16.8113 8.94554 16.9273C9.20954 17.0393 9.50554 17.0953 9.83354 17.0953C10.0415 17.0953 10.2475 17.0533 10.4515 16.9693C10.6555 16.8813 10.8415 16.7293 11.0095 16.5133Z" fill="white"/>
|
||||
<path d="M12.1903 16.2553V16.9993H15.8023V16.2073H13.4443L15.7423 13.4593V12.7153H12.3703V13.5073H14.4883L12.1903 16.2553Z" fill="white"/>
|
||||
<path d="M15 1.54492C15.054 1.56949 15.1037 1.6037 15.1464 1.64646L19.8536 6.35357C19.8963 6.39632 19.9305 6.44602 19.9551 6.50001H16C15.4477 6.50001 15 6.0523 15 5.50001V1.54492Z" fill="#245BDB"/>
|
||||
</svg>
|
After Width: | Height: | Size: 2.0 KiB |
|
@ -0,0 +1,7 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 2.5C4 1.94772 4.44772 1.5 5 1.5H14.7929C14.9255 1.5 15.0527 1.55268 15.1464 1.64645L19.8536 6.35355C19.9473 6.44732 20 6.5745 20 6.70711V21.5C20 22.0523 19.5523 22.5 19 22.5H5C4.44772 22.5 4 22.0523 4 21.5V2.5Z" fill="#3370FF"/>
|
||||
<path d="M8.92198 15.6508V12.7168H7.97998V15.6088C7.97998 15.6848 7.97598 15.7648 7.96798 15.8488C7.96398 15.9288 7.94598 16.0048 7.91398 16.0768C7.88598 16.1448 7.83798 16.2008 7.76998 16.2448C7.70198 16.2888 7.60598 16.3108 7.48198 16.3108C7.36998 16.3108 7.27798 16.2928 7.20598 16.2568C7.13798 16.2208 7.08398 16.1728 7.04398 16.1128C7.00398 16.0488 6.97598 15.9728 6.95998 15.8848C6.94398 15.7968 6.93598 15.7008 6.93598 15.5968V15.4048H6.08398V15.7768C6.08398 16.0128 6.12398 16.2148 6.20398 16.3828C6.28398 16.5468 6.38998 16.6828 6.52198 16.7908C6.65398 16.8948 6.80398 16.9708 6.97198 17.0188C7.13998 17.0708 7.31398 17.0968 7.49398 17.0968C7.81398 17.0968 8.06798 17.0488 8.25598 16.9528C8.44398 16.8528 8.58798 16.7308 8.68798 16.5868C8.78798 16.4388 8.85198 16.2808 8.87998 16.1128C8.90798 15.9448 8.92198 15.7908 8.92198 15.6508Z" fill="white"/>
|
||||
<path d="M10.828 15.3448L11.386 13.7728H11.398L11.938 15.3448H10.828ZM10.918 12.7168L9.29797 17.0008H10.246L10.582 16.0468H12.184L12.508 17.0008H13.486L11.884 12.7168H10.918Z" fill="white"/>
|
||||
<path d="M14.7974 14.6548V13.4488H15.8294C16.0454 13.4488 16.2074 13.4968 16.3154 13.5928C16.4234 13.6848 16.4774 13.8348 16.4774 14.0428C16.4774 14.2588 16.4234 14.4148 16.3154 14.5108C16.2074 14.6068 16.0454 14.6548 15.8294 14.6548H14.7974ZM13.8554 12.7168V17.0008H14.7974V15.3268H15.7394C15.9754 15.3268 16.1454 15.3788 16.2494 15.4828C16.3534 15.5868 16.4214 15.7508 16.4534 15.9748C16.4774 16.1468 16.4954 16.3268 16.5074 16.5148C16.5194 16.7028 16.5514 16.8648 16.6034 17.0008H17.5454C17.5014 16.9408 17.4674 16.8688 17.4434 16.7848C17.4234 16.6968 17.4074 16.6048 17.3954 16.5088C17.3874 16.4128 17.3814 16.3188 17.3774 16.2268C17.3734 16.1348 17.3694 16.0548 17.3654 15.9868C17.3574 15.8788 17.3414 15.7708 17.3174 15.6628C17.2974 15.5548 17.2634 15.4568 17.2154 15.3688C17.1674 15.2768 17.1054 15.1988 17.0294 15.1348C16.9534 15.0668 16.8574 15.0168 16.7414 14.9848V14.9728C16.9814 14.8768 17.1534 14.7368 17.2574 14.5528C17.3654 14.3688 17.4194 14.1508 17.4194 13.8988C17.4194 13.7348 17.3894 13.5828 17.3294 13.4428C17.2734 13.2988 17.1894 13.1728 17.0774 13.0648C16.9694 12.9568 16.8374 12.8728 16.6814 12.8128C16.5294 12.7488 16.3574 12.7168 16.1654 12.7168H13.8554Z" fill="white"/>
|
||||
<path d="M15 1.54492C15.054 1.56949 15.1037 1.6037 15.1464 1.64646L19.8536 6.35357C19.8963 6.39632 19.9305 6.44602 19.9551 6.50001H16C15.4477 6.50001 15 6.0523 15 5.50001V1.54492Z" fill="#245BDB"/>
|
||||
</svg>
|
After Width: | Height: | Size: 2.8 KiB |
|
@ -0,0 +1,7 @@
|
|||
<svg width="37" height="37" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 2.5C4 1.94772 4.44772 1.5 5 1.5H14.7929C14.9255 1.5 15.0527 1.55268 15.1464 1.64645L19.8536 6.35355C19.9473 6.44732 20 6.5745 20 6.70711V21.5C20 22.0523 19.5523 22.5 19 22.5H5C4.44772 22.5 4 22.0523 4 21.5V2.5Z" fill="#3370FF"/>
|
||||
<path d="M8.42198 15.6508V12.7168H7.47998V15.6088C7.47998 15.6848 7.47598 15.7648 7.46798 15.8488C7.46398 15.9288 7.44598 16.0048 7.41398 16.0768C7.38598 16.1448 7.33798 16.2008 7.26998 16.2448C7.20198 16.2888 7.10598 16.3108 6.98198 16.3108C6.86998 16.3108 6.77798 16.2928 6.70598 16.2568C6.63798 16.2208 6.58398 16.1728 6.54398 16.1128C6.50398 16.0488 6.47598 15.9728 6.45998 15.8848C6.44398 15.7968 6.43598 15.7008 6.43598 15.5968V15.4048H5.58398V15.7768C5.58398 16.0128 5.62398 16.2148 5.70398 16.3828C5.78398 16.5468 5.88998 16.6828 6.02198 16.7908C6.15398 16.8948 6.30398 16.9708 6.47198 17.0188C6.63998 17.0708 6.81398 17.0968 6.99398 17.0968C7.31398 17.0968 7.56798 17.0488 7.75598 16.9528C7.94398 16.8528 8.08798 16.7308 8.18798 16.5868C8.28798 16.4388 8.35198 16.2808 8.37998 16.1128C8.40798 15.9448 8.42198 15.7908 8.42198 15.6508Z" fill="white"/>
|
||||
<path d="M9.24797 12.7168V17.0008H10.13V13.9948H10.142L11.192 17.0008H11.918L12.968 13.9648H12.98V17.0008H13.862V12.7168H12.536L11.588 15.6628H11.576L10.574 12.7168H9.24797Z" fill="white"/>
|
||||
<path d="M15.7413 14.7568L14.2473 17.0008H15.3033L16.2573 15.5188L17.1933 17.0008H18.3153L16.8213 14.7628L18.1953 12.7168H17.1633L16.2933 14.0848L15.4533 12.7168H14.3613L15.7413 14.7568Z" fill="white"/>
|
||||
<path d="M15 1.54492C15.054 1.56949 15.1037 1.6037 15.1464 1.64646L19.8536 6.35357C19.8963 6.39632 19.9305 6.44602 19.9551 6.50001H16C15.4477 6.50001 15 6.0523 15 5.50001V1.54492Z" fill="#245BDB"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.8 KiB |
|
@ -0,0 +1,7 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 2.5C4 1.94772 4.44772 1.5 5 1.5H14.7929C14.9255 1.5 15.0527 1.55268 15.1464 1.64645L19.8536 6.35355C19.9473 6.44732 20 6.5745 20 6.70711V21.5C20 22.0523 19.5523 22.5 19 22.5H5C4.44772 22.5 4 22.0523 4 21.5V2.5Z" fill="#3370FF"/>
|
||||
<path d="M9.42198 15.6508V12.7168H8.47998V15.6088C8.47998 15.6848 8.47598 15.7648 8.46798 15.8488C8.46398 15.9288 8.44598 16.0048 8.41398 16.0768C8.38598 16.1448 8.33798 16.2008 8.26998 16.2448C8.20198 16.2888 8.10598 16.3108 7.98198 16.3108C7.86998 16.3108 7.77798 16.2928 7.70598 16.2568C7.63798 16.2208 7.58398 16.1728 7.54398 16.1128C7.50398 16.0488 7.47598 15.9728 7.45998 15.8848C7.44398 15.7968 7.43598 15.7008 7.43598 15.5968V15.4048H6.58398V15.7768C6.58398 16.0128 6.62398 16.2148 6.70398 16.3828C6.78398 16.5468 6.88998 16.6828 7.02198 16.7908C7.15398 16.8948 7.30398 16.9708 7.47198 17.0188C7.63998 17.0708 7.81398 17.0968 7.99398 17.0968C8.31398 17.0968 8.56798 17.0488 8.75598 16.9528C8.94398 16.8528 9.08798 16.7308 9.18798 16.5868C9.28798 16.4388 9.35198 16.2808 9.37998 16.1128C9.40798 15.9448 9.42198 15.7908 9.42198 15.6508Z" fill="white"/>
|
||||
<path d="M11.196 13.5088V17.0008H12.138V13.5088H13.422V12.7168H9.91197V13.5088H11.196Z" fill="white"/>
|
||||
<path d="M13.9159 12.7168V17.0008H16.9459V16.2088H14.8579V12.7168H13.9159Z" fill="white"/>
|
||||
<path d="M15 1.54492C15.054 1.56949 15.1037 1.6037 15.1464 1.64646L19.8536 6.35357C19.8963 6.39632 19.9305 6.44602 19.9551 6.50001H16C15.4477 6.50001 15 6.0523 15 5.50001V1.54492Z" fill="#245BDB"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.6 KiB |
|
@ -3,3 +3,4 @@
|
|||
<path d="M15 1.54492C15.054 1.56949 15.1037 1.6037 15.1464 1.64646L19.8536 6.35357C19.8963 6.39632 19.9305 6.44602 19.9551 6.50001H16C15.4477 6.50001 15 6.0523 15 5.50001V1.54492Z" fill="#D83931"/>
|
||||
<path d="M17.6081 15.2316C17.3598 14.9368 16.8507 14.7934 16.0516 14.7934C15.5871 14.7934 15.026 14.8425 14.383 14.9392C12.6266 13.6551 12.1362 12.2384 12.1362 12.2384C12.1362 12.2384 12.4362 11.4747 12.4552 10.2274C12.4672 9.43896 12.3451 8.9071 12.0297 8.59811C11.9071 8.478 11.7014 8.40039 11.5057 8.40039C11.3529 8.40039 11.2099 8.44525 11.0927 8.53102C10.1796 9.19913 11.1765 12.3487 11.2032 12.4326C10.7723 13.4931 10.2295 14.6165 9.67082 15.6037C9.4893 15.9244 9.507 15.8994 9.35396 16.1602C9.35396 16.1602 7.80886 16.8859 7.05939 17.7773C6.63594 18.281 6.58241 18.621 6.60489 18.8801L6.60545 18.8858C6.64112 19.1909 7.03175 19.4688 7.42501 19.4688C7.44132 19.4688 7.45773 19.4683 7.4738 19.4673C7.87348 19.4426 8.31146 19.1586 8.81276 18.5991C9.14364 18.2297 9.57364 17.5798 10.0914 16.6668C11.5769 16.2442 12.8842 15.9432 13.9797 15.7716C14.7832 16.204 15.9785 16.6936 16.7922 16.6936C17.0651 16.6936 17.2847 16.638 17.4448 16.5282C17.6363 16.397 17.7177 16.2334 17.7682 15.9306C17.8188 15.6278 17.7484 15.3982 17.6081 15.2316ZM15.8727 15.6003C16.5869 15.6003 16.9736 15.7041 17.1722 15.7912C17.2335 15.8181 17.278 15.844 17.3097 15.8657C17.2537 15.9014 17.1436 15.9466 16.9446 15.9466C16.6147 15.9466 16.1816 15.8314 15.6534 15.6034C15.7285 15.6013 15.8017 15.6003 15.8727 15.6003ZM11.6402 9.03253C11.6407 9.03159 11.6413 9.03062 11.6419 9.02961C11.7951 9.11028 11.8666 9.67679 11.8522 10.0053C11.8329 10.4461 11.8284 10.6164 11.751 10.8872C11.5412 10.3226 11.5263 9.30775 11.6402 9.03253ZM11.6962 13.5014C12.0565 14.0864 12.5908 14.7201 13.1055 15.1725C12.1008 15.3848 11.1362 15.651 10.536 15.8581C11.1794 14.7595 11.654 13.6103 11.6962 13.5014ZM7.56119 18.5462C7.64836 18.401 7.8865 18.1197 8.49046 17.5757C8.07648 18.1983 7.7724 18.5373 7.4639 18.7488C7.48944 18.6821 7.52158 18.6122 7.56119 18.5462Z" fill="white"/>
|
||||
</svg>
|
||||
|
||||
|
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
@ -1,4 +1,4 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<svg width="37" height="37" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4 2.5C4 1.94772 4.44772 1.5 5 1.5H14.7929C14.9255 1.5 15.0527 1.55268 15.1464 1.64645L19.8536 6.35355C19.9473 6.44732 20 6.5745 20 6.70711V21.5C20 22.0523 19.5523 22.5 19 22.5H5C4.44772 22.5 4 22.0523 4 21.5V2.5Z" fill="#3370FF"/>
|
||||
<path d="M15 1.54492C15.054 1.56949 15.1037 1.6037 15.1464 1.64646L19.8536 6.35357C19.8963 6.39632 19.9305 6.44602 19.9551 6.50001H16C15.4477 6.50001 15 6.0523 15 5.50001V1.54492Z" fill="#245BDB"/>
|
||||
<path d="M15.1209 17.9996L17.4129 9.43164H16.2729L14.5329 16.5596H14.5089L12.6129 9.43164H11.3769L9.45687 16.5596H9.43287L7.75287 9.43164H6.58887L8.78487 17.9996H9.97287L11.9529 10.7996H11.9769L13.9329 17.9996H15.1209Z" fill="white"/>
|
||||
|
|
Before Width: | Height: | Size: 783 B After Width: | Height: | Size: 783 B |
|
@ -0,0 +1,8 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 2.5C4 1.94772 4.44772 1.5 5 1.5H14.7929C14.9255 1.5 15.0527 1.55268 15.1464 1.64645L19.8536 6.35355C19.9473 6.44732 20 6.5745 20 6.70711V21.5C20 22.0523 19.5523 22.5 19 22.5H5C4.44772 22.5 4 22.0523 4 21.5V2.5Z" fill="#D136D1"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 2.5C4 1.94772 4.44772 1.5 5 1.5H14.7929C14.9255 1.5 15.0527 1.55268 15.1464 1.64645L19.8536 6.35355C19.9473 6.44732 20 6.5745 20 6.70711V21.5C20 22.0523 19.5523 22.5 19 22.5H5C4.44772 22.5 4 22.0523 4 21.5V2.5Z" fill="#3370FF"/>
|
||||
<path d="M15 1.54492C15.054 1.56949 15.1037 1.6037 15.1464 1.64646L19.8536 6.35357C19.8963 6.39632 19.9305 6.44602 19.9551 6.50001H16C15.4477 6.50001 15 6.0523 15 5.50001V1.54492Z" fill="#245BDB"/>
|
||||
<path d="M7.1377 16.2568V17.0008H10.7497V16.2088H8.3917L10.6897 13.4608V12.7168H7.3177V13.5088H9.4357L7.1377 16.2568Z" fill="white"/>
|
||||
<path d="M11.3043 12.7168V17.0008H12.2463V12.7168H11.3043Z" fill="white"/>
|
||||
<path d="M14.0159 14.7328V13.4488H14.7479C14.8559 13.4488 14.9599 13.4568 15.0599 13.4728C15.1599 13.4888 15.2479 13.5208 15.3239 13.5688C15.3999 13.6128 15.4599 13.6768 15.5039 13.7608C15.5519 13.8448 15.5759 13.9548 15.5759 14.0908C15.5759 14.2268 15.5519 14.3368 15.5039 14.4208C15.4599 14.5048 15.3999 14.5708 15.3239 14.6188C15.2479 14.6628 15.1599 14.6928 15.0599 14.7088C14.9599 14.7248 14.8559 14.7328 14.7479 14.7328H14.0159ZM13.0739 12.7168V17.0008H14.0159V15.4648H15.0059C15.2739 15.4648 15.5019 15.4268 15.6899 15.3508C15.8779 15.2708 16.0299 15.1668 16.1459 15.0388C16.2659 14.9108 16.3519 14.7648 16.4039 14.6008C16.4599 14.4328 16.4879 14.2628 16.4879 14.0908C16.4879 13.9148 16.4599 13.7448 16.4039 13.5808C16.3519 13.4168 16.2659 13.2708 16.1459 13.1428C16.0299 13.0148 15.8779 12.9128 15.6899 12.8368C15.5019 12.7568 15.2739 12.7168 15.0059 12.7168H13.0739Z" fill="white"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.9 KiB |
|
@ -0,0 +1,3 @@
|
|||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M14.0021 1.77734C14.3396 1.77734 14.6186 2.02815 14.6627 2.35355L14.6688 2.44401V13.5614C14.6688 13.8989 14.418 14.1779 14.0926 14.222L14.0021 14.2281H9.89167C9.73059 14.2281 9.59619 14.1138 9.56511 13.962L9.55834 13.8948V13.2281C9.55834 13.067 9.6726 12.9326 9.82449 12.9015L9.89167 12.8948H13.3355V3.11068H4.40563L4.40652 6.11325C4.40652 6.29735 4.25728 6.44659 4.07319 6.44659H3.40652C3.22243 6.44659 3.07319 6.29735 3.07319 6.11325V2.11068C3.07319 1.94959 3.18745 1.8152 3.33934 1.78412L3.40652 1.77734H14.0021ZM6.64113 7.59282C6.73925 7.59282 6.83418 7.6276 6.90908 7.69097L9.70393 10.0558C9.87882 10.2038 9.90063 10.4656 9.75265 10.6405C9.73779 10.658 9.72149 10.6743 9.70393 10.6892L6.90908 13.0541C6.73419 13.202 6.47245 13.1802 6.32447 13.0053C6.26109 12.9304 6.22632 12.8355 6.22632 12.7374L6.22681 11.1164L2.11165 11.1164C1.92756 11.1164 1.77832 10.9672 1.77832 10.7831V10.1164C1.77832 9.93231 1.92756 9.78307 2.11165 9.78307L6.22681 9.78305L6.22632 8.00764C6.22632 7.77854 6.41204 7.59282 6.64113 7.59282Z" fill="#646A73"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
|
@ -0,0 +1,15 @@
|
|||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_635_193612)">
|
||||
<path d="M1.236 0.765595L0.764618 1.23698C0.63445 1.36714 0.63445 1.57819 0.764618 1.70836L13.9633 14.907C14.0934 15.0372 14.3045 15.0372 14.4347 14.907L14.906 14.4356C15.0362 14.3055 15.0362 14.0944 14.906 13.9642L1.70738 0.765595C1.57721 0.635427 1.36617 0.635427 1.236 0.765595Z" fill="#646A73"/>
|
||||
<path d="M9.77789 6.95044V3.33469C9.77789 3.2256 9.69928 3.13486 9.59561 3.11605L9.55566 3.11247H5.93992L4.60658 1.77913H9.55566C10.3861 1.77913 11.0646 2.42992 11.1089 3.24934L11.1112 3.33469V8.28377L9.77789 6.95044Z" fill="#646A73"/>
|
||||
<path d="M0.888997 3.7184V8.66802L0.891299 8.75337C0.935608 9.57279 1.61408 10.2236 2.44455 10.2236H4.17789C4.32516 10.2236 4.44455 10.1042 4.44455 9.95691V9.15691C4.44455 9.00964 4.32516 8.89025 4.17789 8.89025H2.44455L2.40461 8.88667C2.30094 8.86785 2.22233 8.77712 2.22233 8.66802V5.05173L0.888997 3.7184Z" fill="#646A73"/>
|
||||
<path d="M5.33344 8.16285V12.668L5.33574 12.7534C5.38005 13.5728 6.05852 14.2236 6.889 14.2236H11.3942L10.0608 12.8902H6.889L6.84905 12.8867C6.74539 12.8678 6.66677 12.7771 6.66677 12.668V9.49618L5.33344 8.16285Z" fill="#646A73"/>
|
||||
<path d="M8.60658 5.77913L8.889 6.06155V6.0458C8.889 5.89853 8.76961 5.77913 8.62233 5.77913H8.60658Z" fill="#646A73"/>
|
||||
<path d="M15.5546 12.7271L14.2223 11.3949V7.33469C14.2223 7.2256 14.1437 7.13486 14.0401 7.11605L14.0001 7.11247H12.2668C12.1195 7.11247 12.0001 6.99308 12.0001 6.8458V6.0458C12.0001 5.89853 12.1195 5.77913 12.2668 5.77913H14.0001C14.8306 5.77913 15.5091 6.42992 15.5534 7.24934L15.5557 7.33469V12.668C15.5557 12.6878 15.5553 12.7075 15.5546 12.7271Z" fill="#646A73"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_635_193612">
|
||||
<rect width="16" height="16" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.8 KiB |
|
@ -0,0 +1,3 @@
|
|||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M7.98945 12.332C10.1481 12.332 12.1468 10.959 13.9996 7.99004C12.1944 5.03174 10.2003 3.66536 7.98945 3.66536C5.77935 3.66536 3.79241 5.03112 1.9996 7.99002C3.84004 10.9596 5.83157 12.332 7.98945 12.332ZM1.00123 8.59206C0.786561 8.22665 0.785108 7.77238 0.994814 7.4041C1.00229 7.39098 1.00945 7.37848 1.01623 7.36671C2.95161 4.01026 5.27578 2.33203 7.98874 2.33203C10.7128 2.33203 13.0513 4.02398 15.0044 7.40787C15.0102 7.418 15.0164 7.42871 15.0228 7.43992C15.2203 7.78592 15.2188 8.21303 15.0167 8.55641C13.0122 11.9624 10.6695 13.6654 7.98874 13.6654C5.31735 13.6654 2.98818 11.9743 1.00123 8.59206ZM7.9996 10.6654C6.52684 10.6654 5.33293 9.47146 5.33293 7.9987C5.33293 6.52594 6.52684 5.33203 7.9996 5.33203C9.47236 5.33203 10.6663 6.52594 10.6663 7.9987C10.6663 9.47146 9.47236 10.6654 7.9996 10.6654ZM7.9996 9.33203C8.73598 9.33203 9.33293 8.73508 9.33293 7.9987C9.33293 7.26232 8.73598 6.66536 7.9996 6.66536C7.26322 6.66536 6.66627 7.26232 6.66627 7.9987C6.66627 8.73508 7.26322 9.33203 7.9996 9.33203Z" fill="#646A73"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
|
@ -299,10 +299,10 @@ export function byteToSize(bytes) {
|
|||
return "0 B";
|
||||
}
|
||||
let k = 1024,
|
||||
sizes = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"],
|
||||
sizeUnits = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"],
|
||||
i = Math.floor(Math.log(bytes) / Math.log(k));
|
||||
|
||||
return (bytes / Math.pow(k, i)).toPrecision(3) + " " + sizes[i];
|
||||
return Math.round(bytes / Math.pow(1024, i)).toFixed(1) + " " + sizeUnits[i];
|
||||
}
|
||||
|
||||
export function sizeToByte(size) {
|
||||
|
|
|
@ -208,6 +208,12 @@ button.el-button.el-button--default.el-button--small.el-button--primary {
|
|||
color: #FFFFFF!important;
|
||||
}
|
||||
|
||||
button.el-button.el-button--default.el-button--small.el-button--primary:hover {
|
||||
color: #FFFFFF!important;
|
||||
background: rgb(147, 96, 159);
|
||||
border-color: rgb(147, 96, 159);
|
||||
}
|
||||
|
||||
button.el-button.el-button--default.el-button--small.el-button--danger {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<el-popover
|
||||
ref="popover"
|
||||
placement="right"
|
||||
trigger="click"
|
||||
trigger="hover"
|
||||
popper-class="attachment-popover"
|
||||
:visible-arrow="false"
|
||||
>
|
||||
|
@ -25,8 +25,8 @@
|
|||
margin-top: 8px;
|
||||
line-height: 32px;
|
||||
text-align: center;
|
||||
magin-left: 1px;
|
||||
magin-right: 1px;
|
||||
margin-left: 1px;
|
||||
margin-right: 1px;
|
||||
"
|
||||
>
|
||||
<div class="title" style="letter-spacing: -0.1px; color: #1f2329">
|
||||
|
@ -89,7 +89,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</el-popover>
|
||||
<el-button v-popover:popover icon="el-icon-plus" size="small">{{
|
||||
<el-button v-popover:popover icon="el-icon-plus" size="small" class="add-attachment">{{
|
||||
$t("case.add_attachment")
|
||||
}}</el-button>
|
||||
<div class="opt-tip">{{ $t("case.file_size_limit") }}</div>
|
||||
|
@ -224,7 +224,6 @@ export default {
|
|||
type: getTypeByFileName(file.name),
|
||||
isLocal: true,
|
||||
});
|
||||
|
||||
if (this.editable) {
|
||||
// 新增上传
|
||||
this.uploadFiles.push(file);
|
||||
|
@ -249,27 +248,29 @@ export default {
|
|||
self.cancelFileToken,
|
||||
progressCallback
|
||||
)
|
||||
.then((response) => {
|
||||
// 成功回调
|
||||
progress = 100;
|
||||
param.onSuccess(response);
|
||||
progressCallback({ progress, status: "success" });
|
||||
self.cancelFileToken.forEach((token, index, array) => {
|
||||
if (token.name === file.name) {
|
||||
array.splice(token, 1);
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch(({ error }) => {
|
||||
// 失败回调
|
||||
progress = 100;
|
||||
progressCallback({ progress, status: "error" });
|
||||
self.cancelFileToken.forEach((token, index, array) => {
|
||||
if (token.name === file.name) {
|
||||
array.splice(token, 1);
|
||||
}
|
||||
});
|
||||
.then((response) => {
|
||||
// 成功回调
|
||||
progress = 100;
|
||||
param.onSuccess(response);
|
||||
progressCallback({ progress, status: "success" });
|
||||
this.$success(this.$t('attachment.upload_success'), false)
|
||||
self.cancelFileToken.forEach((token, index, array) => {
|
||||
if (token.name === file.name) {
|
||||
array.splice(token, 1);
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch(({ error }) => {
|
||||
// 失败回调
|
||||
progress = 100;
|
||||
progressCallback({ progress, status: "error" });
|
||||
this.$success(this.$t('attachment.upload_error'), false)
|
||||
self.cancelFileToken.forEach((token, index, array) => {
|
||||
if (token.name === file.name) {
|
||||
array.splice(token, 1);
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
showProgress(file, params) {
|
||||
const { progress, status } = params;
|
||||
|
@ -283,7 +284,7 @@ export default {
|
|||
this.tableData = [...arr];
|
||||
},
|
||||
handleExceed(files, fileList) {
|
||||
this.$error(this.$t("load_test.file_size_limit"));
|
||||
this.$error(this.$t("load_test.file_size_limit"), false);
|
||||
},
|
||||
handleSuccess(response, file, fileList) {
|
||||
let readyFiles = fileList.filter((item) => item.status === "ready");
|
||||
|
@ -366,7 +367,7 @@ export default {
|
|||
metadataRefIds: this.unRelateFiles,
|
||||
};
|
||||
unrelatedAttachment(data).then(() => {
|
||||
this.$success(this.$t("commons.unrelated_success"));
|
||||
this.$success(this.$t("commons.unrelated_success"), false);
|
||||
this.result.loading = false;
|
||||
this.getFileMetaData(this.issueId);
|
||||
});
|
||||
|
@ -509,4 +510,9 @@ export default {
|
|||
letter-spacing: -0.1px;
|
||||
color: #1f2329;
|
||||
}
|
||||
|
||||
.add-attachment:focus {
|
||||
border-color: #DCDFE6;
|
||||
background-color: whitesmoke;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -40,7 +40,9 @@
|
|||
<div class="options">
|
||||
<!-- 预览 -->
|
||||
<div class="into opt-item" v-if="enablePreview" @click="handlePreview">
|
||||
<img src="/assets/module/figma/icon_visible_outlined.svg" alt=""/>
|
||||
<el-tooltip class="item" effect="dark" :content="$t('attachment.preview')" placement="top-start">
|
||||
<img src="/assets/module/figma/icon_visible_outlined_disable.svg"/>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<!-- 下载 -->
|
||||
<div
|
||||
|
@ -48,20 +50,27 @@
|
|||
v-if="enableDownload"
|
||||
@click="handleDownload"
|
||||
>
|
||||
<img src="/assets/module/figma/icon_bottom-align_outlined.svg" alt="" />
|
||||
<el-tooltip class="item" effect="dark" :content="$t('attachment.download')" placement="top-start">
|
||||
<img src="/assets/module/figma/icon_bottom-align_outlined_disable.svg" alt="" />
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<!-- 转储 -->
|
||||
<div class="retry opt-item" v-if="enableRetry" @click="handleRetry">
|
||||
<!-- <img src="/assets/figma/icon_refresh_outlined" alt="" /> -->
|
||||
<img src="/assets/module/figma/icon_into-item_outlined.svg" alt="" />
|
||||
<el-tooltip class="item" effect="dark" :content="$t('attachment.dump')" placement="top-start">
|
||||
<img src="/assets/module/figma/icon_into-item_outlined_disable.svg" alt="" />
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<!-- 取消关联 -->
|
||||
<div class="unLink opt-item" v-if="enableUnLink" @click="handleUnLink">
|
||||
<img src="/assets/module/figma/icon_unlink_outlined.svg" alt="" />
|
||||
<el-tooltip class="item" effect="dark" :content="$t('attachment.unRelate')" placement="top-start">
|
||||
<img src="/assets/module/figma/icon_unlink_outlined_disable.svg" alt="" />
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<!-- 删除 -->
|
||||
<div class="delete opt-item" v-if="enableDelete" @click="handleDelete">
|
||||
<img src="/assets/module/figma/icon_delete-trash_outlined.svg" alt="" />
|
||||
<el-tooltip class="item" effect="dark" :content="$t('attachment.delete')" placement="top-start">
|
||||
<img src="/assets/module/figma/icon_delete-trash_outlined_disable.svg" alt="" />
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -158,7 +167,13 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
uploadSize() {
|
||||
return byteToSize(sizeToByte(this.fileItem.size) * this.fileItem.progress / 100)
|
||||
if (this.fileItem.progress === 0) {
|
||||
return '0 B'
|
||||
}
|
||||
if (this.fileItem.progress === 100) {
|
||||
return this.fileItem.size;
|
||||
}
|
||||
return byteToSize(sizeToByte(this.fileItem.size) * this.fileItem.progress / 100);
|
||||
},
|
||||
enableUnLink() {
|
||||
return (
|
||||
|
@ -262,9 +277,11 @@ export default {
|
|||
src = "icon_file-text_colorful";
|
||||
break;
|
||||
case "xlsx":
|
||||
case "xls":
|
||||
src = "icon_file-excel_colorful";
|
||||
break;
|
||||
case "word":
|
||||
case "docx":
|
||||
case "doc":
|
||||
src = "icon_file-word_colorful";
|
||||
break;
|
||||
case "pdf":
|
||||
|
@ -274,6 +291,7 @@ export default {
|
|||
src = "icon_file-xmind_colorful";
|
||||
break;
|
||||
case "ppt":
|
||||
case "pptx":
|
||||
src = "icon_file-ppt_colorful";
|
||||
break;
|
||||
case "sketch":
|
||||
|
@ -291,19 +309,28 @@ export default {
|
|||
case "sql":
|
||||
src = "icon_file-sql_colorful";
|
||||
break;
|
||||
|
||||
// 视频资源
|
||||
case "mp4":
|
||||
case "flv":
|
||||
case "mp3":
|
||||
src = "icon_file-vedio_colorful";
|
||||
src = "icon_file-video_colorful";
|
||||
break;
|
||||
case "zip":
|
||||
src = "icon_file-zip_colorful";
|
||||
break;
|
||||
case "jar":
|
||||
src = "icon_file-jar_colorful";
|
||||
break;
|
||||
case "jtl":
|
||||
src = "icon_file-jtl_colorful"
|
||||
break;
|
||||
case "gz":
|
||||
case "tar":
|
||||
src = "icon_file-gz_colorful"
|
||||
break;
|
||||
case "jmx":
|
||||
src = "icon_file-jmx_colorful";
|
||||
break;
|
||||
case "tar":
|
||||
src = "icon_file-all-zip_colorful";
|
||||
break;
|
||||
default:
|
||||
|
@ -329,6 +356,7 @@ export default {
|
|||
border-color: #f54a45 !important;
|
||||
}
|
||||
.atta-container {
|
||||
cursor: pointer;
|
||||
width: px2rem(480);
|
||||
height: px2rem(58);
|
||||
display: flex;
|
||||
|
@ -338,7 +366,7 @@ export default {
|
|||
border-radius: 4px;
|
||||
.icon {
|
||||
margin-top: px2rem(11.5);
|
||||
margin-left: px2rem(18.67);
|
||||
margin-left: px2rem(12.67);
|
||||
width: px2rem(37);
|
||||
margin-right: px2rem(14.67);
|
||||
img {
|
||||
|
@ -365,6 +393,7 @@ export default {
|
|||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: px2rem(280);
|
||||
}
|
||||
}
|
||||
.wait-upload {
|
||||
|
@ -410,8 +439,14 @@ export default {
|
|||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
img {
|
||||
width: 13.33px;
|
||||
height: 13.33px;
|
||||
width: 15.33px;
|
||||
height: 15.33px;
|
||||
}
|
||||
img:hover {
|
||||
background-color: rgba(31, 35, 41, 0.1);
|
||||
border-radius: 4px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.opt-item {
|
||||
|
|
|
@ -256,8 +256,8 @@ export default {
|
|||
}
|
||||
|
||||
.file-drawer .table-data .ms-table {
|
||||
height: px2rem(519) !important;
|
||||
max-height: px2rem(519) !important;
|
||||
height: px2rem(420) !important;
|
||||
max-height: px2rem(430) !important;
|
||||
}
|
||||
.empty-file {
|
||||
height: 100%;
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
:condition="condition"
|
||||
:hidePopover="true"
|
||||
@refresh="getProjectFiles"
|
||||
@callBackSelect="callBackSelect"
|
||||
@callBackSelectAll="callBackSelectAll"
|
||||
ref="table"
|
||||
>
|
||||
<ms-table-column
|
||||
|
@ -121,8 +123,8 @@
|
|||
</div>
|
||||
<div class="options">
|
||||
<div class="options-btn">
|
||||
<div class="check-row" v-if="selectRows">
|
||||
<div class="label">{{$t('case.selected')}} {{ selectRowsCount }} {{$t('case.strip')}}</div>
|
||||
<div class="check-row" v-if="selectCounts > 0">
|
||||
<div class="label">{{$t('case.selected')}} {{ selectCounts }} {{$t('case.strip')}}</div>
|
||||
<div class="clear" @click="clearSelect">{{$t('case.clear')}}</div>
|
||||
</div>
|
||||
<div class="cancel">
|
||||
|
@ -134,7 +136,7 @@
|
|||
<el-button
|
||||
size="small"
|
||||
v-prevent-re-click
|
||||
:type="selectRows ? 'primary' : 'info'"
|
||||
:type="selectCounts > 0 ? 'primary' : 'info'"
|
||||
@click="submit"
|
||||
@keydown.enter.native.prevent
|
||||
>
|
||||
|
@ -144,111 +146,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <el-card v-loading="result" class="table-card">
|
||||
<template v-slot:header>
|
||||
<ms-table-header
|
||||
title=""
|
||||
:condition.sync="condition"
|
||||
@search="getProjectFiles"
|
||||
:show-create="false"
|
||||
:show-thumbnail="false"
|
||||
@change="change"
|
||||
>
|
||||
</ms-table-header>
|
||||
</template>
|
||||
<ms-table
|
||||
v-loading="data.loading"
|
||||
class="basic-config"
|
||||
:screen-height="height"
|
||||
:data="metadataArr"
|
||||
:condition="condition"
|
||||
:hidePopover="true"
|
||||
@refresh="getProjectFiles"
|
||||
ref="table"
|
||||
>
|
||||
<ms-table-column
|
||||
prop="name"
|
||||
show-overflow-tooltip
|
||||
:width="100"
|
||||
:label="$t('load_test.file_name')"
|
||||
>
|
||||
</ms-table-column>
|
||||
<ms-table-column
|
||||
sortable
|
||||
prop="type"
|
||||
:filters="typeFilters"
|
||||
:label="$t('load_test.file_type')"
|
||||
>
|
||||
</ms-table-column>
|
||||
|
||||
<ms-table-column prop="description" :label="$t('group.description')">
|
||||
</ms-table-column>
|
||||
|
||||
<ms-table-column
|
||||
prop="tags"
|
||||
min-width="60px"
|
||||
:show-overflow-tooltip="false"
|
||||
:label="$t('commons.tag')"
|
||||
>
|
||||
<template v-slot:default="scope">
|
||||
<el-tooltip class="item" effect="dark" placement="top">
|
||||
<div
|
||||
v-html="getTagToolTips(scope.row.tags)"
|
||||
slot="content"
|
||||
></div>
|
||||
<div class="oneLine">
|
||||
<ms-tag
|
||||
v-for="(itemName, index) in scope.row.tags"
|
||||
:key="index"
|
||||
:show-tooltip="
|
||||
scope.row.tags.length === 1 && itemName.length * 12 <= 20
|
||||
"
|
||||
:content="itemName"
|
||||
type="success"
|
||||
effect="plain"
|
||||
class="ms-tags"
|
||||
/>
|
||||
</div>
|
||||
</el-tooltip>
|
||||
<span />
|
||||
</template>
|
||||
</ms-table-column>
|
||||
|
||||
<ms-table-column
|
||||
sortable
|
||||
prop="createUser"
|
||||
:label="$t('commons.create_user')"
|
||||
>
|
||||
</ms-table-column>
|
||||
<ms-table-column
|
||||
sortable
|
||||
prop="updateUser"
|
||||
:label="$t('ui.update_user')"
|
||||
>
|
||||
</ms-table-column>
|
||||
|
||||
<ms-table-column
|
||||
sortable
|
||||
:label="$t('commons.update_time')"
|
||||
prop="updateTime"
|
||||
>
|
||||
<template v-slot="scope">
|
||||
<span>{{ scope.row.updateTime | datetimeFormat }}</span>
|
||||
</template>
|
||||
</ms-table-column>
|
||||
</ms-table>
|
||||
|
||||
<home-pagination
|
||||
:change="getProjectFiles"
|
||||
:current-page.sync="currentPage"
|
||||
:page-size.sync="pageSize"
|
||||
:total="total"
|
||||
layout="total, prev, pager, next, sizes, jumper"
|
||||
style="margin-top: 19px"
|
||||
/>
|
||||
</el-card>
|
||||
|
||||
<ms-dialog-footer @cancel="visible = false" @confirm="submit" /> -->
|
||||
</div>
|
||||
<div class="empty-file">
|
||||
<div class="info-wrap" style="text-align: center; margin-top: 226px">
|
||||
|
@ -326,42 +223,31 @@ export default {
|
|||
typeFilters: [],
|
||||
showView: "list",
|
||||
visible: false,
|
||||
isCheckRow: false,
|
||||
selectCounts: 0
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getTypes();
|
||||
this.getProjectFiles();
|
||||
},
|
||||
computed: {
|
||||
selectRows() {
|
||||
return (
|
||||
this.$refs.table &&
|
||||
this.$refs.table.selectRows &&
|
||||
this.$refs.table.selectRows.size > 0
|
||||
);
|
||||
},
|
||||
selectRowsCount() {
|
||||
if (
|
||||
this.$refs.table &&
|
||||
this.$refs.table.selectRows &&
|
||||
this.$refs.table.selectRows.size > 0
|
||||
) {
|
||||
return this.$refs.table.selectRows.size;
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
callBackSelect(selection) {
|
||||
this.selectCounts = this.$refs.table.selectDataCounts;
|
||||
},
|
||||
callBackSelectAll(selection) {
|
||||
this.selectCounts = this.$refs.table.selectDataCounts;
|
||||
},
|
||||
clearSelect() {
|
||||
this.$refs.table.clearSelection();
|
||||
this.selectCounts = 0;
|
||||
},
|
||||
submit() {
|
||||
if (this.$refs.table.selectRows && this.$refs.table.selectRows.size > 0) {
|
||||
this.$emit("checkRows", this.$refs.table.selectRows);
|
||||
this.visible = false;
|
||||
} else {
|
||||
this.$warning("请选择一条数据");
|
||||
if (this.selectCounts === 0) {
|
||||
return;
|
||||
}
|
||||
this.$emit("checkRows", this.$refs.table.selectRows);
|
||||
this.visible = false;
|
||||
},
|
||||
changeList(pageSize, currentPage) {
|
||||
this.currentPage = currentPage;
|
||||
|
@ -376,8 +262,10 @@ export default {
|
|||
},
|
||||
close() {
|
||||
this.visible = false;
|
||||
this.clearSelect();
|
||||
},
|
||||
open() {
|
||||
this.getProjectFiles();
|
||||
this.visible = true;
|
||||
},
|
||||
myFile() {
|
||||
|
|
|
@ -142,6 +142,16 @@ const message = {
|
|||
current_display_history_version: "Current display history version",
|
||||
compare_with_the_latest_version: "Compare with the latest version",
|
||||
view_the_latest_version: "View the latest version",
|
||||
},
|
||||
attachment: {
|
||||
preview: "Preview",
|
||||
download: "Download",
|
||||
dump: "Dump",
|
||||
unRelate: "Unlink",
|
||||
delete: "Delete",
|
||||
delete_confirm_tips: "Delete This Item ?",
|
||||
upload_success: "Upload success",
|
||||
upload_error: "Upload error"
|
||||
}
|
||||
}
|
||||
export default {
|
||||
|
|
|
@ -142,8 +142,17 @@ const message = {
|
|||
current_display_history_version: "当前展示历史版本",
|
||||
compare_with_the_latest_version: "与最新版本比较",
|
||||
view_the_latest_version: "查看最新版本",
|
||||
|
||||
},
|
||||
attachment: {
|
||||
preview: "预览",
|
||||
download: "下载",
|
||||
dump: "转存",
|
||||
unRelate: "取消关联",
|
||||
delete: "删除",
|
||||
delete_confirm_tips: "是否删除此项?",
|
||||
upload_success: "上传成功",
|
||||
upload_error: "上传失败"
|
||||
}
|
||||
};
|
||||
|
||||
export default {
|
||||
|
|
|
@ -142,6 +142,16 @@ const message = {
|
|||
current_display_history_version: "當前展示歷史版本",
|
||||
compare_with_the_latest_version: "與最新版本比較",
|
||||
view_the_latest_version: "查看最新版本",
|
||||
},
|
||||
attachment: {
|
||||
preview: "預覽",
|
||||
download: "下載",
|
||||
dump: "轉存",
|
||||
unRelate: "取消關聯",
|
||||
delete: "刪除",
|
||||
delete_confirm_tips: "是否刪除此項?",
|
||||
upload_success: "上傳成功",
|
||||
upload_error: "上傳失敗"
|
||||
}
|
||||
}
|
||||
|
||||
|
|