diff --git a/src/files/edit/PF155.js b/src/files/edit/PF155.js new file mode 100644 index 0000000..5242924 --- /dev/null +++ b/src/files/edit/PF155.js @@ -0,0 +1,51 @@ +import React, { useState } from 'react'; +import { Form, Col } from 'antd' +import { extendInclude, extendRule, initFilter } from "../../utils/common"; +import moment from 'moment' +import BraftEditor from 'braft-editor'; +import 'braft-editor/dist/index.css'; +/** + * @return {string} + */ + +export default { + onBeforeEdit: ({ isNew, login, stateData }) => { + if (isNew) { + stateData.STATUS = 0 + } + }, + onBeforeSaveHandleRecord(params) { + params.record.STATUS = params.customParams + }, + + handleRenderHeadControl(params) { + if (params.colConfig.field == 'TITLE') { + const initialEditorState = BraftEditor.createEditorState(params.record.TITLE || ''); + const formItemLayout = { + labelCol: { span: 24 }, + wrapperCol: { span: 24 } + }; + const customOrResponse = { + lg: 24, xxl: 24 + } + const placeholder = '请输入' + params.colConfig.label + '...' + return <> + + + { + const htmlContent = editorState.toHTML(); + if (params.record.TITLE != htmlContent) { + params.setFieldValue('TITLE', htmlContent); + } + }} + placeholder={placeholder} + /> + + + + } + }, +}; \ No newline at end of file diff --git a/src/files/edit/PF159.js b/src/files/edit/PF159.js new file mode 100644 index 0000000..cea51b3 --- /dev/null +++ b/src/files/edit/PF159.js @@ -0,0 +1,20 @@ +import React, { useState } from 'react'; +import { Form, Col } from 'antd' +import { extendInclude, extendRule, initFilter } from "../../utils/common"; +import moment from 'moment' +import BraftEditor from 'braft-editor'; +import 'braft-editor/dist/index.css'; +/** + * @return {string} + */ + +export default { + onBeforeEdit: ({ isNew, login, stateData }) => { + if (isNew) { + stateData.STATUS = 0 + } + }, + onBeforeSaveHandleRecord(params) { + params.record.STATUS = params.customParams + } +}; \ No newline at end of file diff --git a/src/utils/customConfig1.js b/src/utils/customConfig1.js index f5ebf8c..8351dd0 100644 --- a/src/utils/customConfig1.js +++ b/src/utils/customConfig1.js @@ -116,27 +116,29 @@ const SC052ShowPrint = createLoadableComponent(() => import('../components/Custo // const CM043ShowPrint = createLoadableComponent(() => import('../components/CustomPages/CM/CM043ShowPrint')) // const CM045ShowPrint = createLoadableComponent(() => import('../components/CustomPages/CM/CM045ShowPrint')) -// const SE001EditPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE001EditPage')) -// const SEConfigPage = createLoadableComponent(() => import('../components/CustomPages/SE/SEConfigPage')) -// const SE005ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE005ShowPrint')) -// const SESafeSurveyTest = createLoadableComponent(() => import('../components/CustomPages/SE/SESafeSurveyTest')) -// const SE005ReportEdit = createLoadableComponent(() => import('../components/CustomPages/SE/SE005ReportEdit')) -// const SE007AllView = createLoadableComponent(() => import('../components/CustomPages/SE/SE007AllView')) -// const SE009ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE009ShowPrint')) -// const SE011ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE011ShowPrint')) -// const SE013ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE013ShowPrint')) -// const SE015ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE015ShowPrint')) -// const SE018EditPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE018EditPage')) -// const SE018PaperPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE018PaperPage')) -// const SE019ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE019ShowPrint')) -// const SE021ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE021ShowPrint')) -// const SE061ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE061ShowPrint')) -// const SE071ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE071ShowPrint')) -// const SE061PaperPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE061PaperPage')) -// const SE062ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE062ShowPrint')) -// const SE063ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE063ShowPrint')) -// const SE051ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE051ShowPrint')) -// const SE007ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE007ShowPrint')) +const SE001EditPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE001EditPage')) +const SEConfigPage = createLoadableComponent(() => import('../components/CustomPages/SE/SEConfigPage')) +const SE005ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE005ShowPrint')) +const SESafeSurveyTest = createLoadableComponent(() => import('../components/CustomPages/SE/SESafeSurveyTest')) +const SE005ReportEdit = createLoadableComponent(() => import('../components/CustomPages/SE/SE005ReportEdit')) +const SE007AllView = createLoadableComponent(() => import('../components/CustomPages/SE/SE007AllView')) +const SE009ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE009ShowPrint')) +const SE011ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE011ShowPrint')) +const SE013ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE013ShowPrint')) +const SE015ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE015ShowPrint')) +const SE018EditPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE018EditPage')) +const SE018PaperPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE018PaperPage')) +const SE019ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE019ShowPrint')) +const SE021ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE021ShowPrint')) +const SE061ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE061ShowPrint')) +const SE071ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE071ShowPrint')) +const SE061PaperPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE061PaperPage')) +const SE062ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE062ShowPrint')) +const SE063ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE063ShowPrint')) +const SE051ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE051ShowPrint')) +const SE007ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE007ShowPrint')) +const BI00FullScreen = createLoadableComponent(() => import('../components/CustomPages/BI/BI00FullScreen')); +const BI064FormRunAnalysis = createLoadableComponent(() => import('../components/CustomPages/BI/BI064FormRunAnalysis')); // const BI001HomeDetail = createLoadableComponent(() => import('../components/CustomPages/BI/BI001HomeDetail')) // const BI002HomeDetail = createLoadableComponent(() => import('../components/CustomPages/BI/BI002HomeDetail')) @@ -321,27 +323,27 @@ export default function (componentName, formId, formParam, data, formCode, formD RiskSubmit: , CrucialLicenseJob: , - // SE001EditPage: , - // SEConfigPage: , - // SE005ShowPrint: , - // SESafeSurveyTest: , - // SE005ReportEdit: , - // SE007ShowPrint: , - // SE007AllView: , - // SE009ShowPrint: , - // SE011ShowPrint: , - // SE013ShowPrint: , - // SE015ShowPrint: , - // SE018EditPage: , - // SE018PaperPage: , - // SE019ShowPrint: , - // SE021ShowPrint: , - // SE061PaperPage: , - // SE061ShowPrint: , - // SE071ShowPrint: , - // SE062ShowPrint: , - // SE063ShowPrint: , - // SE051ShowPrint: , + SE001EditPage: , + SEConfigPage: , + SE005ShowPrint: , + SESafeSurveyTest: , + SE005ReportEdit: , + SE007ShowPrint: , + SE007AllView: , + SE009ShowPrint: , + SE011ShowPrint: , + SE013ShowPrint: , + SE015ShowPrint: , + SE018EditPage: , + SE018PaperPage: , + SE019ShowPrint: , + SE021ShowPrint: , + SE061PaperPage: , + SE061ShowPrint: , + SE071ShowPrint: , + SE062ShowPrint: , + SE063ShowPrint: , + SE051ShowPrint: , SCShowPrint: , PF136FormRunAnalysis: , @@ -438,6 +440,10 @@ export default function (componentName, formId, formParam, data, formCode, formD // SK041ShowPrint: , // SK043ShowPrint: , // SK045ShowPrint: , + BI00FullScreen: , + BI064FormRunAnalysis: ( + + ), }[componentName] } \ No newline at end of file