From f39bc9d667e68526c79387d754e6304a80825ef5 Mon Sep 17 00:00:00 2001
From: liuwh <hugeinfo123>
Date: Tue, 24 Mar 2020 22:07:59 +0800
Subject: [PATCH] 提交
---
SunshineIns/src/page/ApplyForEdit.jsx | 27 +++++++++++++--------------
1 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/SunshineIns/src/page/ApplyForEdit.jsx b/SunshineIns/src/page/ApplyForEdit.jsx
index 75bf9d6..bd5a04b 100644
--- a/SunshineIns/src/page/ApplyForEdit.jsx
+++ b/SunshineIns/src/page/ApplyForEdit.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 @@
},
disabled: res.status ? true : false,
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: index, id: item.id, name: item.name, status: 'done', url: domain + `/api/v1/attachment/download/${item.id}?online=false` })) : []
});
})
@@ -241,8 +241,8 @@
this.setState({ fileList });
},
fileList: fileList,
- onDownload:(file)=>{
- Fetch.attachmentDownload(file.id)
+ onDownload: (file) => {
+ Fetch.attachmentDownload(file.uid)
.then(res => {
message.success("下载成功!");
});
@@ -268,6 +268,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">
@@ -290,20 +294,15 @@
</div>
{
- savedate.status == 2 || savedate.status == 99 ?
+ savedate.status ?
<div style={{ display: 'flex', justifyContent: 'center' }}>
<Button style={{ marginLeft: '15px', width: '150px' }} onClick={this.cancle}>返回</Button>
</div>
:
- savedate.status == 1 ?
- <div style={{ display: 'flex', justifyContent: 'center' }}>
- <Button style={{ marginRight: '15px', width: '150px' }} type="primary" onClick={this.showModal}>结束任务</Button>
- <Button style={{ marginLeft: '15px', width: '150px' }} onClick={this.cancle}>返回</Button>
- </div> :
- <div style={{ display: 'flex', justifyContent: 'center' }}>
- <Button style={{ marginRight: '15px', width: '150px' }} type="primary" onClick={this.submit}>提交</Button>
- <Button style={{ marginLeft: '15px', width: '150px' }} onClick={this.cancle}>返回</Button>
- </div>
+ <div style={{ display: 'flex', justifyContent: 'center' }}>
+ <Button style={{ marginRight: '15px', width: '150px' }} type="primary" onClick={this.submit}>提交</Button>
+ <Button style={{ marginLeft: '15px', width: '150px' }} onClick={this.cancle}>返回</Button>
+ </div>
}
</BusDetailView>
--
Gitblit v1.8.0