|
@@ -7,9 +7,11 @@ import {
|
|
|
AtTabs,
|
|
|
AtTabsPane,
|
|
|
AtIcon,
|
|
|
+ AtSearchBar,
|
|
|
} from 'taro-ui';
|
|
|
|
|
|
import './index.less';
|
|
|
+import "taro-ui/dist/style/components/search-bar.scss";
|
|
|
import 'taro-ui/dist/style/components/tabs.scss';
|
|
|
import "taro-ui/dist/style/components/flex.scss";
|
|
|
import "taro-ui/dist/style/components/action-sheet.scss";
|
|
@@ -96,6 +98,7 @@ class Examine extends Component {
|
|
|
roleType: this.state.tabs,
|
|
|
startTime: this.state.rangeStartMinuteVal || undefined,
|
|
|
endTime: this.state.rangeEndMinuteVal || undefined,
|
|
|
+ projectName: this.state.searchValue || undefined,
|
|
|
}
|
|
|
for (let i in data) {
|
|
|
if (!data[i] && data[i] != 0) {
|
|
@@ -154,9 +157,9 @@ class Examine extends Component {
|
|
|
<View className='indexPage' >
|
|
|
<View className='searchContent'>
|
|
|
<View className='searchTop'>
|
|
|
- {/* <AtSearchBar
|
|
|
+ <AtSearchBar
|
|
|
showActionButton
|
|
|
- placeholder='请输入企业/渠道'
|
|
|
+ placeholder='请输项目名称'
|
|
|
value={this.state.searchValue}
|
|
|
onActionClick={() => {
|
|
|
this.getPublicReleaseList();
|
|
@@ -171,23 +174,8 @@ class Examine extends Component {
|
|
|
searchValue: ''
|
|
|
})
|
|
|
}}
|
|
|
- /> */}
|
|
|
+ />
|
|
|
</View>
|
|
|
- <AtTabs
|
|
|
- swipeable={false}
|
|
|
- current={this.state.tabs || 0}
|
|
|
- tabList={this.state.tlist}
|
|
|
- onClick={(tabs) => {
|
|
|
- this.setState({
|
|
|
- list: [],
|
|
|
- pageNum: 1,
|
|
|
- tabs: this.state.tlist[tabs].type,
|
|
|
- }, () => {
|
|
|
- this.getPublicReleaseList();
|
|
|
- })
|
|
|
- }}
|
|
|
- >
|
|
|
- </AtTabs>
|
|
|
|
|
|
<ScrollView className={this.state.openSearch ? 'searchBottomLOL' : ''} scrollX style={{ width: '100%' }}>
|
|
|
<View className='searchBottom'>
|
|
@@ -278,22 +266,44 @@ class Examine extends Component {
|
|
|
</View>
|
|
|
</View>
|
|
|
</ScrollView>
|
|
|
- {
|
|
|
- this.state.typeList?.map((item, index) =>
|
|
|
- <MyList
|
|
|
- type={this.state.tabs}
|
|
|
- title={item.title}
|
|
|
- typelist={this.state.typeList}
|
|
|
- seeView={this.state.current}
|
|
|
- list={this.state.list}
|
|
|
- listState={this.state.listState}
|
|
|
- onRefresh={() => {
|
|
|
- this.getProjectList(true);
|
|
|
- }}
|
|
|
- />
|
|
|
- )
|
|
|
- }
|
|
|
|
|
|
+ <AtTabs
|
|
|
+ swipeable={false}
|
|
|
+ current={this.state.tabs || 0}
|
|
|
+ tabList={this.state.tlist}
|
|
|
+ onClick={(tabs) => {
|
|
|
+ this.setState({
|
|
|
+ list: [],
|
|
|
+ pageNum: 1,
|
|
|
+ tabs: this.state.tlist[tabs].type,
|
|
|
+ }, () => {
|
|
|
+ this.getPublicReleaseList();
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ >
|
|
|
+
|
|
|
+ {
|
|
|
+ this.state.typeList?.map((item, index) =>
|
|
|
+ <AtTabsPane
|
|
|
+ current={this.state.tabs}
|
|
|
+ index={index}
|
|
|
+ >
|
|
|
+ <MyList
|
|
|
+ type={this.state.tabs}
|
|
|
+ title={item.title}
|
|
|
+ typelist={this.state.typeList}
|
|
|
+ seeView={this.state.tabs}
|
|
|
+ list={this.state.list}
|
|
|
+ listState={this.state.listState}
|
|
|
+ onRefresh={() => {
|
|
|
+ this.getProjectList(true);
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ </AtTabsPane>
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
+ </AtTabs>
|
|
|
</View>
|
|
|
|
|
|
<timePicker
|