From 61d4bef11bb712be61323bef47515436e62292bb Mon Sep 17 00:00:00 2001
From: liuwh <hugeinfo123>
Date: Wed, 27 May 2020 17:45:23 +0800
Subject: [PATCH] 2
---
SunshineIns/src/page/ActiveManageEdit.jsx | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/SunshineIns/src/page/ActiveManageEdit.jsx b/SunshineIns/src/page/ActiveManageEdit.jsx
index 2c3caca..f4bd483 100644
--- a/SunshineIns/src/page/ActiveManageEdit.jsx
+++ b/SunshineIns/src/page/ActiveManageEdit.jsx
@@ -124,13 +124,14 @@
}))
}
- selectonClick = () => {
+ selectonClick = (value) => {
this.setState({
questionnaireModal: true,
modalLoading: true
})
Fetch.questionQuery({
status: 3,
+ title : value,
page: this.state.page,
size: this.state.pageSize,
})
@@ -150,6 +151,10 @@
}
});
+ }
+
+ selClick = () =>{
+ this.selectonClick("");
}
selectCancelModel = () => {
@@ -472,7 +477,7 @@
)
}];
const questionnaireColumns = [{
- title: '主题',
+ title: '问卷标题',
dataIndex: 'title',
key: 'title',
ellipsis: true,
@@ -668,7 +673,7 @@
<Button type="link" onClick={this.questionnaireCancle}>查看</Button>
<Button type="link" onClick={this.questionnaireDel}>删除</Button>
</div> :
- <Button style={{ marginLeft: '15px', width: '150px' }} onClick={this.selectonClick}>请选择</Button>
+ <Button style={{ marginLeft: '15px', width: '150px' }} onClick={this.selClick}>请选择</Button>
}
</Col>
</Row>
@@ -684,7 +689,7 @@
<Button type="link" onClick={this.questionnaireCancle}>查看</Button>
<Button type="link" disabled onClick={this.questionnaireDel}>删除</Button>
</div> :
- <Button style={{ marginLeft: '15px', width: '150px' }} onClick={this.selectonClick}>请选择</Button>
+ <Button style={{ marginLeft: '15px', width: '150px' }} onClick={this.selClick}>请选择</Button>
}
</Col>
</Row>
@@ -770,7 +775,7 @@
<Button style={{ marginLeft: '15px', width: '150px' }} onClick={this.cancle}>返回</Button>
</div>
)
- ) : '123'
+ ) : ''
}
</BusDetailView>
@@ -826,7 +831,7 @@
enterButton="查询"
size="large"
style={{ margin: '12px' }}
- onSearch={value => this.questionnaireSearch(value)}
+ onSearch={value => this.selectonClick(value)}
/>
<Table
--
Gitblit v1.8.0