diff --git a/ruoyi-ui/src/views/fantang/catering/index.vue b/ruoyi-ui/src/views/fantang/catering/index.vue index d4f3b888b..97fbce93d 100644 --- a/ruoyi-ui/src/views/fantang/catering/index.vue +++ b/ruoyi-ui/src/views/fantang/catering/index.vue @@ -175,13 +175,17 @@ - + - + @@ -492,6 +496,50 @@ export default { }) }, methods: { + + // 控制合并列 + objectSpanMethod({row, column, rowIndex, columnIndex}) { + if (columnIndex === 1) { + if (rowIndex % 3 === 0) { + return { + rowspan: 3, + colspan: 1 + }; + } else { + return { + rowspan: 0, + colspan: 0 + }; + } + } else if (columnIndex === 2) { + if (rowIndex % 3 === 0) { + return { + rowspan: 3, + colspan: 1 + }; + } else { + return { + rowspan: 0, + colspan: 0 + }; + } + + } else if (columnIndex === 3) { + if (rowIndex % 3 === 0) { + return { + rowspan: 3, + colspan: 1 + }; + } else { + return { + rowspan: 0, + colspan: 0 + }; + } + + } + }, + // 响应营养配餐用餐安排多选列表 changeDinnerType(value) { console.log(value)