Procházet zdrojové kódy

Merge branch 'feature_20260506_增加照片上传进度UI效果' into uat(dev)

zhujindu před 2 dny
rodič
revize
d7e83ab1e5
1 změnil soubory, kde provedl 2 přidání a 13 odebrání
  1. 2 13
      src/components/uploadVNormalTaskPhoto.vue

+ 2 - 13
src/components/uploadVNormalTaskPhoto.vue

@@ -46,7 +46,7 @@
             </div>
           </div>
           <div class="ring-info">
-            <div class="ring-filename" id="d2name">-</div>
+            <div class="ring-filename" id="d2name"></div>
             <div class="ring-list" id="d2dots">
               <div
                 v-for="(value, index) in uploadImgTotal"
@@ -471,16 +471,6 @@ export default {
       if (this.d2running) return;
       this.d2running = true;
       this.d2count = 0;
-      // const area = document.getElementById('d2area');
-      // area.style.display = 'flex';
-      // const dots = document.getElementById('d2dots');
-      // dots.innerHTML = '';
-      // for (let i = 0; i < this.uploadImgTotal; i++) {
-      //   const d = document.createElement('div');
-      //   d.className = 'ring-dot';
-      //   d.id = `dot${i}`;
-      //   dots.appendChild(d);
-      // }
       this.runD2(1000);
     },
     runD2(delay) {
@@ -506,14 +496,13 @@ export default {
           const offset = 251.2 * (1 - this.d2count / this.uploadImgTotal);
           document.getElementById('d2ring').style.strokeDashoffset = offset;
           document.getElementById('d2sub').textContent = `${this.d2count}/${this.uploadImgTotal}`;
-          if (this.d2count >= Math.floor(this.uploadImgTotal * 0.7)) {
+          if (this.d2count >= Math.floor(this.uploadImgTotal * 0.8)) {
             clearTimeout(this.d2timer);
             return;
           }
           this.runD2(delay);
         }, delay);
       } else {
-        document.getElementById(`dot${this.d2count - 1}`).className = 'ring-dot done';
         document.getElementById(`dot${this.d2count}`).className = 'ring-dot active';
         document.getElementById('d2name').textContent = '正在上传。。。';
         document.getElementById('d2pct').textContent = '30%';