Commit 26a41644 authored by 田翔's avatar 田翔

fix: 参数修复

parent 9554e66f
{
"name": "panda-xform",
"version": "4.6.8",
"description": "4.6.8 细节修改",
"version": "4.6.9",
"description": "4.6.9 参数修复",
"keywords": [
"panda-xform"
],
......
......@@ -18,7 +18,7 @@ const SearchGroup = forwardRef((props, ref) => {
}))
const { accountName, config, notUse, checkName, btnsClick } = props
const { enableBatchOperation, enableImportExport, enablePrint, enableQuickSearch, enableTimeFilter } = config
const { enableBatchOperation, enableImportExport, enablePrint, enableQuickSearch, enableTimeFilter, parent } = config
const [form] = Form.useForm()
const [dateArray, setDateArray] = useState([])
const [formatterStr, setFormatterStr] = useState('YYYY-MM-DD HH:mm:ss')
......@@ -335,6 +335,8 @@ const SearchGroup = forwardRef((props, ref) => {
</Form>
{/* 按钮区域 */}
<div className={styles.controlRowRight}>
{
parent !== '台账选择器' ? (
<div className={styles.controlBtns}>
{
enableImportExport ? (
......@@ -372,6 +374,8 @@ const SearchGroup = forwardRef((props, ref) => {
) : null
}
</div>
) : null
}
</div>
</Row>
)
......
......@@ -19,8 +19,8 @@ const TablePack = (props, ref) => {
fileColumns,
}))
const { parent, notUse, config, fieldList, loading, dataSource, rowSelection, onRow, tableChange, btnsClick } = props
const { accountFieids, webShowFieldGroup, formJson } = config
const { notUse, config, fieldList, loading, dataSource, rowSelection, onRow, tableChange, btnsClick } = props
const { accountFieids, webShowFieldGroup, formJson, parent } = config
const [fieldResize, setFieldResize] = useState({})
const [filteredInfo, setFilteredInfo] = useState({})
const [sortedInfo, setSortedInfo] = useState({})
......@@ -42,10 +42,10 @@ const TablePack = (props, ref) => {
//台账列表、台账选择器表头
const getColumnProps = (json, v) => {
const { fieldName, columnWidth, isSort, likeSearch } = v
const { fieldName, columnWidth, isSort, accurateSearch } = v
const { widget, sourceType, options } = json?.[fieldName] || {}
let searchProps = {}
if (likeSearch) {
if (accurateSearch) {
if (['CheckBox', 'ComboBox', 'RadioButton'].includes(widget)) {
if (sourceType === '手动输入') {
searchProps = {
......@@ -144,10 +144,10 @@ const TablePack = (props, ref) => {
//关联表单表头
const getRelevanceColumnProps = (json, field) => {
const { fieldName, columnWidth, isSort, likeSearch } = field
const { fieldName, columnWidth, isSort, accurateSearch } = field
const { widget } = json?.[fieldName] || {}
let searchProps = {}
if (likeSearch) {
if (accurateSearch) {
searchProps = {
filterDropdown: ({ setSelectedKeys, selectedKeys, confirm, clearFilters, close }) => (
<div
......
......@@ -310,10 +310,9 @@ const RelationForm = (props) => {
{disabled ? null : <Button className={styles.headerBtn} type='primary' size='middle' icon={<PlusOutlined />} onClick={addClick}>添加</Button>}
</div>
<TablePack
parent='关联表单'
loading={loading}
notUse={disabled ? 'edit,add,del' : ''}
config={config}
config={{ ...config, parent: '关联表单' }}
dataSource={dataSource}
btnsClick={btnsClick}
/>
......
......@@ -192,7 +192,7 @@ const AccountSelector = (props) => {
onChange={search}
notUse={'edit,add,del'}
btnsClick={btnsClick}
config={config}
config={{ ...config, parent: '台账选择器' }}
/>
</div>
<div className={styles.bottom}>
......@@ -200,12 +200,11 @@ const AccountSelector = (props) => {
ref={tablePackRef}
loading={loading}
notUse={'edit,add,del'}
config={config}
config={{ ...config, parent: '台账选择器' }}
dataSource={dataSource}
btnsClick={btnsClick}
fieldList={fieldList}
tableChange={tableChange}
parent='台账选择器'
rowSelection={{
type: isMultiple && fieldshine.length === 1 ? 'checkbox' : 'radio',
selectedRowKeys: keys,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment