Commit 70a59b90 authored by 熊成伟's avatar 熊成伟

debug

parent 51d5046c
Pipeline #15227 failed with stages
in 28 seconds
...@@ -4,15 +4,17 @@ ...@@ -4,15 +4,17 @@
<list default="true" id="a6d092de-b4f8-454d-99f5-4dac3ce112e5" name="Default Changelist" comment=""> <list default="true" id="a6d092de-b4f8-454d-99f5-4dac3ce112e5" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" /> <change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/components/NoticeTab/index.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/NoticeTab/index.jsx" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/components/NoticeTab/index.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/NoticeTab/index.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/components/TopSearch/index.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/TopSearch/index.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/index.css" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.css" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/layout/Footer.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/layout/Footer.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/pages/Backlog/Backlog.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/Backlog/Backlog.jsx" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/pages/Backlog/Backlog.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/Backlog/Backlog.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/pages/Communicate/AddressBook.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/Communicate/AddressBook.jsx" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/pages/Communicate/AddressBook.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/Communicate/AddressBook.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/pages/Communicate/Communicate.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/Communicate/Communicate.jsx" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/pages/Communicate/Communicate.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/Communicate/Communicate.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/pages/EventProcessing/Process.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/EventProcessing/Process.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/pages/Notice/Notice.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/Notice/Notice.jsx" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/pages/Notice/Notice.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/Notice/Notice.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/pages/Work/Work.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/Work/Work.jsx" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/pages/Work/Work.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/Work/Work.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/router.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/router.js" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/pages/Work/WorkDetail.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/pages/Work/WorkDetail.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/utils/instance.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/utils/instance.js" afterDir="false" />
</list> </list>
<ignored path="$PROJECT_DIR$/.tmp/" /> <ignored path="$PROJECT_DIR$/.tmp/" />
<ignored path="$PROJECT_DIR$/temp/" /> <ignored path="$PROJECT_DIR$/temp/" />
...@@ -25,49 +27,11 @@ ...@@ -25,49 +27,11 @@
</component> </component>
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/pages/EventProcessing/Process.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="523">
<caret line="121" column="29" selection-start-line="121" selection-start-column="29" selection-end-line="121" selection-end-column="29" />
<folding>
<element signature="e#0#49#0" expanded="true" />
<element signature="e#4061#5308#0" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/pages/Backlog/Backlog.jsx"> <entry file="file://$PROJECT_DIR$/src/pages/Backlog/Backlog.jsx">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="125"> <state relative-caret-position="370">
<caret line="5" selection-start-line="5" selection-end-line="5" selection-end-column="43" /> <caret line="44" column="6" lean-forward="true" selection-start-line="19" selection-start-column="2" selection-end-line="44" selection-end-column="6" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/pages/Notice/Notice.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="448">
<caret line="65" column="12" selection-start-line="65" selection-start-column="12" selection-end-line="65" selection-end-column="12" />
<caret line="66" column="16" selection-start-line="66" selection-start-column="16" selection-end-line="66" selection-end-column="16" />
<caret line="67" column="20" selection-start-line="67" selection-start-column="20" selection-end-line="67" selection-end-column="20" />
<caret line="68" column="20" selection-start-line="68" selection-start-column="20" selection-end-line="68" selection-end-column="20" />
<caret line="69" column="20" selection-start-line="69" selection-start-column="20" selection-end-line="69" selection-end-column="20" />
<caret line="70" column="16" selection-start-line="70" selection-start-column="16" selection-end-line="70" selection-end-column="16" />
<caret line="71" column="16" selection-start-line="71" selection-start-column="16" selection-end-line="71" selection-end-column="16" />
<caret line="72" column="16" selection-start-line="72" selection-start-column="16" selection-end-line="72" selection-end-column="16" />
<caret line="73" column="16" selection-start-line="73" selection-start-column="16" selection-end-line="73" selection-end-column="16" />
<caret line="74" column="20" selection-start-line="74" selection-start-column="20" selection-end-line="74" selection-end-column="20" />
<caret line="75" column="24" selection-start-line="75" selection-start-column="24" selection-end-line="75" selection-end-column="24" />
<caret line="76" column="28" selection-start-line="76" selection-start-column="28" selection-end-line="76" selection-end-column="28" />
<caret line="77" column="28" selection-start-line="77" selection-start-column="28" selection-end-line="77" selection-end-column="28" />
<caret line="78" column="24" selection-start-line="78" selection-start-column="24" selection-end-line="78" selection-end-column="24" />
<caret line="80" column="20" selection-start-line="80" selection-start-column="20" selection-end-line="80" selection-end-column="20" />
<caret line="81" column="16" selection-start-line="81" selection-start-column="16" selection-end-line="81" selection-end-column="16" />
<caret line="82" column="12" selection-start-line="82" selection-start-column="12" selection-end-line="82" selection-end-column="12" />
<folding> <folding>
<element signature="e#0#49#0" expanded="true" /> <element signature="e#0#49#0" expanded="true" />
</folding> </folding>
...@@ -76,22 +40,10 @@ ...@@ -76,22 +40,10 @@
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/pages/Work/Work.jsx"> <entry file="file://$PROJECT_DIR$/src/pages/Notice/Notice.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150">
<caret line="60" column="34" lean-forward="true" selection-start-line="60" selection-start-column="34" selection-end-line="60" selection-end-column="34" />
<folding>
<element signature="e#0#51#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/pages/Communicate/Communicate.jsx">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="248"> <state relative-caret-position="348">
<caret line="38" column="60" selection-start-line="38" selection-start-column="60" selection-end-line="38" selection-end-column="60" /> <caret line="39" column="6" selection-start-line="39" selection-start-column="6" selection-end-line="39" selection-end-column="6" />
<folding> <folding>
<element signature="e#0#49#0" expanded="true" /> <element signature="e#0#49#0" expanded="true" />
</folding> </folding>
...@@ -99,11 +51,11 @@ ...@@ -99,11 +51,11 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/pages/Communicate/AddressBook.jsx"> <entry file="file://$PROJECT_DIR$/src/pages/Work/WorkDetail.jsx">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="473"> <state relative-caret-position="298">
<caret line="44" column="22" selection-start-line="44" selection-start-column="22" selection-end-line="44" selection-end-column="22" /> <caret line="38" column="6" selection-start-line="38" selection-start-column="6" selection-end-line="38" selection-end-column="6" />
<folding> <folding>
<element signature="e#0#49#0" expanded="true" /> <element signature="e#0#49#0" expanded="true" />
</folding> </folding>
...@@ -111,70 +63,20 @@ ...@@ -111,70 +63,20 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/components/NoticeTab/index.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="225">
<caret line="9" column="26" lean-forward="true" selection-start-line="9" selection-start-column="26" selection-end-line="9" selection-end-column="26" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/router.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198">
<caret line="27" column="34" lean-forward="true" selection-start-line="27" selection-start-column="34" selection-end-line="27" selection-end-column="34" />
<folding>
<element signature="e#0#25#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/pages/EventProcessing/SubmitDetail.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="200">
<caret line="14" column="53" selection-start-line="14" selection-start-column="37" selection-end-line="14" selection-end-column="53" />
<folding>
<element signature="e#123#170#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/components/AddressList/index.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="200">
<caret line="8" column="93" selection-start-line="8" selection-start-column="93" selection-end-line="8" selection-end-column="93" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
</leaf> </leaf>
</component> </component>
<component name="FileTemplateManagerImpl"> <component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES"> <option name="RECENT_TEMPLATES">
<list> <list>
<option value="JavaScript File" /> <option value="JavaScript File" />
<option value="Less File" />
<option value="React jsx" /> <option value="React jsx" />
<option value="Less File" />
</list> </list>
</option> </option>
</component> </component>
<component name="FindInProjectRecents"> <component name="FindInProjectRecents">
<findStrings> <findStrings>
<find>process-edit</find>
<find>option-text</find> <find>option-text</find>
<find>console</find>
<find>textClick</find> <find>textClick</find>
<find>Row</find> <find>Row</find>
<find>ackground</find> <find>ackground</find>
...@@ -202,6 +104,8 @@ ...@@ -202,6 +104,8 @@
<find>bear</find> <find>bear</find>
<find>parent</find> <find>parent</find>
<find>operate</find> <find>operate</find>
<find>console</find>
<find>setEnd</find>
</findStrings> </findStrings>
<replaceStrings> <replaceStrings>
<replace>this.props</replace> <replace>this.props</replace>
...@@ -217,12 +121,8 @@ ...@@ -217,12 +121,8 @@
<component name="IdeDocumentHistory"> <component name="IdeDocumentHistory">
<option name="CHANGED_PATHS"> <option name="CHANGED_PATHS">
<list> <list>
<option value="$PROJECT_DIR$/src/components/TopTabs/index.jsx" />
<option value="$PROJECT_DIR$/src/pages/AddressList/AddressList.jsx" />
<option value="$PROJECT_DIR$/src/components/Adjunct/index.less" />
<option value="$PROJECT_DIR$/src/components/Adjunct/index.jsx" /> <option value="$PROJECT_DIR$/src/components/Adjunct/index.jsx" />
<option value="$PROJECT_DIR$/src/resize.js" /> <option value="$PROJECT_DIR$/src/resize.js" />
<option value="$PROJECT_DIR$/src/index.css" />
<option value="$PROJECT_DIR$/public/index.html" /> <option value="$PROJECT_DIR$/public/index.html" />
<option value="$PROJECT_DIR$/src/components/TodoCard/index.less" /> <option value="$PROJECT_DIR$/src/components/TodoCard/index.less" />
<option value="$PROJECT_DIR$/src/components/TodoCard/index.jsx" /> <option value="$PROJECT_DIR$/src/components/TodoCard/index.jsx" />
...@@ -239,14 +139,11 @@ ...@@ -239,14 +139,11 @@
<option value="$PROJECT_DIR$/.gitignore" /> <option value="$PROJECT_DIR$/.gitignore" />
<option value="$PROJECT_DIR$/.gitlab-ci.yml" /> <option value="$PROJECT_DIR$/.gitlab-ci.yml" />
<option value="$PROJECT_DIR$/config-overrides.js" /> <option value="$PROJECT_DIR$/config-overrides.js" />
<option value="$PROJECT_DIR$/src/components/TopSearch/index.jsx" />
<option value="$PROJECT_DIR$/src/components/WorkCard/CardItem.jsx" /> <option value="$PROJECT_DIR$/src/components/WorkCard/CardItem.jsx" />
<option value="$PROJECT_DIR$/src/components/LogCard/index.less" /> <option value="$PROJECT_DIR$/src/components/LogCard/index.less" />
<option value="$PROJECT_DIR$/src/pages/Work/WorkDetail.jsx" />
<option value="$PROJECT_DIR$/default.conf" /> <option value="$PROJECT_DIR$/default.conf" />
<option value="$PROJECT_DIR$/src/pages/Login/index.jsx" /> <option value="$PROJECT_DIR$/src/pages/Login/index.jsx" />
<option value="$PROJECT_DIR$/src/components/WorkCard/index.jsx" /> <option value="$PROJECT_DIR$/src/components/WorkCard/index.jsx" />
<option value="$PROJECT_DIR$/src/layout/Footer.jsx" />
<option value="$PROJECT_DIR$/src/components/AddressList/AddressUser.jsx" /> <option value="$PROJECT_DIR$/src/components/AddressList/AddressUser.jsx" />
<option value="$PROJECT_DIR$/src/components/LogCard/index.jsx" /> <option value="$PROJECT_DIR$/src/components/LogCard/index.jsx" />
<option value="$PROJECT_DIR$/src/pages/EventProcessing/Option.jsx" /> <option value="$PROJECT_DIR$/src/pages/EventProcessing/Option.jsx" />
...@@ -256,18 +153,25 @@ ...@@ -256,18 +153,25 @@
<option value="$PROJECT_DIR$/src/components/AddressList/AddressCheckbox.jsx" /> <option value="$PROJECT_DIR$/src/components/AddressList/AddressCheckbox.jsx" />
<option value="$PROJECT_DIR$/src/pages/EventProcessing/index.less" /> <option value="$PROJECT_DIR$/src/pages/EventProcessing/index.less" />
<option value="$PROJECT_DIR$/src/utils/request.js" /> <option value="$PROJECT_DIR$/src/utils/request.js" />
<option value="$PROJECT_DIR$/src/utils/instance.js" />
<option value="$PROJECT_DIR$/src/components/AddressList/index.less" /> <option value="$PROJECT_DIR$/src/components/AddressList/index.less" />
<option value="$PROJECT_DIR$/src/components/AddressList/index.jsx" /> <option value="$PROJECT_DIR$/src/components/AddressList/index.jsx" />
<option value="$PROJECT_DIR$/src/pages/EventProcessing/SubmitDetail.jsx" /> <option value="$PROJECT_DIR$/src/pages/EventProcessing/SubmitDetail.jsx" />
<option value="$PROJECT_DIR$/src/components/NoticeTab/index.jsx" />
<option value="$PROJECT_DIR$/src/router.js" /> <option value="$PROJECT_DIR$/src/router.js" />
<option value="$PROJECT_DIR$/src/pages/Backlog/Backlog.jsx" /> <option value="$PROJECT_DIR$/src/layout/Footer.jsx" />
<option value="$PROJECT_DIR$/src/pages/Notice/Notice.jsx" /> <option value="$PROJECT_DIR$/src/pages/EventProcessing/Process.jsx" />
<option value="$PROJECT_DIR$/src/pages/Work/Work.jsx" /> <option value="$PROJECT_DIR$/src/index.css" />
<option value="$PROJECT_DIR$/src/pages/Notice/index.less" />
<option value="$PROJECT_DIR$/src/pages/index.less" />
<option value="$PROJECT_DIR$/src/pages/Empty.jsx" />
<option value="$PROJECT_DIR$/src/pages/Communicate/AddressBook.jsx" /> <option value="$PROJECT_DIR$/src/pages/Communicate/AddressBook.jsx" />
<option value="$PROJECT_DIR$/src/pages/Communicate/Communicate.jsx" /> <option value="$PROJECT_DIR$/src/pages/Communicate/Communicate.jsx" />
<option value="$PROJECT_DIR$/src/pages/EventProcessing/Process.jsx" /> <option value="$PROJECT_DIR$/src/pages/Work/Work.jsx" />
<option value="$PROJECT_DIR$/src/components/TopSearch/index.jsx" />
<option value="$PROJECT_DIR$/src/components/NoticeTab/index.jsx" />
<option value="$PROJECT_DIR$/src/utils/instance.js" />
<option value="$PROJECT_DIR$/src/pages/Backlog/Backlog.jsx" />
<option value="$PROJECT_DIR$/src/pages/Notice/Notice.jsx" />
<option value="$PROJECT_DIR$/src/pages/Work/WorkDetail.jsx" />
</list> </list>
</option> </option>
</component> </component>
...@@ -295,27 +199,25 @@ ...@@ -295,27 +199,25 @@
<path> <path>
<item name="create-react-app" type="b2602c69:ProjectViewProjectNode" /> <item name="create-react-app" type="b2602c69:ProjectViewProjectNode" />
<item name="create-react-app" type="462c0819:PsiDirectoryNode" /> <item name="create-react-app" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" /> <item name="public" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="create-react-app" type="b2602c69:ProjectViewProjectNode" /> <item name="create-react-app" type="b2602c69:ProjectViewProjectNode" />
<item name="create-react-app" type="462c0819:PsiDirectoryNode" /> <item name="create-react-app" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" /> <item name="src" type="462c0819:PsiDirectoryNode" />
<item name="components" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="create-react-app" type="b2602c69:ProjectViewProjectNode" /> <item name="create-react-app" type="b2602c69:ProjectViewProjectNode" />
<item name="create-react-app" type="462c0819:PsiDirectoryNode" /> <item name="create-react-app" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" /> <item name="src" type="462c0819:PsiDirectoryNode" />
<item name="components" type="462c0819:PsiDirectoryNode" /> <item name="components" type="462c0819:PsiDirectoryNode" />
<item name="AddressList" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="create-react-app" type="b2602c69:ProjectViewProjectNode" /> <item name="create-react-app" type="b2602c69:ProjectViewProjectNode" />
<item name="create-react-app" type="462c0819:PsiDirectoryNode" /> <item name="create-react-app" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" /> <item name="src" type="462c0819:PsiDirectoryNode" />
<item name="components" type="462c0819:PsiDirectoryNode" /> <item name="components" type="462c0819:PsiDirectoryNode" />
<item name="NoticeTab" type="462c0819:PsiDirectoryNode" /> <item name="TopSearch" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="create-react-app" type="b2602c69:ProjectViewProjectNode" /> <item name="create-react-app" type="b2602c69:ProjectViewProjectNode" />
...@@ -328,20 +230,7 @@ ...@@ -328,20 +230,7 @@
<item name="create-react-app" type="462c0819:PsiDirectoryNode" /> <item name="create-react-app" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" /> <item name="src" type="462c0819:PsiDirectoryNode" />
<item name="pages" type="462c0819:PsiDirectoryNode" /> <item name="pages" type="462c0819:PsiDirectoryNode" />
<item name="Communicate" type="462c0819:PsiDirectoryNode" /> <item name="Work" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="create-react-app" type="b2602c69:ProjectViewProjectNode" />
<item name="create-react-app" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="pages" type="462c0819:PsiDirectoryNode" />
<item name="EventProcessing" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="create-react-app" type="b2602c69:ProjectViewProjectNode" />
<item name="create-react-app" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="utils" type="462c0819:PsiDirectoryNode" />
</path> </path>
</expand> </expand>
<select /> <select />
...@@ -360,17 +249,17 @@ ...@@ -360,17 +249,17 @@
<property name="settings.editor.selected.configurable" value="editor.preferences.import" /> <property name="settings.editor.selected.configurable" value="editor.preferences.import" />
</component> </component>
<component name="RecentsManager"> <component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
<recent name="F:\即时通讯\create-react-app\src\pages\Work" />
<recent name="F:\即时通讯\create-react-app\src\pages\WorkDetail" />
</key>
<key name="CopyFile.RECENT_KEYS"> <key name="CopyFile.RECENT_KEYS">
<recent name="F:\即时通讯\create-react-app\public\img" />
<recent name="F:\即时通讯\create-react-app\src\components\AddressList" /> <recent name="F:\即时通讯\create-react-app\src\components\AddressList" />
<recent name="F:\即时通讯\create-react-app\src\pages" /> <recent name="F:\即时通讯\create-react-app\src\pages" />
<recent name="F:\即时通讯\create-react-app\public\img" />
<recent name="F:\即时通讯\create-react-app\public\img\test" /> <recent name="F:\即时通讯\create-react-app\public\img\test" />
<recent name="F:\即时通讯\create-react-app\src\pages\AddressList" /> <recent name="F:\即时通讯\create-react-app\src\pages\AddressList" />
</key> </key>
<key name="MoveFile.RECENT_KEYS">
<recent name="F:\即时通讯\create-react-app\src\pages\Work" />
<recent name="F:\即时通讯\create-react-app\src\pages\WorkDetail" />
</key>
</component> </component>
<component name="RunDashboard"> <component name="RunDashboard">
<option name="ruleStates"> <option name="ruleStates">
...@@ -401,12 +290,12 @@ ...@@ -401,12 +290,12 @@
<workItem from="1591493817957" duration="11217000" /> <workItem from="1591493817957" duration="11217000" />
<workItem from="1591579020550" duration="32744000" /> <workItem from="1591579020550" duration="32744000" />
<workItem from="1591665260536" duration="37378000" /> <workItem from="1591665260536" duration="37378000" />
<workItem from="1591751569364" duration="3417000" /> <workItem from="1591751569364" duration="11230000" />
</task> </task>
<servers /> <servers />
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="176354000" /> <option name="totallyTimeSpent" value="184167000" />
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="-8" y="-8" width="1382" height="784" extended-state="6" /> <frame x="-8" y="-8" width="1382" height="784" extended-state="6" />
...@@ -437,16 +326,6 @@ ...@@ -437,16 +326,6 @@
<option name="version" value="1" /> <option name="version" value="1" />
</component> </component>
<component name="editorHistoryManager"> <component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/variable.less">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="525">
<caret line="21" column="15" lean-forward="true" selection-start-line="21" selection-start-column="15" selection-end-line="21" selection-end-column="15" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/build/manifest.json" />
<entry file="file://$PROJECT_DIR$/src/pages/AddressList/index.less" />
<entry file="file://$PROJECT_DIR$/src/pages/EventProcessing/Pro.jsx" />
<entry file="file://$PROJECT_DIR$/src/components/BlankTabs/index.jsx"> <entry file="file://$PROJECT_DIR$/src/components/BlankTabs/index.jsx">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="223"> <state relative-caret-position="223">
...@@ -516,13 +395,6 @@ ...@@ -516,13 +395,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/config-overrides.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="223">
<caret line="103" column="5" lean-forward="true" selection-start-line="103" selection-start-column="5" selection-end-line="103" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/.gitignore"> <entry file="file://$PROJECT_DIR$/.gitignore">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="572"> <state relative-caret-position="572">
...@@ -530,13 +402,6 @@ ...@@ -530,13 +402,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/components/TopSearch/index.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="350">
<caret line="19" column="22" selection-start-line="19" selection-start-column="14" selection-end-line="19" selection-end-column="22" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/components/WorkCard/CardItem.jsx"> <entry file="file://$PROJECT_DIR$/src/components/WorkCard/CardItem.jsx">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="325"> <state relative-caret-position="325">
...@@ -561,16 +426,6 @@ ...@@ -561,16 +426,6 @@
<entry file="file://$PROJECT_DIR$/src/utils/utils.jsx"> <entry file="file://$PROJECT_DIR$/src/utils/utils.jsx">
<provider selected="true" editor-type-id="text-editor" /> <provider selected="true" editor-type-id="text-editor" />
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/pages/Work/WorkDetail.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="220">
<caret line="20" column="24" lean-forward="true" selection-start-line="20" selection-start-column="24" selection-end-line="20" selection-end-column="24" />
<folding>
<element signature="e#0#49#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/default.conf"> <entry file="file://$PROJECT_DIR$/default.conf">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="175"> <state relative-caret-position="175">
...@@ -608,16 +463,6 @@ ...@@ -608,16 +463,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/layout/Footer.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="275">
<caret line="26" column="126" selection-start-line="26" selection-start-column="126" selection-end-line="26" selection-end-column="126" />
<folding>
<element signature="e#0#49#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/pages/EventProcessing/Option.jsx"> <entry file="file://$PROJECT_DIR$/src/pages/EventProcessing/Option.jsx">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="100"> <state relative-caret-position="100">
...@@ -660,16 +505,6 @@ ...@@ -660,16 +505,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/utils/instance.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="800">
<caret line="34" selection-start-line="34" selection-end-line="34" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/utils/request.js"> <entry file="file://$PROJECT_DIR$/src/utils/request.js">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="825"> <state relative-caret-position="825">
...@@ -728,22 +563,23 @@ ...@@ -728,22 +563,23 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/pages/EventProcessing/SubmitDetail.jsx"> <entry file="file://$PROJECT_DIR$/src/pages/EventProcessing/Process.jsx">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="200"> <state relative-caret-position="334">
<caret line="14" column="53" selection-start-line="14" selection-start-column="37" selection-end-line="14" selection-end-column="53" /> <caret line="109" column="34" selection-start-line="109" selection-start-column="34" selection-end-line="109" selection-end-column="34" />
<folding> <folding>
<element signature="e#123#170#0" expanded="true" /> <element signature="e#0#49#0" expanded="true" />
<element signature="e#4061#5308#0" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/components/NoticeTab/index.jsx"> <entry file="file://$PROJECT_DIR$/src/pages/EventProcessing/SubmitDetail.jsx">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="225"> <state relative-caret-position="350">
<caret line="9" column="26" lean-forward="true" selection-start-line="9" selection-start-column="26" selection-end-line="9" selection-end-column="26" /> <caret line="14" column="53" selection-start-line="14" selection-start-column="37" selection-end-line="14" selection-end-column="53" />
<folding> <folding>
<element signature="e#0#26#0" expanded="true" /> <element signature="e#123#170#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
...@@ -758,53 +594,78 @@ ...@@ -758,53 +594,78 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/pages/Backlog/Backlog.jsx"> <entry file="file://$PROJECT_DIR$/config-overrides.js">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="125"> <state relative-caret-position="2350">
<caret line="5" selection-start-line="5" selection-end-line="5" selection-end-column="43" /> <caret line="103" column="5" selection-start-line="103" selection-start-column="5" selection-end-line="103" selection-end-column="5" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/pages/Notice/Notice.jsx"> <entry file="file://$PROJECT_DIR$/src/pages/Notice/index.less">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/src/index.css">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="448"> <state relative-caret-position="423">
<caret line="65" column="12" selection-start-line="65" selection-start-column="12" selection-end-line="65" selection-end-column="12" /> <caret line="22" selection-start-line="22" selection-end-line="22" />
<caret line="66" column="16" selection-start-line="66" selection-start-column="16" selection-end-line="66" selection-end-column="16" /> </state>
<caret line="67" column="20" selection-start-line="67" selection-start-column="20" selection-end-line="67" selection-end-column="20" /> </provider>
<caret line="68" column="20" selection-start-line="68" selection-start-column="20" selection-end-line="68" selection-end-column="20" /> </entry>
<caret line="69" column="20" selection-start-line="69" selection-start-column="20" selection-end-line="69" selection-end-column="20" /> <entry file="file://$PROJECT_DIR$/src/pages/index.less">
<caret line="70" column="16" selection-start-line="70" selection-start-column="16" selection-end-line="70" selection-end-column="16" /> <provider selected="true" editor-type-id="text-editor">
<caret line="71" column="16" selection-start-line="71" selection-start-column="16" selection-end-line="71" selection-end-column="16" /> <state relative-caret-position="325">
<caret line="72" column="16" selection-start-line="72" selection-start-column="16" selection-end-line="72" selection-end-column="16" /> <caret line="13" column="24" selection-start-line="13" selection-start-column="24" selection-end-line="13" selection-end-column="24" />
<caret line="73" column="16" selection-start-line="73" selection-start-column="16" selection-end-line="73" selection-end-column="16" /> </state>
<caret line="74" column="20" selection-start-line="74" selection-start-column="20" selection-end-line="74" selection-end-column="20" /> </provider>
<caret line="75" column="24" selection-start-line="75" selection-start-column="24" selection-end-line="75" selection-end-column="24" /> </entry>
<caret line="76" column="28" selection-start-line="76" selection-start-column="28" selection-end-line="76" selection-end-column="28" /> <entry file="file://$PROJECT_DIR$/src/utils/instance.js">
<caret line="77" column="28" selection-start-line="77" selection-start-column="28" selection-end-line="77" selection-end-column="28" /> <provider selected="true" editor-type-id="text-editor">
<caret line="78" column="24" selection-start-line="78" selection-start-column="24" selection-end-line="78" selection-end-column="24" /> <state relative-caret-position="-294">
<caret line="80" column="20" selection-start-line="80" selection-start-column="20" selection-end-line="80" selection-end-column="20" /> <caret line="34" column="61" selection-start-line="34" selection-start-column="61" selection-end-line="34" selection-end-column="61" />
<caret line="81" column="16" selection-start-line="81" selection-start-column="16" selection-end-line="81" selection-end-column="16" /> <folding>
<caret line="82" column="12" selection-start-line="82" selection-start-column="12" selection-end-line="82" selection-end-column="12" /> <element signature="e#0#26#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/layout/Footer.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="34">
<caret line="27" column="65" selection-start-line="27" selection-start-column="65" selection-end-line="27" selection-end-column="65" />
<folding> <folding>
<element signature="e#0#49#0" expanded="true" /> <element signature="e#0#49#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/pages/Work/Work.jsx"> <entry file="file://$PROJECT_DIR$/src/components/TopSearch/index.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="325">
<caret line="18" column="5" lean-forward="true" selection-start-line="8" selection-start-column="3" selection-end-line="18" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/components/NoticeTab/index.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="475">
<caret line="36" column="65" selection-start-line="36" selection-start-column="65" selection-end-line="36" selection-end-column="65" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/pages/Empty.jsx">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150"> <state relative-caret-position="150">
<caret line="60" column="34" lean-forward="true" selection-start-line="60" selection-start-column="34" selection-end-line="60" selection-end-column="34" /> <caret line="6" column="39" lean-forward="true" selection-start-line="6" selection-start-column="39" selection-end-line="6" selection-end-column="39" />
<folding> <folding>
<element signature="e#0#51#0" expanded="true" /> <element signature="e#0#26#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/pages/Communicate/AddressBook.jsx"> <entry file="file://$PROJECT_DIR$/src/pages/Communicate/AddressBook.jsx">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="473"> <state relative-caret-position="250">
<caret line="44" column="22" selection-start-line="44" selection-start-column="22" selection-end-line="44" selection-end-column="22" /> <caret line="46" column="31" selection-start-line="46" selection-start-column="31" selection-end-line="46" selection-end-column="31" />
<folding> <folding>
<element signature="e#0#49#0" expanded="true" /> <element signature="e#0#49#0" expanded="true" />
</folding> </folding>
...@@ -813,21 +674,50 @@ ...@@ -813,21 +674,50 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/pages/Communicate/Communicate.jsx"> <entry file="file://$PROJECT_DIR$/src/pages/Communicate/Communicate.jsx">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="248"> <state relative-caret-position="225">
<caret line="38" column="60" selection-start-line="38" selection-start-column="60" selection-end-line="38" selection-end-column="60" /> <caret line="42" column="66" selection-start-line="42" selection-start-column="66" selection-end-line="42" selection-end-column="66" />
<folding> <folding>
<element signature="e#0#49#0" expanded="true" /> <element signature="e#0#49#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/pages/EventProcessing/Process.jsx"> <entry file="file://$PROJECT_DIR$/src/pages/Work/Work.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="350">
<caret line="77" column="22" selection-start-line="77" selection-start-column="22" selection-end-line="77" selection-end-column="22" />
<folding>
<element signature="e#0#51#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/pages/Backlog/Backlog.jsx">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="523"> <state relative-caret-position="370">
<caret line="121" column="29" selection-start-line="121" selection-start-column="29" selection-end-line="121" selection-end-column="29" /> <caret line="44" column="6" lean-forward="true" selection-start-line="19" selection-start-column="2" selection-end-line="44" selection-end-column="6" />
<folding>
<element signature="e#0#49#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/pages/Notice/Notice.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="348">
<caret line="39" column="6" selection-start-line="39" selection-start-column="6" selection-end-line="39" selection-end-column="6" />
<folding>
<element signature="e#0#49#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/pages/Work/WorkDetail.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="298">
<caret line="38" column="6" selection-start-line="38" selection-start-column="6" selection-end-line="38" selection-end-column="6" />
<folding> <folding>
<element signature="e#0#49#0" expanded="true" /> <element signature="e#0#49#0" expanded="true" />
<element signature="e#4061#5308#0" />
</folding> </folding>
</state> </state>
</provider> </provider>
......
...@@ -9543,11 +9543,6 @@ ...@@ -9543,11 +9543,6 @@
"resolved": "https://registry.npm.taobao.org/q/download/q-1.5.1.tgz", "resolved": "https://registry.npm.taobao.org/q/download/q-1.5.1.tgz",
"integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=" "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc="
}, },
"qs": {
"version": "6.5.2",
"resolved": "https://registry.npm.taobao.org/qs/download/qs-6.5.2.tgz",
"integrity": "sha1-yzroBuh0BERYTvFUzo7pjUA/PjY="
},
"query-string": { "query-string": {
"version": "4.3.4", "version": "4.3.4",
"resolved": "https://registry.npm.taobao.org/query-string/download/query-string-4.3.4.tgz", "resolved": "https://registry.npm.taobao.org/query-string/download/query-string-4.3.4.tgz",
...@@ -10555,6 +10550,13 @@ ...@@ -10555,6 +10550,13 @@
"tough-cookie": "~2.5.0", "tough-cookie": "~2.5.0",
"tunnel-agent": "^0.6.0", "tunnel-agent": "^0.6.0",
"uuid": "^3.3.2" "uuid": "^3.3.2"
},
"dependencies": {
"qs": {
"version": "6.5.2",
"resolved": "https://registry.npm.taobao.org/qs/download/qs-6.5.2.tgz",
"integrity": "sha1-yzroBuh0BERYTvFUzo7pjUA/PjY="
}
} }
}, },
"require-directory": { "require-directory": {
......
import React from 'react'; import React, {useState} from 'react';
import {Tabs, Icon} from 'antd-mobile' import {Tabs, Icon} from 'antd-mobile'
import './index.less' import './index.less'
const tabs = [ const tabs = [
{ title: '未读', sub: '1' }, { title: '未读', sub: 'N' },
{ title: '已读', sub: '2' } { title: '已读', sub: 'D' }
] ]
const Index = (props) => { const Index = (props) => {
const {tabChange, onSearch} = props;
const [status, setStatus] = useState(false);
const topSearch = () => {
const input = document.getElementsByClassName("top-single-search");
let inputValue = input[0].value;
setStatus(inputValue != null && inputValue !== '')
};
const enterPress = (e) => {
const input = document.getElementsByClassName("top-single-search");
if (e.keyCode === 13) {
props.onSearch(input[0].value);
}
}
const clear = () => {
setStatus(false)
const input = document.getElementsByClassName("top-single-search");
input[0].value = null;
input[0].focus();
props.onSearch('');
}
return ( return (
<div className="pos-line"> <div className="pos-line">
<div className="search-notice-box"> <div className="search-notice-box">
<Icon type="search" size="xs" className="search-svg"/> <Icon type="search" size="xs" className="search-svg"/>
<input className="top-search" placeholder="请输入关键字搜索" /> <input onChange={topSearch} onKeyDown={enterPress} className="top-single-search" placeholder="请输入关键字搜索" />
{status && (
<Icon type="cross-circle-o" color="rgba(35, 35, 35, 0.3)" size="xxs" className="clear-svg" onClick={clear}/>
)}
</div> </div>
<div className="search-tab"> <div className="search-tab">
<Tabs <Tabs
tabs={tabs} tabs={tabs}
initialPage={'1'} initialPage={'1'}
onChange={(tab, index) => { console.log('onChange', tab); }} onChange={(tab, index) => tabChange(tab.sub)}
/> />
</div> </div>
</div> </div>
......
...@@ -8,10 +8,15 @@ const Index = (props) => { ...@@ -8,10 +8,15 @@ const Index = (props) => {
const topSearch = () => { const topSearch = () => {
const input = document.getElementsByClassName("top-single-search"); const input = document.getElementsByClassName("top-single-search");
props.onSearch(input[0].value);
let inputValue = input[0].value; let inputValue = input[0].value;
setStatus(inputValue != null && inputValue !== '') setStatus(inputValue != null && inputValue !== '')
}; };
const enterPress = (e) => {
const input = document.getElementsByClassName("top-single-search");
if (e.keyCode === 13) {
props.onSearch(input[0].value);
}
}
const clear = () => { const clear = () => {
setStatus(false) setStatus(false)
const input = document.getElementsByClassName("top-single-search"); const input = document.getElementsByClassName("top-single-search");
...@@ -22,7 +27,7 @@ const Index = (props) => { ...@@ -22,7 +27,7 @@ const Index = (props) => {
return ( return (
<div className="search-box"> <div className="search-box">
<Icon type="search" size="xs" className="search-svg"/> <Icon type="search" size="xs" className="search-svg"/>
<input onChange={topSearch} className="top-single-search" placeholder="请输入关键字搜索" /> <input onChange={topSearch} onKeyDown={enterPress} className="top-single-search" placeholder="请输入关键字搜索" />
{status && ( {status && (
<Icon type="cross-circle-o" color="rgba(35, 35, 35, 0.3)" size="xxs" className="clear-svg" onClick={clear}/> <Icon type="cross-circle-o" color="rgba(35, 35, 35, 0.3)" size="xxs" className="clear-svg" onClick={clear}/>
)} )}
......
...@@ -20,3 +20,4 @@ body, ...@@ -20,3 +20,4 @@ body,
} }
ul, p{margin: 0;padding: 0} ul, p{margin: 0;padding: 0}
ul{list-style: none} ul{list-style: none}
...@@ -27,7 +27,7 @@ const Footer = (props) => { ...@@ -27,7 +27,7 @@ const Footer = (props) => {
{title: '待办', key: 'backlog', icon: '/img/footer-backlog.png', selectedIcon: '/img/footer-backlog-s.png', badge: badge, onPress: '/bord/backlog'}, {title: '待办', key: 'backlog', icon: '/img/footer-backlog.png', selectedIcon: '/img/footer-backlog-s.png', badge: badge, onPress: '/bord/backlog'},
{title: '工作', key: 'work', icon: '/img/footer-work.png', selectedIcon: '/img/footer-work-s.png', badge: '', onPress: '/bord/work'}, {title: '工作', key: 'work', icon: '/img/footer-work.png', selectedIcon: '/img/footer-work-s.png', badge: '', onPress: '/bord/work'},
{title: '通讯录', key: 'addressList', icon: '/img/footer-communicate.png', selectedIcon: '/img/footer-communicate-s.png', badge: '', onPress: '/bord/addressList'}, {title: '通讯录', key: 'addressList', icon: '/img/footer-communicate.png', selectedIcon: '/img/footer-communicate-s.png', badge: '', onPress: '/bord/addressList'},
{title: '通知', key: 'notice', icon: '/img/footer-notice.png', selectedIcon: '/img/footer-notice-s.png', badge: '', onPress: '/bord/notice'} {title: '通知', key: 'notice', icon: '/img/footer-notice.png', selectedIcon: '/img/footer-notice-s.png', badge: badge, onPress: '/bord/notice'}
]; ];
return ( return (
<div id="footer" className="footer"> <div id="footer" className="footer">
......
...@@ -4,9 +4,10 @@ import TodoCard from '../../components/LogCard' ...@@ -4,9 +4,10 @@ import TodoCard from '../../components/LogCard'
import TopSearch from '../../components/TopSearch'; import TopSearch from '../../components/TopSearch';
import axiosRequest from '../../utils/request'; import axiosRequest from '../../utils/request';
import Document from 'react-document-title' import Document from 'react-document-title'
import Empty from '../Empty'
const Backlog = (props) => { const Backlog = (props) => {
const [current, setCurrent] = useState(1); const [current, setCurrent] = useState(0);
const [searchWord, setSearchWord] = useState() const [searchWord, setSearchWord] = useState()
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
...@@ -17,26 +18,22 @@ const Backlog = (props) => { ...@@ -17,26 +18,22 @@ const Backlog = (props) => {
props.history.push(`/blank/info/${OPERATEID}`) props.history.push(`/blank/info/${OPERATEID}`)
}; };
const getData = () => { const getData = () => {
const pageMap ={searchWord, nowPage: current, pageSize: 10}; const pageMap ={searchWord, nowPage: current + 1, pageSize: 10};
console.log(pageMap)
setLoading(true) setLoading(true)
axiosRequest({ axiosRequest({
method: 'post', method: 'post',
url: '/idtAppServiceV6/oApp/getUnDone', url: '/idtAppServiceV6/oApp/getUnDone',
body: pageMap, body: pageMap,
}).then(res => { }).then(res => {
console.log(res)
setLoading(false); setLoading(false);
let result = res.rows ? data.concat(res.rows) : data; let result = end && res.rows ? data.concat(res.rows) : data;
res.rows && res.rows.length >= 10 ? setCurrent(current + 1) : setEnd(false);
setData(result); setData(result);
setCurrent(current + 1);
}); });
}; };
useEffect(() => {
getData()
}, [searchWord])
//下拉加载 //下拉加载
const [end, setEnd] = useState(true)
const handleScroll = () => { const handleScroll = () => {
const event = document.getElementById("common-content") const event = document.getElementById("common-content")
const top = event.scrollTop; const top = event.scrollTop;
...@@ -58,9 +55,12 @@ const Backlog = (props) => { ...@@ -58,9 +55,12 @@ const Backlog = (props) => {
}, []) }, [])
const wordSearch = val => { const wordSearch = val => {
setSearchWord(val) setSearchWord(val);
getData() getData()
} };
useEffect(() => {
getData()
}, [searchWord])
return ( return (
<Document title="待办"> <Document title="待办">
<WingBlank> <WingBlank>
...@@ -72,13 +72,13 @@ const Backlog = (props) => { ...@@ -72,13 +72,13 @@ const Backlog = (props) => {
<WhiteSpace/> <WhiteSpace/>
<TopSearch onSearch={wordSearch}/> <TopSearch onSearch={wordSearch}/>
{ {
data.map((item, index) => ( data.length > 0 ? data.map((item, index) => (
<div key={index}> <div key={index}>
<WhiteSpace/> <WhiteSpace/>
<TodoCard data={item} onClick={() => checkLog(item.OPERATEID)}/> <TodoCard data={item} onClick={() => checkLog(item.OPERATEID)}/>
</div> </div>
)) )) : <Empty/>
} }
</WingBlank> </WingBlank>
</Document> </Document>
......
...@@ -4,6 +4,7 @@ import AddressList from '../../components/AddressList'; ...@@ -4,6 +4,7 @@ import AddressList from '../../components/AddressList';
import axiosRequest from '../../utils/request'; import axiosRequest from '../../utils/request';
import {ActivityIndicator} from "antd-mobile"; import {ActivityIndicator} from "antd-mobile";
import './index.less' import './index.less'
import Empty from '../Empty'
const AddressBook = (props) => { const AddressBook = (props) => {
...@@ -41,7 +42,10 @@ const AddressBook = (props) => { ...@@ -41,7 +42,10 @@ const AddressBook = (props) => {
animating={loading} animating={loading}
/> />
<div className='adMainBox'> <div className='adMainBox'>
{data.length > 0 ? (
<AddressList data={data} onCLick={treeClick}/> <AddressList data={data} onCLick={treeClick}/>
): <Empty/>}
</div> </div>
</div> </div>
......
...@@ -3,6 +3,7 @@ import AddressUser from '../../components/AddressList/AddressUser'; ...@@ -3,6 +3,7 @@ import AddressUser from '../../components/AddressList/AddressUser';
import axiosRequest from '../../utils/request'; import axiosRequest from '../../utils/request';
import {ActivityIndicator} from "antd-mobile"; import {ActivityIndicator} from "antd-mobile";
import Document from 'react-document-title' import Document from 'react-document-title'
import Empty from '../Empty'
const Communicate = (props) => { const Communicate = (props) => {
...@@ -39,7 +40,8 @@ const Communicate = (props) => { ...@@ -39,7 +40,8 @@ const Communicate = (props) => {
{title.length > 0 ? title[0].depts : ''} {title.length > 0 ? title[0].depts : ''}
</div> </div>
<div className='adMainBox'> <div className='adMainBox'>
<AddressUser data={data}/> {data.length > 0 ? <AddressUser data={data}/> : <Empty/>}
</div> </div>
</div> </div>
......
import React from 'react';
import './index.less'
const Empty = () => {
return (
<div>
<div className="empty-box">
<div className="empty-img"/>
暂无数据
</div>
</div>
);
};
export default Empty;
...@@ -4,29 +4,31 @@ import TodoCard from '../../components/LogCard' ...@@ -4,29 +4,31 @@ import TodoCard from '../../components/LogCard'
import TopNotice from '../../components/NoticeTab' import TopNotice from '../../components/NoticeTab'
import axiosRequest from '../../utils/request'; import axiosRequest from '../../utils/request';
import Document from 'react-document-title' import Document from 'react-document-title'
import Empty from '../Empty'
const Notice = (props) => { const Notice = (props) => {
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [current, setCurrent] = useState(1); const [current, setCurrent] = useState(0);
const [searchWord, setSearchWord] = useState() const [searchWord, setSearchWord] = useState()
const [data, setData] = useState([]); const [data, setData] = useState([]);
const getData = () => { const getData = () => {
const pageMap ={searchWord, nowPage: current, pageSize: 10}; const pageMap ={searchWord, nowPage: current + 1, pageSize: 10};
console.log(pageMap)
setLoading(true) setLoading(true)
axiosRequest({ axiosRequest({
method: 'post', method: 'post',
url: '/idtAppServiceV6/oApp/getUnDone', url: '/idtAppServiceV6/oApp/getUnDone',
body: pageMap,
}).then(res => { }).then(res => {
setLoading(false); setLoading(false);
let result = res.rows ? data.concat(res.rows) : data; let result = end && res.rows ? data.concat(res.rows) : data;
res.rows && res.rows.length >= 10 ? setCurrent(current + 1) : setEnd(false);
setData(result); setData(result);
setCurrent(current + 1);
}); });
}; };
//下拉加载 //下拉加载
const [end, setEnd] = useState(true)
const handleScroll = () => { const handleScroll = () => {
const event = document.getElementById("common-content") const event = document.getElementById("common-content")
const top = event.scrollTop; const top = event.scrollTop;
...@@ -52,10 +54,10 @@ const Notice = (props) => { ...@@ -52,10 +54,10 @@ const Notice = (props) => {
}, []); }, []);
//tab已读未读切换 //tab已读未读切换
const [tab, setTab] = useState('') const [tab, setTab] = useState('N')
const tabChange = val => { const tabChange = val => {
setTab(val) setTab(val);
console.log(val) setData([])
}; };
useEffect(() => { useEffect(() => {
...@@ -72,13 +74,13 @@ const Notice = (props) => { ...@@ -72,13 +74,13 @@ const Notice = (props) => {
<WhiteSpace/> <WhiteSpace/>
<TopNotice onSearch={setSearchWord} tabChange={tabChange}/> <TopNotice onSearch={setSearchWord} tabChange={tabChange}/>
{ {
data.map((item, index) => ( data.length > 0 ? data.map((item, index) => (
<div key={index}> <div key={index}>
<WhiteSpace/> <WhiteSpace/>
<TodoCard data={item} onClick={checkLog}/> <TodoCard data={item} onClick={checkLog}/>
</div> </div>
)) )) : <Empty/>
} }
</WingBlank> </WingBlank>
</Document> </Document>
......
...@@ -4,6 +4,7 @@ import axiosRequest from '../../utils/request'; ...@@ -4,6 +4,7 @@ import axiosRequest from '../../utils/request';
import TopSearch from '../../components/TopSearch' import TopSearch from '../../components/TopSearch'
import WorkCard from '../../components/WorkCard'; import WorkCard from '../../components/WorkCard';
import Document from 'react-document-title' import Document from 'react-document-title'
import Empty from '../Empty'
const Work = (props) => { const Work = (props) => {
const [loading, setLoading] = useState(false) const [loading, setLoading] = useState(false)
...@@ -66,6 +67,7 @@ const Work = (props) => { ...@@ -66,6 +67,7 @@ const Work = (props) => {
<WhiteSpace/> <WhiteSpace/>
<TopSearch onSearch={ workSearch }/> <TopSearch onSearch={ workSearch }/>
<WhiteSpace/> <WhiteSpace/>
{data.length > 0 ? (
<WorkCard <WorkCard
title="工作详情" title="工作详情"
addCommon={ commonEdit } addCommon={ commonEdit }
...@@ -74,6 +76,8 @@ const Work = (props) => { ...@@ -74,6 +76,8 @@ const Work = (props) => {
workUrl={workUrl} workUrl={workUrl}
iconAction={ itemAdd } iconAction={ itemAdd }
/> />
) : <Empty/>}
</WingBlank> </WingBlank>
</Document> </Document>
); );
......
...@@ -7,28 +7,29 @@ import './index.less' ...@@ -7,28 +7,29 @@ import './index.less'
const WorkDetail = (props) => { const WorkDetail = (props) => {
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [current, setCurrent] = useState(1); const [current, setCurrent] = useState(0);
const [searchWord, setSearchWord] = useState() const [searchWord, setSearchWord] = useState()
const [data, setData] = useState([]); const [data, setData] = useState([]);
const getData = () => { const getData = () => {
const pageMap ={searchWord, nowPage: current, pageSize: 10}; const pageMap ={searchWord, nowPage: current + 1, pageSize: 10};
console.log(pageMap)
setLoading(true) setLoading(true)
axiosRequest({ axiosRequest({
method: 'post', method: 'post',
url: '/idtAppServiceV6/getWaitDealList', url: '/idtAppServiceV6/oApp/getUnDone',
body: pageMap,
}).then(res => { }).then(res => {
setLoading(false); setLoading(false);
let result = res.rows ? data.concat(res.rows) : data let result = end && res.rows ? data.concat(res.rows) : data;
setData(result) res.rows && res.rows.length >= 10 ? setCurrent(current + 1) : setEnd(false);
setCurrent(current + 1) setData(result);
}); });
}; };
//下拉加载 //下拉加载
const [end, setEnd] = useState(true)
const handleScroll = () => { const handleScroll = () => {
const event = document.getElementById("work-content") const event = document.getElementById("common-content")
const top = event.scrollTop; const top = event.scrollTop;
const scrollHeight = event.scrollHeight; const scrollHeight = event.scrollHeight;
const clientHeight = event.clientHeight; const clientHeight = event.clientHeight;
......
.empty-box{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
margin-top: 80px;
color:rgba(125,125,125,1);
}
.empty-img{
width: 187px;
height: 187px;
background: url("/img/empty.png") center no-repeat;
background-size: cover;
margin-bottom: 20px;
}
import axios from 'axios'; import axios from 'axios';
import { stringify } from 'qs';
import { Toast } from 'antd-mobile'; import { Toast } from 'antd-mobile';
const instance = axios.create(); const instance = axios.create();
...@@ -34,9 +33,21 @@ export const createAPI = (baseURL) => { ...@@ -34,9 +33,21 @@ export const createAPI = (baseURL) => {
let urlParams = ''; let urlParams = '';
let headers = { ...defaultHeaders, ...opts.headers }; let headers = { ...defaultHeaders, ...opts.headers };
if (conf.queryType === 'query') { if (conf.opts) {
urlParams = conf.body ? "?" + stringify(conf.body) : ''; urlParams = "?";
let keys = Object.keys(conf.opts);
keys.map(item => {
let value = conf.opts[item];
if (value !== null && value !== undefined && value !== '') {
urlParams += `${item}=${conf.opts[item]}&`
} }
return null
});
urlParams = urlParams.substr(0, urlParams.length - 1)
}
// if (conf.queryType === 'query') {
// urlParams = conf.body ? "?" + stringify(conf.body) : '';
// }
return instance(Object.assign({}, { return instance(Object.assign({}, {
url: conf.url + urlParams, url: conf.url + urlParams,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment