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