fix: 修复分页表单结果数据处理逻辑错误
确保在存在x_score_map时处理分页表单结果数据,避免只读模式下跳过数据处理
Showing
1 changed file
with
4 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-07-18 10:22:22 | 2 | * @Date: 2022-07-18 10:22:22 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-11-24 16:40:46 | 4 | + * @LastEditTime: 2025-11-24 17:31:04 |
| 5 | * @FilePath: /data-table/src/views/index.vue | 5 | * @FilePath: /data-table/src/views/index.vue |
| 6 | * @Description: 首页 | 6 | * @Description: 首页 |
| 7 | --> | 7 | --> |
| ... | @@ -516,7 +516,9 @@ onMounted(async () => { | ... | @@ -516,7 +516,9 @@ onMounted(async () => { |
| 516 | if (isInfoPage) { | 516 | if (isInfoPage) { |
| 517 | item.component_props.readonly = true; | 517 | item.component_props.readonly = true; |
| 518 | PCommit.value.visible = false; // 只读模式下,提交按钮隐藏 | 518 | PCommit.value.visible = false; // 只读模式下,提交按钮隐藏 |
| 519 | - // 处理分页表单结果数据 | 519 | + } |
| 520 | + // 处理分页表单结果数据 | ||
| 521 | + if (object.x_score_map) { | ||
| 520 | const score_map = object.x_score_map; | 522 | const score_map = object.x_score_map; |
| 521 | item.component_props.score = score_map[item.key] || ''; | 523 | item.component_props.score = score_map[item.key] || ''; |
| 522 | } | 524 | } | ... | ... |
-
Please register or login to post a comment