Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evm-store
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
wanli
evm-store
Commits
349d09b7
Commit
349d09b7
authored
Jul 19, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix(文件管理后端接口):
修复文件管理后端接口获取目录详情bug
parent
501aa1fb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
tools/build_out/controllers/file.py
tools/build_out/controllers/file.py
+8
-6
tools/build_out/result.json
tools/build_out/result.json
+1
-1
tools/frontend/src/views/Application/Manager.vue
tools/frontend/src/views/Application/Manager.vue
+1
-1
tools/frontend/src/views/FileManager/FileManager.vue
tools/frontend/src/views/FileManager/FileManager.vue
+3
-0
No files found.
tools/build_out/controllers/file.py
View file @
349d09b7
...
...
@@ -96,21 +96,23 @@ class FileManager(object):
"files"
:
[]
}
if
target_path
==
None
:
target_path
=
''
disk_path
=
Path
(
disk_root
)
.
joinpath
(
disk
)
else
:
if
target_path
!=
None
and
target_path
.
find
(
disk
)
>
0
:
disk_path
=
Path
(
disk_root
)
else
:
disk_path
=
Path
(
disk_root
)
.
joinpath
(
disk
)
if
not
disk_path
.
exists
():
logger
.
info
(
disk_path
)
return
result
,
ResponseCode
.
DIRECTORY_NOT_EXISTS
return
None
,
ResponseCode
.
DIRECTORY_NOT_EXISTS
if
target_path
==
None
:
target_path
=
''
target_path
=
Path
(
target_path
)
target_path
=
disk_path
.
joinpath
(
target_path
)
if
not
target_path
.
exists
():
logger
.
info
(
target_path
)
return
result
,
ResponseCode
.
DIRECTORY_NOT_EXISTS
return
None
,
ResponseCode
.
DIRECTORY_NOT_EXISTS
for
child
in
target_path
.
iterdir
():
if
child
.
is_dir
():
...
...
tools/build_out/result.json
View file @
349d09b7
{
"directories"
:
[{
"basename"
:
"evm"
,
"dirname"
:
"uploads/evueapps"
,
"path"
:
"uploads/evueapps/evm"
,
"timestamp"
:
1625930440
,
"type"
:
"dir"
}],
"files"
:
[]}
\ No newline at end of file
{
"directories"
:
[{
"basename"
:
"evm"
,
"dirname"
:
"evueapps"
,
"path"
:
"evueapps/evm"
,
"timestamp"
:
1625930440
,
"type"
:
"dir"
}],
"files"
:
[]}
\ No newline at end of file
tools/frontend/src/views/Application/Manager.vue
View file @
349d09b7
...
...
@@ -241,7 +241,7 @@ export default {
});
},
edit
(
record
)
{
this
.
$router
.
push
({
name
:
"
FileManager
"
,
params
:
{
directory
:
record
.
file_dir
}
})
this
.
$router
.
push
({
name
:
"
FileManager
"
,
params
:
{
directory
:
record
.
file_dir
,
disk
:
"
uploads
"
}
})
},
resetForm
()
{
this
.
query
=
{
...
...
tools/frontend/src/views/FileManager/FileManager.vue
View file @
349d09b7
...
...
@@ -119,6 +119,9 @@ export default {
EventBus.$emit('keyMonitor', event);
});
*/
// 切换目录
},
destroyed
()
{
// reset state
...
...
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