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
0c34a354
Commit
0c34a354
authored
Jan 17, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
快速创建
parent
42d01639
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
ImportExcelCopy.jsx
src/view/Manage/Model/Component/ImportExcelCopy.jsx
+17
-17
No files found.
src/view/Manage/Model/Component/ImportExcelCopy.jsx
View file @
0c34a354
...
@@ -34,7 +34,11 @@ class ImportExcelCopy extends React.Component {
...
@@ -34,7 +34,11 @@ class ImportExcelCopy extends React.Component {
const
_placeholder
=
'支持两种方式创建
\
n方式一: Excel内容复制粘贴(模型名称和中文字段名)
\
n方式二: 手动输入模型名称和中文字段'
;
const
_placeholder
=
'支持两种方式创建
\
n方式一: Excel内容复制粘贴(模型名称和中文字段名)
\
n方式二: 手动输入模型名称和中文字段'
;
let
_attrsStr
=
''
;
let
_modelName
=
''
,
_attrsStr
=
''
;
if
(
translateValues
.
length
>
0
)
{
_modelName
=
translateValues
[
0
];
}
translateValues
.
forEach
((
item
,
index
)
=>
{
translateValues
.
forEach
((
item
,
index
)
=>
{
if
(
index
===
0
)
{
if
(
index
===
0
)
{
_attrsStr
=
''
;
_attrsStr
=
''
;
...
@@ -46,8 +50,8 @@ class ImportExcelCopy extends React.Component {
...
@@ -46,8 +50,8 @@ class ImportExcelCopy extends React.Component {
})
})
return
(
return
(
<
Row
gutter=
{
(
translateValues
.
length
>
0
)?
10
:
0
}
>
<
Row
gutter=
{
1
0
}
>
<
Col
span=
{
(
translateValues
.
length
>
0
)?
14
:
2
4
}
>
<
Col
span=
{
1
4
}
>
<
Input
.
TextArea
<
Input
.
TextArea
value=
{
inputValue
||
''
}
value=
{
inputValue
||
''
}
onChange=
{
this
.
onInputChange
}
onChange=
{
this
.
onInputChange
}
...
@@ -56,20 +60,16 @@ class ImportExcelCopy extends React.Component {
...
@@ -56,20 +60,16 @@ class ImportExcelCopy extends React.Component {
>
>
</
Input
.
TextArea
>
</
Input
.
TextArea
>
</
Col
>
</
Col
>
{
<
Col
span=
{
10
}
>
(
translateValues
.
length
>
0
)
&&
<
Col
span=
{
10
}
>
<
Descriptions
className=
'excel-copy-descritpion'
column=
{
1
}
size=
'small'
>
<
Descriptions
className=
'excel-copy-descritpion'
column=
{
1
}
size=
'small'
>
<
Descriptions
.
Item
label=
'模型名称'
>
<
Descriptions
.
Item
label=
'模型名称'
>
{
translateValues
[
0
]
}
{
translateValues
[
0
]
}
</
Descriptions
.
Item
>
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'字段名称'
>
{
{
_attrsStr
}
_attrsStr
.
length
>
0
&&
<
Descriptions
.
Item
label=
'字段名称'
>
</
Descriptions
.
Item
>
{
_attrsStr
}
</
Descriptions
>
</
Descriptions
.
Item
>
</
Col
>
}
</
Descriptions
>
</
Col
>
}
</
Row
>
</
Row
>
)
)
}
}
...
...
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