Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
5710f7bf
Commit
5710f7bf
authored
Mar 13, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '表单设计器bug调试'
parent
ecaeae7f
Pipeline
#69057
passed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
56 deletions
+56
-56
filedConfig.jsx
...s/bsmanager/base/tablemanager/filedConfig/filedConfig.jsx
+19
-19
index.jsx
src/pages/bsmanager/base/tablemanager/index.jsx
+37
-37
No files found.
src/pages/bsmanager/base/tablemanager/filedConfig/filedConfig.jsx
View file @
5710f7bf
...
@@ -115,9 +115,9 @@ const AddModal = props => {
...
@@ -115,9 +115,9 @@ const AddModal = props => {
},
[]);
},
[]);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
props
.
tableInfo
.
id
)
{
if
(
props
.
location
.
state
.
id
)
{
setSelectTreeData
(
props
.
tableInfo
.
keepData
);
setSelectTreeData
(
props
.
location
.
state
.
keepData
);
setSelectDataFirst
(
props
.
tableInfo
.
keepTreeFirst
);
setSelectDataFirst
(
props
.
location
.
state
.
keepTreeFirst
);
if
(
treeSelectValue
)
{
if
(
treeSelectValue
)
{
let
ss
=
treeSelectValue
.
substring
(
0
,
treeSelectValue
.
lastIndexOf
(
'@'
));
let
ss
=
treeSelectValue
.
substring
(
0
,
treeSelectValue
.
lastIndexOf
(
'@'
));
setFormObj
(
treeSelectValue
.
substring
(
0
,
treeSelectValue
.
lastIndexOf
(
'@'
)));
setFormObj
(
treeSelectValue
.
substring
(
0
,
treeSelectValue
.
lastIndexOf
(
'@'
)));
...
@@ -158,7 +158,7 @@ const AddModal = props => {
...
@@ -158,7 +158,7 @@ const AddModal = props => {
i
.
fieldName
=
i
.
name
;
i
.
fieldName
=
i
.
name
;
i
.
configInfo
=
i
.
config
;
i
.
configInfo
=
i
.
config
;
i
.
presetValue
=
i
.
preset
==
'(无)'
?
''
:
i
.
preset
;
i
.
presetValue
=
i
.
preset
==
'(无)'
?
''
:
i
.
preset
;
i
.
showCss
=
props
.
tableInfo
.
template
.
tableStyle
;
i
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
i
.
tableName
=
ss
;
i
.
tableName
=
ss
;
i
.
uiGroup
=
item
;
i
.
uiGroup
=
item
;
i
.
readOnly
=
i
.
readOnly
==
'是'
?
1
:
0
;
i
.
readOnly
=
i
.
readOnly
==
'是'
?
1
:
0
;
...
@@ -172,7 +172,7 @@ const AddModal = props => {
...
@@ -172,7 +172,7 @@ const AddModal = props => {
});
});
flowNodeMeta
.
groups
=
arrdata
;
flowNodeMeta
.
groups
=
arrdata
;
list
.
flowNodeMeta
=
flowNodeMeta
;
list
.
flowNodeMeta
=
flowNodeMeta
;
list
.
showCss
=
props
.
tableInfo
.
template
.
tableStyle
;
list
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
console
.
log
(
list
);
console
.
log
(
list
);
let
tablesSchema
=
{
let
tablesSchema
=
{
...
@@ -194,11 +194,11 @@ const AddModal = props => {
...
@@ -194,11 +194,11 @@ const AddModal = props => {
}
}
});
});
}
else
{
}
else
{
let
ss
=
props
.
tableInfo
.
id
;
let
ss
=
props
.
location
.
state
.
id
;
setFormObj
(
props
.
tableInfo
.
id
);
setFormObj
(
props
.
location
.
state
.
id
);
setFormName
(
props
.
tableInfo
.
name
);
setFormName
(
props
.
location
.
state
.
name
);
reloadTableFields
({
reloadTableFields
({
tableName
:
props
.
tableInfo
.
id
,
tableName
:
props
.
location
.
state
.
id
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
setTreeLoading
(
false
);
setTreeLoading
(
false
);
if
(
res
.
msg
===
'Ok'
)
{
if
(
res
.
msg
===
'Ok'
)
{
...
@@ -214,7 +214,7 @@ const AddModal = props => {
...
@@ -214,7 +214,7 @@ const AddModal = props => {
console
.
log
(
arrlist
);
console
.
log
(
arrlist
);
setKeepTree
(
arrlist
);
setKeepTree
(
arrlist
);
data
.
TableFieldNames
=
arrlist
;
data
.
TableFieldNames
=
arrlist
;
data
.
TableName
=
props
.
tableInfo
.
id
;
data
.
TableName
=
props
.
location
.
state
.
id
;
listArr
.
push
(
data
);
listArr
.
push
(
data
);
setKeepTreeData
(
listArr
);
setKeepTreeData
(
listArr
);
let
arr
=
formateArrDataA
(
res
.
data
.
root
,
'group'
);
let
arr
=
formateArrDataA
(
res
.
data
.
root
,
'group'
);
...
@@ -234,7 +234,7 @@ const AddModal = props => {
...
@@ -234,7 +234,7 @@ const AddModal = props => {
i
.
fieldName
=
i
.
name
;
i
.
fieldName
=
i
.
name
;
i
.
configInfo
=
i
.
config
;
i
.
configInfo
=
i
.
config
;
i
.
presetValue
=
i
.
preset
==
'(无)'
?
''
:
i
.
preset
;
i
.
presetValue
=
i
.
preset
==
'(无)'
?
''
:
i
.
preset
;
i
.
showCss
=
props
.
tableInfo
.
template
.
tableStyle
;
i
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
i
.
tableName
=
ss
;
i
.
tableName
=
ss
;
i
.
uiGroup
=
item
;
i
.
uiGroup
=
item
;
i
.
readOnly
=
i
.
readOnly
==
'是'
?
1
:
0
;
i
.
readOnly
=
i
.
readOnly
==
'是'
?
1
:
0
;
...
@@ -248,7 +248,7 @@ const AddModal = props => {
...
@@ -248,7 +248,7 @@ const AddModal = props => {
});
});
flowNodeMeta
.
groups
=
arrdata
;
flowNodeMeta
.
groups
=
arrdata
;
list
.
flowNodeMeta
=
flowNodeMeta
;
list
.
flowNodeMeta
=
flowNodeMeta
;
list
.
showCss
=
props
.
tableInfo
.
template
.
tableStyle
;
list
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
console
.
log
(
list
);
console
.
log
(
list
);
let
tablesSchema
=
{
let
tablesSchema
=
{
...
@@ -316,7 +316,7 @@ const AddModal = props => {
...
@@ -316,7 +316,7 @@ const AddModal = props => {
// 返回上一级
// 返回上一级
const
back
=
()
=>
{
const
back
=
()
=>
{
console
.
log
(
props
.
tableInfo
);
console
.
log
(
props
.
location
.
state
);
let
{
let
{
template
,
template
,
tableScroll
,
tableScroll
,
...
@@ -325,7 +325,7 @@ const AddModal = props => {
...
@@ -325,7 +325,7 @@ const AddModal = props => {
groupArr
,
groupArr
,
searchValue
,
searchValue
,
select
,
select
,
}
=
props
.
tableInfo
;
}
=
props
.
location
.
state
;
console
.
log
(
keepValue
);
console
.
log
(
keepValue
);
console
.
log
(
pickIndex
,
groupArr
,
'back'
);
console
.
log
(
pickIndex
,
groupArr
,
'back'
);
history
.
push
({
history
.
push
({
...
@@ -389,7 +389,7 @@ const AddModal = props => {
...
@@ -389,7 +389,7 @@ const AddModal = props => {
i
.
fieldName
=
i
.
name
;
i
.
fieldName
=
i
.
name
;
i
.
configInfo
=
i
.
config
;
i
.
configInfo
=
i
.
config
;
i
.
presetValue
=
i
.
preset
==
'(无)'
?
''
:
i
.
preset
;
i
.
presetValue
=
i
.
preset
==
'(无)'
?
''
:
i
.
preset
;
i
.
showCss
=
props
.
tableInfo
.
template
.
tableStyle
;
i
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
i
.
tableName
=
ss
;
i
.
tableName
=
ss
;
i
.
uiGroup
=
item
;
i
.
uiGroup
=
item
;
i
.
readOnly
=
i
.
readOnly
==
'是'
?
1
:
0
;
i
.
readOnly
=
i
.
readOnly
==
'是'
?
1
:
0
;
...
@@ -403,7 +403,7 @@ const AddModal = props => {
...
@@ -403,7 +403,7 @@ const AddModal = props => {
});
});
flowNodeMeta
.
groups
=
arrdata
;
flowNodeMeta
.
groups
=
arrdata
;
list
.
flowNodeMeta
=
flowNodeMeta
;
list
.
flowNodeMeta
=
flowNodeMeta
;
list
.
showCss
=
props
.
tableInfo
.
template
.
tableStyle
;
list
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
console
.
log
(
list
);
console
.
log
(
list
);
let
tablesSchema
=
{
let
tablesSchema
=
{
...
@@ -449,7 +449,7 @@ const AddModal = props => {
...
@@ -449,7 +449,7 @@ const AddModal = props => {
});
});
});
});
}
else
{
}
else
{
setPramFormObj
(
props
.
tableInfo
.
template
);
setPramFormObj
(
props
.
location
.
state
.
template
);
}
}
setType
(
'affiliateAdd'
);
setType
(
'affiliateAdd'
);
setVisible
(
true
);
setVisible
(
true
);
...
@@ -464,7 +464,7 @@ const AddModal = props => {
...
@@ -464,7 +464,7 @@ const AddModal = props => {
{
/* <Spin tip="loading..." spinning={treeLoading}> */
}
{
/* <Spin tip="loading..." spinning={treeLoading}> */
}
<
div
className=
{
styles
.
containerBox
}
>
<
div
className=
{
styles
.
containerBox
}
>
<
div
className=
{
styles
.
config
}
>
<
div
className=
{
styles
.
config
}
>
{
/* <ArrowLeftOutlined onClick={back} className={styles.goBack} /> */
}
<
ArrowLeftOutlined
onClick=
{
back
}
className=
{
styles
.
goBack
}
/>
<
div
className=
{
styles
.
title
}
>
展示名称 【
{
formName
}
】
</
div
>
<
div
className=
{
styles
.
title
}
>
展示名称 【
{
formName
}
】
</
div
>
<
div
style=
{
{
display
:
'flex'
,
justifyContent
:
'flex-end'
}
}
>
<
div
style=
{
{
display
:
'flex'
,
justifyContent
:
'flex-end'
}
}
>
{
/* <div style={{ lineHeight: '32px', marginRight: '5px' }}>快速切换表:</div>
{
/* <div style={{ lineHeight: '32px', marginRight: '5px' }}>快速切换表:</div>
...
@@ -529,7 +529,7 @@ const AddModal = props => {
...
@@ -529,7 +529,7 @@ const AddModal = props => {
</
div
>
</
div
>
</
div
>
</
div
>
<
div
style=
{
{
width
:
'100%'
,
height
:
'calc(100% - 63px)'
,
padding
:
'10px'
}
}
>
<
div
style=
{
{
width
:
'100%'
,
height
:
'calc(100% - 63px)'
,
padding
:
'10px'
}
}
>
{
formObj
&&
<
FormDesigner
ref=
{
formRef
}
tableName=
{
formObj
}
/>
}
{
formObj
&&
<
FormDesigner
ref=
{
formRef
}
tableName=
{
formObj
}
extra=
{
true
}
/>
}
</
div
>
</
div
>
</
div
>
</
div
>
{
/* </Spin> */
}
{
/* </Spin> */
}
...
...
src/pages/bsmanager/base/tablemanager/index.jsx
View file @
5710f7bf
...
@@ -217,24 +217,24 @@ const TableManager = props => {
...
@@ -217,24 +217,24 @@ const TableManager = props => {
const
fieldsConfig
=
(
record
,
e
)
=>
{
const
fieldsConfig
=
(
record
,
e
)
=>
{
e
.
stopPropagation
();
e
.
stopPropagation
();
setFormObj
(
record
);
setFormObj
(
record
);
pushFieldConfig
(
record
);
//
pushFieldConfig(record);
//
history.push({
history
.
push
({
//
pathname: `/biz/account/fieldConfig`,
pathname
:
`/biz/account/fieldConfig`
,
//
state: {
state
:
{
//
name: record.tableAlias || record.tableName,
name
:
record
.
tableAlias
||
record
.
tableName
,
//
id: record.tableName,
id
:
record
.
tableName
,
//
template: record,
template
:
record
,
//
tableScroll: document.querySelector('.ant-table-body').scrollTop,
tableScroll
:
document
.
querySelector
(
'.ant-table-body'
).
scrollTop
,
//
groupArr: groupArr,
groupArr
:
groupArr
,
//
pickIndex: pickIndex,
pickIndex
:
pickIndex
,
//
searchValue: searchValue,
searchValue
:
searchValue
,
//
select: select,
select
:
select
,
//
keepValue: keepValue,
keepValue
:
keepValue
,
//
keepTreeSelect: keepTreeSelect,
keepTreeSelect
:
keepTreeSelect
,
//
keepTreeFirst: keepTreeFirst,
keepTreeFirst
:
keepTreeFirst
,
//
keepData: keepData,
keepData
:
keepData
,
//
},
},
//
});
});
// setType('config');
// setType('config');
// setVisible(true);
// setVisible(true);
};
};
...
@@ -379,24 +379,9 @@ const TableManager = props => {
...
@@ -379,24 +379,9 @@ const TableManager = props => {
};
};
const
pushFieldConfig
=
record
=>
{
const
pushFieldConfig
=
record
=>
{
// history.push({
history
.
push
({
// pathname: `/biz/account/fieldConfig`,
pathname
:
`/biz/account/fieldConfig`
,
// state: {
state
:
{
// name: record.tableAlias || record.tableName,
// id: record.tableName,
// template: record,
// tableScroll: document.querySelector('.ant-table-body').scrollTop,
// groupArr: groupArr,
// pickIndex: pickIndex,
// searchValue: searchValue,
// select: select,
// keepValue: keepValue,
// keepTreeSelect: keepTreeSelect,
// keepTreeFirst: keepTreeFirst,
// keepData: keepData,
// },
// });
setTableInfo
({
name
:
record
.
tableAlias
||
record
.
tableName
,
name
:
record
.
tableAlias
||
record
.
tableName
,
id
:
record
.
tableName
,
id
:
record
.
tableName
,
template
:
record
,
template
:
record
,
...
@@ -409,8 +394,23 @@ const TableManager = props => {
...
@@ -409,8 +394,23 @@ const TableManager = props => {
keepTreeSelect
:
keepTreeSelect
,
keepTreeSelect
:
keepTreeSelect
,
keepTreeFirst
:
keepTreeFirst
,
keepTreeFirst
:
keepTreeFirst
,
keepData
:
keepData
,
keepData
:
keepData
,
},
});
});
setFieldConfigShow
(
true
);
// setTableInfo({
// name: record.tableAlias || record.tableName,
// id: record.tableName,
// template: record,
// tableScroll: document.querySelector('.ant-table-body').scrollTop,
// groupArr: groupArr,
// pickIndex: pickIndex,
// searchValue: searchValue,
// select: select,
// keepValue: keepValue,
// keepTreeSelect: keepTreeSelect,
// keepTreeFirst: keepTreeFirst,
// keepData: keepData,
// });
// setFieldConfigShow(true);
};
};
const
columns
=
[
const
columns
=
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment