From f2e3c11733d36ebc76761564273888681cca7332 Mon Sep 17 00:00:00 2001 From: Chengliang <1546584672@qq.com> Date: Tue, 1 Nov 2022 17:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=A1=E7=89=87=E9=A1=B5=E9=9D=A2bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/organization/components/resource/FormItem.js | 8 ++++++-- pc4mobx/organization/components/resource/resource.js | 11 ++++++++++- pc4mobx/organization/stores/resourceExtend.js | 4 ++++ pc4mobx/organization/style/card.less | 4 +++- 4 files changed, 23 insertions(+), 4 deletions(-) diff --git a/pc4mobx/organization/components/resource/FormItem.js b/pc4mobx/organization/components/resource/FormItem.js index 5451681..511e3a9 100644 --- a/pc4mobx/organization/components/resource/FormItem.js +++ b/pc4mobx/organization/components/resource/FormItem.js @@ -5,6 +5,7 @@ import { import { Spin, Button, + Tooltip } from 'antd' import { @@ -42,9 +43,12 @@ export default class FormItem extends React.Component { return (
{subItem.fieldId} - {subItem.fieldValue} + {subItem.fieldValue.length > 10 ? + {subItem.fieldValue} + : {subItem.fieldValue}} +
- + ); })} diff --git a/pc4mobx/organization/components/resource/resource.js b/pc4mobx/organization/components/resource/resource.js index 0464614..3a88c60 100644 --- a/pc4mobx/organization/components/resource/resource.js +++ b/pc4mobx/organization/components/resource/resource.js @@ -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(); + } } //左侧树 diff --git a/pc4mobx/organization/stores/resourceExtend.js b/pc4mobx/organization/stores/resourceExtend.js index b4aea58..35367c2 100644 --- a/pc4mobx/organization/stores/resourceExtend.js +++ b/pc4mobx/organization/stores/resourceExtend.js @@ -229,5 +229,9 @@ export class ResourceExtendStore { this.buttons = buttons; } + setDate(date) { + this.date = date; + } + } diff --git a/pc4mobx/organization/style/card.less b/pc4mobx/organization/style/card.less index 564a2e7..a4e0958 100644 --- a/pc4mobx/organization/style/card.less +++ b/pc4mobx/organization/style/card.less @@ -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;