From fd0f26a0431938799e8b7e4fee5b7aef5dd118a6 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Thu, 16 Jul 2020 09:54:40 +0800 Subject: [PATCH] loading --- src/forge/Order/Detail.js | 199 +++++++++++++++--------------- src/forge/Order/Milepost.js | 19 +-- src/forge/Order/MilepostDetail.js | 2 +- 3 files changed, 114 insertions(+), 106 deletions(-) diff --git a/src/forge/Order/Detail.js b/src/forge/Order/Detail.js index a9e81a95..17755fda 100644 --- a/src/forge/Order/Detail.js +++ b/src/forge/Order/Detail.js @@ -3,7 +3,7 @@ import { Link } from "react-router-dom"; import axios from "axios"; import { getImageUrl } from "educoder"; -import { Form , Popconfirm , Tag } from "antd"; +import { Form , Popconfirm , Tag , Spin } from "antd"; import Attachments from "../Upload/attachment"; import RenderHtml from "../../components/render-html"; import Comments from "../comments/comments"; @@ -27,7 +27,7 @@ class Detail extends Component { limit: 10, page: 1, search_count: undefined, - isSpin: false, + isSpins: true, showFiles: true, quillValue: "", quillFlag: false, @@ -52,6 +52,7 @@ class Detail extends Component { if (result) { this.setState({ data: result.data, + isSpins:false }); } }) @@ -144,7 +145,7 @@ class Detail extends Component { ChangePage = (page) => { this.setState({ page, - isSpin: true, + isSpins: true, }); const { limit } = this.state; this.getjournalslist(page, limit); @@ -186,7 +187,7 @@ class Detail extends Component { render() { const { projectsId, orderId } = this.props.match.params; - const { data } = this.state; + const { data , isSpins } = this.state; const get_color = (type) => { if (type === "高") { return "#e67e22"; @@ -200,111 +201,112 @@ class Detail extends Component { }; return ( -
分支: @@ -375,7 +377,8 @@ class Detail extends Component {