From 955d94d6a5b58131f6ae4be5a2f2a839e69e4947 Mon Sep 17 00:00:00 2001 From: timorls <318739742@qq.com> Date: Fri, 4 Mar 2022 17:21:41 +0800 Subject: [PATCH] mode --- src/assets/style/editReport.css | 8 +++----- .../branch/manage/rate/branch/editReport.js | 20 +++++++++---------- src/pages/home/content.js | 12 +++++++++++ src/pages/home/side.js | 13 ++++++++++-- 4 files changed, 36 insertions(+), 17 deletions(-) diff --git a/src/assets/style/editReport.css b/src/assets/style/editReport.css index 04db474..a1f6cf2 100644 --- a/src/assets/style/editReport.css +++ b/src/assets/style/editReport.css @@ -15,8 +15,6 @@ font-size: 14px; } -.paragraph_name{ - display: block; - margin: 20px 0; - font-size: 14px; -} +/* p>.ant-tag{ + margin: 20px 0; +} */ diff --git a/src/pages/home/branch/manage/rate/branch/editReport.js b/src/pages/home/branch/manage/rate/branch/editReport.js index 315874b..46dffd3 100644 --- a/src/pages/home/branch/manage/rate/branch/editReport.js +++ b/src/pages/home/branch/manage/rate/branch/editReport.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import api from "@/api/request" -import { Input, Button, Row, Col, Tree,BackTop } from 'antd' +import { Input, Button, Row, Col, Tree,BackTop,Tag } from 'antd' import "@/assets/style/editReport.css" class EditReport extends Component { @@ -142,25 +142,25 @@ class EditReport extends Component { treeData={this.state.tree} onSelect={this.onSelect} /> - + {this.state.data.map((item, i) => { - return + return

{item["章节"]} - +

{item["章节内容"].map((item_child, j) => { - return {item_child["小节"]} + return

{item_child["小节"]}

{ item_child["小节内容"].map((item_child_child, m) => { return Object.keys(item_child_child).map((key, n) => { return key === "表格" ? - {key}: - {this.simulate(item_child_child[key], i, j, m, n)} +

{key}:

+

{this.simulate(item_child_child[key], i, j, m, n)}

: - {key}: - {key}:

+

+ onChange={this.onOutput.bind(this, i, j, m, n)} />

}) }) diff --git a/src/pages/home/content.js b/src/pages/home/content.js index ca68414..20306c7 100644 --- a/src/pages/home/content.js +++ b/src/pages/home/content.js @@ -12,6 +12,8 @@ import AnalysisDetails from './branch/manage/industry/branch/analysisDetails' import UserSet from './branch/setting/user' import EmptyContent from "./empty" import { connect } from 'react-redux'; +import { CloseOutlined } from '@ant-design/icons'; +import { Button } from 'antd'; import { Tabs, Empty } from 'antd'; @@ -85,6 +87,10 @@ class Main extends Component { store.dispatch(operationAction(newPanes, newActiveKey)) }; + clearAll = () => { + store.dispatch(operationAction([],'0')) + } + getBranch = (props, name) => { var id if (name.match(/\((.+)\)/g)) { @@ -141,6 +147,12 @@ class Main extends Component { onChange={this.onChange} activeKey={this.props.activeKey} onEdit={this.onEdit} + tabBarExtraContent={{ + right: