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
42fe899a
Commit
42fe899a
authored
Jun 12, 2020
by
熊成伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
2df7398a
Pipeline
#15319
passed with stages
in 58 seconds
Changes
6
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
idt-menu-ico-03.png
public/img/icon/idt-menu-ico-03.png
+0
-0
idt-menu-ico-39.png
public/img/icon/idt-menu-ico-39.png
+0
-0
Process.jsx
src/pages/EventProcessing/Process.jsx
+1
-1
index.jsx
src/pages/Login/index.jsx
+1
-1
Work.jsx
src/pages/Work/Work.jsx
+1
-1
instance.js
src/utils/instance.js
+4
-4
No files found.
public/img/icon/idt-menu-ico-03.png
0 → 100644
View file @
42fe899a
43 KB
public/img/icon/idt-menu-ico-39.png
0 → 100644
View file @
42fe899a
25.7 KB
src/pages/EventProcessing/Process.jsx
View file @
42fe899a
...
@@ -105,7 +105,7 @@ const Process = (props) => {
...
@@ -105,7 +105,7 @@ const Process = (props) => {
//提交按钮状态
//提交按钮状态
const
[
disabled
,
setDisabled
]
=
useState
(
true
);
const
[
disabled
,
setDisabled
]
=
useState
(
true
);
//提交按钮文字
//提交按钮文字
const
[
footButton
,
setFootButton
]
=
useState
(
'
确认发送
'
);
const
[
footButton
,
setFootButton
]
=
useState
(
'
处理
'
);
//聚焦
//聚焦
const
optionBlur
=
()
=>
{
const
optionBlur
=
()
=>
{
setFootButton
(
'确认发送'
);
setFootButton
(
'确认发送'
);
...
...
src/pages/Login/index.jsx
View file @
42fe899a
...
@@ -10,7 +10,7 @@ const Login = (props) => {
...
@@ -10,7 +10,7 @@ const Login = (props) => {
axiosRequest
({
axiosRequest
({
method
:
'post'
,
method
:
'post'
,
url
:
'/idtAppServiceV6/oApp/login?userName=2012012099&clientFlag=123456&password=1'
,
url
:
'/idtAppServiceV6/oApp/login?userName=2012012099&clientFlag=123456&password=1
&loginType=mobile
'
,
}).
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/Work/Work.jsx
View file @
42fe899a
...
@@ -75,7 +75,7 @@ const Work = (props) => {
...
@@ -75,7 +75,7 @@ const Work = (props) => {
<
WhiteSpace
/>
<
WhiteSpace
/>
<
TopSearch
onSearch=
{
workSearch
}
/>
<
TopSearch
onSearch=
{
workSearch
}
/>
<
WhiteSpace
/>
<
WhiteSpace
/>
{
loading
?
<
Skeleton
/>
:
(
!
start
&&
(
data
.
length
>
0
?
(
{
loading
?
<
Skeleton
/>
:
(
!
start
&&
data
&&
(
data
.
length
>
0
?
(
<
WorkCard
<
WorkCard
title=
"工作详情"
title=
"工作详情"
addCommon=
{
commonEdit
}
addCommon=
{
commonEdit
}
...
...
src/utils/instance.js
View file @
42fe899a
...
@@ -52,7 +52,7 @@ export const createAPI = (baseURL) => {
...
@@ -52,7 +52,7 @@ export const createAPI = (baseURL) => {
// console.log(response)
// console.log(response)
if
(
!
response
||
!
response
.
data
)
{
if
(
!
response
||
!
response
.
data
)
{
response
.
message
===
'票据已经失效
'
&&
(
window
.
location
.
href
=
'/login'
)
response
.
status
===
'failure
'
&&
(
window
.
location
.
href
=
'/login'
)
console
.
log
(
'response出错, 无返回数据!'
,
response
);
return
false
;
console
.
log
(
'response出错, 无返回数据!'
,
response
);
return
false
;
};
};
if
(
response
.
data
&&
response
.
data
.
errorMessage
)
{
if
(
response
.
data
&&
response
.
data
.
errorMessage
)
{
...
@@ -67,9 +67,9 @@ export const createAPI = (baseURL) => {
...
@@ -67,9 +67,9 @@ export const createAPI = (baseURL) => {
localStorage
.
setItem
(
"token"
,
response
.
data
.
token
);
localStorage
.
setItem
(
"token"
,
response
.
data
.
token
);
}
}
if
(
response
&&
response
.
data
&&
response
.
data
.
leftOperateBar
)
{
if
(
response
&&
response
.
data
&&
response
.
data
.
leftOperateBar
)
{
const
result
=
response
.
data
.
leftOperateBar
.
filter
(
item
=>
item
.
nodeName
===
'公共分组'
);
localStorage
.
removeItem
(
"menu"
);
const
menu
=
res
ult
.
length
>
0
&&
result
[
0
].
children
?
result
[
0
].
children
.
map
(
item
=>
({
icon
:
item
.
imgType
,
text
:
item
.
nodeName
}))
:
[];
const
menu
=
res
ponse
.
data
.
leftOperateBar
.
map
(
item
=>
({
icon
:
item
.
imgType
,
text
:
item
.
nodeName
}))
result
.
length
>
0
&&
localStorage
.
setItem
(
"menu"
,
JSON
.
stringify
(
menu
));
menu
.
length
>
0
&&
localStorage
.
setItem
(
"menu"
,
JSON
.
stringify
(
menu
));
}
}
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