20 lines
498 B
JavaScript
20 lines
498 B
JavaScript
|
|
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
|
||
|
|
}
|
||
|
|
};
|