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
8aa664bd
Commit
8aa664bd
authored
Jun 09, 2020
by
熊成伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
e07acead
Pipeline
#15212
failed with stages
in 29 seconds
Changes
26
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
273 additions
and
197 deletions
+273
-197
workspace.xml
.idea/workspace.xml
+0
-0
default.conf
default.conf
+2
-2
AddressUser.jsx
src/components/AddressList/AddressUser.jsx
+1
-1
index.jsx
src/components/AddressList/index.jsx
+2
-2
index.jsx
src/components/LogCard/index.jsx
+5
-4
index.less
src/components/LogCard/index.less
+1
-0
index.jsx
src/components/NoticeTab/index.jsx
+1
-1
index.jsx
src/components/TopSearch/index.jsx
+1
-0
CardItem.jsx
src/components/WorkCard/CardItem.jsx
+1
-1
index.jsx
src/components/WorkCard/index.jsx
+13
-7
Footer.jsx
src/layout/Footer.jsx
+24
-24
Backlog.jsx
src/pages/Backlog/Backlog.jsx
+11
-8
AddressBook.jsx
src/pages/Communicate/AddressBook.jsx
+33
-3
Communicate.jsx
src/pages/Communicate/Communicate.jsx
+43
-89
Adjunct.jsx
src/pages/EventProcessing/Adjunct.jsx
+14
-3
Basic.jsx
src/pages/EventProcessing/Basic.jsx
+16
-6
Flow.jsx
src/pages/EventProcessing/Flow.jsx
+15
-3
Option.jsx
src/pages/EventProcessing/Option.jsx
+18
-15
Process.jsx
src/pages/EventProcessing/Process.jsx
+13
-4
SubmitDetail.jsx
src/pages/EventProcessing/SubmitDetail.jsx
+4
-1
index.jsx
src/pages/Login/index.jsx
+1
-1
Notice.jsx
src/pages/Notice/Notice.jsx
+18
-7
Work.jsx
src/pages/Work/Work.jsx
+13
-5
WorkDetail.jsx
src/pages/Work/WorkDetail.jsx
+16
-5
router.js
src/router.js
+1
-1
instance.js
src/utils/instance.js
+6
-4
No files found.
.idea/workspace.xml
View file @
8aa664bd
This diff is collapsed.
Click to expand it.
default.conf
View file @
8aa664bd
...
@@ -5,8 +5,8 @@ server {
...
@@ -5,8 +5,8 @@ server {
#charset koi8-r;
#charset koi8-r;
access_log
/
var
/
log
/
nginx
/
host
.
access
.
log
main
;
access_log
/
var
/
log
/
nginx
/
host
.
access
.
log
main
;
location
/
dgbg
{
location
/
idtAppServiceV6
{
proxy_pass
http
://
124
.
93
.
101
.
8
:
9988
/
dgbg
/;
proxy_pass
http
://
124
.
93
.
101
.
8
:
9988
/
idtAppServiceV6
/;
}
}
location
/ {
location
/ {
root
/
usr
/
share
/
nginx
/
html
;
root
/
usr
/
share
/
nginx
/
html
;
...
...
src/components/AddressList/AddressUser.jsx
View file @
8aa664bd
...
@@ -5,7 +5,7 @@ const Index = (props) => {
...
@@ -5,7 +5,7 @@ const Index = (props) => {
const
data
=
props
.
data
;
const
data
=
props
.
data
;
return
(
return
(
<
div
className=
"address-box"
>
<
div
className=
"address-box"
>
{
data
.
map
((
item
,
index
)
=>
item
.
title
&&
(
{
data
&&
data
.
length
>
0
&&
data
.
map
((
item
,
index
)
=>
item
.
title
&&
(
<
div
key=
{
index
}
>
<
div
key=
{
index
}
>
<
div
className=
"address-item"
>
<
div
className=
"address-item"
>
1111111111
1111111111
...
...
src/components/AddressList/index.jsx
View file @
8aa664bd
...
@@ -2,10 +2,10 @@ import React from 'react';
...
@@ -2,10 +2,10 @@ import React from 'react';
import
'./index.less'
import
'./index.less'
const
Index
=
(
props
)
=>
{
const
Index
=
(
props
)
=>
{
const
data
=
props
.
data
;
const
{
data
}
=
props
;
return
(
return
(
<
div
className=
"address-box"
>
<
div
className=
"address-box"
>
{
data
.
map
((
item
,
index
)
=>
item
.
title
&&
(
{
data
&&
data
.
length
>
0
&&
data
.
map
((
item
,
index
)
=>
item
.
title
&&
(
<
div
className=
"address-item"
>
<
div
className=
"address-item"
>
{
item
.
title
||
'11'
}
{
item
.
title
||
'11'
}
<
img
src=
"/img/rarrow.png"
alt=
""
className=
'icon18'
/>
<
img
src=
"/img/rarrow.png"
alt=
""
className=
'icon18'
/>
...
...
src/components/LogCard/index.jsx
View file @
8aa664bd
...
@@ -2,6 +2,7 @@ import React from 'react';
...
@@ -2,6 +2,7 @@ import React from 'react';
import
'./index.less'
import
'./index.less'
const
Index
=
(
props
)
=>
{
const
Index
=
(
props
)
=>
{
const
{
data
}
=
props
return
(
return
(
<
div
className=
"todo-card"
onClick=
{
props
.
onClick
}
>
<
div
className=
"todo-card"
onClick=
{
props
.
onClick
}
>
<
div
className=
"todo-title pos-aline"
>
<
div
className=
"todo-title pos-aline"
>
...
@@ -12,9 +13,9 @@ const Index = (props) => {
...
@@ -12,9 +13,9 @@ 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"
/>
/>
{
props
.
TYPE
}
{
data
.
TYPE
}
</
div
>
</
div
>
<
p
>
{
props
.
TITLE
}
</
p
>
<
p
>
{
data
.
TITLE
}
</
p
>
</
div
>
</
div
>
<
span
>
<
span
>
<
img
<
img
...
@@ -25,8 +26,8 @@ const Index = (props) => {
...
@@ -25,8 +26,8 @@ const Index = (props) => {
</
span
>
</
span
>
</
div
>
</
div
>
<
div
className=
"todo-content"
>
<
div
className=
"todo-content"
>
<
p
>
当前状态:
{
props
.
STATUS
}
</
p
>
<
p
>
当前状态:
{
data
.
STATUS
}
</
p
>
<
p
style=
{
{
marginTop
:
15
}
}
>
发送人员:
{
props
.
FROMUSER_ALIASED
}
</
p
>
<
p
style=
{
{
marginTop
:
15
}
}
>
发送人员:
{
data
.
FROMUSER_ALIASED
}
</
p
>
</
div
>
</
div
>
<
div
className=
"todo-footer"
>
<
div
className=
"todo-footer"
>
<
div
>
<
div
>
...
...
src/components/LogCard/index.less
View file @
8aa664bd
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
background: @primary;
background: @primary;
color: #ffffff;
color: #ffffff;
border-radius:3px;
border-radius:3px;
margin-right: 8px;
}
}
.todo-tag-png{
.todo-tag-png{
width: 12px;
width: 12px;
...
...
src/components/NoticeTab/index.jsx
View file @
8aa664bd
...
@@ -18,7 +18,7 @@ const Index = (props) => {
...
@@ -18,7 +18,7 @@ const Index = (props) => {
<
Tabs
<
Tabs
tabs=
{
tabs
}
tabs=
{
tabs
}
initialPage=
{
'1'
}
initialPage=
{
'1'
}
onChange=
{
(
tab
,
index
)
=>
{
console
.
log
(
'onChange'
,
index
,
tab
);
}
}
onChange=
{
(
tab
,
index
)
=>
{
console
.
log
(
'onChange'
,
tab
);
}
}
/>
/>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
src/components/TopSearch/index.jsx
View file @
8aa664bd
...
@@ -17,6 +17,7 @@ const Index = (props) => {
...
@@ -17,6 +17,7 @@ const Index = (props) => {
const
input
=
document
.
getElementsByClassName
(
"top-single-search"
);
const
input
=
document
.
getElementsByClassName
(
"top-single-search"
);
input
[
0
].
value
=
null
;
input
[
0
].
value
=
null
;
input
[
0
].
focus
();
input
[
0
].
focus
();
props
.
onSearch
(
''
);
}
}
return
(
return
(
<
div
className=
"search-box"
>
<
div
className=
"search-box"
>
...
...
src/components/WorkCard/CardItem.jsx
View file @
8aa664bd
...
@@ -11,7 +11,7 @@ const CardItem = (props) => {
...
@@ -11,7 +11,7 @@ const CardItem = (props) => {
},
[
addStatus
])
},
[
addStatus
])
const
contentCLick
=
()
=>
{
const
contentCLick
=
()
=>
{
!
status
&&
!
data
.
iconAdd
&&
workUrl
(
'/blank/work/1'
)
!
status
&&
!
data
.
iconAdd
&&
data
.
text
&&
workUrl
(
'/blank/work/1'
)
data
.
iconAdd
&&
addCommon
()
data
.
iconAdd
&&
addCommon
()
};
};
const
iconClick
=
()
=>
{
const
iconClick
=
()
=>
{
...
...
src/components/WorkCard/index.jsx
View file @
8aa664bd
import
React
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
'./index.less'
import
'./index.less'
import
CardItem
from
'./CardItem'
import
CardItem
from
'./CardItem'
const
Index
=
(
props
)
=>
{
const
Index
=
(
props
)
=>
{
const
{
title
,
type
,
addStatus
,
addCommon
,
data
,
iconAction
,
workUrl
}
=
props
;
const
{
title
,
type
,
addStatus
,
addCommon
,
data
,
iconAction
,
workUrl
}
=
props
;
const
[
card
,
setCard
]
=
useState
([]);
useEffect
(()
=>
{
const
result
=
[...
data
]
const
emptyIcon
=
type
===
'edit'
?
{
const
emptyIcon
=
type
===
'edit'
?
{
text
:
addStatus
?
'完成添加'
:
'添加常用'
,
icon
:
addStatus
?
'/img/finish-work.png'
:
'/img/add-work.png'
,
iconAdd
:
true
text
:
addStatus
?
'完成添加'
:
'添加常用'
,
icon
:
addStatus
?
'/img/finish-work.png'
:
'/img/add-work.png'
,
iconAdd
:
true
}
:
{};
}
:
{};
const
empty
=
data
.
length
%
3
;
const
empty
=
data
.
length
%
3
;
empty
===
0
&&
data
.
push
(
emptyIcon
,
{},
{});
empty
===
0
&&
result
.
push
(
emptyIcon
,
{},
{});
empty
===
1
&&
data
.
push
(
emptyIcon
,
{});
empty
===
1
&&
result
.
push
(
emptyIcon
,
{});
empty
===
2
&&
data
.
push
(
emptyIcon
);
empty
===
2
&&
result
.
push
(
emptyIcon
);
return
(
setCard
(
result
)
},
[
data
])
return
data
.
length
>
0
&&
(
<
div
>
<
div
>
<
div
className=
"work-card-title"
>
<
div
className=
"work-card-title"
>
{
title
}
{
title
}
</
div
>
</
div
>
<
div
className=
"work-card-body"
>
<
div
className=
"work-card-body"
>
{
data
.
map
((
item
,
index
)
=>
(
{
card
.
map
((
item
,
index
)
=>
(
<
CardItem
<
CardItem
type=
{
type
}
type=
{
type
}
key=
{
index
}
key=
{
index
}
...
...
src/layout/Footer.jsx
View file @
8aa664bd
import
React
,
{
Componen
t
}
from
'react'
;
import
React
,
{
useState
,
useEffec
t
}
from
'react'
;
import
{
TabBar
}
from
'antd-mobile'
import
{
TabBar
}
from
'antd-mobile'
import
'./index.less'
import
'./index.less'
import
axiosRequest
from
'../utils/request'
;
class
Footer
extends
Component
{
state
=
{
const
Footer
=
(
props
)
=>
{
current
:
''
const
[
current
,
setCurrent
]
=
useState
()
}
useEffect
(()
=>
{
componentDidMount
()
{
const
keysArray
=
props
.
location
.
pathname
.
replace
(
`
${
props
.
match
.
path
}
/`
,
''
).
split
(
"/"
);
const
keysArray
=
this
.
props
.
location
.
pathname
.
replace
(
`
${
this
.
props
.
match
.
path
}
/`
,
''
).
split
(
"/"
);
keysArray
.
length
>
0
&&
setCurrent
(
keysArray
[
0
]);
keysArray
.
length
>
0
&&
this
.
setState
({
current
:
keysArray
[
0
]})
getData
()
}
},
[]);
tabClick
=
(
key
,
path
)
=>
{
const
getData
=
()
=>
{
this
.
setState
({
current
:
key
})
axiosRequest
({
this
.
props
.
history
.
push
(
path
)
method
:
'post'
,
url
:
'/idtAppServiceV6/getWaitDealList'
,
}).
then
(
res
=>
{
console
.
log
(
res
)
});
}
}
const
tabClick
=
(
key
,
path
)
=>
{
setCurrent
(
key
);
render
()
{
props
.
history
.
push
(
path
)
};
const
tabItem
=
[
const
tabItem
=
[
{
title
:
'待办'
,
key
:
'backlog'
,
icon
:
'/img/footer-backlog.png'
,
selectedIcon
:
'/img/footer-backlog-s.png'
,
badge
:
''
,
onPress
:
'/bord/backlog'
},
{
title
:
'待办'
,
key
:
'backlog'
,
icon
:
'/img/footer-backlog.png'
,
selectedIcon
:
'/img/footer-backlog-s.png'
,
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
:
''
,
onPress
:
'/bord/notice'
}
];
];
return
(
return
(
<
div
id=
"footer"
className=
"footer"
>
<
div
id=
"footer"
className=
"footer"
>
<
TabBar
<
TabBar
...
@@ -38,17 +42,13 @@ class Footer extends Component {
...
@@ -38,17 +42,13 @@ class Footer extends Component {
icon=
{
<
img
alt=
""
className=
"footer-tab-icon"
src=
{
item
.
icon
}
/>
}
icon=
{
<
img
alt=
""
className=
"footer-tab-icon"
src=
{
item
.
icon
}
/>
}
selectedIcon=
{
<
img
alt=
""
className=
"footer-tab-icon"
src=
{
item
.
selectedIcon
}
/>
}
selectedIcon=
{
<
img
alt=
""
className=
"footer-tab-icon"
src=
{
item
.
selectedIcon
}
/>
}
badge=
{
item
.
badge
||
null
}
badge=
{
item
.
badge
||
null
}
onPress=
{
()
=>
this
.
tabClick
(
item
.
key
,
item
.
onPress
)
}
onPress=
{
()
=>
tabClick
(
item
.
key
,
item
.
onPress
)
}
selected=
{
this
.
state
.
current
===
item
.
key
}
selected=
{
current
===
item
.
key
}
/>
/>
))
}
))
}
</
TabBar
>
</
TabBar
>
</
div
>
</
div
>
);
);
}
};
}
export
default
Footer
;
export
default
Footer
;
src/pages/Backlog/Backlog.jsx
View file @
8aa664bd
...
@@ -10,10 +10,10 @@ const Backlog = (props) => {
...
@@ -10,10 +10,10 @@ const Backlog = (props) => {
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
data
,
setData
]
=
useState
([
{},{},{},{},{},{}
]);
const
[
data
,
setData
]
=
useState
([]);
const
checkLog
=
()
=>
{
const
checkLog
=
(
TABLEID
)
=>
{
props
.
history
.
push
(
`/blank/info/example/
1
`
)
props
.
history
.
push
(
`/blank/info/example/
${
TABLEID
}
`
)
};
};
const
getData
=
()
=>
{
const
getData
=
()
=>
{
const
pageMap
=
{
searchWord
,
nowPage
:
current
,
pageSize
:
10
};
const
pageMap
=
{
searchWord
,
nowPage
:
current
,
pageSize
:
10
};
...
@@ -21,14 +21,17 @@ const Backlog = (props) => {
...
@@ -21,14 +21,17 @@ const Backlog = (props) => {
setLoading
(
true
)
setLoading
(
true
)
axiosRequest
({
axiosRequest
({
method
:
'post'
,
method
:
'post'
,
url
:
'/
dgbg/mobileGetOperates.view?userName=2012012099&clientFlag=123456
'
,
url
:
'/
idtAppServiceV6/getWaitDealList
'
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
setLoading
(
false
);
setLoading
(
false
);
let
result
=
data
.
concat
([{},
{},
{},
{},
{},
{}])
let
result
=
res
.
rows
?
data
.
concat
(
res
.
rows
)
:
data
;
setData
(
result
)
setData
(
result
)
;
setCurrent
(
current
+
1
)
setCurrent
(
current
+
1
)
;
});
});
};
};
useEffect
(()
=>
{
getData
()
},
[
searchWord
])
//下拉加载
//下拉加载
const
handleScroll
=
()
=>
{
const
handleScroll
=
()
=>
{
...
@@ -64,7 +67,7 @@ const Backlog = (props) => {
...
@@ -64,7 +67,7 @@ const Backlog = (props) => {
data
.
map
((
item
,
index
)
=>
(
data
.
map
((
item
,
index
)
=>
(
<
div
key=
{
index
}
>
<
div
key=
{
index
}
>
<
WhiteSpace
/>
<
WhiteSpace
/>
<
TodoCard
data=
{
item
}
onClick=
{
checkLog
}
/>
<
TodoCard
data=
{
item
}
onClick=
{
()
=>
checkLog
(
item
.
TABLEID
)
}
/>
</
div
>
</
div
>
))
))
...
...
src/pages/Communicate/AddressBook.jsx
View file @
8aa664bd
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
AddressList
from
'../../components/AddressList'
;
import
AddressList
from
'../../components/AddressList'
;
import
AddressUser
from
'../../components/AddressList/AddressUser'
;
import
AddressUser
from
'../../components/AddressList/AddressUser'
;
import
axiosRequest
from
'../../utils/request'
;
import
{
ActivityIndicator
}
from
"antd-mobile"
;
const
AddressBook
=
(
props
)
=>
{
const
AddressBook
=
(
props
)
=>
{
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
data
,
setData
]
=
useState
([]);
const
[
type
,
setType
]
=
useState
(
'basic'
)
// const {id} = props.match.params;
// console.log(id, ss);
const
getData
=
()
=>
{
setLoading
(
true
);
axiosRequest
({
method
:
'post'
,
url
:
'/idtAppServiceV6/oApp/getDeptTree'
,
}).
then
(
res
=>
{
setLoading
(
false
);
setData
()
});
};
useEffect
(()
=>
{
getData
()
},
[]);
const
treeClick
=
()
=>
{
};
return
(
return
(
<
div
>
<
div
>
<
ActivityIndicator
toast
text=
"加载中..."
animating=
{
loading
}
/>
<
div
className=
'breadBox'
>
<
div
className=
'breadBox'
>
<
span
className=
'currentLink'
>
科技创新委员会
</
span
>
<
span
className=
'currentLink'
>
科技创新委员会
</
span
>
<
span
className=
'symbol'
>
>
</
span
>
<
span
className=
'symbol'
>
>
</
span
>
...
@@ -14,9 +46,7 @@ const AddressBook = (props) => {
...
@@ -14,9 +46,7 @@ const AddressBook = (props) => {
<
span
>
办公厅
</
span
>
<
span
>
办公厅
</
span
>
</
div
>
</
div
>
<
div
className=
'adMainBox'
>
<
div
className=
'adMainBox'
>
<
AddressList
data=
{
[{
title
:
'1'
},
{
title
:
2
},
{
title
:
3
}]
}
/>
<
AddressUser
data=
{
data
}
onCLick=
{}
/>
<
AddressUser
data=
{
[{
title
:
'1'
,
children
:
[{},
{},
{}]},
{
title
:
2
,
children
:
[{},
{},
{}]},
{
title
:
3
,
children
:
[{},
{},
{}]}]
}
/>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
src/pages/Communicate/Communicate.jsx
View file @
8aa664bd
// import React, {Component} from 'react';
import
React
,
{
useState
,
useEffect
}
from
'react'
;
// import './index.less'
//
// class Communicate extends Component {
//
// render() {
// return (
// <div>
// <div className='breadBox'>
// <span className='currentLink'>科技创新委员会</span><span className='symbol'>></span><span>组织架构</span><span className='symbol'>></span><span>办公厅</span>
// </div>
// <div className='adMainBox'>
// <ul className='adListBox'>
// <li>
// <div className='itemBox'>
// <h4 className='titleBar'>市委办公厅审核员</h4>
// <div className='adContent'>
// <div className='peopleList'>
// <p className='subItem'>
// <span className='cicrleHead mr-5'>
// <img src='/img/head.png' className='imgRes' />
// </span>
// 王磊
// </p>
// <p className='subItem'>
// <img className='smallIco mr-5' src='/img/tel.png' />13488876526
// </p>
// </div>
// <div className='peopleList'>
// <p className='subItem'>
// <span className='cicrleHead mr-5 centerFont'>
// 王
// </span>
// 王磊
// </p>
// <p className='subItem'>
// <img className='smallIco mr-5' src='/img/tel.png' />13488876526
// </p>
// </div>
// </div>
// </div>
// </li>
// <li>
// <div className='itemBox'>
// <h4 className='titleBar'>市委办公厅审核员</h4>
// <div className='adContent'>
// <div className='peopleList'>
// <p className='subItem'>
// <span className='cicrleHead mr-5'>
// <img src='/img/head.png' className='imgRes' />
// </span>
// 王磊
// </p>
// <p className='subItem'>
// <img className='smallIco mr-5' src='/img/tel.png' />13488876526
// </p>
// </div>
// <div className='peopleList'>
// <p className='subItem'>
// <span className='cicrleHead mr-5 centerFont'>
// 王
// </span>
// 王磊
// </p>
// <p className='subItem'>
// <img className='smallIco mr-5' src='/img/tel.png' />13488876526
// </p>
// </div>
// </div>
// </div>
// </li>
// </ul>
// </div>
// </div>
// );
// }
// }
//
// export default Communicate;
import
React
from
'react'
;
import
AddressList
from
'../../components/AddressList'
;
import
AddressList
from
'../../components/AddressList'
;
import
AddressUser
from
'../../components/AddressList/AddressUser'
;
import
AddressUser
from
'../../components/AddressList/AddressUser'
;
import
axiosRequest
from
'../../utils/request'
;
import
{
ActivityIndicator
}
from
"antd-mobile"
;
const
AddressBook
=
(
props
)
=>
{
const
Communicate
=
(
props
)
=>
{
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
data
,
setData
]
=
useState
([]);
const
[
type
,
setType
]
=
useState
(
'basic'
)
// const {id} = props.match.params;
// console.log(id, ss);
const
getData
=
()
=>
{
setLoading
(
true
);
axiosRequest
({
method
:
'post'
,
url
:
'/idtAppServiceV6/oApp/getSearchAddressBook'
,
}).
then
(
res
=>
{
setLoading
(
false
);
setData
()
});
};
useEffect
(()
=>
{
if
(
props
.
location
.
query
&&
props
.
location
.
query
.
parent
)
{
const
{
parent
}
=
props
.
location
.
query
;
}
// const {parent} = props.location.query;
console
.
log
(
props
.
location
.
query
)
getData
()
},
[]);
const
getCurrent
=
()
=>
{
}
return
(
return
(
<
div
>
<
div
>
<
ActivityIndicator
toast
text=
"加载中..."
animating=
{
loading
}
/>
<
div
className=
'breadBox'
>
<
div
className=
'breadBox'
>
<
span
className=
'currentLink'
>
科技创新委员会
</
span
>
<
span
className=
'currentLink'
>
科技创新委员会
</
span
>
<
span
className=
'symbol'
>
>
</
span
>
<
span
className=
'symbol'
>
>
</
span
>
...
@@ -96,8 +52,6 @@ const AddressBook = (props) => {
...
@@ -96,8 +52,6 @@ const AddressBook = (props) => {
<
span
>
办公厅
</
span
>
<
span
>
办公厅
</
span
>
</
div
>
</
div
>
<
div
className=
'adMainBox'
>
<
div
className=
'adMainBox'
>
<
AddressList
data=
{
[{
title
:
'1'
},
{
title
:
2
},
{
title
:
3
}]
}
/>
<
AddressUser
data=
{
[{
title
:
'1'
,
children
:
[{},
{},
{}]},
{
title
:
2
,
children
:
[{},
{},
{}]},
{
title
:
3
,
children
:
[{},
{},
{}]}]
}
/>
<
AddressUser
data=
{
[{
title
:
'1'
,
children
:
[{},
{},
{}]},
{
title
:
2
,
children
:
[{},
{},
{}]},
{
title
:
3
,
children
:
[{},
{},
{}]}]
}
/>
</
div
>
</
div
>
...
@@ -105,5 +59,5 @@ const AddressBook = (props) => {
...
@@ -105,5 +59,5 @@ const AddressBook = (props) => {
);
);
};
};
export
default
AddressBook
;
export
default
Communicate
;
src/pages/EventProcessing/Adjunct.jsx
View file @
8aa664bd
import
React
from
'react'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
List
from
'../../components/List'
import
List
from
'../../components/List'
import
AdjunctList
from
'../../components/Adjunct'
import
AdjunctList
from
'../../components/Adjunct'
import
axiosRequest
from
'../../utils/request'
;
const
da222
=
Array
.
from
(
new
Array
(
7
)).
map
((
_val
,
i
)
=>
({
const
da222
=
Array
.
from
(
new
Array
(
7
)).
map
((
_val
,
i
)
=>
({
id
:
`name
${
i
}
`
,
id
:
`name
${
i
}
`
,
text
:
`name
${
i
}
`
,
text
:
`name
${
i
}
`
,
}));
}));
const
Adjunct
=
()
=>
{
const
Adjunct
=
(
props
)
=>
{
const
[
data
,
setData
]
=
useState
([])
useEffect
(()
=>
{
const
{
tableId
}
=
props
;
axiosRequest
({
method
:
'post'
,
url
:
`/dgbg/MobileGetFlowsByTabId.view?userName=2012012099&clientFlag=123456&tableId=
${
tableId
}
`
,
}).
then
(
res
=>
{
console
.
log
(
res
,
data
)
setData
([])
});
},
[]);
const
listData
=
[
const
listData
=
[
{
title
:
'开始时间'
,
content
:
'文电科'
},
{
title
:
'开始时间'
,
content
:
'文电科'
},
{
title
:
'结束时间'
,
content
:
'3'
},
{
title
:
'结束时间'
,
content
:
'3'
},
...
...
src/pages/EventProcessing/Basic.jsx
View file @
8aa664bd
import
React
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
'./index.less'
import
'./index.less'
import
List
from
'../../components/List'
import
List
from
'../../components/List'
import
axiosRequest
from
'../../utils/request'
;
const
Basic
=
(
props
)
=>
{
const
[
data
,
setData
]
=
useState
([]);
useEffect
(()
=>
{
const
{
tableId
}
=
props
;
axiosRequest
({
method
:
'post'
,
url
:
`/dgbg/MobileGetFlowsByTabId.view?userName=2012012099&clientFlag=123456&tableId=
${
tableId
}
`
,
}).
then
(
res
=>
{
console
.
log
(
res
)
setData
([])
});
},
[])
const
data
=
Array
.
from
(
new
Array
(
12
)).
map
((
_val
,
i
)
=>
({
icon
:
'/img/test/test.png'
,
text
:
`name
${
i
}
`
,
}));
const
Basic
=
()
=>
{
const
personImg
=
data
.
map
((
item
,
index
)
=>
(
const
personImg
=
data
.
map
((
item
,
index
)
=>
(
<
div
key=
{
index
}
className=
"basic-people-item"
>
<
div
key=
{
index
}
className=
"basic-people-item"
>
<
img
className=
"work-people-img"
alt=
""
src=
'/img/test/test.png'
/>
<
img
className=
"work-people-img"
alt=
""
src=
'/img/test/test.png'
/>
...
...
src/pages/EventProcessing/Flow.jsx
View file @
8aa664bd
import
React
from
'react'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
StepCard
from
'../../components/StepCard'
import
StepCard
from
'../../components/StepCard'
import
axiosRequest
from
'../../utils/request'
;
const
Flow
=
()
=>
{
const
Flow
=
(
props
)
=>
{
const
[
data
,
setData
]
=
useState
([])
useEffect
(()
=>
{
const
{
tableId
}
=
props
;
axiosRequest
({
method
:
'post'
,
url
:
`/dgbg/MobileGetFlowsByTabId.view?userName=2012012099&clientFlag=123456&tableId=
${
tableId
}
`
,
}).
then
(
res
=>
{
console
.
log
(
res
)
setData
([])
});
},
[]);
return
(
return
(
<
div
>
<
div
>
<
StepCard
/>
<
StepCard
data=
{
data
}
/>
</
div
>
</
div
>
);
);
};
};
...
...
src/pages/EventProcessing/Option.jsx
View file @
8aa664bd
import
React
,
{
Componen
t
}
from
'react'
;
import
React
,
{
useState
,
useEffec
t
}
from
'react'
;
import
{
Modal
}
from
'antd-mobile'
import
{
Modal
}
from
'antd-mobile'
import
'./index.less'
;
import
'./index.less'
;
import
axiosRequest
from
'../../utils/request'
;
const
operation
=
Modal
.
operation
;
const
operation
=
Modal
.
operation
;
class
Option
extends
Component
{
const
Option
=
(
props
)
=>
{
state
=
{
const
onChange
=
()
=>
{
}
onChange
=
()
=>
{
const
input
=
document
.
getElementsByClassName
(
"option-text"
);
const
input
=
document
.
getElementsByClassName
(
"option-text"
);
this
.
props
.
onChange
(
input
[
0
].
value
)
props
.
onChange
(
input
[
0
].
value
)
};
};
setValue
=
(
val
)
=>
{
const
setValue
=
(
val
)
=>
{
const
input
=
document
.
getElementsByClassName
(
"option-text"
);
const
input
=
document
.
getElementsByClassName
(
"option-text"
);
input
[
0
].
value
=
val
input
[
0
].
value
=
val
};
};
render
()
{
useEffect
(()
=>
{
axiosRequest
({
method
:
'post'
,
url
:
'/dgbg/mobileGetListOptionKey.view?userName=2012012099&clientFlag=123456'
,
}).
then
(
res
=>
{
console
.
log
(
res
)
});
},
[])
return
(
return
(
<
div
>
<
div
>
<
div
className=
"option-card"
>
<
div
className=
"option-card"
>
...
@@ -26,19 +31,17 @@ class Option extends Component {
...
@@ -26,19 +31,17 @@ class Option extends Component {
<
a
<
a
className=
"option-fast"
className=
"option-fast"
onClick=
{
()
=>
operation
([
onClick=
{
()
=>
operation
([
{
text
:
'默认一'
,
onPress
:
()
=>
this
.
setValue
(
'默认一'
)
},
{
text
:
'默认一'
,
onPress
:
()
=>
setValue
(
'默认一'
)
},
{
text
:
'默认二'
,
onPress
:
()
=>
this
.
setValue
(
'默认二'
)
},
{
text
:
'默认二'
,
onPress
:
()
=>
setValue
(
'默认二'
)
},
])
}
])
}
>
>
常用阅办意见
<
img
alt=
""
src=
"/img/option-icon.png"
className=
"option-icon"
/>
常用阅办意见
<
img
alt=
""
src=
"/img/option-icon.png"
className=
"option-icon"
/>
</
a
>
</
a
>
</
div
>
</
div
>
<
textarea
className=
"option-text"
onChange=
{
this
.
onChange
}
/>
<
textarea
className=
"option-text"
onChange=
{
onChange
}
/>
</
div
>
</
div
>
</
div
>
</
div
>
);
);
}
};
}
export
default
Option
;
export
default
Option
;
src/pages/EventProcessing/Process.jsx
View file @
8aa664bd
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
WingBlank
,
WhiteSpace
,
ActionSheet
,
ActivityIndicator
}
from
'antd-mobile'
import
{
WingBlank
,
WhiteSpace
,
ActionSheet
,
ActivityIndicator
}
from
'antd-mobile'
import
axiosRequest
from
'../../utils/request'
;
import
'./index.less'
import
'./index.less'
import
TopTabs
from
'../../components/BlankTabs'
import
TopTabs
from
'../../components/BlankTabs'
import
Basic
from
'./Basic'
import
Basic
from
'./Basic'
...
@@ -10,6 +11,8 @@ import Option from './Option';
...
@@ -10,6 +11,8 @@ import Option from './Option';
const
Pro
=
(
props
)
=>
{
const
Pro
=
(
props
)
=>
{
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
tableId
,
setTableId
]
=
useState
()
//提交按钮状态
//提交按钮状态
const
[
disabled
,
setDisabled
]
=
useState
(
true
)
const
[
disabled
,
setDisabled
]
=
useState
(
true
)
//提交按钮文字
//提交按钮文字
...
@@ -21,7 +24,6 @@ const Pro = (props) => {
...
@@ -21,7 +24,6 @@ const Pro = (props) => {
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
setLoading
(
false
);
setLoading
(
false
);
const
option
=
document
.
getElementsByClassName
(
"option-text"
)[
0
]
const
option
=
document
.
getElementsByClassName
(
"option-text"
)[
0
]
option
.
addEventListener
(
'focus'
,
optionBlur
,
true
);
option
.
addEventListener
(
'focus'
,
optionBlur
,
true
);
return
()
=>
option
.
removeEventListener
(
'focus'
,
optionBlur
,
true
);
return
()
=>
option
.
removeEventListener
(
'focus'
,
optionBlur
,
true
);
...
@@ -32,7 +34,6 @@ const Pro = (props) => {
...
@@ -32,7 +34,6 @@ const Pro = (props) => {
};
};
const
[
current
,
setCurrent
]
=
useState
(
'basic'
);
const
[
current
,
setCurrent
]
=
useState
(
'basic'
);
const
[
footStatus
,
setFootStatus
]
=
useState
(
false
);
const
[
footStatus
,
setFootStatus
]
=
useState
(
false
);
//点击输入框, 聚焦移动
//点击输入框, 聚焦移动
...
@@ -70,10 +71,18 @@ const Pro = (props) => {
...
@@ -70,10 +71,18 @@ const Pro = (props) => {
wrapProps
,
wrapProps
,
},
},
(
buttonIndex
)
=>
{
(
buttonIndex
)
=>
{
props
.
history
.
push
(
`/blank/submit/1`
)
buttonIndex
>
1
&&
props
.
history
.
push
(
`/blank/submit/1`
)
//
console.log(buttonIndex)
console
.
log
(
buttonIndex
)
});
});
};
};
const
processEnd
=
()
=>
{
axiosRequest
({
method
:
'post'
,
url
:
`/dgbg/MobileGetFlowsByTabId.view?userName=2012012099&clientFlag=123456&tableId=
${
tableId
}
`
,
}).
then
(
res
=>
{
console
.
log
(
res
)
});
}
const
handleScroll
=
()
=>
{
const
handleScroll
=
()
=>
{
const
adjunct
=
document
.
getElementById
(
"event-adjunct"
).
offsetTop
;
const
adjunct
=
document
.
getElementById
(
"event-adjunct"
).
offsetTop
;
...
...
src/pages/EventProcessing/SubmitDetail.jsx
View file @
8aa664bd
...
@@ -2,13 +2,16 @@ import React, {Component} from 'react';
...
@@ -2,13 +2,16 @@ import React, {Component} from 'react';
import
AddressList
from
'../../components/AddressList'
import
AddressList
from
'../../components/AddressList'
import
{
WingBlank
,
WhiteSpace
}
from
"antd-mobile"
;
import
{
WingBlank
,
WhiteSpace
}
from
"antd-mobile"
;
class
SubmitDetail
extends
Component
{
class
SubmitDetail
extends
Component
{
render
()
{
render
()
{
return
(
return
(
<
div
>
<
div
>
111
<
WhiteSpace
/>
<
WhiteSpace
/>
<
WingBlank
>
<
WingBlank
>
<
AddressList
/>
<
AddressList
data=
{
[]
}
/>
</
WingBlank
>
</
WingBlank
>
</
div
>
</
div
>
...
...
src/pages/Login/index.jsx
View file @
8aa664bd
...
@@ -10,7 +10,7 @@ const Login = (props) => {
...
@@ -10,7 +10,7 @@ const Login = (props) => {
axiosRequest
({
axiosRequest
({
method
:
'post'
,
method
:
'post'
,
url
:
'/
dgbg/mobileLogin.view
?userName=2012012099&clientFlag=123456&password=1'
,
url
:
'/
idtAppServiceV6/oApp/login
?userName=2012012099&clientFlag=123456&password=1'
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
!
res
.
errorMessage
&&
props
.
history
.
push
(
`/bord/backlog`
)
!
res
.
errorMessage
&&
props
.
history
.
push
(
`/bord/backlog`
)
// setOperates(res.operate || []);
// setOperates(res.operate || []);
...
...
src/pages/Notice/Notice.jsx
View file @
8aa664bd
...
@@ -8,7 +8,7 @@ const Notice = (props) => {
...
@@ -8,7 +8,7 @@ const Notice = (props) => {
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
current
,
setCurrent
]
=
useState
(
1
);
const
[
current
,
setCurrent
]
=
useState
(
1
);
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
,
pageSize
:
10
};
...
@@ -16,10 +16,10 @@ const Notice = (props) => {
...
@@ -16,10 +16,10 @@ const Notice = (props) => {
setLoading
(
true
)
setLoading
(
true
)
axiosRequest
({
axiosRequest
({
method
:
'post'
,
method
:
'post'
,
url
:
'/dgbg/mobileGet
Operates
.view?userName=2012012099&clientFlag=123456'
,
url
:
'/dgbg/mobileGet
WaitDealList
.view?userName=2012012099&clientFlag=123456'
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
setLoading
(
false
);
setLoading
(
false
);
let
result
=
data
.
concat
([{},
{},
{},
{},
{},
{}])
let
result
=
res
.
rows
?
data
.
concat
(
res
.
rows
)
:
data
setData
(
result
)
setData
(
result
)
setCurrent
(
current
+
1
)
setCurrent
(
current
+
1
)
});
});
...
@@ -36,8 +36,8 @@ const Notice = (props) => {
...
@@ -36,8 +36,8 @@ const Notice = (props) => {
}
}
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
window
.
addEventListener
(
'scroll'
,
handleScroll
,
true
);
//
window.addEventListener('scroll', handleScroll, true);
return
()
=>
window
.
removeEventListener
(
'scroll'
,
handleScroll
,
true
);
//
return () => window.removeEventListener('scroll', handleScroll, true);
},
[
data
]);
},
[
data
]);
const
checkLog
=
()
=>
{
const
checkLog
=
()
=>
{
...
@@ -48,7 +48,18 @@ const Notice = (props) => {
...
@@ -48,7 +48,18 @@ const Notice = (props) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
const
element
=
document
.
getElementById
(
'common-content'
)
const
element
=
document
.
getElementById
(
'common-content'
)
element
.
scrollTo
(
0
,
0
)
element
.
scrollTo
(
0
,
0
)
},
[])
},
[]);
//tab已读未读切换
const
[
tab
,
setTab
]
=
useState
(
''
)
const
tabChange
=
val
=>
{
setTab
(
val
)
console
.
log
(
val
)
};
useEffect
(()
=>
{
getData
()
},
[
searchWord
,
tab
])
return
(
return
(
<
WingBlank
>
<
WingBlank
>
<
ActivityIndicator
<
ActivityIndicator
...
@@ -57,7 +68,7 @@ const Notice = (props) => {
...
@@ -57,7 +68,7 @@ const Notice = (props) => {
animating=
{
loading
}
animating=
{
loading
}
/>
/>
<
WhiteSpace
/>
<
WhiteSpace
/>
<
TopNotice
onSearch=
{
setSearchWord
}
/>
<
TopNotice
onSearch=
{
setSearchWord
}
tabChange=
{
tabChange
}
/>
{
{
data
.
map
((
item
,
index
)
=>
(
data
.
map
((
item
,
index
)
=>
(
<
div
key=
{
index
}
>
<
div
key=
{
index
}
>
...
...
src/pages/Work/Work.jsx
View file @
8aa664bd
...
@@ -8,6 +8,7 @@ const Work = (props) => {
...
@@ -8,6 +8,7 @@ const Work = (props) => {
const
[
loading
,
setLoading
]
=
useState
(
false
)
const
[
loading
,
setLoading
]
=
useState
(
false
)
const
[
addStatus
,
setAddStatus
]
=
useState
(
false
);
const
[
addStatus
,
setAddStatus
]
=
useState
(
false
);
const
[
operates
,
setOperates
]
=
useState
([]);
const
[
operates
,
setOperates
]
=
useState
([]);
const
[
data
,
setData
]
=
useState
([])
useEffect
(()
=>
{
useEffect
(()
=>
{
loadOperates
();
loadOperates
();
...
@@ -17,10 +18,12 @@ const Work = (props) => {
...
@@ -17,10 +18,12 @@ const Work = (props) => {
setLoading
(
true
)
setLoading
(
true
)
axiosRequest
({
axiosRequest
({
method
:
'post'
,
method
:
'post'
,
url
:
'/
dgbg/mobileGetOperates.view?userName=2012012099&clientFlag=123456
'
,
url
:
'/
idtAppServiceV6/oApp/getAllOperate
'
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
setLoading
(
false
)
setLoading
(
false
);
setOperates
(
res
.
operate
||
[]);
const
result
=
res
.
operate
?
res
.
operate
.
map
(
item
=>
({
icon
:
''
,
text
:
item
.
NODENAME
}))
:
[]
setOperates
(
result
);
setData
(
result
)
});
});
}
}
...
@@ -29,7 +32,12 @@ const Work = (props) => {
...
@@ -29,7 +32,12 @@ const Work = (props) => {
};
};
const
workSearch
=
(
val
)
=>
{
const
workSearch
=
(
val
)
=>
{
console
.
log
(
val
)
const
result
=
operates
.
filter
(
item
=>
item
.
text
&&
item
.
text
.
toLowerCase
().
indexOf
(
val
.
toLowerCase
())
>
-
1
);
if
(
val
!==
null
&&
val
!==
''
)
{
setData
(
result
)
}
else
{
setData
(
operates
)
}
};
};
const
itemAdd
=
(
id
,
arr
,
arr2
)
=>
{
const
itemAdd
=
(
id
,
arr
,
arr2
)
=>
{
...
@@ -60,7 +68,7 @@ const Work = (props) => {
...
@@ -60,7 +68,7 @@ const Work = (props) => {
title=
"工作详情"
title=
"工作详情"
addCommon=
{
commonEdit
}
addCommon=
{
commonEdit
}
addStatus=
{
addStatus
}
addStatus=
{
addStatus
}
data=
{
operates
.
map
(
item
=>
({
icon
:
''
,
text
:
item
.
NODENAME
}))
}
data=
{
data
}
workUrl=
{
workUrl
}
workUrl=
{
workUrl
}
iconAction=
{
itemAdd
}
iconAction=
{
itemAdd
}
/>
/>
...
...
src/pages/Work/WorkDetail.jsx
View file @
8aa664bd
...
@@ -9,7 +9,7 @@ const WorkDetail = (props) => {
...
@@ -9,7 +9,7 @@ const WorkDetail = (props) => {
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
current
,
setCurrent
]
=
useState
(
1
);
const
[
current
,
setCurrent
]
=
useState
(
1
);
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
,
pageSize
:
10
};
...
@@ -17,10 +17,10 @@ const WorkDetail = (props) => {
...
@@ -17,10 +17,10 @@ const WorkDetail = (props) => {
setLoading
(
true
)
setLoading
(
true
)
axiosRequest
({
axiosRequest
({
method
:
'post'
,
method
:
'post'
,
url
:
'/
dgbg/mobileGetOperates.view?userName=2012012099&clientFlag=123456
'
,
url
:
'/
idtAppServiceV6/getWaitDealList
'
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
setLoading
(
false
);
setLoading
(
false
);
let
result
=
data
.
concat
([{},
{},
{},
{},
{},
{}])
let
result
=
res
.
rows
?
data
.
concat
(
res
.
rows
)
:
data
setData
(
result
)
setData
(
result
)
setCurrent
(
current
+
1
)
setCurrent
(
current
+
1
)
});
});
...
@@ -49,7 +49,18 @@ const WorkDetail = (props) => {
...
@@ -49,7 +49,18 @@ const WorkDetail = (props) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
const
element
=
document
.
getElementById
(
'work-content'
)
const
element
=
document
.
getElementById
(
'work-content'
)
element
.
scrollTo
(
0
,
0
)
element
.
scrollTo
(
0
,
0
)
},
[])
},
[]);
//tab已读未读切换
const
[
tab
,
setTab
]
=
useState
(
''
)
const
tabChange
=
val
=>
{
setTab
(
val
)
console
.
log
(
val
)
};
useEffect
(()
=>
{
getData
()
},
[
searchWord
,
tab
])
return
(
return
(
<
div
id=
"work-content"
className=
"work-content"
>
<
div
id=
"work-content"
className=
"work-content"
>
<
WingBlank
>
<
WingBlank
>
...
@@ -59,7 +70,7 @@ const WorkDetail = (props) => {
...
@@ -59,7 +70,7 @@ const WorkDetail = (props) => {
animating=
{
loading
}
animating=
{
loading
}
/>
/>
<
WhiteSpace
/>
<
WhiteSpace
/>
<
TopNotice
onSearch=
{
setSearchWord
}
/>
<
TopNotice
onSearch=
{
setSearchWord
}
tabChange=
{
tabChange
}
/>
{
{
data
.
map
((
item
,
index
)
=>
(
data
.
map
((
item
,
index
)
=>
(
<
div
key=
{
index
}
>
<
div
key=
{
index
}
>
...
...
src/router.js
View file @
8aa664bd
...
@@ -28,7 +28,7 @@ const ReactRouter = () => {
...
@@ -28,7 +28,7 @@ const ReactRouter = () => {
<
CommonLayout
>
<
CommonLayout
>
<
Route
path
=
"/bord/backlog"
component
=
{
Backlog
}
/
>
<
Route
path
=
"/bord/backlog"
component
=
{
Backlog
}
/
>
<
Route
path
=
"/bord/work"
component
=
{
Work
}
/
>
<
Route
path
=
"/bord/work"
component
=
{
Work
}
/
>
<
Route
path
=
"/bord/
communicate
"
component
=
{
Communicate
}
/
>
<
Route
path
=
"/bord/
addressList/:id
"
component
=
{
Communicate
}
/
>
<
Route
path
=
"/bord/addressList"
component
=
{
AddressList
}
/
>
<
Route
path
=
"/bord/addressList"
component
=
{
AddressList
}
/
>
<
Route
path
=
"/bord/notice"
component
=
{
Notice
}
/
>
<
Route
path
=
"/bord/notice"
component
=
{
Notice
}
/
>
<
/CommonLayout
>
<
/CommonLayout
>
...
...
src/utils/instance.js
View file @
8aa664bd
...
@@ -3,7 +3,7 @@ import { stringify } from 'qs';
...
@@ -3,7 +3,7 @@ import { stringify } from 'qs';
import
{
Toast
}
from
'antd-mobile'
;
import
{
Toast
}
from
'antd-mobile'
;
const
instance
=
axios
.
create
();
const
instance
=
axios
.
create
();
const
token
=
'bearer '
+
localStorage
.
getItem
(
"token"
);
const
token
=
localStorage
.
getItem
(
"token"
);
let
defaultHeaders
=
{
let
defaultHeaders
=
{
token
,
token
,
...
@@ -47,6 +47,7 @@ export const createAPI = (baseURL) => {
...
@@ -47,6 +47,7 @@ export const createAPI = (baseURL) => {
headers
,
headers
,
},
conf
.
opts
))
},
conf
.
opts
))
.
then
(
function
(
response
)
{
.
then
(
function
(
response
)
{
console
.
log
(
response
)
if
(
!
response
||
!
response
.
data
)
{
console
.
log
(
'response出错, 无返回数据!'
,
response
);
return
false
;
};
if
(
!
response
||
!
response
.
data
)
{
console
.
log
(
'response出错, 无返回数据!'
,
response
);
return
false
;
};
if
(
response
.
data
&&
response
.
data
.
errorMessage
)
{
if
(
response
.
data
&&
response
.
data
.
errorMessage
)
{
...
@@ -54,11 +55,12 @@ export const createAPI = (baseURL) => {
...
@@ -54,11 +55,12 @@ export const createAPI = (baseURL) => {
return
false
;
return
false
;
}
}
// 保存到本地
// 保存到本地
if
(
response
&&
response
.
data
&&
response
.
data
.
access_token
)
{
if
(
response
&&
response
.
data
&&
response
.
data
.
data
&&
response
.
data
.
data
.
token
)
{
console
.
log
(
response
.
data
.
data
.
token
)
defaultHeaders
=
{
defaultHeaders
=
{
token
:
'bearer '
+
response
.
data
.
access_
token
,
token
:
response
.
data
.
data
.
token
,
}
}
localStorage
.
setItem
(
"token"
,
response
.
data
.
access_
token
);
localStorage
.
setItem
(
"token"
,
response
.
data
.
data
.
token
);
}
}
if
(
response
.
data
)
{
if
(
response
.
data
)
{
...
...
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