diff --git a/ruoyi-ui-vue3/src/views/mts/planDetail/index.vue b/ruoyi-ui-vue3/src/views/mts/planDetail/index.vue index 101c2be..719e10b 100644 --- a/ruoyi-ui-vue3/src/views/mts/planDetail/index.vue +++ b/ruoyi-ui-vue3/src/views/mts/planDetail/index.vue @@ -88,20 +88,20 @@ --> - + - - {{ handleDateColumn(scope.row, scope.column) }} + + {{ item.label }} @@ -314,6 +314,17 @@ function handleDateColumn(row, column) { return remark } +function handleHisShow(row, column) { + if (row.record.length > 0) { + for (const item of row.record) { + if (item.recordDate == column.label) { + return true + } + } + } + return false +} + const hisRecord = ref([]) async function handleHistory(row, column) { let res = [] @@ -323,7 +334,7 @@ async function handleHistory(row, column) { const hisList = await listPlanRecordHistory({ recordId: item.id }) for (const his of hisList.rows) { - res.push(his.remark) + res.push(his) } break; }