Commit e73e379c by zhaochengxiang

页面调整

parent 899e1356
......@@ -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) {
......
......@@ -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) {
......
......@@ -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}
/>
......
@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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment