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
4184aa98
Commit
4184aa98
authored
Mar 10, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '注释弹窗全屏'
parent
8c561103
Pipeline
#68985
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
107 additions
and
107 deletions
+107
-107
filedConfig.jsx
...s/bsmanager/base/tablemanager/filedConfig/filedConfig.jsx
+58
-58
index.jsx
src/pages/bsmanager/base/tablemanager/index.jsx
+49
-49
No files found.
src/pages/bsmanager/base/tablemanager/filedConfig/filedConfig.jsx
View file @
4184aa98
...
...
@@ -115,9 +115,9 @@ const AddModal = props => {
},
[]);
useEffect
(()
=>
{
if
(
props
.
tableInfo
.
id
)
{
setSelectTreeData
(
props
.
tableInfo
.
keepData
);
setSelectDataFirst
(
props
.
tableInfo
.
keepTreeFirst
);
if
(
props
.
location
.
state
.
id
)
{
setSelectTreeData
(
props
.
location
.
state
.
keepData
);
setSelectDataFirst
(
props
.
location
.
state
.
keepTreeFirst
);
if
(
treeSelectValue
)
{
let
ss
=
treeSelectValue
.
substring
(
0
,
treeSelectValue
.
lastIndexOf
(
'@'
));
setFormObj
(
treeSelectValue
.
substring
(
0
,
treeSelectValue
.
lastIndexOf
(
'@'
)));
...
...
@@ -158,7 +158,7 @@ const AddModal = props => {
i
.
fieldName
=
i
.
name
;
i
.
configInfo
=
i
.
config
;
i
.
presetValue
=
i
.
preset
==
'(无)'
?
''
:
i
.
preset
;
i
.
showCss
=
props
.
tableInfo
.
template
.
tableStyle
;
i
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
i
.
tableName
=
ss
;
i
.
uiGroup
=
item
;
i
.
readOnly
=
i
.
readOnly
==
'是'
?
1
:
0
;
...
...
@@ -172,7 +172,7 @@ const AddModal = props => {
});
flowNodeMeta
.
groups
=
arrdata
;
list
.
flowNodeMeta
=
flowNodeMeta
;
list
.
showCss
=
props
.
tableInfo
.
template
.
tableStyle
;
list
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
console
.
log
(
list
);
let
tablesSchema
=
{
...
...
@@ -194,11 +194,11 @@ const AddModal = props => {
}
});
}
else
{
let
ss
=
props
.
tableInfo
.
id
;
setFormObj
(
props
.
tableInfo
.
id
);
setFormName
(
props
.
tableInfo
.
name
);
let
ss
=
props
.
location
.
state
.
id
;
setFormObj
(
props
.
location
.
state
.
id
);
setFormName
(
props
.
location
.
state
.
name
);
reloadTableFields
({
tableName
:
props
.
tableInfo
.
id
,
tableName
:
props
.
location
.
state
.
id
,
}).
then
(
res
=>
{
setTreeLoading
(
false
);
if
(
res
.
msg
===
'Ok'
)
{
...
...
@@ -214,7 +214,7 @@ const AddModal = props => {
console
.
log
(
arrlist
);
setKeepTree
(
arrlist
);
data
.
TableFieldNames
=
arrlist
;
data
.
TableName
=
props
.
tableInfo
.
id
;
data
.
TableName
=
props
.
location
.
state
.
id
;
listArr
.
push
(
data
);
setKeepTreeData
(
listArr
);
let
arr
=
formateArrDataA
(
res
.
data
.
root
,
'group'
);
...
...
@@ -234,7 +234,7 @@ const AddModal = props => {
i
.
fieldName
=
i
.
name
;
i
.
configInfo
=
i
.
config
;
i
.
presetValue
=
i
.
preset
==
'(无)'
?
''
:
i
.
preset
;
i
.
showCss
=
props
.
tableInfo
.
template
.
tableStyle
;
i
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
i
.
tableName
=
ss
;
i
.
uiGroup
=
item
;
i
.
readOnly
=
i
.
readOnly
==
'是'
?
1
:
0
;
...
...
@@ -248,7 +248,7 @@ const AddModal = props => {
});
flowNodeMeta
.
groups
=
arrdata
;
list
.
flowNodeMeta
=
flowNodeMeta
;
list
.
showCss
=
props
.
tableInfo
.
template
.
tableStyle
;
list
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
console
.
log
(
list
);
let
tablesSchema
=
{
...
...
@@ -316,7 +316,7 @@ const AddModal = props => {
// 返回上一级
const
back
=
()
=>
{
console
.
log
(
props
.
tableInfo
);
console
.
log
(
props
.
location
.
state
);
let
{
template
,
tableScroll
,
...
...
@@ -325,7 +325,7 @@ const AddModal = props => {
groupArr
,
searchValue
,
select
,
}
=
props
.
tableInfo
;
}
=
props
.
location
.
state
;
console
.
log
(
keepValue
);
console
.
log
(
pickIndex
,
groupArr
,
'back'
);
history
.
push
({
...
...
@@ -389,7 +389,7 @@ const AddModal = props => {
i
.
fieldName
=
i
.
name
;
i
.
configInfo
=
i
.
config
;
i
.
presetValue
=
i
.
preset
==
'(无)'
?
''
:
i
.
preset
;
i
.
showCss
=
props
.
tableInfo
.
template
.
tableStyle
;
i
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
i
.
tableName
=
ss
;
i
.
uiGroup
=
item
;
i
.
readOnly
=
i
.
readOnly
==
'是'
?
1
:
0
;
...
...
@@ -403,7 +403,7 @@ const AddModal = props => {
});
flowNodeMeta
.
groups
=
arrdata
;
list
.
flowNodeMeta
=
flowNodeMeta
;
list
.
showCss
=
props
.
tableInfo
.
template
.
tableStyle
;
list
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
console
.
log
(
list
);
let
tablesSchema
=
{
...
...
@@ -449,7 +449,7 @@ const AddModal = props => {
});
});
}
else
{
setPramFormObj
(
props
.
tableInfo
.
template
);
setPramFormObj
(
props
.
location
.
state
.
template
);
}
setType
(
'affiliateAdd'
);
setVisible
(
true
);
...
...
@@ -461,13 +461,13 @@ const AddModal = props => {
};
return
(
<>
<
Spin
tip=
"loading..."
spinning=
{
treeLoading
}
>
<
div
className=
{
styles
.
containerBox
}
>
<
div
className=
{
styles
.
config
}
>
{
/* <ArrowLeftOutlined onClick={back} className={styles.goBack} /> */
}
<
div
className=
{
styles
.
title
}
>
展示名称 【
{
formName
}
】
</
div
>
<
div
style=
{
{
display
:
'flex'
,
justifyContent
:
'flex-end'
}
}
>
{
/* <div style={{ lineHeight: '32px', marginRight: '5px' }}>快速切换表:</div>
{
/* <Spin tip="loading..." spinning={treeLoading}> */
}
<
div
className=
{
styles
.
containerBox
}
>
<
div
className=
{
styles
.
config
}
>
<
ArrowLeftOutlined
onClick=
{
back
}
className=
{
styles
.
goBack
}
/>
<
div
className=
{
styles
.
title
}
>
展示名称 【
{
formName
}
】
</
div
>
<
div
style=
{
{
display
:
'flex'
,
justifyContent
:
'flex-end'
}
}
>
{
/* <div style={{ lineHeight: '32px', marginRight: '5px' }}>快速切换表:</div>
<div style={{ width: '350px', marginRight: '10px' }}>
<TreeSelect
showSearch
...
...
@@ -487,37 +487,37 @@ const AddModal = props => {
)}
</TreeSelect>
</div> */
}
<
div
className=
{
styles
.
btn
}
>
<
Button
type=
"primary"
// icon={<PlusSquareOutlined />}
ghost
onClick=
{
()
=>
formRef
.
current
.
clear
()
}
>
<
img
src=
{
clearSvg
}
style=
{
{
marginRight
:
'6px'
}
}
alt=
""
/>
清空
</
Button
>
<
Button
type=
"primary"
ghost
icon=
{
<
EyeOutlined
/>
}
onClick=
{
()
=>
formRef
.
current
.
preview
()
}
style=
{
{
marginLeft
:
'10px'
}
}
>
预览
</
Button
>
<
Button
type=
"primary"
icon=
{
<
UploadOutlined
/>
}
onClick=
{
()
=>
formRef
.
current
.
submit
()
}
style=
{
{
marginLeft
:
'10px'
}
}
>
提交
</
Button
>
{
/* <Button type="primary" icon={<PlusSquareOutlined />} onClick={add}>
<
div
className=
{
styles
.
btn
}
>
<
Button
type=
"primary"
// icon={<PlusSquareOutlined />}
ghost
onClick=
{
()
=>
formRef
.
current
.
clear
()
}
>
<
img
src=
{
clearSvg
}
style=
{
{
marginRight
:
'6px'
}
}
alt=
""
/>
清空
</
Button
>
<
Button
type=
"primary"
ghost
icon=
{
<
EyeOutlined
/>
}
onClick=
{
()
=>
formRef
.
current
.
preview
()
}
style=
{
{
marginLeft
:
'10px'
}
}
>
预览
</
Button
>
<
Button
type=
"primary"
icon=
{
<
UploadOutlined
/>
}
onClick=
{
()
=>
formRef
.
current
.
submit
()
}
style=
{
{
marginLeft
:
'10px'
}
}
>
提交
</
Button
>
{
/* <Button type="primary" icon={<PlusSquareOutlined />} onClick={add}>
附加
</Button> */
}
{
/* <Button
{
/* <Button
type="primary"
icon={<RollbackOutlined />}
onClick={back}
...
...
@@ -525,14 +525,14 @@ const AddModal = props => {
>
返回
</Button> */
}
</
div
>
</
div
>
</
div
>
<
div
style=
{
{
width
:
'100%'
,
height
:
'calc(100% - 63px)'
,
padding
:
'10px'
}
}
>
{
formObj
&&
<
FormDesigner
ref=
{
formRef
}
tableName=
{
formObj
}
/>
}
</
div
>
</
div
>
</
Spin
>
<
div
style=
{
{
width
:
'100%'
,
height
:
'calc(100% - 63px)'
,
padding
:
'10px'
}
}
>
{
formObj
&&
<
FormDesigner
ref=
{
formRef
}
tableName=
{
formObj
}
/>
}
</
div
>
</
div
>
{
/* </Spin> */
}
{
visible
&&
type
===
'affiliateAdd'
&&
(
<
AffiliateAdd
visible=
{
visible
}
...
...
src/pages/bsmanager/base/tablemanager/index.jsx
View file @
4184aa98
...
...
@@ -217,24 +217,24 @@ const TableManager = props => {
const
fieldsConfig
=
(
record
,
e
)
=>
{
e
.
stopPropagation
();
setFormObj
(
record
);
pushFieldConfig
(
record
);
//
history.push({
//
pathname: `/biz/account/fieldConfig`,
//
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,
//
},
//
});
//
pushFieldConfig(record);
history
.
push
({
pathname
:
`/biz/account/fieldConfig`
,
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
,
},
});
// setType('config');
// setVisible(true);
};
...
...
@@ -379,38 +379,38 @@ const TableManager = props => {
};
const
pushFieldConfig
=
record
=>
{
// history.push({
// pathname: `/biz/account/fieldConfig`,
// 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
,
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
,
history
.
push
({
pathname
:
`/biz/account/fieldConfig`
,
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
,
},
});
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
=
[
...
...
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