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
ba62a90d
Commit
ba62a90d
authored
Jun 10, 2020
by
熊成伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
35520687
Pipeline
#15240
passed with stages
in 57 seconds
Changes
7
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
11 deletions
+44
-11
workspace.xml
.idea/workspace.xml
+0
-0
AddressUser.jsx
src/components/AddressList/AddressUser.jsx
+1
-1
index.less
src/components/AddressList/index.less
+4
-0
Backlog.jsx
src/pages/Backlog/Backlog.jsx
+3
-4
Notice.jsx
src/pages/Notice/Notice.jsx
+18
-3
WorkDetail.jsx
src/pages/Work/WorkDetail.jsx
+17
-2
router.js
src/router.js
+1
-1
No files found.
.idea/workspace.xml
View file @
ba62a90d
This diff is collapsed.
Click to expand it.
src/components/AddressList/AddressUser.jsx
View file @
ba62a90d
...
...
@@ -14,7 +14,7 @@ const Index = (props) => {
</
div
>
<
div
className=
"address-user"
>
<
img
alt=
""
className=
'smallIco mr-5'
src=
'/img/tel.png'
/>
{
item
.
YDDH
||
'无'
}
<
a
className=
"address-phone"
href=
{
item
.
YDDH
?
`tel:${item.YDDH}`
:
null
}
>
{
item
.
YDDH
||
'无'
}
</
a
>
</
div
>
</
div
>
))
}
...
...
src/components/AddressList/index.less
View file @
ba62a90d
.address-item{
display: flex;
justify-content: space-between;
...
...
@@ -15,3 +16,6 @@
display: flex;
justify-content: space-between;
}
.address-phone{
color: rgba(0, 0, 0, 1) !important;
}
src/pages/Backlog/Backlog.jsx
View file @
ba62a90d
...
...
@@ -15,8 +15,8 @@ const Backlog = (props) => {
const
[
data
,
setData
]
=
useState
([]);
const
checkLog
=
(
OPERATEID
)
=>
{
props
.
history
.
push
(
`/blank/info/
${
OPERATEID
}
`
)
const
checkLog
=
(
OPERATEID
,
UUID
)
=>
{
props
.
history
.
push
(
`/blank/info/
${
OPERATEID
}
/
${
UUID
}
`
)
};
const
getData
=
()
=>
{
const
pageMap
=
{
searchWord
,
nowPage
:
current
+
1
,
pageSize
:
10
};
...
...
@@ -64,7 +64,6 @@ const Backlog = (props) => {
getData
()
},
[
searchWord
]);
console
.
log
(
current
)
return
(
<
Document
title=
"待办"
>
<
WingBlank
>
...
...
@@ -79,7 +78,7 @@ const Backlog = (props) => {
data
.
length
>
0
?
data
.
map
((
item
,
index
)
=>
(
<
div
key=
{
index
}
>
<
WhiteSpace
/>
<
TodoCard
data=
{
item
}
onClick=
{
()
=>
checkLog
(
item
.
OPERATEID
)
}
/>
<
TodoCard
data=
{
item
}
onClick=
{
()
=>
checkLog
(
item
.
OPERATEID
,
item
.
UUID
)
}
/>
</
div
>
))
:
<
Empty
/>
...
...
src/pages/Notice/Notice.jsx
View file @
ba62a90d
...
...
@@ -14,7 +14,7 @@ const Notice = (props) => {
const
[
data
,
setData
]
=
useState
([]);
const
getData
=
()
=>
{
const
pageMap
=
{
searchWord
,
nowPage
:
current
+
1
,
pageSize
:
10
};
const
pageMap
=
{
searchWord
,
nowPage
:
current
+
1
,
pageSize
:
10
,
FLAG
:
tab
};
setLoading
(
true
)
axiosRequest
({
method
:
'post'
,
...
...
@@ -56,10 +56,25 @@ const Notice = (props) => {
},
[]);
//tab已读未读切换
const
[
tab
,
setTab
]
=
useState
(
'N'
)
const
[
tab
,
setTab
]
=
useState
(
'N'
);
const
tabData
=
()
=>
{
const
pageMap
=
{
searchWord
,
nowPage
:
current
+
1
,
pageSize
:
10
,
FLAG
:
tab
};
setLoading
(
true
)
axiosRequest
({
method
:
'post'
,
url
:
'/idtAppServiceV6/oApp/getUnDone'
,
body
:
pageMap
,
}).
then
(
res
=>
{
setLoading
(
false
);
let
result
=
end
&&
res
.
rows
?
[].
concat
(
res
.
rows
)
:
[];
res
.
rows
&&
res
.
rows
.
length
>=
10
?
setCurrent
(
current
+
1
)
:
Toast
.
info
(
'当前是最后一页'
,
1
);
setEnd
(
res
.
rows
&&
res
.
rows
.
length
>=
10
)
setData
(
result
);
});
};
const
tabChange
=
val
=>
{
setTab
(
val
);
setData
([]
)
tabData
(
)
};
useEffect
(()
=>
{
...
...
src/pages/Work/WorkDetail.jsx
View file @
ba62a90d
...
...
@@ -56,10 +56,25 @@ const WorkDetail = (props) => {
},
[]);
//tab已读未读切换
const
[
tab
,
setTab
]
=
useState
(
'N'
)
const
[
tab
,
setTab
]
=
useState
(
'N'
);
const
tabData
=
()
=>
{
const
pageMap
=
{
searchWord
,
nowPage
:
current
+
1
,
pageSize
:
10
,
FLAG
:
tab
};
setLoading
(
true
)
axiosRequest
({
method
:
'post'
,
url
:
'/idtAppServiceV6/oApp/getUnDone'
,
body
:
pageMap
,
}).
then
(
res
=>
{
setLoading
(
false
);
let
result
=
end
&&
res
.
rows
?
[].
concat
(
res
.
rows
)
:
[];
res
.
rows
&&
res
.
rows
.
length
>=
10
?
setCurrent
(
current
+
1
)
:
Toast
.
info
(
'当前是最后一页'
,
1
);
setEnd
(
res
.
rows
&&
res
.
rows
.
length
>=
10
)
setData
(
result
);
});
};
const
tabChange
=
val
=>
{
setTab
(
val
);
setData
([]
)
tabData
(
)
};
useEffect
(()
=>
{
...
...
src/router.js
View file @
ba62a90d
...
...
@@ -37,7 +37,7 @@ const ReactRouter = () => {
<
BlankLayout
>
<
Route
path
=
"/blank/work/:id"
component
=
{
WorkDetail
}
/
>
<
Route
path
=
"/blank/submit/:type"
component
=
{
SubmitDetail
}
/
>
<
Route
path
=
"/blank/info/:id"
component
=
{
Process
}
/
>
<
Route
path
=
"/blank/info/:id
/:UUID
"
component
=
{
Process
}
/
>
<
/BlankLayout
>
}
/
>
<
Route
component
=
{
NoFound
}
/
>
...
...
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