Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
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
张伯涛
bigDataSystem
Commits
3e260d4a
Commit
3e260d4a
authored
Nov 07, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通用文件操作完善
parent
6f444502
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
35 deletions
+49
-35
account.data.ts
src/views/commonFile/account.data.ts
+3
-3
commonFileData.ts
src/views/commonFile/commonFileData.ts
+18
-18
createFile.vue
src/views/commonFile/createFile.vue
+9
-4
createTask.vue
src/views/commonFile/createTask.vue
+9
-4
index.vue
src/views/commonFile/index.vue
+8
-4
moveFile.vue
src/views/commonFile/moveFile.vue
+2
-2
No files found.
src/views/commonFile/account.data.ts
View file @
3e260d4a
...
@@ -98,7 +98,7 @@ export const accountFormSchema: any[] = [
...
@@ -98,7 +98,7 @@ export const accountFormSchema: any[] = [
/**移动*/
/**移动*/
export
const
MoveFormSchema
:
any
[]
=
[
export
const
MoveFormSchema
:
any
[]
=
[
{
{
field
:
'
institution
Id'
,
field
:
'
task
Id'
,
label
:
'路径'
,
label
:
'路径'
,
component
:
'TreeSelect'
,
component
:
'TreeSelect'
,
colProps
:
{
lg
:
24
,
md
:
24
},
colProps
:
{
lg
:
24
,
md
:
24
},
...
@@ -132,7 +132,7 @@ export const resetNameFormSchema: FormSchema[] = [
...
@@ -132,7 +132,7 @@ export const resetNameFormSchema: FormSchema[] = [
];
];
export
const
createFileFormSchema
:
FormSchema
[]
=
[
export
const
createFileFormSchema
:
FormSchema
[]
=
[
{
{
field
:
'
institution
Id'
,
field
:
'
task
Id'
,
label
:
'路径'
,
label
:
'路径'
,
component
:
'TreeSelect'
,
component
:
'TreeSelect'
,
colProps
:
{
lg
:
24
,
md
:
24
},
colProps
:
{
lg
:
24
,
md
:
24
},
...
@@ -163,7 +163,7 @@ export const createFileFormSchema: FormSchema[] = [
...
@@ -163,7 +163,7 @@ export const createFileFormSchema: FormSchema[] = [
];
];
export
const
createTaskFormSchema
:
FormSchema
[]
=
[
export
const
createTaskFormSchema
:
FormSchema
[]
=
[
{
{
field
:
'
institution
Id'
,
field
:
'
task
Id'
,
label
:
'路径'
,
label
:
'路径'
,
component
:
'TreeSelect'
,
component
:
'TreeSelect'
,
colProps
:
{
lg
:
24
,
md
:
24
},
colProps
:
{
lg
:
24
,
md
:
24
},
...
...
src/views/commonFile/commonFileData.ts
View file @
3e260d4a
...
@@ -64,7 +64,7 @@ export const TreeData: any[] = [
...
@@ -64,7 +64,7 @@ export const TreeData: any[] = [
// "children" : [ ],
// "children" : [ ],
"selectType"
:
null
,
"selectType"
:
null
,
"fileSize"
:
'1024KB'
,
"fileSize"
:
'1024KB'
,
"location"
:
"
位置1
"
,
"location"
:
"
/任务流
"
,
"holder"
:
"admin"
,
"holder"
:
"admin"
,
"createDate"
:
"2024-10-24 10:04:04"
,
"createDate"
:
"2024-10-24 10:04:04"
,
"updateDate"
:
"2024-10-24 10:04:04"
,
"updateDate"
:
"2024-10-24 10:04:04"
,
...
@@ -81,7 +81,7 @@ export const TreeData: any[] = [
...
@@ -81,7 +81,7 @@ export const TreeData: any[] = [
// "children" : [ ],
// "children" : [ ],
"selectType"
:
null
,
"selectType"
:
null
,
"fileSize"
:
'1024KB'
,
"fileSize"
:
'1024KB'
,
"location"
:
"
位置1
"
,
"location"
:
"
/任务流/典型案例
"
,
"holder"
:
"admin"
,
"holder"
:
"admin"
,
"createDate"
:
"2024-10-24 10:04:04"
,
"createDate"
:
"2024-10-24 10:04:04"
,
"updateDate"
:
"2024-10-24 10:04:04"
,
"updateDate"
:
"2024-10-24 10:04:04"
,
...
@@ -98,7 +98,7 @@ export const TreeData: any[] = [
...
@@ -98,7 +98,7 @@ export const TreeData: any[] = [
// "children" : [ ],
// "children" : [ ],
"selectType"
:
null
,
"selectType"
:
null
,
"fileSize"
:
'1024KB'
,
"fileSize"
:
'1024KB'
,
"location"
:
"
位置1
"
,
"location"
:
"
/任务流/个人体验
"
,
"holder"
:
"admin"
,
"holder"
:
"admin"
,
"createDate"
:
"2024-10-24 10:04:04"
,
"createDate"
:
"2024-10-24 10:04:04"
,
"updateDate"
:
"2024-10-24 10:04:04"
,
"updateDate"
:
"2024-10-24 10:04:04"
,
...
@@ -115,10 +115,10 @@ export const TreeData: any[] = [
...
@@ -115,10 +115,10 @@ export const TreeData: any[] = [
// "children" : [ ],
// "children" : [ ],
"selectType"
:
null
,
"selectType"
:
null
,
"fileSize"
:
'1024KB'
,
"fileSize"
:
'1024KB'
,
"location"
:
"
位置1
"
,
"location"
:
"
/任务流/典型案例/总-智慧财务总体流程
"
,
"holder"
:
"admin"
,
"holder"
:
"admin"
,
"createDate"
:
"2024-10-2
4 10
:04:04"
,
"createDate"
:
"2024-10-2
2 8
:04:04"
,
"updateDate"
:
"2024-10-2
4 10
:04:04"
,
"updateDate"
:
"2024-10-2
2 8
:04:04"
,
},
},
{
{
"delFlag"
:
"0"
,
"delFlag"
:
"0"
,
...
@@ -132,10 +132,10 @@ export const TreeData: any[] = [
...
@@ -132,10 +132,10 @@ export const TreeData: any[] = [
// "children" : [ ],
// "children" : [ ],
"selectType"
:
null
,
"selectType"
:
null
,
"fileSize"
:
'1024KB'
,
"fileSize"
:
'1024KB'
,
"location"
:
"
位置1
"
,
"location"
:
"
/任务流/典型案例/分-落地区
"
,
"holder"
:
"admin"
,
"holder"
:
"admin"
,
"createDate"
:
"2024-10-2
4 10
:04:04"
,
"createDate"
:
"2024-10-2
1 9
:04:04"
,
"updateDate"
:
"2024-10-2
4 10
:04:04"
,
"updateDate"
:
"2024-10-2
1 9
:04:04"
,
},
},
{
{
"delFlag"
:
"0"
,
"delFlag"
:
"0"
,
...
@@ -149,10 +149,10 @@ export const TreeData: any[] = [
...
@@ -149,10 +149,10 @@ export const TreeData: any[] = [
// "children" : [ ],
// "children" : [ ],
"selectType"
:
null
,
"selectType"
:
null
,
"fileSize"
:
'1024KB'
,
"fileSize"
:
'1024KB'
,
"location"
:
"
位置1
"
,
"location"
:
"
/任务流/典型案例/分-改良区
"
,
"holder"
:
"admin"
,
"holder"
:
"admin"
,
"createDate"
:
"2024-10-2
4 10
:04:04"
,
"createDate"
:
"2024-10-2
3 12
:04:04"
,
"updateDate"
:
"2024-10-2
4 10
:04:04"
,
"updateDate"
:
"2024-10-2
3 12
:04:04"
,
},
},
{
{
"delFlag"
:
"0"
,
"delFlag"
:
"0"
,
...
@@ -166,10 +166,10 @@ export const TreeData: any[] = [
...
@@ -166,10 +166,10 @@ export const TreeData: any[] = [
// "children" : [ ],
// "children" : [ ],
"selectType"
:
null
,
"selectType"
:
null
,
"fileSize"
:
'1024KB'
,
"fileSize"
:
'1024KB'
,
"location"
:
"
位置
1"
,
"location"
:
"
/任务流/典型案例/分-个人体验
1"
,
"holder"
:
"admin"
,
"holder"
:
"admin"
,
"createDate"
:
"2024-10-24 1
0
:04:04"
,
"createDate"
:
"2024-10-24 1
3
:04:04"
,
"updateDate"
:
"2024-10-24 1
0
:04:04"
,
"updateDate"
:
"2024-10-24 1
3
:04:04"
,
},
},
{
{
"delFlag"
:
"0"
,
"delFlag"
:
"0"
,
...
@@ -183,10 +183,10 @@ export const TreeData: any[] = [
...
@@ -183,10 +183,10 @@ export const TreeData: any[] = [
// "children" : [ ],
// "children" : [ ],
"selectType"
:
null
,
"selectType"
:
null
,
"fileSize"
:
'1024KB'
,
"fileSize"
:
'1024KB'
,
"location"
:
"
位置1
"
,
"location"
:
"
/任务流/典型案例/分-个人体验2
"
,
"holder"
:
"admin"
,
"holder"
:
"admin"
,
"createDate"
:
"2024-10-24 1
0
:04:04"
,
"createDate"
:
"2024-10-24 1
4
:04:04"
,
"updateDate"
:
"2024-10-2
4 10
:04:04"
,
"updateDate"
:
"2024-10-2
5 14
:04:04"
,
},
},
];
];
export
const
DetailTreeData
:
any
[]
=
[
export
const
DetailTreeData
:
any
[]
=
[
...
...
src/views/commonFile/createFile.vue
View file @
3e260d4a
...
@@ -35,12 +35,17 @@
...
@@ -35,12 +35,17 @@
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
resetFields
();
resetFields
();
setModalProps
({
confirmLoading
:
false
});
setModalProps
({
confirmLoading
:
false
});
isUpdate
.
value
=
!!
data
?.
isUpdate
;
const
formData
=
{
isMove
.
value
=
!!
data
?.
isMove
;
taskId
:
'100'
}
// 塞值
setFieldsValue
({
...
formData
,
});
const
treeList
=
handleTree
(
TreeData
,
'businessId'
,
undefined
,
undefined
,
undefined
)
const
treeList
=
handleTree
(
TreeData
,
'businessId'
,
undefined
,
undefined
,
undefined
)
updateSchema
([
updateSchema
([
{
{
field
:
'
institution
Id'
,
field
:
'
task
Id'
,
componentProps
:
{
componentProps
:
{
treeData
:
treeList
treeData
:
treeList
},
},
...
@@ -48,7 +53,7 @@
...
@@ -48,7 +53,7 @@
]);
]);
});
});
const
getTitle
=
computed
(()
=>
(
'
重命名
'
));
const
getTitle
=
computed
(()
=>
(
'
新建文件流
'
));
/**确定按钮*/
/**确定按钮*/
...
...
src/views/commonFile/createTask.vue
View file @
3e260d4a
...
@@ -35,12 +35,17 @@
...
@@ -35,12 +35,17 @@
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
resetFields
();
resetFields
();
setModalProps
({
confirmLoading
:
false
});
setModalProps
({
confirmLoading
:
false
});
isUpdate
.
value
=
!!
data
?.
isUpdate
;
const
formData
=
{
isMove
.
value
=
!!
data
?.
isMove
;
taskId
:
'100'
}
// 塞值
setFieldsValue
({
...
formData
,
});
const
treeList
=
handleTree
(
TreeData
,
'businessId'
,
undefined
,
undefined
,
undefined
)
const
treeList
=
handleTree
(
TreeData
,
'businessId'
,
undefined
,
undefined
,
undefined
)
updateSchema
([
updateSchema
([
{
{
field
:
'
institution
Id'
,
field
:
'
task
Id'
,
componentProps
:
{
componentProps
:
{
treeData
:
treeList
treeData
:
treeList
},
},
...
@@ -48,7 +53,7 @@
...
@@ -48,7 +53,7 @@
]);
]);
});
});
const
getTitle
=
computed
(()
=>
(
'
重命名
'
));
const
getTitle
=
computed
(()
=>
(
'
新建任务流
'
));
/**数组对象转成树*/
/**数组对象转成树*/
function
handleTree
(
data
,
id
,
parentId
,
children
,
rootId
)
{
function
handleTree
(
data
,
id
,
parentId
,
children
,
rootId
)
{
...
...
src/views/commonFile/index.vue
View file @
3e260d4a
...
@@ -99,7 +99,11 @@
...
@@ -99,7 +99,11 @@
api
:
async
(
params
)
=>
{
api
:
async
(
params
)
=>
{
//过滤掉tableData.value中,businessId等于100的
//过滤掉tableData.value中,businessId等于100的
var
data
=
[];
var
data
=
[];
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
businessId
>=
200
);
if
(
params
.
taskId
===
undefined
){
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
businessId
>=
200
);
}
else
{
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
parentId
==
params
.
taskId
);
}
const
response
=
{
const
response
=
{
pageNu
:
"1"
,
pageNu
:
"1"
,
pageSize
:
"10"
,
pageSize
:
"10"
,
...
@@ -120,7 +124,7 @@
...
@@ -120,7 +124,7 @@
schemas
:
searchFormSchema
,
schemas
:
searchFormSchema
,
autoSubmitOnEnter
:
true
,
autoSubmitOnEnter
:
true
,
resetFunc
:
()
=>
{
resetFunc
:
()
=>
{
searchInfo
.
institution
Id
=
''
searchInfo
.
task
Id
=
''
},
},
},
},
useSearchForm
:
true
,
useSearchForm
:
true
,
...
@@ -201,8 +205,8 @@
...
@@ -201,8 +205,8 @@
}
}
/** 部门树的select*/
/** 部门树的select*/
function
handleSelect
(
institution
Id
=
''
)
{
function
handleSelect
(
task
Id
=
''
)
{
searchInfo
.
institutionId
=
institution
Id
;
searchInfo
.
taskId
=
task
Id
;
reload
();
reload
();
}
}
...
...
src/views/commonFile/moveFile.vue
View file @
3e260d4a
...
@@ -44,7 +44,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
...
@@ -44,7 +44,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
rowData
.
value
.
push
(
data
.
record
)
rowData
.
value
.
push
(
data
.
record
)
//单个移动
//单个移动
rowId
.
value
=
data
.
record
.
businessId
;
rowId
.
value
=
data
.
record
.
businessId
;
data
.
record
.
institutionId
=
data
.
record
.
parent
Id
data
.
record
.
taskId
=
data
.
record
.
business
Id
setFieldsValue
({
setFieldsValue
({
...
data
.
record
,
...
data
.
record
,
});
});
...
@@ -52,7 +52,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
...
@@ -52,7 +52,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
const
treeList
=
handleTree
(
TreeData
,
'businessId'
,
undefined
,
undefined
,
undefined
)
const
treeList
=
handleTree
(
TreeData
,
'businessId'
,
undefined
,
undefined
,
undefined
)
updateSchema
([
updateSchema
([
{
{
field
:
'
institution
Id'
,
field
:
'
task
Id'
,
componentProps
:
{
componentProps
:
{
treeData
:
treeList
treeData
:
treeList
},
},
...
...
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