Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
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
zhaochengxiang
szse
Commits
4eb1cf41
Commit
4eb1cf41
authored
Apr 18, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据表类型问题
parent
954189ba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
20 deletions
+17
-20
ImportAction.jsx
src/view/Manage/Model/Component/ImportAction.jsx
+8
-10
ImportActionHeader.jsx
src/view/Manage/Model/Component/ImportActionHeader.jsx
+2
-0
ImportActionTable.jsx
src/view/Manage/Model/Component/ImportActionTable.jsx
+6
-9
ImportActionTable.less
src/view/Manage/Model/Component/ImportActionTable.less
+1
-1
No files found.
src/view/Manage/Model/Component/ImportAction.jsx
View file @
4eb1cf41
...
...
@@ -168,6 +168,14 @@ const ImportAction = (props) => {
onChange
&&
onChange
(
newModelerData
);
validateDataModel
(
newModelerData
);
},
error
:
()
=>
{
form
.
setFieldsValue
({
easyDataModelerModelingTemplate
:
modelerDataRef
.
current
.
easyDataModelerModelingTemplate
,
tableType
:
modelerDataRef
.
current
.
tableType
});
setTemplate
(
modelerDataRef
.
current
.
easyDataModelerModelingTemplate
);
}
})
}
...
...
@@ -295,18 +303,8 @@ const ImportAction = (props) => {
});
}
form
.
setFieldsValue
({
easyDataModelerModelingTemplate
:
currentTemplate
||
{},
tableType
:
value
});
const
newModelerData
=
{...
modelerData
,
easyDataModelerModelingTemplate
:
currentTemplate
,
tableType
:
currentTemplate
?
currentTemplate
.
cnName
:
value
};
setModelerData
(
newModelerData
);
modelerDataRef
.
current
=
newModelerData
;
onChange
&&
onChange
(
newModelerData
);
setTemplate
(
currentTemplate
);
getConsult
(
newModelerData
);
}
...
...
src/view/Manage/Model/Component/ImportActionHeader.jsx
View file @
4eb1cf41
...
...
@@ -275,6 +275,8 @@ const ImportActionHeader = (props) => {
}
const
onValuesChange
=
(
changedValues
,
allValues
)
=>
{
if
(
changedValues
.
hasOwnProperty
(
'tableType'
))
return
;
onChange
&&
onChange
(
changedValues
,
allValues
);
//有手动编辑过英文名称并且有内容的情况下, 不能通过编辑中文名称自动翻译
...
...
src/view/Manage/Model/Component/ImportActionTable.jsx
View file @
4eb1cf41
...
...
@@ -1297,18 +1297,15 @@ export const ImportActionTable = (props) => {
},
}}
rowClassName={(record, index) => {
if (type==='model' && record?.modelingTemplateTag && record?.modelingTemplateTag!=={} && !isEditing(record)) {
return 'editable-row template-highlight-row';
}
if (type==='model' && !isEditing(record)) {
if (record?.needAttention) {
return 'editable-row attention-row';
} else if (record?.partOfPrimaryKeyLogically) {
if (record?.partOfPrimaryKeyLogically) {
return 'editable-row primary-row';
}
}
if (record?.modelingTemplateTag?.id) {
return 'editable-row template-highlight-row';
}
}
return 'editable-row';
}}
onRow={(record, index) => {
...
...
src/view/Manage/Model/Component/ImportActionTable.less
View file @
4eb1cf41
...
...
@@ -13,7 +13,7 @@
.template-highlight-row {
.yy-table-cell {
background-color: #
e7f7ff
!important;
background-color: #
f7f7f7
!important;
}
}
...
...
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