Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-CloudComputing
/
D_Team_Khuloud
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Hong
2020-06-10 01:22:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a178308d89ea5a7af97a96cbae9f903b16802e1b
a178308d
1 parent
e0a9f8fc
.
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
front-end/src/api/index.js
front-end/src/components/FileList.vue
front-end/src/components/folderc.vue
front-end/src/api/index.js
View file @
a178308
...
...
@@ -70,8 +70,9 @@ function deleteFile(fileData) {
},
});
}
function
downloadFile
(
fileData
)
{
return
axios
.
get
(
`
api/file/download/
${
fileData
.
fileName
}
`
,
{
return
axios
.
get
(
`/
api/file/download/
${
fileData
.
fileName
}
`
,
{
params
:
{
//현재 접속한 사람의 id와 다운로드를 위해 선택한 파일의 이름을 파라미터로 넘긴다.
id
:
fileData
.
id
,
...
...
@@ -79,22 +80,25 @@ function downloadFile(fileData) {
},
});
}
function
accessedList
(
curData
)
{
return
axios
.
get
(
'
api/quick'
,
{
return
axios
.
get
(
'/
api/quick'
,
{
params
:
{
id
:
curData
.
id
,
},
});
}
function
modifyFile
(
fileData
)
{
return
axios
.
post
(
`/api/file/modify/
${
fileData
.
name
}
`
,
fileData
);
}
function
delFavorite
(
folderData
)
{
return
axios
.
post
(
'
api/favorites/delfolder'
,
folderData
);
return
axios
.
post
(
'/
api/favorites/delfolder'
,
folderData
);
}
function
addFavorite
(
folderData
)
{
return
axios
.
post
(
'
api/favorites/addfolder'
,
folderData
);
return
axios
.
post
(
'/
api/favorites/addfolder'
,
folderData
);
}
function
moveFile
(
fileData
)
{
...
...
@@ -102,15 +106,15 @@ function moveFile(fileData) {
}
function
delFavoriteFile
(
fileData
)
{
return
axios
.
post
(
'
api/favorites/delfile'
,
fileData
);
return
axios
.
post
(
'/
api/favorites/delfile'
,
fileData
);
}
function
addFavoriteFile
(
fileData
)
{
return
axios
.
post
(
'
api/favorites/addfile'
,
fileData
);
return
axios
.
post
(
'/
api/favorites/addfile'
,
fileData
);
}
function
getFavoriteList
(
userId
)
{
return
axios
.
get
(
'
api/favorites/show'
,
{
return
axios
.
get
(
'/
api/favorites/show'
,
{
params
:
{
id
:
userId
,
},
...
...
front-end/src/components/FileList.vue
View file @
a178308
...
...
@@ -14,9 +14,6 @@
<v-list two-line subheader>
<!-- <v-subheader inset>Folders</v-subheader> -->
<!-- Folder view -->
<v-list-item v-if="this.$store.state.cur !== '/'" @click="moveParent"
>...</v-list-item
>
<v-list-item
v-for="item in this.$store.getters.folderL"
:key="item.folder_id"
...
...
front-end/src/components/folderc.vue
View file @
a178308
...
...
@@ -14,7 +14,10 @@
<v-list two-line subheader>
<!-- <v-subheader inset>Folders</v-subheader> -->
<!-- Folder view -->
<v-list-item @click="$router.go(-1)">...</v-list-item>
<v-list-item
@click=""
@dblclick="$router.go(-1)"
>...</v-list-item>
<v-list-item
v-for="item in this.$store.getters.folderL"
:key="item.folder_id"
...
...
Please
register
or
login
to post a comment