提交 6ec19ed3 authored 作者: 钟是志's avatar 钟是志

泸职子表单卡顿的bug 使用2.0的页面 iframe 嵌入渲染

上级 f1eebb91
...@@ -138,6 +138,14 @@ export default class TableCom extends Component { ...@@ -138,6 +138,14 @@ export default class TableCom extends Component {
}, },
}; };
this.excludeKeys = ['defaultValues', '']; this.excludeKeys = ['defaultValues', ''];
this.otherProps = {};
if(props.json?.otherProps){
try {
this.otherProps = new Function(props.json?.otherProps)();
}catch (e) {
}
}
} }
closeModal = (fk, callback) => { closeModal = (fk, callback) => {
...@@ -514,12 +522,12 @@ export default class TableCom extends Component { ...@@ -514,12 +522,12 @@ export default class TableCom extends Component {
} }
this.setState({ columns }); this.setState({ columns });
} }
dispatch({ dispatch({
type: 'DataColumn/getSqlData', type: 'DataColumn/getSqlData',
payload: { payload: {
sqlKey, sqlKey,
allValues, allValues,
isCache: this.otherProps?.isCache || false,
}, },
callback: list => { callback: list => {
const x = { const x = {
...@@ -982,6 +990,7 @@ export default class TableCom extends Component { ...@@ -982,6 +990,7 @@ export default class TableCom extends Component {
if (getToken() != null) { if (getToken() != null) {
pp.token = getToken(); pp.token = getToken();
} }
console.log(sqlKey);
uaaRequest(url, pp).then(data => { uaaRequest(url, pp).then(data => {
const { sqlKeys } = this.state; const { sqlKeys } = this.state;
sqlKeys[sqlKey].data = data; sqlKeys[sqlKey].data = data;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论