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
15148a6f
Commit
15148a6f
authored
Mar 01, 2022
by
袁成
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop-yuancheng' into 'develop'
Develop yuancheng See merge request GFP/RBC/rbc-frontend!68
parents
0c1c06b6
3b88366d
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
105 additions
and
652 deletions
+105
-652
typesBill.vue
...ms-plugin-billexpand/src/components-control/typesBill.vue
+1
-1
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+7
-1
examineAction.js
.../gms-plugin-billexpand/src/query-actions/examineAction.js
+3
-2
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
+51
-621
file-upload.vue
develop/@rbc/file-management/src/views/file-upload.vue
+3
-14
No files found.
develop/@gms/gms-plugin-billexpand/src/components-control/typesBill.vue
View file @
15148a6f
...
...
@@ -70,7 +70,7 @@ export default {
loadFinishFun
(
bill
)
{
console
.
log
(
'billState'
,
bill
.
getMasterData
().
getValue
(
'billState'
))
const
workflowState
=
bill
.
getMasterData
().
getValue
(
'billState'
)
if
([
9
0
,
9
2
].
includes
(
workflowState
))
{
if
([
92
].
includes
(
workflowState
))
{
this
.
state
=
'readOnly'
}
let
that
=
this
;
...
...
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
15148a6f
...
...
@@ -1001,6 +1001,12 @@ export default {
},
{
"isRequired"
:
true
,
"type"
:
"Boolean"
,
"title"
:
"可编辑"
,
"key"
:
"canEdit"
},
{
"isRequired"
:
true
,
"type"
:
"string"
,
"title"
:
"页签名称"
,
"key"
:
"displayName"
...
...
@@ -1604,7 +1610,7 @@ export default {
"description"
:
""
,
"title"
:
"财务_保存[CW_saveAction]"
,
"value"
:
"CW_saveAction"
,
"btnDisable"
:
"billReadOnly;9
0;9
2"
"btnDisable"
:
"billReadOnly;92"
},
{
"discard"
:
false
,
...
...
develop/@gms/gms-plugin-billexpand/src/query-actions/examineAction.js
View file @
15148a6f
...
...
@@ -6,6 +6,7 @@ export default {
context
.
dom
.
$Message
.
info
(
"请配置跳转页面的参数"
);
return
;
}
const
billState
=
param
.
canEdit
?
''
:
'readOnly'
GMS
.
queryObject
=
{
//上张下张用
currentDataQueryConditionSet
:
context
.
currentDataQueryConditionSet
,
index
:
context
.
selects
[
0
].
_index
||
(
context
.
selects
[
0
].
_serialIndex
)
*
1
-
1
,
...
...
@@ -26,7 +27,7 @@ export default {
{
templateName
:
templateName
,
id
:
billId
,
state
:
'readOnly'
state
:
billState
},
{
openWay
:
"FUNCTAB"
,
...
...
@@ -37,7 +38,7 @@ export default {
GMS
.
$hideContainer
.
addComponent
(
typesBill
,
{},
function
(
c
)
{
c
.
templateName
=
templateName
;
c
.
billId
=
billId
;
c
.
state
=
"readOnly"
;
c
.
state
=
billState
;
c
.
init
=
true
;
c
.
modal_visible
=
true
;
});
...
...
develop/@gms/gms-plugin-mainpage-fileList/src/views/gms-app.vue
View file @
15148a6f
...
...
@@ -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 @
15148a6f
...
...
@@ -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 @
15148a6f
...
...
@@ -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 @
15148a6f
...
...
@@ -10,6 +10,15 @@
<!--
<Button
type=
"text"
@
click=
"handleUpload"
>
上传
</Button>
-->
</div>
<div
class=
"file-content"
>
<div
class=
"content-group"
>
<Form
label-position=
"right"
:label-width=
"80"
>
<FormItem
label=
"分组"
>
<Select
v-model=
"fileGroupId"
@
on-change=
"handleGroupChange"
>
<Option
v-for=
"item in fileGroup"
:value=
"item.value"
:key=
"item.value"
>
{{
item
.
label
}}
</Option>
</Select>
</FormItem>
</Form>
</div>
<vxe-table
border
stripe
...
...
@@ -34,7 +43,7 @@
</vxe-column>
</vxe-table>
</div>
<fileUpload
ref=
"upload"
group-id=
"0
"
group-name=
"rbc"
@
on-confirm=
"handleUploadConfirm"
></fileUpload>
<fileUpload
ref=
"upload"
:group-id=
"fileGroupId
"
group-name=
"rbc"
@
on-confirm=
"handleUploadConfirm"
></fileUpload>
</div>
</template>
<
script
>
...
...
@@ -64,13 +73,44 @@ export default {
}
},
],
tableData
:
[]
tableData
:
[],
fileGroup
:
[
{
label
:
'默认分组'
,
value
:
'0'
},
{
label
:
'分组一'
,
value
:
'1'
},
{
label
:
'分组二'
,
value
:
'2'
},
{
label
:
'分组三'
,
value
:
'3'
},
{
label
:
'分组四'
,
value
:
'4'
},
{
label
:
'分组五'
,
value
:
'5'
}
],
fileGroupId
:
'0'
}
},
created
(){
this
.
getTableData
()
},
methods
:
{
handleGroupChange
(
val
)
{
this
.
fileGroupId
=
val
this
.
getTableData
()
},
handleUploadConfirm
()
{
this
.
getTableData
()
},
...
...
@@ -95,624 +135,8 @@ export default {
async
getTableData
()
{
const
url
=
`/common/attachment/owner/00000000-0000-0000-0000-000000000000`
const
{
data
}
=
await
GMS
.
$http
.
get
(
url
)
this
.
tableData
=
data
// this.tableData = [
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "a1da5ad9-1296-442d-b044-58438aa06d81",
// "fileName": "新建文本文档.rar",
// "mimeType": "rar",
// "size": 108,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "rbc-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-17T09:52:03Z",
// "properties": {}
// },
// {
// "id": "c685bfbb-1fdb-453f-a941-5bb73e6429eb",
// "fileName": "新建文本文档 (2).txt",
// "mimeType": "txt",
// "size": 27,
// "remark": null,
// "ownerId": "00000000-0000-0000-0000-000000000000",
// "ownerType": "bill",
// "category": "gams2.biz.attachmentgroup-0",
// "creatorId": "0232228d-b2d2-4911-ace6-6a191b594439",
// "creatorName": "ylq",
// "creatorOrg": "01",
// "createTime": "2021-11-16T04:02:06Z",
// "properties": {}
// }
// ]
let
category
=
'rbc-'
+
this
.
fileGroupId
this
.
tableData
=
data
.
filter
(
item
=>
item
.
category
===
category
)
console
.
log
({
data
})
},
},
...
...
@@ -736,7 +160,12 @@ export default {
}
.file-content
{
height
:
calc
(
100%
-
52px
);
margin
:
10px
margin
:
10px
;
background
:
#fff
;
.content-group
{
padding-top
:
18px
;
width
:
300px
;
}
}
}
</
style
>
\ No newline at end of file
develop/@rbc/file-management/src/views/file-upload.vue
View file @
15148a6f
...
...
@@ -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