From 9c7c21e8eacda173feb418bdfe739f7f97358233 Mon Sep 17 00:00:00 2001 From: liuwh <hugeinfo123> Date: Sun, 29 Mar 2020 17:28:46 +0800 Subject: [PATCH] bug修复 --- SunshineIns/src/page/ExamineEdit.jsx | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/SunshineIns/src/page/ExamineEdit.jsx b/SunshineIns/src/page/ExamineEdit.jsx index b4452a2..63d228e 100644 --- a/SunshineIns/src/page/ExamineEdit.jsx +++ b/SunshineIns/src/page/ExamineEdit.jsx @@ -1,7 +1,7 @@ import React from 'react'; -import { Row, Col, Input, DatePicker, Button, Modal, Upload, Icon, message, Divider, TimePicker, Badge, Select, Popconfirm, Spin } from 'antd'; +import { Row, Col, Input, DatePicker, Button, Modal, Upload, Icon, message, Divider, Breadcrumb, Badge, Select, Popconfirm, Spin } from 'antd'; const { TextArea } = Input; import HeadView from '../view/HeadView'; import BusDetailView from '../view/BusDetailView'; @@ -69,7 +69,7 @@ ...res, }, loading: false, - fileList: res.list ? res.list.map((item, index) => ({ uid: index, id: item.id, name: item.name, status: 'done', url: domain + `/api/v1/attachment/download/${item.id}?online=false` })) : [] + fileList: res.list ? res.list.map((item, index) => ({ uid: uid, id: item.uid, name: item.name, status: 'done', url: domain + `/api/v1/attachment/download/${item.uid}?online=false` })) : [] }); }) @@ -249,7 +249,7 @@ showRemoveIcon: false }, onDownload: (file) => { - Fetch.attachmentDownload(file.id) + Fetch.attachmentDownload(file.uid) .then(res => { message.success("下载成功!"); }); @@ -261,6 +261,10 @@ <div className="app-page"> <Spin spinning={loading}> <HeadView history={this.props.history} /> + <Breadcrumb style={{ padding: '20px' }}> + <Breadcrumb.Item><a href="index.html#/entry/applyFor">检察院审核</a></Breadcrumb.Item> + <Breadcrumb.Item>检察院审核详情</Breadcrumb.Item> + </Breadcrumb> <BusDetailView type='检察院审核' > <div style={divStyle}> <Row type="flex" align='middle' justify="space-around"> -- Gitblit v1.8.0