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
e73e379c
Commit
e73e379c
authored
Feb 17, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面调整
parent
899e1356
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
17 deletions
+8
-17
index.js
src/util/index.js
+6
-4
ImportExcelCopy.jsx
src/view/Manage/Model/Component/ImportExcelCopy.jsx
+1
-1
ModelTable.jsx
src/view/Manage/Model/Component/ModelTable.jsx
+1
-0
ModelTable.less
src/view/Manage/Model/Component/ModelTable.less
+0
-12
No files found.
src/util/index.js
View file @
e73e379c
...
...
@@ -338,10 +338,12 @@ export function formatVersionDate(t) {
var
YY
=
date
.
getFullYear
()
+
'-'
;
var
MM
=
(
date
.
getMonth
()
+
1
<
10
?
'0'
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
)
+
'-'
;
var
DD
=
(
date
.
getDate
()
<
10
?
'0'
+
(
date
.
getDate
())
:
date
.
getDate
());
var
hh
=
(
date
.
getHours
()
<
10
?
'0'
+
date
.
getHours
()
:
date
.
getHours
())
+
'-'
;
var
mm
=
(
date
.
getMinutes
()
<
10
?
'0'
+
date
.
getMinutes
()
:
date
.
getMinutes
())
+
'-'
;
var
ss
=
(
date
.
getSeconds
()
<
10
?
'0'
+
date
.
getSeconds
()
:
date
.
getSeconds
());
return
YY
+
MM
+
DD
+
"_"
+
hh
+
mm
+
ss
;
// var hh = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + '-';
// var mm = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + '-';
// var ss = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
// return YY + MM + DD +"_"+hh + mm + ss;
return
YY
+
MM
+
DD
;
}
export
function
formatVersionHistoryDate
(
t
)
{
...
...
src/view/Manage/Model/Component/ImportExcelCopy.jsx
View file @
e73e379c
...
...
@@ -32,7 +32,7 @@ class ImportExcelCopy extends React.Component {
const
{
inputValue
,
translateValues
}
=
this
.
state
;
const
_placeholder
=
'
支持两种方式创建
\
n方式一: Excel内容复制粘贴(模型名称和中文字段名)
\
n方式二: 手动输入模型名称和中文字段
'
;
const
_placeholder
=
'
请在此输入表名、字段中文名,支持以空格、逗号或换行符作为分隔符。如"证券资料表 证券名称 账户代码,证券代码"
'
;
let
_modelName
=
''
,
_attrsStr
=
''
;
if
(
translateValues
.
length
>
0
)
{
...
...
src/view/Manage/Model/Component/ModelTable.jsx
View file @
e73e379c
...
...
@@ -691,6 +691,7 @@ const ModelTable = (props) => {
},
}
}
}
scroll=
{
{
y
:
modelId
?
null
:((
filterData
||
[]).
length
===
0
?
null
:
'calc(100vh - 94px - 57px - 24px - 38px - 44px)'
)
}
}
onChange=
{
onTableChange
}
expandable=
{
expandable
}
/>
...
...
src/view/Manage/Model/Component/ModelTable.less
View file @
e73e379c
@import '../../../../variables.less';
.model-table {
.yy-table {
height: calc(100vh - @header-height - @pm-4 - 57px - @pm-3 - 42px) !important;
overflow: auto !important;
}
.yy-pro-table {
.yy-card-body {
padding: 0 !important;
...
...
@@ -14,13 +9,6 @@
.yy-divider-vertical {
margin: 0 2px !important;
}
//项目设置了宽度小于1300px后横向滚动,需要去掉滚动条高度
@media screen and (max-width: 1300px) {
.yy-table {
height: calc(100vh - @header-height - @pm-4 - 57px - @pm-3 - 42px - @scroll-height) !important;
}
}
}
.model-table-sub {
...
...
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