| | |
| | | width="114" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.quantity1">{{ parseFloat(row.quantity1) }}</div> |
| | | <!-- <div v-if="row.quantity">{{ Math.floor(row.quantity*0.67) }}</div>--> |
| | | <div v-if="row.quantity">{{ Math.round( row.quantity*0.67) }}</div> |
| | | <div v-else>0</div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | width="114" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.quantity- row.quantity1">{{ parseFloat(row.quantity - row.quantity1) }}</div> |
| | | <!-- <div v-if="row.quantity- row.quantity1">{{ parseFloat(row.quantity - row.quantity1) }}</div>--> |
| | | <div v-if="row.quantity">{{ Math.ceil(row.quantity*0.33) }}</div> |
| | | <div v-else>0</div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | divData.scrollTop = 0 |
| | | PurchaseRight().then(res => { |
| | | this.tableDataRank = res.data |
| | | if (this.tableDataRank.length > 21) { |
| | | if (this.tableDataRank.length > 23) { |
| | | clearInterval(this.PurchaseRight) |
| | | this.getPurchaseRight() |
| | | } |
| | | }) |
| | | } |
| | | }, this.tableDataRank.length <= 21 ? 1000 * 3 : 100) |
| | | }, this.tableDataRank.length <= 23 ? 1000 * 3 : 100) |
| | | }) |
| | | }, |
| | | tableRowClassName({ row, rowIndex }) { |