From b71b401d7add3e4b5530a8519e9a6c00b239d061 Mon Sep 17 00:00:00 2001 From: Chengliang <1546584672@qq.com> Date: Tue, 17 Jan 2023 09:52:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../organization/components/log/LogView.js | 19 ++++++++++-------- .../components/resource/resource.js | 2 +- pc4mobx/organization/stores/resource.js | 5 ++++- pc4mobx/organization/style/common.less | 10 ++++++++-- pc4mobx/organization/style/index.less | 20 +++++++++++++++++++ 5 files changed, 44 insertions(+), 12 deletions(-) diff --git a/pc4mobx/organization/components/log/LogView.js b/pc4mobx/organization/components/log/LogView.js index 15851f9..77df038 100644 --- a/pc4mobx/organization/components/log/LogView.js +++ b/pc4mobx/organization/components/log/LogView.js @@ -167,9 +167,9 @@ export default class LogView extends React.Component { iconBgcolor="#217346" visible={visible} closable={true} - hasScroll={true} + hasScroll={false} onCancel={() => onCancel()} - style={{ height: height, width: width }} + style={{ height: height, width: width}} initLoadCss className="logWrapper" > @@ -181,12 +181,15 @@ export default class LogView extends React.Component { searchsAd={showSearchAd ? this.getPanelComponents() :
} buttonsAd={this.getTabBtn()} /> - this.reRenderColumns(c)} - /> +
+ this.reRenderColumns(c)} + /> +
+ { Api.getSearchTemplate({ type: bool ? 'search' : 'custom' }).then(res => { if (res.code === 200) { - bool ? this.setTemplates(res.data) : this.setCustomTemplates(res.data); + if(res.data.templateId) { + this.customTemplateId = res.data.templateId; + } + bool ? this.setTemplates(res.data.templates) : this.setCustomTemplates(res.data.templates); } else { message.warning(res.msg); } diff --git a/pc4mobx/organization/style/common.less b/pc4mobx/organization/style/common.less index 84aa123..de20ad6 100644 --- a/pc4mobx/organization/style/common.less +++ b/pc4mobx/organization/style/common.less @@ -71,6 +71,7 @@ } + //日志弹框样式 .logWrapper{ .ant-table-body{ @@ -93,7 +94,7 @@ .wea-table-indent { overflow: hidden; text-overflow: ellipsis; - white-space: nowrap;overflow: hidden; + white-space: nowrap; } //列定制 @@ -109,4 +110,9 @@ // width: 85px; // float: right; // } - // } \ No newline at end of file + // } + + + + + \ No newline at end of file diff --git a/pc4mobx/organization/style/index.less b/pc4mobx/organization/style/index.less index 5dd610b..deb176d 100644 --- a/pc4mobx/organization/style/index.less +++ b/pc4mobx/organization/style/index.less @@ -35,6 +35,26 @@ html { background-color: transparent; } +//列表滚动条 +.wea-new-table { + ::-webkit-scrollbar { + width: 10px !important; + height: 10px !important; + background-color: transparent; + } + /*定义滚动条轨道 内阴影+圆角*/ + ::-webkit-scrollbar-track { + -webkit-box-shadow: transparent; + background-color: transparent; + } + /*定义滑块 内阴影+圆角*/ + ::-webkit-scrollbar-thumb { + border-radius: 10px; + -webkit-box-shadow: none; + background-color: #ccc; + } +} + //自定义设置 .fieldDef{ width: 100%;