修改项目列表页的搜索的

This commit is contained in:
sylor_huang@126.com 2020-04-10 19:30:00 +08:00
parent 59ac6f5c17
commit e4313d30eb
2 changed files with 12 additions and 13 deletions

View File

@ -30,8 +30,8 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/forge/Main/Index.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="287">
<caret line="168" column="6" lean-forward="true" selection-start-line="168" selection-start-column="6" selection-end-line="168" selection-end-column="6" />
<state relative-caret-position="115">
<caret line="160" column="24" selection-start-line="160" selection-start-column="24" selection-end-line="160" selection-end-column="24" />
<folding>
<element signature="e#0#42#0" expanded="true" />
</folding>
@ -43,7 +43,6 @@
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>topWrapper</find>
<find>topWrapper_btn</find>
<find>renderJournalList</find>
<find>img_fork</find>
@ -73,6 +72,7 @@
<find>NaV</find>
<find>创建</find>
<find>search</find>
<find>changeSearchValue</find>
</findStrings>
<replaceStrings>
<replace>任务</replace>
@ -259,16 +259,15 @@
<workItem from="1586245827209" duration="1692000" />
<workItem from="1586330226261" duration="658000" />
<workItem from="1586400014081" duration="18358000" />
<workItem from="1586517058808" duration="80000" />
<workItem from="1586517058808" duration="958000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="99218000" />
<option name="totallyTimeSpent" value="100096000" />
</component>
<component name="ToolWindowManager">
<frame x="0" y="23" width="1440" height="877" extended-state="0" />
<editor active="true" />
<frame x="0" y="0" width="1440" height="900" extended-state="0" />
<layout>
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.18240343" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
@ -283,7 +282,7 @@
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Database Changes" order="8" />
<window_info anchor="bottom" id="Version Control" order="9" weight="0.20722891" />
<window_info active="true" anchor="bottom" id="Terminal" order="10" visible="true" weight="0.11847134" />
<window_info active="true" anchor="bottom" id="Terminal" order="10" visible="true" weight="0.43373495" />
<window_info anchor="bottom" id="Event Log" order="11" side_tool="true" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
@ -789,8 +788,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/src/forge/Main/Index.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="287">
<caret line="168" column="6" lean-forward="true" selection-start-line="168" selection-start-column="6" selection-end-line="168" selection-end-column="6" />
<state relative-caret-position="115">
<caret line="160" column="24" selection-start-line="160" selection-start-column="24" selection-end-line="160" selection-end-column="24" />
<folding>
<element signature="e#0#42#0" expanded="true" />
</folding>

View File

@ -157,15 +157,15 @@ class Index extends Component{
page:1,
search:value,
isSpin:true,
project_type:undefined
project_type:undefined,
sort: "updated_on"
})
const { limit , sort , category_id } = this.state;
this.getListData(1 ,limit, value , sort , undefined,category_id);
}
changeSearchValue=(e)=>{
this.setState({
search:e.target.value,
sort_by: "updated_on"
search:e.target.value
})
}
// 翻页