From 21167ece56edd628e6f6546d1d642947cc3a048f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 12 八月 2024 22:17:33 +0800 Subject: [PATCH] 2024-08-12 --- src/tabviews/custom/components/table/base-table/index.jsx | 38 +++++++++++++++++++++++++++----------- 1 files changed, 27 insertions(+), 11 deletions(-) diff --git a/src/tabviews/custom/components/table/base-table/index.jsx b/src/tabviews/custom/components/table/base-table/index.jsx index bc2b635..b02d9ae 100644 --- a/src/tabviews/custom/components/table/base-table/index.jsx +++ b/src/tabviews/custom/components/table/base-table/index.jsx @@ -110,9 +110,9 @@ MKEmitter.emit('resetSelectLine', config.uuid, '', '') // 骞挎挱鏁版嵁鍒囨崲 reset && MKEmitter.emit('resetTable', config.uuid, 'true') // 鍒楄〃閲嶇疆 - if (setting.$hasSyncModule) { - MKEmitter.emit('syncBalconyData', config.uuid, [], false) - } + // if (setting.$hasSyncModule) { + // MKEmitter.emit('syncBalconyData', config.uuid, [], false) + // } this.requestId = '' return @@ -173,9 +173,9 @@ } } else { MKEmitter.emit('resetSelectLine', config.uuid, '', '') // 骞挎挱鏁版嵁鍒囨崲 - if (setting.$hasSyncModule) { - MKEmitter.emit('syncBalconyData', config.uuid, [], false) - } + // if (setting.$hasSyncModule) { + // MKEmitter.emit('syncBalconyData', config.uuid, [], false) + // } } reset && MKEmitter.emit('resetTable', config.uuid, repage) // 鍒楄〃閲嶇疆 @@ -287,6 +287,12 @@ _data.$$uuid = _data[setting.primaryKey] || '' _data.$$BID = BID || '' _data.$$BData = BData || '' + + if (setting.controlField) { + if (setting.controlVal.includes(_data[setting.controlField] + '')) { + _data.$disabled = true + } + } if (config.absFields) { config.absFields.forEach(f => { @@ -439,7 +445,19 @@ * 鍚湁鍒濆涓嶅姞杞界殑椤甸潰锛屼慨鏀硅缃� */ refreshbysearch = (searches) => { - const { config} = this.state + const { config, BID } = this.state + + if (config.setting.supModule && !BID) { + notification.warning({ + top: 92, + message: window.GLOB.dict['sup_key_req'] || '闇�瑕佷笂绾т富閿�硷紒', + duration: 5 + }) + this.setState({ + search: searches + }) + return + } this.setState({ pageIndex: 1, @@ -568,7 +586,7 @@ if (config.uuid !== menuId) return if (position === 'line' || position === 'line_grid') { - if (lines && lines.length === 1) { + if (lines && lines.length === 1 && !config.forbidLine) { this.loadLinedata(lines[0].$$uuid, position) } else { this.reloadtable(btn, id) @@ -585,9 +603,7 @@ if (config.$searchId !== searchId) return - this.setState({pageIndex: 1}, () => { - this.reloadtable() - }) + this.reloadtable() } autoExec = (times) => { -- Gitblit v1.8.0