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
abda54db
Commit
abda54db
authored
Jul 06, 2020
by
熊成伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
9eba1bb3
Pipeline
#16082
passed with stages
in 1 minute and 1 second
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
139 additions
and
97 deletions
+139
-97
index.jsx
src/components/Card/LogCard/index.jsx
+8
-8
Footer.jsx
src/layout/Footer.jsx
+1
-1
Backlog.jsx
src/pages/Backlog/Backlog.jsx
+33
-29
index.less
src/pages/Backlog/index.less
+11
-2
Goods.jsx
src/pages/EventProcessing/commponents/Goods.jsx
+0
-1
Notice.jsx
src/pages/Notice/Notice.jsx
+32
-28
index.less
src/pages/Notice/index.less
+13
-5
WorkDetail.jsx
src/pages/Work/WorkDetail.jsx
+28
-22
index.less
src/pages/Work/index.less
+12
-0
instance.js
src/utils/instance.js
+1
-1
No files found.
src/components/Card/LogCard/index.jsx
View file @
abda54db
...
@@ -14,28 +14,28 @@ const Index = (props) => {
...
@@ -14,28 +14,28 @@ const Index = (props) => {
{
/*className="todo-tag-png"*/
}
{
/*className="todo-tag-png"*/
}
{
/*src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1591252471425&di=85236ae603ca74553adaca6e8c161a39&imgtype=0&src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Fb912bf96dc19b3b23530ae2259b60eb6cf70083f6680b-H9l0ri_fw658"*/
}
{
/*src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1591252471425&di=85236ae603ca74553adaca6e8c161a39&imgtype=0&src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Fb912bf96dc19b3b23530ae2259b60eb6cf70083f6680b-H9l0ri_fw658"*/
}
{
/*/>*/
}
{
/*/>*/
}
{
data
.
TYP
E
}
{
data
.
WD_MOD_NAM
E
}
</
div
>
</
div
>
<
p
>
{
data
.
TITLE
}
</
p
>
<
p
>
{
data
.
WD_
TITLE
}
</
p
>
</
div
>
</
div
>
<
span
>
<
span
>
<
img
<
img
alt=
""
alt=
""
className=
"todo-read-png"
className=
"todo-read-png"
src=
{
props
.
data
&&
props
.
data
.
FLAG
===
'D'
?
'/img/read.png'
:
'/img/unread.png'
}
src=
{
props
.
data
&&
props
.
data
.
WD_
FLAG
===
'D'
?
'/img/read.png'
:
'/img/unread.png'
}
/>
/>
</
span
>
</
span
>
</
div
>
</
div
>
<
div
className=
"todo-content"
>
<
div
className=
"todo-content"
>
<
p
>
当前状态:
{
data
.
STATUS
}
</
p
>
<
p
>
当前状态:
{
data
.
WD_
STATUS
}
</
p
>
<
p
style=
{
{
marginTop
:
15
}
}
>
发送人员:
{
data
.
FROMUSER_ALIASED
}
</
p
>
<
p
style=
{
{
marginTop
:
15
}
}
>
发送人员:
{
data
.
WD_
FROMUSER_ALIASED
}
</
p
>
</
div
>
</
div
>
<
div
className=
"todo-footer"
>
<
div
className=
"todo-footer"
>
<
div
>
<
div
>
<
p
className=
"pos-aline"
><
img
alt=
""
src=
"/img/time.png"
className=
"footer-mes-img"
/>
更新时间:
{
data
.
RECEIVEDATE
?
moment
(
data
.
RECEIVEDATE
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
:
''
}
</
p
>
<
p
className=
"pos-aline"
><
img
alt=
""
src=
"/img/time.png"
className=
"footer-mes-img"
/>
更新时间:
{
data
.
WD_RECEIVEDATE
?
moment
(
data
.
WD_
RECEIVEDATE
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
:
''
}
</
p
>
<
p
className=
"pos-aline footer-mes-sec"
><
img
alt=
""
src=
"/img/time-2.png"
className=
"footer-mes-img"
/>
发起时间:
{
data
.
SENDTIME
?
moment
(
data
.
SENDTIM
E
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
:
''
}
</
p
>
<
p
className=
"pos-aline footer-mes-sec"
><
img
alt=
""
src=
"/img/time-2.png"
className=
"footer-mes-img"
/>
发起时间:
{
data
.
WD_SENDDATE
?
moment
(
data
.
WD_SENDDAT
E
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
:
''
}
</
p
>
</
div
>
</
div
>
{
data
&&
data
.
JJCD
!==
'无'
&&
data
.
JJCD
===
'紧急'
&&
(
{
data
&&
data
.
WD_JJCD
!==
'无'
&&
data
.
WD_
JJCD
===
'紧急'
&&
(
<
img
<
img
alt=
""
alt=
""
className=
"todo-footer-img"
className=
"todo-footer-img"
...
...
src/layout/Footer.jsx
View file @
abda54db
...
@@ -14,7 +14,7 @@ const Footer = (props) => {
...
@@ -14,7 +14,7 @@ const Footer = (props) => {
const
getData
=
()
=>
{
const
getData
=
()
=>
{
axiosRequest
({
axiosRequest
({
method
:
'post'
,
method
:
'post'
,
url
:
'/idtAppServiceV6/
/oApp/getUnDone
'
,
url
:
'/idtAppServiceV6/
oApp/getWaitDealList
'
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
setBadge
(
res
.
total
)
setBadge
(
res
.
total
)
});
});
...
...
src/pages/Backlog/Backlog.jsx
View file @
abda54db
...
@@ -32,14 +32,14 @@ const Backlog = (props) => {
...
@@ -32,14 +32,14 @@ const Backlog = (props) => {
scroll
&&
current
>
0
&&
window
.
scrollTo
(
0
,
document
.
body
.
scrollHeight
);
scroll
&&
current
>
0
&&
window
.
scrollTo
(
0
,
document
.
body
.
scrollHeight
);
axiosRequest
({
axiosRequest
({
method
:
'post'
,
method
:
'post'
,
url
:
'/idtAppServiceV6/oApp/get
UnDone
'
,
url
:
'/idtAppServiceV6/oApp/get
WaitDealList
'
,
body
:
pageMap
,
body
:
pageMap
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
setStart
(
false
);
setStart
(
false
);
setEnd
(
res
.
rows
&&
res
.
rows
.
length
>=
10
)
setEnd
(
res
.
dataList
&&
res
.
dataList
.
length
>=
10
)
let
result
=
end
&&
res
.
rows
?
data
.
concat
(
res
.
rows
)
:
data
;
let
result
=
end
&&
res
.
dataList
?
data
.
concat
(
res
.
dataList
)
:
data
;
res
.
rows
&&
res
.
rows
.
length
>=
10
&&
setCurrent
(
current
+
1
);
res
.
dataList
&&
res
.
dataList
.
length
>=
10
&&
setCurrent
(
current
+
1
);
current
>
0
&&
res
.
rows
&&
res
.
rows
.
length
===
0
&&
setCurrent
(
current
-
1
);
current
>
0
&&
res
.
dataList
&&
res
.
dataList
.
length
===
0
&&
setCurrent
(
current
-
1
);
setData
(
result
);
setData
(
result
);
setLoading
(
false
);
setLoading
(
false
);
});
});
...
@@ -72,32 +72,36 @@ const Backlog = (props) => {
...
@@ -72,32 +72,36 @@ const Backlog = (props) => {
return
(
return
(
<
Document
title=
"待办"
>
<
Document
title=
"待办"
>
<
WingBlank
>
<
WingBlank
>
<
WhiteSpace
/>
<
div
className=
"notice-box-content"
>
<
TopSearch
onSearch=
{
wordSearch
}
/>
<
WhiteSpace
/>
<
WhiteSpace
/>
<
TopSearch
onSearch=
{
wordSearch
}
/>
{
start
?
<
div
>
<
WhiteSpace
/><
Skeleton
/><
WhiteSpace
/><
Skeleton
/><
WhiteSpace
/><
Skeleton
/></
div
>
:
(
!
start
&&
(
<
WhiteSpace
/>
data
.
length
>
0
?
data
.
map
((
item
,
index
)
=>
(
{
start
?
<
div
>
<
WhiteSpace
/><
Skeleton
/><
WhiteSpace
/><
Skeleton
/><
WhiteSpace
/><
Skeleton
/></
div
>
:
(
!
start
&&
(
<
div
key=
{
index
}
>
data
.
length
>
0
?
data
.
map
((
item
,
index
)
=>
(
<
WhiteSpace
/>
<
div
key=
{
index
}
>
<
TodoCard
data=
{
item
}
onClick=
{
()
=>
checkLog
(
item
.
OPERATEID
,
item
.
UUID
,
item
.
FLOWTBID
)
}
/>
<
WhiteSpace
/>
</
div
>
<
TodoCard
data=
{
item
}
onClick=
{
()
=>
checkLog
(
item
.
WD_OPERATE_ID
,
item
.
WD_UUID
,
item
.
WD_FLOWTBID
)
}
/>
</
div
>
))
:
<
Empty
/>
))
:
<
Empty
/>
))
}
))
}
<
WhiteSpace
/>
<
WhiteSpace
/>
{
loading
&&
(
{
loading
&&
(
<
div
className=
"pos-line content-loading"
>
<
div
className=
"pos-line content-loading"
>
<
Loading
/>
<
Loading
/>
<
WhiteSpace
/>
<
WhiteSpace
/>
<
WhiteSpace
/>
<
WhiteSpace
/>
</
div
>
</
div
>
)
}
)
}
{
!
loading
&&
!
end
&&
data
.
length
>
0
&&
(
{
!
loading
&&
!
end
&&
data
.
length
>
0
&&
(
<
div
className=
"content-end"
>
<
div
className=
"extra-content"
>
—————— 我是有底线的 ——————
<
div
className=
"content-end"
>
</
div
>
—————— 我是有底线的 ——————
)
}
</
div
>
</
div
>
)
}
</
div
>
</
WingBlank
>
</
WingBlank
>
</
Document
>
</
Document
>
...
...
src/pages/Backlog/index.less
View file @
abda54db
.notice-box-content{
min-height: 600px;
position: relative;
}
.extra-content{
height: 40px;
}
.content-end{
.content-end{
width: 100%;
text-align: center;
text-align: center;
color: rgba(67, 67, 67, 0.2);
color: rgba(67, 67, 67, 0.2);
margin-top: 20px;
position: absolute;
bottom: 65px; right: 0;left: 0;
}
}
.content-loading{
.content-loading{
margin-top: 15px;
margin-top: 15px;
}
}
src/pages/EventProcessing/commponents/Goods.jsx
View file @
abda54db
...
@@ -3,7 +3,6 @@ import './index.less'
...
@@ -3,7 +3,6 @@ import './index.less'
const
Index
=
(
props
)
=>
{
const
Index
=
(
props
)
=>
{
const
{
data
,
list
,
onClick
}
=
props
;
const
{
data
,
list
,
onClick
}
=
props
;
console
.
log
(
list
)
return
(
return
(
<
div
className=
"address-box"
>
<
div
className=
"address-box"
>
{
data
&&
data
.
length
>
0
&&
data
.
map
((
item
,
index
)
=>
(
{
data
&&
data
.
length
>
0
&&
data
.
map
((
item
,
index
)
=>
(
...
...
src/pages/Notice/Notice.jsx
View file @
abda54db
...
@@ -20,19 +20,19 @@ const Notice = (props) => {
...
@@ -20,19 +20,19 @@ const Notice = (props) => {
const
[
data
,
setData
]
=
useState
([]);
const
[
data
,
setData
]
=
useState
([]);
const
getData
=
(
scroll
)
=>
{
const
getData
=
(
scroll
)
=>
{
const
pageMap
=
{
searchWord
,
nowPage
:
current
+
1
,
pageSize
:
10
,
FLAG
:
tab
};
const
pageMap
=
{
searchWord
,
nowPage
:
current
+
1
,
pageSize
:
10
,
WD_
FLAG
:
tab
};
setLoading
(
true
);
setLoading
(
true
);
scroll
&&
current
>
0
&&
window
.
scrollTo
(
0
,
document
.
body
.
scrollHeight
)
scroll
&&
current
>
0
&&
window
.
scrollTo
(
0
,
document
.
body
.
scrollHeight
)
axiosRequest
({
axiosRequest
({
method
:
'post'
,
method
:
'post'
,
url
:
'/idtAppServiceV6/oApp/get
UnDone
'
,
url
:
'/idtAppServiceV6/oApp/get
WaitDealList
'
,
body
:
pageMap
,
body
:
pageMap
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
setStart
(
false
);
setStart
(
false
);
setEnd
(
res
.
rows
&&
res
.
rows
.
length
>=
10
)
setEnd
(
res
.
dataList
&&
res
.
dataList
.
length
>=
10
)
let
result
=
end
&&
res
.
rows
?
data
.
concat
(
res
.
rows
)
:
data
;
let
result
=
end
&&
res
.
dataList
?
data
.
concat
(
res
.
dataList
)
:
data
;
res
.
rows
&&
res
.
rows
.
length
>=
10
&&
setCurrent
(
current
+
1
);
res
.
dataList
&&
res
.
dataList
.
length
>=
10
&&
setCurrent
(
current
+
1
);
current
>
0
&&
res
.
rows
&&
res
.
rows
.
length
===
0
&&
setCurrent
(
current
-
1
);
current
>
0
&&
res
.
dataList
&&
res
.
dataList
.
length
===
0
&&
setCurrent
(
current
-
1
);
setData
(
result
);
setData
(
result
);
setLoading
(
false
);
setLoading
(
false
);
});
});
...
@@ -92,30 +92,34 @@ const Notice = (props) => {
...
@@ -92,30 +92,34 @@ const Notice = (props) => {
return
(
return
(
<
Document
title=
"通知"
>
<
Document
title=
"通知"
>
<
WingBlank
>
<
WingBlank
>
<
WhiteSpace
/>
<
div
className=
"notice-box-content"
>
<
TopNotice
onSearch=
{
tabSearch
}
tabChange=
{
tabChange
}
/>
<
WhiteSpace
/>
{
start
?
<
div
>
<
WhiteSpace
/><
Skeleton
/><
WhiteSpace
/><
Skeleton
/><
WhiteSpace
/><
Skeleton
/></
div
>
:
(
!
start
&&
(
<
TopNotice
onSearch=
{
tabSearch
}
tabChange=
{
tabChange
}
/>
data
.
length
>
0
?
data
.
map
((
item
,
index
)
=>
(
{
start
?
<
div
>
<
WhiteSpace
/><
Skeleton
/><
WhiteSpace
/><
Skeleton
/><
WhiteSpace
/><
Skeleton
/></
div
>
:
(
!
start
&&
(
<
div
key=
{
index
}
>
data
.
length
>
0
?
data
.
map
((
item
,
index
)
=>
(
<
div
key=
{
index
}
>
<
WhiteSpace
/>
<
TodoCard
data=
{
item
}
onClick=
{
()
=>
checkLog
(
item
.
WD_OPERATE_ID
,
item
.
WD_UUID
,
item
.
WD_FLOWTBID
)
}
/>
</
div
>
))
:
<
Empty
/>
))
}
<
WhiteSpace
/>
{
loading
&&
(
<
div
className=
"pos-line content-loading"
>
<
Loading
/>
<
WhiteSpace
/>
<
WhiteSpace
/>
<
WhiteSpace
/>
<
TodoCard
data=
{
item
}
onClick=
{
()
=>
checkLog
(
item
.
OPERATEID
,
item
.
UUID
,
item
.
FLOWTBID
)
}
/>
</
div
>
</
div
>
)
}
))
:
<
Empty
/>
{
!
loading
&&
!
end
&&
data
.
length
>
0
&&
(
))
}
<
div
className=
"extra-content"
>
<
WhiteSpace
/>
<
div
className=
"content-end"
>
{
loading
&&
(
—————— 我是有底线的 ——————
<
div
className=
"pos-line content-loading"
>
</
div
>
<
Loading
/>
</
div
>
<
WhiteSpace
/>
)
}
<
WhiteSpace
/>
</
div
>
</
div
>
)
}
{
!
loading
&&
!
end
&&
data
.
length
>
0
&&
(
<
div
className=
"content-end"
>
—————— 我是有底线的 ——————
</
div
>
)
}
</
WingBlank
>
</
WingBlank
>
</
Document
>
</
Document
>
...
...
src/pages/Notice/index.less
View file @
abda54db
.content-loading{
margin-top: 15px;
}
.notice-box-content{
position: relative;
}
.extra-content{
height: 40px;
}
.content-end{
.content-end{
width: 100%;
text-align: center;
text-align: center;
color: rgba(67, 67, 67, 0.2);
color: rgba(67, 67, 67, 0.2);
margin-top: 20px;
position: absolute;
}
bottom: 5px; right: 0;left: 0;
.content-loading{
margin-top: 15px;
}
}
src/pages/Work/WorkDetail.jsx
View file @
abda54db
...
@@ -8,6 +8,7 @@ import Document from 'react-document-title'
...
@@ -8,6 +8,7 @@ import Document from 'react-document-title'
import
Empty
from
'../Empty'
import
Empty
from
'../Empty'
import
Loading
from
"../../components/Loading"
;
import
Loading
from
"../../components/Loading"
;
import
queryString
from
'query-string'
import
queryString
from
'query-string'
import
'./index.less'
const
Notice
=
(
props
)
=>
{
const
Notice
=
(
props
)
=>
{
const
{
type
,
name
}
=
props
.
match
.
params
;
const
{
type
,
name
}
=
props
.
match
.
params
;
...
@@ -104,33 +105,38 @@ const Notice = (props) => {
...
@@ -104,33 +105,38 @@ const Notice = (props) => {
}
}
setTabData
(
menuG
);
setTabData
(
menuG
);
},
[]);
},
[]);
console
.
log
(
!
loading
&&
!
end
&&
data
.
length
>
0
)
return
(
return
(
<
Document
title=
"通知"
>
<
Document
title=
"通知"
>
<
WingBlank
>
<
WingBlank
>
<
WhiteSpace
/>
<
div
className=
"notice-box-content"
>
<
TopNotice
tabs=
{
tabData
}
onSearch=
{
tabSearch
}
tabChange=
{
tabChange
}
/>
<
WhiteSpace
/>
{
start
?
<
div
>
<
WhiteSpace
/><
Skeleton
/><
WhiteSpace
/><
Skeleton
/><
WhiteSpace
/><
Skeleton
/></
div
>
:
(
!
start
&&
(
<
TopNotice
tabs=
{
tabData
}
onSearch=
{
tabSearch
}
tabChange=
{
tabChange
}
/>
data
.
length
>
0
?
data
.
map
((
item
,
index
)
=>
(
{
start
?
<
div
>
<
WhiteSpace
/><
Skeleton
/><
WhiteSpace
/><
Skeleton
/><
WhiteSpace
/><
Skeleton
/></
div
>
:
(
!
start
&&
(
<
div
key=
{
index
}
>
data
.
length
>
0
?
data
.
map
((
item
,
index
)
=>
(
<
div
key=
{
index
}
>
<
WhiteSpace
/>
<
TodoCard
name=
{
name
}
data=
{
item
}
onClick=
{
()
=>
checkLog
(
tab
,
item
.
UUID
,
item
.
FLOWTBID
)
}
/>
</
div
>
))
:
<
Empty
/>
))
}
<
WhiteSpace
/>
{
loading
&&
(
<
div
className=
"pos-line content-loading"
>
<
Loading
/>
<
WhiteSpace
/>
<
WhiteSpace
/>
<
WhiteSpace
/>
<
TodoCard
name=
{
name
}
data=
{
item
}
onClick=
{
()
=>
checkLog
(
tab
,
item
.
UUID
,
item
.
FLOWTBID
)
}
/>
</
div
>
</
div
>
)
}
))
:
<
Empty
/>
{
!
loading
&&
!
end
&&
data
.
length
>
0
&&
(
))
}
<
div
className=
"extra-content"
>
<
WhiteSpace
/>
<
div
className=
"content-end"
>
{
loading
&&
(
—————— 我是有底线的 ——————
<
div
className=
"pos-line content-loading"
>
</
div
>
<
Loading
/>
</
div
>
<
WhiteSpace
/>
)
}
<
WhiteSpace
/>
</
div
>
</
div
>
)
}
{
!
loading
&&
!
end
&&
data
.
length
>
0
&&
(
<
div
className=
"content-end"
>
—————— 我是有底线的 ——————
</
div
>
)
}
</
WingBlank
>
</
WingBlank
>
</
Document
>
</
Document
>
...
...
src/pages/Work/index.less
View file @
abda54db
...
@@ -4,3 +4,15 @@
...
@@ -4,3 +4,15 @@
overflow: auto;
overflow: auto;
padding-bottom: 10px
padding-bottom: 10px
}
}
.notice-box-content{
position: relative;
}
.extra-content{
height: 40px;
}
.content-end{
text-align: center;
color: rgba(67, 67, 67, 0.2);
position: absolute;
bottom: 5px; right: 0;left: 0;
}
src/utils/instance.js
View file @
abda54db
...
@@ -31,7 +31,7 @@ export const createAPI = (baseURL) => {
...
@@ -31,7 +31,7 @@ export const createAPI = (baseURL) => {
return
(
conf
=
{})
=>
{
return
(
conf
=
{})
=>
{
let
opts
=
conf
.
opts
||
{};
let
opts
=
conf
.
opts
||
{};
let
urlParams
=
''
;
let
urlParams
=
''
;
console
.
log
(
conf
);
//
console.log(conf);
let
headers
=
{
...
defaultHeaders
,
...
opts
.
headers
};
let
headers
=
{
...
defaultHeaders
,
...
opts
.
headers
};
if
(
conf
.
opts
)
{
if
(
conf
.
opts
)
{
...
...
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