Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnyc-data
Overview
Overview
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
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
hnyc-data
Commits
618c0e07
Commit
618c0e07
authored
Aug 06, 2020
by
fanyongjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tijiao
parent
086fefdf
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
12 deletions
+8
-12
axios.js
src/util/axios.js
+0
-1
SyncTree.jsx
src/view/File/components/SyncTree.jsx
+1
-1
index.jsx
src/view/File/index.jsx
+1
-4
ListBox.jsx
src/view/User/Apply/components/ListBox.jsx
+4
-4
index.jsx
src/view/User/Apply/index.jsx
+2
-2
No files found.
src/util/axios.js
View file @
618c0e07
...
...
@@ -132,7 +132,6 @@ export function testPost(url, payload) {
const
{
fileList
=
null
,}
=
payload
||
{};
let
formData
=
new
FormData
();
formData
.
append
(
'attachment'
,
fileList
)
const
cancelToken
=
__source
?
__source
.
token
:
null
;
return
testA
.
post
(
url
,
formData
,
).
then
(
callback
)
...
...
src/view/File/components/SyncTree.jsx
View file @
618c0e07
...
...
@@ -132,7 +132,7 @@ class SearchTree extends React.Component {
</
TreeNode
>
);
}
else
{
if
(
item
.
typ
==
0
)
if
(
parseInt
(
item
.
typ
)
=
==
0
)
return
<
TreeNode
key=
{
item
.
key
}
dataRef=
{
item
}
title=
{
title
}
/>;
if
(
item
.
no
)
return
<
TreeNode
key=
{
item
.
key
}
dataRef=
{
item
}
title=
{
title
}
/>;
...
...
src/view/File/index.jsx
View file @
618c0e07
...
...
@@ -55,9 +55,6 @@ class Assets extends Component {
}
catch
(
err
){
console
.
log
(
err
)
}
console
.
log
(
'111'
)
}
})
}
...
...
@@ -69,7 +66,7 @@ class Assets extends Component {
return
data
let
value
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
for
(
let
treenode
of
value
){
if
(
treenode
.
pid
===
pid
){
if
(
parseInt
(
treenode
.
pid
)
===
parseInt
(
pid
)
){
treenode
.
title
=
treenode
.
name
treenode
.
key
=
`
${
treenode
.
id
}
`
if
(
treenode
.
no
)
...
...
src/view/User/Apply/components/ListBox.jsx
View file @
618c0e07
...
...
@@ -106,10 +106,10 @@ export default class ListBox extends Component {
};
const
getActions
=
(
item
)
=>
{
if
(
item
.
state
==
'approve'
)
{
if
(
item
.
state
==
=
'approve'
)
{
return
[
<
Button
size=
"small"
type=
"link"
icon=
"book"
disabled
>
已审核
</
Button
>,
item
.
confirmState
==
'toConfirm'
?
(
item
.
confirmState
==
=
'toConfirm'
?
(
<
Button
size=
"small"
type=
"link"
icon=
"book"
onClick=
{
this
.
onSubscribeModel
.
bind
(
this
,
item
,
item
.
processId
)
}
>
待确认
</
Button
>
...
...
@@ -117,12 +117,12 @@ export default class ListBox extends Component {
<
Button
size=
"small"
type=
"link"
icon=
"book"
disabled
>
已确认
</
Button
>
),
<
span
></
span
>
];
}
else
if
(
item
.
state
==
'applying'
){
}
else
if
(
item
.
state
==
=
'applying'
){
return
[
<
Button
size=
"small"
type=
"link"
icon=
"book"
disabled
>
待审核
</
Button
>,
<
span
></
span
>
]
}
else
if
(
item
.
state
==
'reject'
){
}
else
if
(
item
.
state
==
=
'reject'
){
return
[
<
Button
size=
"small"
type=
"link"
icon=
"book"
style=
{
{
color
:
'#ff4d4f'
}
}
disabled
>
已驳回
</
Button
>,
<
span
></
span
>
...
...
src/view/User/Apply/index.jsx
View file @
618c0e07
import
React
,
{
Component
}
from
"react"
;
import
{
Card
,
Table
,
Radio
,
Pagination
,
Input
,
Button
,
Modal
}
from
'antd'
;
import
{
dispatchLatest
,
dispatch
}
from
'../../../model'
;
import
{
Card
,
Pagination
,
}
from
'antd'
;
import
{
dispatchLatest
}
from
'../../../model'
;
import
PageHeaderWrapper
from
'../../../layout/PageHeaderWrapper'
;
import
ListBox
from
'./components/ListBox'
...
...
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