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
ea5c1ea1
Commit
ea5c1ea1
authored
Dec 27, 2024
by
LiXuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
质量模板
parent
3b275e71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
106 additions
and
36 deletions
+106
-36
index.vue
src/views/dataQuality/dataSheet/template/index.vue
+105
-35
tempalte.data.ts
src/views/dataQuality/dataSheet/template/tempalte.data.ts
+1
-1
No files found.
src/views/dataQuality/dataSheet/template/index.vue
View file @
ea5c1ea1
<
template
>
<PageWrapper
dense
contentFullHeight
fixedHeight
contentClass=
"flex"
>
<DeptTree
class=
"w-1/4 xl:w-1/5"
@
select=
"handleSelect"
/>
<BasicTable
@
register=
"registerTable"
class=
"w-3/4 xl:w-4/5"
:searchInfo=
"searchInfo"
>
<template
#
toolbar
>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handleMove(0)"
>
复制到
</a-button
>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"deleteButton"
>
删除
</a-button
>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handleMove(1)"
>
移动
</a-button
>
<a-button
type=
"primary"
@
click=
"handleImport"
>
导入
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
>
导出
</a-button>
<a-button
type=
"primary"
@
click=
"handleAddTemplate"
>
新建文件
</a-button>
<a-button
type=
"primary"
@
click=
"handleNewFolder"
>
新建文件夹
</a-button>
<BasicTable
style=
"margin: 8px; padding-right: 10px"
@
register=
"registerTable"
class=
"w-3/4 xl:w-4/5"
:searchInfo=
"searchInfo"
>
<template
#
headerTop
>
<div
class=
"header-top"
>
<div
class=
"header"
>
<div
class=
"header-left"
>
<PicLeftOutlined
class=
"icon"
/>
<div
class=
"title"
>
<div
class=
"name"
>
内置模板
</div>
<div
class=
"path"
>
质量模板/数据中台工作区01/内置模板
</div>
</div>
</div>
<div
class=
"bt-group"
>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handleMove(0)"
>
复制到
</a-button
>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"deleteButton"
>
删除
</a-button
>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handleMove(1)"
>
移动
</a-button
>
<a-button
type=
"primary"
@
click=
"handleImport"
>
导入
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
>
导出
</a-button
>
<a-button
type=
"primary"
@
click=
"handleAddTemplate"
>
新建文件
</a-button>
<a-button
type=
"primary"
@
click=
"handleNewFolder"
>
新建文件夹
</a-button>
</div>
</div>
<div
class=
"search"
>
<Input
class=
"input"
v-model:value=
"searchKey"
placeholder=
"输入关键字搜索"
>
<template
#
suffix
>
<SearchOutlined
/>
</
template
>
</Input>
</div>
</div>
</template>
<
template
#
toolbar
></
template
>
<
template
#
name=
"{ text, record }"
>
<a
@
click=
"handleEdit(record, 0)"
>
{{
text
}}
</a>
</
template
>
...
...
@@ -69,11 +97,13 @@
<MoveFile
@
register=
"registerMoveFile"
@
success=
"handleMoveSuccess"
/>
<importModal
@
register=
"registerImport"
@
success=
"handleImportSuccess"
/>
<TemplateModal
@
register=
"registerTemplate"
/>
<NewFolder
@
register=
"registerNewFolder"
></NewFolder
>
<NewFolder
@
register=
"registerNewFolder"
/
>
</PageWrapper>
</template>
<
script
lang=
"ts"
setup
>
import
{
reactive
,
unref
,
onDeactivated
,
onMounted
}
from
'vue'
;
import
{
Input
}
from
'ant-design-vue'
;
import
{
PicLeftOutlined
,
SearchOutlined
}
from
'@ant-design/icons-vue'
;
import
{
reactive
,
unref
,
onDeactivated
,
onMounted
,
ref
}
from
'vue'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'@/components/Table'
;
import
MoveFile
from
'./moveFile.vue'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
...
...
@@ -102,6 +132,7 @@
const
[
registerTemplate
,
{
openModal
:
openTemplateModal
}]
=
useModal
();
const
[
registerNewFolder
,
{
openModal
:
openNewFolderModal
}]
=
useModal
();
const
searchInfo
=
reactive
<
Recordable
>
({});
const
searchKey
=
ref
();
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
,
getRowSelection
},
...
...
@@ -123,15 +154,15 @@
rowKey
:
'businessId'
,
rowSelection
:
true
,
columns
,
formConfig
:
{
labelWidth
:
10
,
schemas
:
searchFormSchema
,
autoSubmitOnEnter
:
true
,
resetFunc
:
()
=>
{
searchInfo
.
deptId
=
''
;
},
},
useSearchForm
:
true
,
//
formConfig: {
//
labelWidth: 10,
//
schemas: searchFormSchema,
//
autoSubmitOnEnter: true,
//
resetFunc: () => {
//
searchInfo.deptId = '';
//
},
//
},
//
useSearchForm: true,
showTableSetting
:
false
,
bordered
:
true
,
handleSearchInfoFn
(
info
)
{
...
...
@@ -276,3 +307,42 @@
next
();
// 允许导航
});
</
script
>
<
style
scoped
>
.header-top
{
margin
:
0
10px
;
display
:
flex
;
flex-direction
:
column
;
gap
:
15px
;
.header
{
display
:
flex
;
justify-content
:
space-between
;
.header-left
{
display
:
flex
;
gap
:
10px
;
.icon
{
font-size
:
30px
;
color
:
#29ba4e
;
}
.title
{
.name
{
font-size
:
16px
;
font-weight
:
bolder
;
}
.path
{
font-size
:
12px
;
color
:
#bfc3cd
;
}
}
}
.bt-group
{
display
:
flex
;
gap
:
10px
;
}
}
.search
{
.input
{
width
:
220px
;
}
}
}
</
style
>
src/views/dataQuality/dataSheet/template/tempalte.data.ts
View file @
ea5c1ea1
...
...
@@ -37,7 +37,7 @@ export const columns: BasicColumn[] = [
{
title
:
'权属工作组'
,
dataIndex
:
'workgroup'
,
width
:
1
2
0
,
width
:
1
1
0
,
},
];
...
...
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