|
@@ -1,13 +1,13 @@
|
|
|
import consts from '@/basic/consts'
|
|
import consts from '@/basic/consts'
|
|
|
import { editFormApi } from '@/services/common'
|
|
import { editFormApi } from '@/services/common'
|
|
|
-import { Input, Row, Col } from 'antd'
|
|
|
|
|
|
|
+import { Input, Row, Col, DatePicker } from 'antd'
|
|
|
import React, { useState, useEffect, useRef } from 'react'
|
|
import React, { useState, useEffect, useRef } from 'react'
|
|
|
import LazyCascader from '../../LazyCascader'
|
|
import LazyCascader from '../../LazyCascader'
|
|
|
import { connect } from 'dva'
|
|
import { connect } from 'dva'
|
|
|
import './index.less'
|
|
import './index.less'
|
|
|
import useOptions from './useOptions'
|
|
import useOptions from './useOptions'
|
|
|
-import ChangeSelect from '@/pages/customer/Company/components/ChangeSelect'
|
|
|
|
|
-import ChangeTreeSelect from '@/pages/staff/Employee/components/ChangeTreeSelect'
|
|
|
|
|
|
|
+import ChangeSelect from './components/ChangeSelect'
|
|
|
|
|
+import ChangeTreeSelect from './components/ChangeTreeSelect'
|
|
|
|
|
|
|
|
const extraValArr = ['cascader', 'select', 'treeSelect'] // 需要设置ExtraVal的类型
|
|
const extraValArr = ['cascader', 'select', 'treeSelect'] // 需要设置ExtraVal的类型
|
|
|
|
|
|
|
@@ -191,6 +191,9 @@ const EditableFormItem = ({
|
|
|
/>
|
|
/>
|
|
|
)
|
|
)
|
|
|
break
|
|
break
|
|
|
|
|
+ case 'datePicker':
|
|
|
|
|
+ cell = <DatePicker onBlur={save} defaultValue={state.val} />
|
|
|
|
|
+ break
|
|
|
default:
|
|
default:
|
|
|
cell = (
|
|
cell = (
|
|
|
<Input
|
|
<Input
|