From 5e5a8bafcbc346cb6246aab4e63750e5454eb270 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 22 十一月 2024 12:05:04 +0800 Subject: [PATCH] 2024-11-22 --- src/tabviews/custom/components/table/edit-table/normalTable/index.jsx | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx b/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx index 28d8931..42d57c8 100644 --- a/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx +++ b/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx @@ -759,7 +759,7 @@ content = `${record[col.field]}` } - if (col.editType === 'select' && col.options.length > 0) { + if (col.editType === 'select' && col.showValue !== 'value' && col.options.length > 0) { content = col.map.get(content) || content } else if (col.editType === 'switch') { if (content === col.openVal) { @@ -1122,7 +1122,7 @@ content = `${record[col.field]}` } - if (col.editType === 'select' && col.options.length > 0) { + if (col.editType === 'select' && col.showValue !== 'value' && col.options.length > 0) { content = col.map.get(content) || content } else if (col.editType === 'switch') { if (content === col.openVal) { @@ -2138,8 +2138,8 @@ delete result.status this.props.columns.forEach(item => { - if (item.arr_field && result[item.arr_field]) { - result[item.uuid] = result[item.arr_field] + if (item.arr_field && result[item.field]) { + result[item.uuid] = result[item.field] } }) -- Gitblit v1.8.0