From 51351c2d8c7297cb3f96e572c0e1a110ce8a5073 Mon Sep 17 00:00:00 2001 From: liuwh <hugeinfo123> Date: Tue, 24 Mar 2020 20:50:45 +0800 Subject: [PATCH] bug --- SunshineIns/src/page/UnderAgeList.jsx | 9 ++++++--- SunshineIns/src/fetch/_fetch.js | 4 ++-- SunshineIns/src/page/CareListEdit.jsx | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/SunshineIns/src/fetch/_fetch.js b/SunshineIns/src/fetch/_fetch.js index c2f1bd5..ad67ecd 100644 --- a/SunshineIns/src/fetch/_fetch.js +++ b/SunshineIns/src/fetch/_fetch.js @@ -2,8 +2,8 @@ // export const base = 'http://xnwj.gznsjc.gov.cn'; // export const base = 'http://nsjc.vaiwan.com'; -// export const base = 'http://nsjcy.hugeinfo.com.cn'; -export const base = 'http://1p885086k1.iok.la'; +export const base = 'http://nsjcy.hugeinfo.com.cn'; +// export const base = 'http://1p885086k1.iok.la'; // export const base = 'http://192.168.0.147:8081'; diff --git a/SunshineIns/src/page/CareListEdit.jsx b/SunshineIns/src/page/CareListEdit.jsx index 60aaea1..26e0f99 100644 --- a/SunshineIns/src/page/CareListEdit.jsx +++ b/SunshineIns/src/page/CareListEdit.jsx @@ -408,7 +408,7 @@ <Row type="flex" align='middle' justify="space-around"> <Col span={6} pull={0} style={{ textAlign: 'center' }}><span>任务类型</span></Col> <Col span={6} push={0} > - <Select disabled={disabled} value={taskType || 1} style={{ width: "300px" }} onChange={(value) => this.saveInputChange({ target: { name: 'taskType', value } })}> + <Select disabled={disabled} value={savedate.taskType || 1} style={{ width: "300px" }} onChange={(value) => this.saveInputChange({ target: { name: 'taskType', value } })}> <Option value={1}>跟踪帮教</Option> <Option value={2}>合适成年人</Option> <Option value={3}>社会调查</Option> diff --git a/SunshineIns/src/page/UnderAgeList.jsx b/SunshineIns/src/page/UnderAgeList.jsx index 4cc1ae6..1dd453e 100644 --- a/SunshineIns/src/page/UnderAgeList.jsx +++ b/SunshineIns/src/page/UnderAgeList.jsx @@ -21,7 +21,7 @@ companyName: '', companyLegal: '', companyTel: '', - }, + }, resetKey: Date.now(), closeKey: Date.now() }; @@ -45,7 +45,7 @@ formData: data, }); this.setState({ loading: true }) - Fetch.socialCompany({...data}) + Fetch.socialCompany({ ...data }) .then(res => { for (var i = 0; i < res.length; i++) { res[i]['index'] = i + 1; @@ -59,7 +59,7 @@ getData = () => { const { formdata } = this.state; this.setState({ loading: true }) - Fetch.socialCompany({formdata}) + Fetch.socialCompany({ formdata }) .then(res => { for (var i = 0; i < res.length; i++) { res[i]['index'] = i + 1; @@ -224,6 +224,9 @@ <div className="app-page"> <HeadView history={this.props.history} /> + <div style={{ marginLeft: '90%', marginBottom: '20px', marginTop: '20px' }}> + <Button type="primary" size='large' onClick={() => this.showModal('new')}>新增</Button> + </div> <div style={{ background: '#fff', margin: 20 }}> <CommonSearchForm {...this.props} -- Gitblit v1.8.0