提交 9969181a authored 作者: 钟是志's avatar 钟是志

27282 双选会报名后管理员修改举办时间 但是单位申请信息么有随着更新

上级 6425fd8c
......@@ -769,11 +769,6 @@ export default class ZdyTable extends Component {
updateTime = moment(+this.props.postData?.updateTime)
.format('llll');
}
if (this.props.currentFormKey === 'a05771be-44c9-4fd6-b579-f8d7b2133206') {
console.log(this);
}
switch (get) {
case 'web':
// this.props.form.validateFields()
......
......@@ -9,8 +9,8 @@ import {
getColumnsDataRealize,
getColumnsSqlKeyRealize,
getWord,
renderContentAll,
renderContentRow,
renderContentAll,
renderContentRow,
} from './globalFunction';
export function giveSmartFormGlobalProps({
......@@ -39,19 +39,24 @@ export function giveSmartFormGlobalProps({
getColumnsDataRealize,
getColumnsSqlKeyRealize,
getWord,
renderContentAll,
renderContentRow,
renderContentAll,
renderContentRow,
remark: {
"giveFilePostDataInfoForTrue(params, url) ":`将接口参数 二进制文件化 并返回新的接口地址与参数';`,
"getSpanJson(mergeKey, data, eliminateStr)":`列表获取纵向合并数据 ;参数-> mergeKey : 需要合并的表头key data : 列表数据 eliminateStr : 需要忽略合并的数据`,
"getColumns(columns)":`获取ant表头的属性 ;参数->columns : ant的表头`,
"getColumnsDataRealize({data, mergeKey, columns, styles, defect, fileName, ext , eliminateStr})":`下载列表合并的数据;参数-> 前三个必填data, mergeKey, columns`,
"getColumnsSqlKeyRealize({sqlKey, columns, styles, fileName, ext})":`下载列表表头合并的数据;参数->前两个个必填sqlKey, columns`,
"getWord({templatePath,params, title, allValues, listConfig, ext})":`下载文档地址 ;参数->前五个必填 templatePath,params, title, allValues, listConfig`,
"renderContentAll(value, row, index, key, spanData, cloumnNames) ":`ant表头横向、纵向合并 ;参数->所有必填 value, row, index, key, spanData, cloumnNames 实例:render:(value, row, index)=>{return renderContentAll(value, row, index,"inst_name",spanData,cloumnNames)}`,
"renderContentRow(value, row, index, key, spanData, cloumnNames) ":`ant表头纵向合并 ;参数->所有必填 value, row, index, key, spanData, cloumnNames 实例:render:(value, row, index)=>{return renderContentRow(value, row, index,"inst_name",spanData,cloumnNames)}`,
}
'giveFilePostDataInfoForTrue(params, url) ': `将接口参数 二进制文件化 并返回新的接口地址与参数';`,
'getSpanJson(mergeKey, data, eliminateStr)': `列表获取纵向合并数据 ;参数-> mergeKey : 需要合并的表头key data : 列表数据 eliminateStr : 需要忽略合并的数据`,
'getColumns(columns)': `获取ant表头的属性 ;参数->columns : ant的表头`,
'getColumnsDataRealize({data, mergeKey, columns, styles, defect, fileName, ext , eliminateStr})': `下载列表合并的数据;参数-> 前三个必填data, mergeKey, columns`,
'getColumnsSqlKeyRealize({sqlKey, columns, styles, fileName, ext})': `下载列表表头合并的数据;参数->前两个个必填sqlKey, columns`,
'getWord({templatePath,params, title, allValues, listConfig, ext})': `下载文档地址 ;参数->前五个必填 templatePath,params, title, allValues, listConfig`,
'renderContentAll(value, row, index, key, spanData, cloumnNames) ': `ant表头横向、纵向合并 ;参数->所有必填 value, row, index, key, spanData, cloumnNames 实例:render:(value, row, index)=>{return renderContentAll(value, row, index,"inst_name",spanData,cloumnNames)}`,
'renderContentRow(value, row, index, key, spanData, cloumnNames) ': `ant表头纵向合并 ;参数->所有必填 value, row, index, key, spanData, cloumnNames 实例:render:(value, row, index)=>{return renderContentRow(value, row, index,"inst_name",spanData,cloumnNames)}`,
},
},
activeJsonConfig: {
// id_aebaa1d428a722486f289d92e4979f318341: {
// disabled: true,
// },
}, // 27282 双选会报名后管理员修改举办时间 但是单位申请信息么有随着更新
publicComponent: {
React,
Modal,
......@@ -65,4 +70,4 @@ export function giveSmartFormGlobalProps({
},
};
return true;
}
\ No newline at end of file
}
......@@ -107,7 +107,7 @@ const giveRender = (column = {}) => {
formList,
loading: loading.models.DataColumn || loading.models.SqlManageEntity || loading.models.formList,
}))
export default class tableCom extends Component {
export default class TableCom extends Component {
constructor(props) {
super(props);
this.state = {
......@@ -1462,7 +1462,7 @@ export default class tableCom extends Component {
* obj为查看详情用户输入值
*/
let {
json,
json: jsonStatic,
obj,
mapData,
init,
......@@ -1479,8 +1479,14 @@ export default class tableCom extends Component {
isPreview,
currentFormTitle,
getCellValue,
uuid,
} = this.props;
// console.log(this.props.datas);
// 27282 双选会报名后管理员修改举办时间 但是单位申请信息么有随着更新
const json = window.smartFormGlobalProps?.activeJsonConfig[uuid] ? {
...jsonStatic,
...window.smartFormGlobalProps?.activeJsonConfig[uuid],
} : jsonStatic;
const {
options,
labels,
......@@ -1517,13 +1523,13 @@ export default class tableCom extends Component {
) {
return <></>;
}
return <QRCode {...this.state.option} key={this.props.uuid}/>;
return <QRCode {...this.state.option} key={uuid}/>;
}
if (json.comName == 'Echart') {
return (
<ReactEcharts
style={{ height: json.height || 500 }}
key={this.props.uuid}
key={uuid}
option={this.state.option || {}}
notMerge={true}
lazyUpdate={true}
......@@ -1533,11 +1539,11 @@ export default class tableCom extends Component {
);
}
if (json.comName == 'Graph') {
return <Neo4jD3Com key={this.props.uuid} json={json} option={this.state.option || []}/>;
return <Neo4jD3Com key={uuid} json={json} option={this.state.option || []}/>;
}
if (json.comName == 'PartForm') {
const fk = this.props.form.getFieldsValue()[this.props.uuid] || json.childFormKey;
const fk = this.props.form.getFieldsValue()[uuid] || json.childFormKey;
if (fk == null) {
return <></>;
}
......@@ -1546,7 +1552,7 @@ export default class tableCom extends Component {
}
return (
<>
{this.props.form.getFieldDecorator(this.props.uuid, {
{this.props.form.getFieldDecorator(uuid, {
initialValue: fk,
})(<Input type="hidden"/>)}
{' '}
......@@ -1612,18 +1618,18 @@ export default class tableCom extends Component {
if (json.comName === 'Label') {
let uid;
if (this.props.fatherCode != null) {
uid = `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}`;
uid = `${this.props.fatherCode}.[${this.props.index}].${uuid}`;
} else {
uid = this.props.uuid;
uid = uuid;
}
if (!isEdit) {
return obj[this.props.uuid] || json.initialValue || '';
return obj[uuid] || json.initialValue || '';
} else {
if (this.props.fatherCode != null) {
return (
<>
{this.props.form.getFieldDecorator(uid, {
initialValue: obj[this.props.uuid] || json.initialValue,
initialValue: obj[uuid] || json.initialValue,
})(<Input type="hidden"/>)}
<span
style={{
......@@ -1631,7 +1637,7 @@ export default class tableCom extends Component {
marginRight: get === 'mobile' ? 12 : '',
}}
{...json.props}>
{obj[this.props.uuid] || json.initialValue}
{obj[uuid] || json.initialValue}
</span>
</>
);
......@@ -1991,11 +1997,11 @@ export default class tableCom extends Component {
...bindObj,
base52: `${this.props.fatherCode}.[${this.props.index}].${bindObj.base52}`,
}
: { base52: `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}` }
: { base52: `${this.props.fatherCode}.[${this.props.index}].${uuid}` }
: bindObj;
if (this.props.fatherCode == null && dataColumn == null) {
dataColumn = { base52: this.props.uuid };
dataColumn = { base52: uuid };
}
if (dataColumn.isNull != null && !dataColumn.isNull) {
required = true;
......@@ -2009,7 +2015,7 @@ export default class tableCom extends Component {
if (this.props.fatherCode != null) {
initValue =
objinit[this.props.index] != null
? objinit[this.props.index][bindObj ? bindObj.base52 : this.props.uuid]
? objinit[this.props.index][bindObj ? bindObj.base52 : uuid]
: null;
} else {
initValue = objinit[dataColumn.base52];
......@@ -2039,7 +2045,7 @@ export default class tableCom extends Component {
if (bindObj != null) {
dataColumn.base52 = bindObj.base52;
} else {
dataColumn.base52 = this.props.uuid;
dataColumn.base52 = uuid;
}
}
......@@ -2520,7 +2526,7 @@ ${obj[dataColumn.base52]}
let events = {};
if (json.events != null) {
events = this.getFunctionValue(json.events, { base52: this.props.uuid }, json);
events = this.getFunctionValue(json.events, { base52: uuid }, json);
}
if (events && events.dom) {
cm = events.dom;
......@@ -2566,7 +2572,7 @@ ${obj[dataColumn.base52]}
showHeader={json.showHeader}
isHiddenPage={json.isHiddenPage}
pageSize={json.pageSize}
value={obj[dataColumn.base52 || this.props.uuid] || {}}
value={obj[dataColumn.base52 || uuid] || {}}
objCode={json.objCode}
sql={json.filterSql}
rights={json.rights}
......@@ -2602,7 +2608,7 @@ ${obj[dataColumn.base52]}
let events = {};
if (json.events != null) {
events = this.getFunctionValue(json.events, { base52: this.props.uuid }, json);
events = this.getFunctionValue(json.events, { base52: uuid }, json);
}
if (events && events.dom) {
cm = events.dom;
......@@ -2622,7 +2628,7 @@ ${obj[dataColumn.base52]}
case 'Switch':
if (get === 'mobile') {
if (dataColumn == null || json.formula != null) {
cm = this.props.form.getFieldsValue()[this.props.uuid];
cm = this.props.form.getFieldsValue()[uuid];
break;
}
cm = (
......@@ -3086,7 +3092,7 @@ ${obj[dataColumn.base52]}
<Cascader // 这里的options 获取方式存在bug 公式会重复调用
options={options}
allowClear
data-cell-uuid-cascader={this.props.uuid}
data-cell-uuid-cascader={uuid}
showSearch={{ filter: filterF }}
disabled={disabled}
getPopupContainer={
......@@ -3195,7 +3201,7 @@ ${obj[dataColumn.base52]}
const begin = dataColumn;
var end = this.getColumn('c2');
if (end == null) {
end = { base52: this.props.uuid + '_2' };
end = { base52: uuid + '_2' };
}
const ivs = getMomentArr({
begin,
......@@ -3466,7 +3472,7 @@ ${obj[dataColumn.base52]}
json={json}
dataColumn={dataColumn}
disabled={disabled}
uuid={this.props.uuid}
uuid={uuid}
/>,
);
break;
......@@ -3720,7 +3726,7 @@ ${obj[dataColumn.base52]}
} else {
cm = (
<>
{getFieldDecorator(dataColumn.base52 || this.props.uuid, {
{getFieldDecorator(dataColumn.base52 || uuid, {
initialValue: initValue || {},
})(
<TableList
......
......@@ -52,7 +52,6 @@ export default function Index({
editor.config.focus = focus;
}
editor.config.onchange = function(newHtml) {
console.log(newHtml);
onChangeValue(newHtml);
};
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论