File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
admin/src/views/api_excel
laravel/app/Http/Repository Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 6868 <el-progress :text-inside =" true" :stroke-width =" 18" :percentage =" 100" status =" success" />
6969 </div >
7070 <div v-else >
71- <el-progress :text-inside =" true" :stroke-width =" 18" :percentage =" 50 " status =" exception" />
71+ <el-progress :text-inside =" true" :stroke-width =" 18" :percentage =" scope.row.rate " status =" exception" />
7272 </div >
7373 </template >
7474 </el-table-column >
Original file line number Diff line number Diff line change @@ -121,6 +121,9 @@ public function workProgress($lists)
121121 foreach ($ lists as $ key => $ list ) {
122122 $ rate = 100 ;
123123 switch ($ list ['state ' ]) {
124+ case '0 ' : // 未开启任务
125+ $ rate = 0 ;
126+ break ;
124127 case '1 ' : // 正在处理的任务
125128 case '5 ' : // 失败任务
126129 $ rate = $ this ->progressRate ($ list ['id ' ], $ list ['total_excel ' ]);
You can’t perform that action at this time.
0 commit comments