{
const { setState, getCusPageSetDtl } = this.props.weesoSeachSetStore;
setState({ urlDialogVisible: true, recordId: record.randomFieldId });
getCusPageSetDtl({ id: record.randomFieldId,type: '4' });
}} dangerouslySetInnerHTML={{__html: getLabel('33564','查看') }}/>
:
)
}
return newColumn;
});
return newColumns;
}
deleteRecords = (msg, onOk, onCancel) => {
Modal.confirm({
title: getLabel('131329','信息确认') ,
content: msg,
onOk() {
typeof onOk === 'function' && onOk();
},
onCancel() {
typeof onCancel === 'function' && onCancel();
},
});
}
maintenanceKeyAdd = (type) => {
const { dialogVisible, setState, searchTableStore, customizationDialogVisible, form, conditions, currentStep,
collectParams, stepForm, stepConditions, commonConditionTableStore, getSearchTagDtl, search_type, recordId,
commonConditionParams,recordParams
} = this.props.weesoSeachSetStore;
const { defalutMoreKey } = this.props.weesoStore;
let param = {};
if(!(this.props.page === 'maintenanceKey' && this.props.lvisible === true)) {
param = {
page_uuid: recordParams.page_uuid,
};
}
if(type === 'commonSet') {
param = {
...param,
search_type: defalutMoreKey
};
}
getSearchTagDtl({ id: '', ...param }, () => {
if(this.props.page === 'maintenanceKey' && this.props.lvisible === true) {
setState({ addCommonVisible: false, maintenanceKeyAddCommonVisible: true, commonConditionParams: {} });
} else {
setState({ addCommonVisible: true, maintenanceKeyAddCommonVisible: false, commonConditionParams: {} });
}
});
}
maintenanceKeyDel = () => {
const { delSearchTag, commonConditionTableStore, recordI, recordParams, getCustompageBaseDatas } = this.props.weesoSeachSetStore;
let ids = toJS(commonConditionTableStore.selectedRowKeys);
let params = {
id: ids,
};
this.deleteRecords(getLabel(127574, '确定删除吗?'), () => {
if(!(this.props.page === 'maintenanceKey' && this.props.lvisible === true)) {
params = {
...params,
page_uuid: recordParams.page_uuid,
fromSystem: 1
};
}
delSearchTag(params, () => {
this.getCommonConditionSetTable();
getCustompageBaseDatas({
cuspage_type: '3'
});
});
},);
}
searchPageCusCancel = () => {
const { setState, commonPageType, pageCusCurrentId, delCusPageSet, currentStep, defalutStepForm, stepForm } = this.props.weesoSeachSetStore;
if(String(currentStep) === '1' || (String(currentStep) === '4' && commonPageType.indexOf('create') === -1 )) {
setState({ customizationDialogVisible: false, recordParams: {} });
} else {
let isModify = false;
if(typeof defalutStepForm.getFormParams === 'function') {
const defalutStepFormParams = defalutStepForm.getFormParams();
const stepFormParams = stepForm.getFormParams();
Object.keys(defalutStepForm.getFormParams()).forEach(key => {
if(String(defalutStepFormParams[key]) !== String(stepFormParams[key])) {
isModify = true;
}
});
}
if(isModify) {
this.deleteRecords(getLabel('524268','数据未保存,确定退出吗?') ,() => {
if(commonPageType === 'create' && pageCusCurrentId !== '') {
delCusPageSet({ id: pageCusCurrentId }, () => {
setState({ customizationDialogVisible: false, recordParams: {} });
});
} else {
setState({ customizationDialogVisible: false, recordParams: {} });
}
});
} else {
setState({ customizationDialogVisible: false, recordParams: {} });
}
}
}
searchPageCancel = () => {
}
closeLog = () => {
const { setState, } = this.props.weesoSeachSetStore;
setState({ logvisible: false });
}
onSearch = (value) => {
const { getCusPageSetList, setState } = this.props.weesoSeachSetStore;
getCusPageSetList({ page_title: value || '' });
}
onSearchChange = (value) => {
const { setState } = this.props.weesoSeachSetStore;
setState({ searchDefinePageInputVal: value });
}
onCommonSearchChange = (value) => {
const { setState } = this.props.weesoSeachSetStore;
setState({ searchDefineCommonInputVal: value });
}
onCommonSearch = (value) => {
const { getSearchTagList } = this.props.weesoSeachSetStore;
getSearchTagList({ tagTitle: value || '' });
}
onCloseSearchDefineDialog = () => {
const { setState } = this.props.weesoSeachSetStore;
setState({ dialogVisible: false, searchDefineCommonInputVal: '', searchDefinePageInputVal: '' });
}
onStepChange = (e) => {
if(e) {
const { currentStep, setState, stepContents, getCusPageSetDtl, recordId, stepForm,
doSaveCusPageSetDtl, getCusPageSetList, recordParams, hasPageIcon, commonPageType
} = this.props.weesoSeachSetStore;
if(commonPageType !== 'saveas' && commonPageType !== 'edit') return;
const current = Number(currentStep); // 当前步
const now = Number(e.step);
if(now > current) {// 往后
if(current === 0) {
this.stepOne((ret) => {
setState({ currentStep: now });
if(now === 1) {
this.getCommonConditionSetTable(ret);
}
if(now === 2) {
getCusPageSetDtl({ id: recordId,type: 3, page_uuid: recordParams.page_uuid }, (ret) => {
});
}
if(now === 3) {
getCusPageSetDtl({ id: recordId,type: 4, page_uuid: ret.page_uuid });
}
});
}
if(current === 1) {
if(now === 2) {
this.nextStep();
}
if(now === 3) {
setState({ currentStep: now });
getCusPageSetDtl({ id: recordId,type: 4, page_uuid: recordParams.page_uuid });
}
}
if(current === 2) {
this.nextStep();
}
}
if(now < current) {// 往前
if(current === 1) {
this.preStep();
}
if(current === 2) {
this.stepThree(() => {
if(now === 0 ) {
setState({ currentStep: now });
getCusPageSetDtl({ id: recordId,type: 1, page_uuid: recordParams.page_uuid });
}
if(now === 1 ) {
this.preStep('click-step-pre');
}
});
}
if(current === 3) {
if(now === 0) {
setState({ currentStep: now });
getCusPageSetDtl({ id: recordId,type: 1, page_uuid: recordParams.page_uuid });
}
if(now === 1) {
setState({ currentStep: now });
this.getCommonConditionSetTable();
}
if(now === 2) {
this.preStep();
}
}
}
}
}
maintenanceKey_Add = () => {
this.maintenanceKeyAdd('commonSet');
}
render() {
const { dialogVisible, setState, searchTableStore, customizationDialogVisible, form, conditions, currentStep,
collectParams, stepForm, stepConditions, commonConditionTableStore, getSearchTagDtl, search_type,recordParams,
logStore, logvisible, logSmallType, logType, searchPageRight, commonPageType
} = this.props.weesoSeachSetStore;
let { stepContents, } = this.props.weesoSeachSetStore;
const { weesoSearchPageSetHeight } = this.state;
stepContents = toJS(stepContents);
const dialogH = weesoSearchPageSetHeight, dialogW = 900;
const stepTopH = this.customStepTopRef&&this.customStepTopRef.current ? this.customStepTopRef.current.offsetHeight : 160;
if(this.props.page === 'maintenanceKey') {
return(
}
>
this.onOperatesClick(record,index,operate,flag, 'searchCustom')}
/>
{ this.getAddCommonConditions() }
)
}
return(