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
717d6e30
Commit
717d6e30
authored
Feb 28, 2022
by
袁成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:文件列表、文件管理增加分组
parent
f36b1934
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
27 deletions
+43
-27
gms-app.vue
...p/@gms/gms-plugin-mainpage-fileList/src/views/gms-app.vue
+7
-2
property.vue
.../@gms/gms-plugin-mainpage-fileList/src/views/property.vue
+33
-9
package.json
develop/@rbc/file-management/package.json
+0
-2
file-management.vue
develop/@rbc/file-management/src/views/file-management.vue
+0
-0
file-upload.vue
develop/@rbc/file-management/src/views/file-upload.vue
+3
-14
No files found.
develop/@gms/gms-plugin-mainpage-fileList/src/views/gms-app.vue
View file @
717d6e30
...
...
@@ -38,7 +38,8 @@ export default {
fileList
:
[],
fileWidth
:
'100%'
,
modalShow
:
false
,
fileTitle
:
'资料下载'
fileTitle
:
'资料下载'
,
groupId
:
'rbc-0'
}
},
created
()
{
...
...
@@ -48,6 +49,8 @@ export default {
let
str
=
Math
.
floor
(
100
/
num
)
+
'%'
this
.
fileTitle
=
prop
.
fileTitle
this
.
fileWidth
=
`calc(
${
str
}
- 10px)`
let
id
=
prop
.
groupId
?
prop
.
groupId
:
'0'
this
.
groupId
=
'rbc-'
+
id
}
},
mounted
()
{
...
...
@@ -58,7 +61,9 @@ export default {
async
getFileLList
()
{
const
url
=
`/common/attachment/owner/00000000-0000-0000-0000-000000000000`
const
{
data
}
=
await
GMS
.
$http
.
get
(
url
)
this
.
fileList
=
data
this
.
fileList
=
data
.
filter
(
item
=>
item
.
category
===
this
.
groupId
)
console
.
log
(
'groupId'
,
this
.
groupId
)
console
.
log
(
'fileList'
,
this
.
fileList
)
console
.
log
({
data
})
},
handleMore
()
{
...
...
develop/@gms/gms-plugin-mainpage-fileList/src/views/property.vue
View file @
717d6e30
...
...
@@ -10,6 +10,11 @@
<FormItem
label=
"标题"
>
<Input
v-model=
"config.fileTitle"
placeholder=
"资料下载"
></Input>
</FormItem>
<FormItem
label=
"分组"
>
<Select
v-model=
"config.groupId"
>
<Option
v-for=
"item in fileGroup"
:value=
"item.value"
:key=
"item.value"
>
{{
item
.
label
}}
</Option>
</Select>
</FormItem>
</Form>
</div>
</Panel>
...
...
@@ -18,14 +23,6 @@
<
script
>
export
default
{
watch
:
{
// configList: {
// handler(newVal) {
// this.itemSetting.properties = newVal
// },
// deep: true,
// },
},
props
:
{
itemSetting
:
{
type
:
Array
,
...
...
@@ -37,8 +34,35 @@ export default {
value1
:
'1'
,
config
:
{
num
:
1
,
fileTitle
:
'资料下载'
fileTitle
:
'资料下载'
,
groupId
:
'0'
},
fileGroup
:
[
{
label
:
'默认分组'
,
value
:
'0'
},
{
label
:
'分组一'
,
value
:
'1'
},
{
label
:
'分组二'
,
value
:
'2'
},
{
label
:
'分组三'
,
value
:
'3'
},
{
label
:
'分组四'
,
value
:
'4'
},
{
label
:
'分组五'
,
value
:
'5'
}
]
}
},
created
()
{
...
...
develop/@rbc/file-management/package.json
View file @
717d6e30
...
...
@@ -34,8 +34,6 @@
"eslint"
:
"^6.7.2"
,
"eslint-plugin-vue"
:
"^6.2.2"
,
"less"
:
"^4.1.1"
,
"node-sass"
:
"^4.12.0"
,
"sass-loader"
:
"^8.0.2"
,
"vue-template-compiler"
:
"^2.6.11"
}
}
develop/@rbc/file-management/src/views/file-management.vue
View file @
717d6e30
This diff is collapsed.
Click to expand it.
develop/@rbc/file-management/src/views/file-upload.vue
View file @
717d6e30
...
...
@@ -75,6 +75,9 @@ export default {
filesList
()
{
return
this
.
files
.
filter
((
item
)
=>
item
.
saveState
!==
-
1
)
},
url
()
{
return
`
${
osConfig
.
baseUrl
}
/common/attachment/?ownerId=
${
this
.
billidParam
}
&ownerType=bill&category=
${
this
.
groupName
}
-
${
this
.
groupId
}
`
}
},
props
:
{
...
...
@@ -109,7 +112,6 @@ export default {
modalShow
:
false
,
files
:
[],
fileName
:
''
,
url
:
`
${
osConfig
.
baseUrl
}
/common/attachment/?ownerId=
${
this
.
billidParam
}
&ownerType=bill&category=
${
this
.
groupName
}
-
${
this
.
groupId
}
`
,
messageVal
:
0
,
uploadGroupTitle
:
''
,
groupinfo
:
{
...
...
@@ -243,19 +245,6 @@ export default {
//取消按钮
cancel
()
{
this
.
modalShow
=
false
// let promises = []
// this.filesList.forEach((item) => {
// var url = `/common/attachment/${item.id}`
// promises.push(GMS.$http.delete(url))
// })
// Promise.all(promises)
// .then((res) => {
// this.modalShow = false
// })
// .catch((err) => {
// console.log('附件删除失败', err)
// })
},
//查看预览
handleView
(
list
)
{
...
...
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