卡片页面bug修复
This commit is contained in:
parent
8931a06127
commit
f2e3c11733
|
|
@ -5,6 +5,7 @@ import {
|
|||
import {
|
||||
Spin,
|
||||
Button,
|
||||
Tooltip
|
||||
} from 'antd'
|
||||
|
||||
import {
|
||||
|
|
@ -42,9 +43,12 @@ export default class FormItem extends React.Component {
|
|||
return (
|
||||
<div>
|
||||
<span>{subItem.fieldId}</span>
|
||||
<span>{subItem.fieldValue}</span>
|
||||
{subItem.fieldValue.length > 10 ? <Tooltip placement="topLeft" title={subItem.fieldValue}>
|
||||
<span>{subItem.fieldValue}</span>
|
||||
</Tooltip> : <span>{subItem.fieldValue}</span>}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -74,7 +74,16 @@ export default class Resource extends React.Component {
|
|||
resource
|
||||
} = this.props;
|
||||
resource.getHasRight();
|
||||
resource.getTableInfo();
|
||||
let {hash} = window.location;
|
||||
hash = hash.split("?")[1].split("&");
|
||||
if(hash.length >= 2) {
|
||||
let params = {};
|
||||
let arr = hash[0].split("=");
|
||||
params[arr[0]] = arr[1];
|
||||
resource.doSearch(params);
|
||||
}else {
|
||||
resource.getTableInfo();
|
||||
}
|
||||
}
|
||||
|
||||
//左侧树
|
||||
|
|
|
|||
|
|
@ -229,5 +229,9 @@ export class ResourceExtendStore {
|
|||
this.buttons = buttons;
|
||||
}
|
||||
|
||||
setDate(date) {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,8 +132,10 @@
|
|||
display: flex;
|
||||
div{
|
||||
width: 33.3%;
|
||||
display: inline-block;
|
||||
height: 40px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
span:first-child{
|
||||
color: #999999;
|
||||
width: 80px;
|
||||
|
|
|
|||
Loading…
Reference in New Issue