Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
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
王衍超
rbc-demo
Commits
1f63baee
Commit
1f63baee
authored
Mar 02, 2022
by
袁成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix文件分组
parent
87db52dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
gms-app.vue
...p/@gms/gms-plugin-mainpage-fileList/src/views/gms-app.vue
+5
-4
property.vue
.../@gms/gms-plugin-mainpage-fileList/src/views/property.vue
+1
-1
file-management.vue
develop/@rbc/file-management/src/views/file-management.vue
+7
-3
No files found.
develop/@gms/gms-plugin-mainpage-fileList/src/views/gms-app.vue
View file @
1f63baee
...
...
@@ -61,10 +61,11 @@ export default {
async
getFileLList
()
{
const
url
=
`/common/attachment/owner/00000000-0000-0000-0000-000000000000`
const
{
data
}
=
await
GMS
.
$http
.
get
(
url
)
this
.
fileList
=
data
.
filter
(
item
=>
item
.
category
===
this
.
groupId
)
console
.
log
(
'groupId'
,
this
.
groupId
)
console
.
log
(
'fileList'
,
this
.
fileList
)
console
.
log
({
data
})
if
(
this
.
groupId
===
'rbc-0'
)
{
this
.
fileList
=
data
}
else
{
this
.
fileList
=
data
.
filter
(
item
=>
item
.
category
===
this
.
groupId
)
}
},
handleMore
()
{
this
.
modalShow
=
true
...
...
develop/@gms/gms-plugin-mainpage-fileList/src/views/property.vue
View file @
1f63baee
...
...
@@ -39,7 +39,7 @@ export default {
},
fileGroup
:
[
{
label
:
'
默认分组
'
,
label
:
'
全部
'
,
value
:
'0'
},
{
...
...
develop/@rbc/file-management/src/views/file-management.vue
View file @
1f63baee
...
...
@@ -76,7 +76,7 @@ export default {
tableData
:
[],
fileGroup
:
[
{
label
:
'
默认分组
'
,
label
:
'
全部
'
,
value
:
'0'
},
{
...
...
@@ -131,13 +131,17 @@ export default {
},
handleUpload
(){
this
.
$refs
.
upload
.
modalShow
=
true
this
.
$refs
.
upload
.
files
=
[]
},
async
getTableData
()
{
const
url
=
`/common/attachment/owner/00000000-0000-0000-0000-000000000000`
const
{
data
}
=
await
GMS
.
$http
.
get
(
url
)
let
category
=
'rbc-'
+
this
.
fileGroupId
this
.
tableData
=
data
.
filter
(
item
=>
item
.
category
===
category
)
console
.
log
({
data
})
if
(
this
.
fileGroupId
===
'0'
)
{
this
.
tableData
=
data
}
else
{
this
.
tableData
=
data
.
filter
(
item
=>
item
.
category
===
category
)
}
},
},
}
...
...
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