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 68
68
<el-progress :text-inside =" true" :stroke-width =" 18" :percentage =" 100" status =" success" />
69
69
</div >
70
70
<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" />
72
72
</div >
73
73
</template >
74
74
</el-table-column >
Original file line number Diff line number Diff line change @@ -121,6 +121,9 @@ public function workProgress($lists)
121
121
foreach ($ lists as $ key => $ list ) {
122
122
$ rate = 100 ;
123
123
switch ($ list ['state ' ]) {
124
+ case '0 ' : // 未开启任务
125
+ $ rate = 0 ;
126
+ break ;
124
127
case '1 ' : // 正在处理的任务
125
128
case '5 ' : // 失败任务
126
129
$ rate = $ this ->progressRate ($ list ['id ' ], $ list ['total_excel ' ]);
You can’t perform that action at this time.
0 commit comments