| | |
| | | <!-- |
| | | * @Date: 2024-04-18 21:52:18 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-06-04 21:40:52 |
| | | * @LastEditTime: 2024-06-17 21:55:33 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/components/Shift.vue |
| | | --> |
| | | <template> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="" :label="colname"> |
| | | <template #default="scope"> |
| | | <span>{{ scope.row.data['1'] }}</span> |
| | | <span>{{ colnameFn(scope.row.data['1']) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="" label="班次2"> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="" :label="colname"> |
| | | <template #default="scope"> |
| | | <span>{{ scope.row.data['2'] }}</span> |
| | | <span>{{ colnameFn(scope.row.data['2']) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | </scTable> |
| | |
| | | default: '', |
| | | type: String, |
| | | }, |
| | | colnameFn: { |
| | | type: Function, |
| | | default: val => { |
| | | if (isNaN(val)) return '-' |
| | | return `${(val ? val * 100 : 0).toFixed(2)}%` |
| | | } |
| | | }, |
| | | options: { |
| | | default() { |
| | | return {} |