Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xform
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
田翔
xform
Commits
2ad668c8
Commit
2ad668c8
authored
Dec 10, 2024
by
杨子龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复表格取值问题
parent
59b5928b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
index.jsx
src/core/widgets/advanced/IndicatorCard/index.jsx
+1
-1
index.js
src/core/widgets/coord/DataTable/index.js
+5
-5
No files found.
src/core/widgets/advanced/IndicatorCard/index.jsx
View file @
2ad668c8
...
@@ -24,7 +24,7 @@ const IndicatorCard = props => {
...
@@ -24,7 +24,7 @@ const IndicatorCard = props => {
if
(
addons
){
if
(
addons
){
const
newObj
=
{};
const
newObj
=
{};
const
addonsForm
=
addons
.
formData
;
const
addonsForm
=
addons
.
getValues
()
;
loopObj
(
addonsForm
,
newObj
);
loopObj
(
addonsForm
,
newObj
);
field
=
newObj
[
schema
.
fieldName
]
field
=
newObj
[
schema
.
fieldName
]
}
}
...
...
src/core/widgets/coord/DataTable/index.js
View file @
2ad668c8
...
@@ -263,7 +263,7 @@ const DataTable = props => {
...
@@ -263,7 +263,7 @@ const DataTable = props => {
'台账名称': schema.accountName,
'台账名称': schema.accountName,
'映射字段': [{ fromField: '工单编号', toField: '工单编号' }],
'映射字段': [{ fromField: '工单编号', toField: '工单编号' }],
widget: schema.widget,
widget: schema.widget,
schema
: schema.layerName,
layerName
: schema.layerName,
accountName: schema.accountName,
accountName: schema.accountName,
tableName: schema.tableName
tableName: schema.tableName
}
}
...
@@ -291,7 +291,7 @@ const DataTable = props => {
...
@@ -291,7 +291,7 @@ const DataTable = props => {
const val = key.split("-")[1]
const val = key.split("-")[1]
const isHas = areaTaskShine.find(s => s.fromField === val);
const isHas = areaTaskShine.find(s => s.fromField === val);
if(isHas){
if(isHas
&& item[key]
){
const valuesObj = {
const valuesObj = {
fieldName: isHas.fromField,
fieldName: isHas.fromField,
fieldValue: item[key]
fieldValue: item[key]
...
@@ -322,12 +322,12 @@ const DataTable = props => {
...
@@ -322,12 +322,12 @@ const DataTable = props => {
setVisible(false);
setVisible(false);
res
.forEach((item , index) => {
list
.forEach((item , index) => {
item.key = index;
item.key = index;
})
})
setDataSource(
res
);
setDataSource(
list
);
setVisible(true);
setVisible(true);
onChange(
res
.length)
onChange(
list
.length)
})
})
return () => {
return () => {
...
...
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