| | |
| | | // 对于所有标签页,使用projectNo作为key |
| | | targetKeys.value = response.data.map((item: any) => item.projectNo) |
| | | |
| | | // 重要:将右侧数据添加到dataSource中,确保Transfer组件能找到对应的项 |
| | | // 将右侧数据添加到dataSource中,确保Transfer组件能找到对应的项 |
| | | response.data.forEach((item: any) => { |
| | | // 检查dataSource中是否已存在该项 |
| | | const exists = dataSource.value.some(dataItem => dataItem.key === item.projectNo) |
| | |
| | | </el-tabs> |
| | | |
| | | <div class="transfer-wrapper"> |
| | | <el-transfer |
| | | v-model="targetKeys" |
| | | filterable |
| | | :data="dataSource" |
| | | :titles="['待排产', getRightListTitle]" |
| | | :button-texts="['', '']" |
| | | /> |
| | | <el-transfer v-model="targetKeys" class="custom-transfer" filterable :data="dataSource" |
| | | :titles="['待排产', getRightListTitle]" :button-texts="['', '']"> |
| | | <template #right-empty> |
| | | <el-empty :image-size="80" description="No data" /> |
| | | </template> |
| | | </el-transfer> |
| | | |
| | | |
| | | <div class="transfer-save"> |
| | | <el-button type="primary" @click="saveScheduling"> |
| | |
| | | height: 440px; |
| | | } |
| | | |
| | | ::v-deep(.el-transfer-panel-body-height) { |
| | | height: 470px; |
| | | .custom-transfer { |
| | | --el-transfer-panel-body-height: 400px; |
| | | } |
| | | |
| | | ::v-deep(.el-transfer-panel__header) { |