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
c905588f
Commit
c905588f
authored
Jun 09, 2020
by
熊成伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
be67854b
Pipeline
#15219
passed with stages
in 58 seconds
Changes
6
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
6 deletions
+33
-6
workspace.xml
.idea/workspace.xml
+0
-0
index.jsx
src/components/AddressList/index.jsx
+1
-1
Backlog.jsx
src/pages/Backlog/Backlog.jsx
+6
-2
SubmitDetail.jsx
src/pages/EventProcessing/SubmitDetail.jsx
+19
-2
index.less
src/pages/EventProcessing/index.less
+7
-0
instance.js
src/utils/instance.js
+0
-1
No files found.
.idea/workspace.xml
View file @
c905588f
This diff is collapsed.
Click to expand it.
src/components/AddressList/index.jsx
View file @
c905588f
...
@@ -6,7 +6,7 @@ const Index = (props) => {
...
@@ -6,7 +6,7 @@ const Index = (props) => {
return
(
return
(
<
div
className=
"address-box"
>
<
div
className=
"address-box"
>
{
data
&&
data
.
length
>
0
&&
data
.
map
((
item
,
index
)
=>
item
.
NAME
&&
(
{
data
&&
data
.
length
>
0
&&
data
.
map
((
item
,
index
)
=>
item
.
NAME
&&
(
<
div
key=
{
index
}
onClick=
{
()
=>
onCLick
(
item
.
DEPTID
)
}
>
<
div
key=
{
index
}
onClick=
{
()
=>
onCLick
(
item
.
DEPTID
)
}
className=
"address-item"
>
{
item
.
NAME
||
''
}
{
item
.
NAME
||
''
}
<
img
src=
"/img/rarrow.png"
alt=
""
className=
'icon18'
/>
<
img
src=
"/img/rarrow.png"
alt=
""
className=
'icon18'
/>
</
div
>
</
div
>
...
...
src/pages/Backlog/Backlog.jsx
View file @
c905588f
...
@@ -22,6 +22,7 @@ const Backlog = (props) => {
...
@@ -22,6 +22,7 @@ const Backlog = (props) => {
axiosRequest
({
axiosRequest
({
method
:
'post'
,
method
:
'post'
,
url
:
'/idtAppServiceV6/oApp/getUnDone'
,
url
:
'/idtAppServiceV6/oApp/getUnDone'
,
body
:
pageMap
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
setLoading
(
false
);
setLoading
(
false
);
...
@@ -55,7 +56,10 @@ const Backlog = (props) => {
...
@@ -55,7 +56,10 @@ const Backlog = (props) => {
element
.
scrollTo
(
0
,
0
)
element
.
scrollTo
(
0
,
0
)
},
[])
},
[])
console
.
log
(
loading
)
const
wordSearch
=
val
=>
{
setSearchWord
(
val
)
getData
()
}
return
(
return
(
<
WingBlank
>
<
WingBlank
>
<
ActivityIndicator
<
ActivityIndicator
...
@@ -64,7 +68,7 @@ const Backlog = (props) => {
...
@@ -64,7 +68,7 @@ const Backlog = (props) => {
animating=
{
loading
}
animating=
{
loading
}
/>
/>
<
WhiteSpace
/>
<
WhiteSpace
/>
<
TopSearch
onSearch=
{
setSearchWord
}
/>
<
TopSearch
onSearch=
{
wordSearch
}
/>
{
{
data
.
map
((
item
,
index
)
=>
(
data
.
map
((
item
,
index
)
=>
(
<
div
key=
{
index
}
>
<
div
key=
{
index
}
>
...
...
src/pages/EventProcessing/SubmitDetail.jsx
View file @
c905588f
...
@@ -5,7 +5,8 @@ import AddressCheckbox from '../../components/AddressList/AddressCheckbox';
...
@@ -5,7 +5,8 @@ import AddressCheckbox from '../../components/AddressList/AddressCheckbox';
const
SubmitDetail
=
(
props
)
=>
{
const
SubmitDetail
=
(
props
)
=>
{
const
[
data
,
setData
]
=
useState
([]);
const
[
data
,
setData
]
=
useState
([]);
const
[
title
,
setTitle
]
=
useState
([])
const
[
title
,
setTitle
]
=
useState
([]);
const
[
disabled
,
setDisabled
]
=
useState
(
true
);
useEffect
(()
=>
{
useEffect
(()
=>
{
// const {type} = props.match.params
// const {type} = props.match.params
axiosRequest
({
axiosRequest
({
...
@@ -18,8 +19,18 @@ const SubmitDetail = (props) => {
...
@@ -18,8 +19,18 @@ const SubmitDetail = (props) => {
});
});
},
[]);
},
[]);
const
[
suData
,
setSuData
]
=
useState
([])
const
checkName
=
(
name
,
checked
)
=>
{
const
checkName
=
(
name
,
checked
)
=>
{
console
.
log
(
name
,
checked
)
const
newData
=
[...
suData
];
const
index
=
newData
.
indexOf
(
name
);
checked
?
newData
.
push
(
name
)
:
newData
.
splice
(
index
,
1
);
newData
.
length
>
0
?
setDisabled
(
false
)
:
setDisabled
(
true
)
setSuData
(
newData
)
}
const
textClick
=
()
=>
{
console
.
log
(
suData
)
}
}
return
(
return
(
<
div
>
<
div
>
...
@@ -34,6 +45,12 @@ const SubmitDetail = (props) => {
...
@@ -34,6 +45,12 @@ const SubmitDetail = (props) => {
<
div
className=
'adMainBox'
>
<
div
className=
'adMainBox'
>
<
AddressCheckbox
data=
{
data
}
setName=
{
checkName
}
/>
<
AddressCheckbox
data=
{
data
}
setName=
{
checkName
}
/>
</
div
>
</
div
>
<
div
className=
"event-footer"
>
<
div
className=
{
`event-footer-button ${(disabled) ? 'button-disabled' : '' }`
}
onClick=
{
textClick
}
>
{
suData
.
length
>
0
?
`(${suData.length})`
:
null
}
确认发送
</
div
>
</
div
>
</
div
>
</
div
>
);
);
};
};
...
...
src/pages/EventProcessing/index.less
View file @
c905588f
@import '../../variable.less';
#event{
#event{
position: fixed;
position: fixed;
top: 44px;
top: 44px;
...
@@ -99,3 +101,8 @@
...
@@ -99,3 +101,8 @@
justify-content: space-between;
justify-content: space-between;
font-size: 14px;
font-size: 14px;
}
}
.am-checkbox.am-checkbox-checked .am-checkbox-inner{
border-color: @primary;
background: @primary;
}
src/utils/instance.js
View file @
c905588f
...
@@ -33,7 +33,6 @@ export const createAPI = (baseURL) => {
...
@@ -33,7 +33,6 @@ export const createAPI = (baseURL) => {
let
body
=
conf
.
body
||
{};
let
body
=
conf
.
body
||
{};
let
urlParams
=
''
;
let
urlParams
=
''
;
let
headers
=
{
...
defaultHeaders
,
...
opts
.
headers
};
let
headers
=
{
...
defaultHeaders
,
...
opts
.
headers
};
if
(
conf
.
queryType
===
'query'
)
{
if
(
conf
.
queryType
===
'query'
)
{
urlParams
=
conf
.
body
?
"?"
+
stringify
(
conf
.
body
)
:
''
;
urlParams
=
conf
.
body
?
"?"
+
stringify
(
conf
.
body
)
:
''
;
...
...
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