From 80deba0c2dcffd9e6b6f07815c7c52199309ce42 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 23 六月 2025 17:36:03 +0800 Subject: [PATCH] 2025-06-23 --- src/tabviews/custom/components/table/edit-table/index.jsx | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/src/tabviews/custom/components/table/edit-table/index.jsx b/src/tabviews/custom/components/table/edit-table/index.jsx index 7f9b250..001ecdf 100644 --- a/src/tabviews/custom/components/table/edit-table/index.jsx +++ b/src/tabviews/custom/components/table/edit-table/index.jsx @@ -61,6 +61,14 @@ BID = BData.$BID || '' } + if (setting.controlField) { + if (setting.controlVal) { + setting.controlVal = setting.controlVal.split(',') + } else { + setting.controlVal = [''] + } + } + _config.submit.style = _config.submit.style || {} _config.submit.wrapStyle = {} setting.hasAction = _config.action.length > 0 @@ -494,6 +502,12 @@ }) } + if (setting.controlField) { + if (setting.controlVal.includes(item[setting.controlField] + '')) { + item.$disabled = true + } + } + return item }) @@ -594,6 +608,12 @@ }) } + if (setting.controlField) { + if (setting.controlVal.includes(_data[setting.controlField] + '')) { + _data.$disabled = true + } + } + data = data.map(item => { if (item.$$uuid === _data.$$uuid) { _data.key = item.key -- Gitblit v1.8.0