|
|
@ -4,7 +4,8 @@ |
|
|
<el-table ref="table" :height="tableHeight" stripe :data="xmProjects" highlight-current-row v-loading="load.list" @selection-change="selsChange" @row-click="rowClick" style="width: 100%;" > |
|
|
<el-table ref="table" :height="tableHeight" stripe :data="xmProjects" highlight-current-row v-loading="load.list" @selection-change="selsChange" @row-click="rowClick" style="width: 100%;" > |
|
|
<el-table-column prop="name" label="项目名称" min-width="80" > |
|
|
<el-table-column prop="name" label="项目名称" min-width="80" > |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
{{scope.row.name}} {{parseInt(scope.row.totalProgress)}}% |
|
|
|
|
|
|
|
|
{{scope.row.name}} |
|
|
|
|
|
<font class="align-right"><el-tag :type="scope.row.totalProgress>=100?'success':'warning'">{{parseInt(scope.row.totalProgress)}}%</el-tag></font> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -155,5 +156,9 @@ |
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped> |
|
|
<style scoped> |
|
|
|
|
|
.align-right{ |
|
|
|
|
|
float: right; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |