Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
h5-communicate
frontend
Commits
be67854b
Commit
be67854b
authored
Jun 09, 2020
by
熊成伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
432f807b
Pipeline
#15218
passed with stages
in 1 minute and 2 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
62 deletions
+46
-62
workspace.xml
.idea/workspace.xml
+23
-42
AddressCheckbox.jsx
src/components/AddressList/AddressCheckbox.jsx
+17
-17
SubmitDetail.jsx
src/pages/EventProcessing/SubmitDetail.jsx
+6
-3
No files found.
.idea/workspace.xml
View file @
be67854b
...
...
@@ -2,28 +2,8 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<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$/src/components/AddressList/AddressUser.jsx"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/components/AddressList/AddressUser.jsx"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/components/AddressList/index.jsx"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/components/AddressList/index.jsx"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/components/AddressList/index.less"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/components/AddressList/index.less"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/components/WorkCard/index.jsx"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/components/WorkCard/index.jsx"
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/AddressList/AddressList.jsx"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/pages/AddressList/index.less"
beforeDir=
"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/Communicate.jsx"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/pages/Communicate/Communicate.jsx"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/pages/EventProcessing/Adjunct.jsx"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/pages/EventProcessing/Adjunct.jsx"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/pages/EventProcessing/Basic.jsx"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/pages/EventProcessing/Basic.jsx"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/pages/EventProcessing/Flow.jsx"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/pages/EventProcessing/Flow.jsx"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/pages/EventProcessing/Option.jsx"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/pages/EventProcessing/Option.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/components/AddressList/AddressCheckbox.jsx"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/components/AddressList/AddressCheckbox.jsx"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/pages/EventProcessing/SubmitDetail.jsx"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/pages/EventProcessing/SubmitDetail.jsx"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/pages/EventProcessing/index.less"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/pages/EventProcessing/index.less"
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/router.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/router.js"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/utils/instance.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/utils/instance.js"
afterDir=
"false"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/.tmp/"
/>
<ignored
path=
"$PROJECT_DIR$/temp/"
/>
...
...
@@ -48,11 +28,11 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/pages/EventProcessing/SubmitDetail.jsx"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
475
"
>
<caret
line=
"3
1"
column=
"32"
selection-start-line=
"31"
selection-start-column=
"32"
selection-end-line=
"31"
selection-end-column=
"32
"
/>
<state
relative-caret-position=
"
273
"
>
<caret
line=
"3
4"
column=
"63"
selection-start-line=
"34"
selection-start-column=
"63"
selection-end-line=
"34"
selection-end-column=
"63
"
/>
<folding>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
</folding>
...
...
@@ -69,11 +49,11 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/components/AddressList/AddressCheckbox.jsx"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
350
"
>
<caret
line=
"1
4"
column=
"21"
selection-start-line=
"14"
selection-start-column=
"21"
selection-end-line=
"14"
selection-end-column=
"21
"
/>
<state
relative-caret-position=
"
275
"
>
<caret
line=
"1
1"
column=
"88"
selection-start-line=
"11"
selection-start-column=
"88"
selection-end-line=
"11"
selection-end-column=
"88
"
/>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
</folding>
...
...
@@ -206,11 +186,11 @@
<option
value=
"$PROJECT_DIR$/src/pages/Communicate/AddressBook.jsx"
/>
<option
value=
"$PROJECT_DIR$/src/router.js"
/>
<option
value=
"$PROJECT_DIR$/src/pages/EventProcessing/Process.jsx"
/>
<option
value=
"$PROJECT_DIR$/src/pages/EventProcessing/SubmitDetail.jsx"
/>
<option
value=
"$PROJECT_DIR$/src/components/AddressList/index.less"
/>
<option
value=
"$PROJECT_DIR$/src/components/AddressList/index.jsx"
/>
<option
value=
"$PROJECT_DIR$/src/pages/EventProcessing/index.less"
/>
<option
value=
"$PROJECT_DIR$/src/components/AddressList/AddressCheckbox.jsx"
/>
<option
value=
"$PROJECT_DIR$/src/pages/EventProcessing/SubmitDetail.jsx"
/>
</list>
</option>
</component>
...
...
@@ -336,12 +316,12 @@
<workItem
from=
"1591419899087"
duration=
"268000"
/>
<workItem
from=
"1591493817957"
duration=
"11217000"
/>
<workItem
from=
"1591579020550"
duration=
"32744000"
/>
<workItem
from=
"1591665260536"
duration=
"3
4976
000"
/>
<workItem
from=
"1591665260536"
duration=
"3
5707
000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"17
0535
000"
/>
<option
name=
"totallyTimeSpent"
value=
"17
1266
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"-8"
y=
"-8"
width=
"1382"
height=
"784"
extended-state=
"6"
/>
...
...
@@ -694,16 +674,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/pages/EventProcessing/SubmitDetail.jsx"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"475"
>
<caret
line=
"31"
column=
"32"
selection-start-line=
"31"
selection-start-column=
"32"
selection-end-line=
"31"
selection-end-column=
"32"
/>
<folding>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/components/AddressList/AddressUser.jsx"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"375"
>
...
...
@@ -761,13 +731,23 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/components/AddressList/AddressCheckbox.jsx"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
350
"
>
<caret
line=
"1
4"
column=
"21"
selection-start-line=
"14"
selection-start-column=
"21"
selection-end-line=
"14"
selection-end-column=
"21
"
/>
<state
relative-caret-position=
"
275
"
>
<caret
line=
"1
1"
column=
"88"
selection-start-line=
"11"
selection-start-column=
"88"
selection-end-line=
"11"
selection-end-column=
"88
"
/>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/pages/EventProcessing/SubmitDetail.jsx"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"273"
>
<caret
line=
"34"
column=
"63"
selection-start-line=
"34"
selection-start-column=
"63"
selection-end-line=
"34"
selection-end-column=
"63"
/>
<folding>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</component>
</project>
\ No newline at end of file
src/components/AddressList/AddressCheckbox.jsx
View file @
be67854b
import
React
from
'react'
;
import
{
Checkbox
}
from
'antd-mobile'
import
{
Checkbox
,
List
}
from
'antd-mobile'
import
'./index.less'
const
Item
=
Checkbox
.
CheckboxItem
const
Index
=
(
props
)
=>
{
const
data
=
props
.
data
;
const
{
data
,
setName
}
=
props
;
return
(
<
div
className=
"address-box"
>
{
data
&&
data
.
length
>
0
&&
data
.
map
((
item
,
index
)
=>
item
.
XM
&&
(
<
Item
key=
{
item
.
GZDH
}
className=
"sub-checkbox"
onChange=
{
val
=>
console
.
log
(
val
)
}
>
<
div
>
<
img
alt=
""
src=
""
className=
""
/
>
{
item
.
XM
||
''
}
</
div
>
<
div
className=
"address-user"
>
<
img
alt=
""
className=
'smallIco mr-5'
src=
'/img/tel.png'
/
>
{
item
.
YDDH
||
'无'
}
</
div
>
{
/*<div className="address-item" key={index}>*/
}
{
/**/
}
{
/*</div>*/
}
</
Item
>
))
}
<
List
>
{
data
&&
data
.
length
>
0
&&
data
.
map
((
item
,
index
)
=>
item
.
XM
&&
(
<
Item
key=
{
item
.
XM
}
className=
"sub-checkbox"
onChange=
{
(
val
)
=>
setName
(
item
.
XM
,
val
.
target
.
checked
)
}
>
<
div
>
<
img
alt=
""
src=
""
className=
""
/>
{
item
.
XM
||
''
}
</
div
>
<
div
className=
"address-user"
>
<
img
alt=
""
className=
'smallIco mr-5'
src=
'/img/tel.png'
/>
{
item
.
YDDH
||
'无'
}
</
div
>
</
Item
>
))
}
</
List
>
</
div
>
);
};
...
...
src/pages/EventProcessing/SubmitDetail.jsx
View file @
be67854b
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
WingBlank
,
WhiteSpace
,
ActivityIndicator
}
from
"antd-mobile"
;
//
import {WingBlank, WhiteSpace, ActivityIndicator} from "antd-mobile";
import
axiosRequest
from
'../../utils/request'
;
import
AddressCheckbox
from
'../../components/AddressList/AddressCheckbox'
;
...
...
@@ -17,7 +17,10 @@ const SubmitDetail = (props) => {
setTitle
(
res
.
deptList
)
});
},
[])
},
[]);
const
checkName
=
(
name
,
checked
)
=>
{
console
.
log
(
name
,
checked
)
}
return
(
<
div
>
<
div
className=
'breadBox'
>
...
...
@@ -29,7 +32,7 @@ const SubmitDetail = (props) => {
{
/*<span>办公厅</span>*/
}
</
div
>
<
div
className=
'adMainBox'
>
<
AddressCheckbox
data=
{
data
}
/>
<
AddressCheckbox
data=
{
data
}
setName=
{
checkName
}
/>
</
div
>
</
div
>
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment