Browse Source

修改导入导出历史进度显示

zhuliu 1 năm trước cách đây
mục cha
commit
4b6843847a
1 tập tin đã thay đổi với 7 bổ sung2 xóa
  1. 7 2
      src/views/components/import/task/components/index.vue

+ 7 - 2
src/views/components/import/task/components/index.vue

@@ -29,9 +29,9 @@
                 <div style="width:100%">
                   <el-progress :text-inside="true" :stroke-width="20"
                     :percentage="scope.row.percentage > 100 ? 100 : scope.row.percentage"
-                    :color="customColors"></el-progress>
+                    :color="customColors" :format="format(scope.row)"></el-progress>
                 </div>
-                <div style="min-width: 50px;">{{ scope.row.doneNum }}/{{ scope.row.allNum }}</div>
+                <div style="min-width: 50px;">{{ scope.row.percentage > 100 ? 100 : scope.row.percentage}}%</div>
               </div>
               <div v-else v-html="$commonJS.getColumnData(scope.row, item)"></div>
             </template>
@@ -190,6 +190,11 @@ export default {
     this.getList()
   },
   methods: {
+    format(row){
+      var doneNum = row.doneNum
+      var allNum = row.allNum
+      return ()=>{return doneNum + '/' + allNum }
+    },
     initTask() {
 
       //   var webSocket = this.webSocket