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
0814c2e1
Commit
0814c2e1
authored
Nov 15, 2024
by
chenjiahao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据质量-质量模板修改
parent
08287687
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
136 additions
and
38 deletions
+136
-38
edit.vue
src/views/dataQuality/dataSheet/template/edit.vue
+3
-3
index.vue
src/views/dataQuality/dataSheet/template/index.vue
+17
-5
mock.ts
src/views/dataQuality/dataSheet/template/mock.ts
+21
-21
moveFile.vue
src/views/dataQuality/dataSheet/template/moveFile.vue
+4
-4
runModal.vue
src/views/dataQuality/dataSheet/template/runModal.vue
+90
-5
tempalte.data.ts
src/views/dataQuality/dataSheet/template/tempalte.data.ts
+1
-0
No files found.
src/views/dataQuality/dataSheet/template/edit.vue
View file @
0814c2e1
...
@@ -9,9 +9,9 @@
...
@@ -9,9 +9,9 @@
<option
value=
"GBASE"
>
GBASE
</option>
<option
value=
"GBASE"
>
GBASE
</option>
</select>
</select>
<a-button
@
click=
"handleTemplateConversion"
>
模板转换
</a-button>
<a-button
@
click=
"handleTemplateConversion"
>
模板转换
</a-button>
<a-button
@
click=
"handleBackward"
>
后退
</a-button
>
<!--
<a-button
@
click=
"handleBackward"
>
后退
</a-button>
--
>
<a-button
@
click=
"handleForward"
>
前进
</a-button
>
<!--
<a-button
@
click=
"handleForward"
>
前进
</a-button>
--
>
<a-button
@
click=
"handleFormat"
>
格式化
</a-button
>
<!--
<a-button
@
click=
"handleFormat"
>
格式化
</a-button>
--
>
<a-button
@
click=
"handleRun"
>
运行
</a-button>
<a-button
@
click=
"handleRun"
>
运行
</a-button>
<a-button
@
click=
"handleSave"
>
保存
</a-button>
<a-button
@
click=
"handleSave"
>
保存
</a-button>
</div>
</div>
...
...
src/views/dataQuality/dataSheet/template/index.vue
View file @
0814c2e1
...
@@ -27,11 +27,11 @@
...
@@ -27,11 +27,11 @@
<a-button
type=
"primary"
@
click=
"handleNewFolder"
>
新建文件夹
</a-button>
<a-button
type=
"primary"
@
click=
"handleNewFolder"
>
新建文件夹
</a-button>
</
template
>
</
template
>
<
template
#
name=
"{ text, record }"
>
<
template
#
name=
"{ text, record }"
>
<a
@
click=
"handleEdit(record,0)"
>
{{
text
}}
</a>
<a
@
click=
"handleEdit(record,
0)"
>
{{
text
}}
</a>
</
template
>
</
template
>
<
template
#
dataSource=
"{ text, record }"
>
<
template
#
dataSource=
"{ text, record }"
>
<span
v-for=
"(item, index) in text"
:key=
"index"
>
<span
v-for=
"(item, index) in text"
:key=
"index"
>
{{
item
.
icon
}}
{{
item
.
text
}}
</span>
</span>
</
template
>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<
template
#
bodyCell=
"{ column, record }"
>
...
@@ -47,8 +47,20 @@
...
@@ -47,8 +47,20 @@
onClick: handleEdit.bind(null, record, 1),
onClick: handleEdit.bind(null, record, 1),
},
},
{
{
label: '更多',
label: '复制',
onClick: handleMove.bind(null, 0, record),
},
},
{
label: '移动',
onClick: handleMove.bind(null, 1, record),
},
{
label: '删除',
onClick: deleteButton.bind(null, record, 1),
},
// {
// label: '更多',
// },
]"
]"
/>
/>
</
template
>
</
template
>
...
@@ -78,7 +90,7 @@
...
@@ -78,7 +90,7 @@
import
{
useUserStore
}
from
'@/store/modules/user'
;
import
{
useUserStore
}
from
'@/store/modules/user'
;
import
{
router
}
from
'@/router'
;
import
{
router
}
from
'@/router'
;
import
TemplateModal
from
'@/views/dataQuality/dataSheet/template/templateModal.vue'
;
import
TemplateModal
from
'@/views/dataQuality/dataSheet/template/templateModal.vue'
;
import
NewFolder
from
"@/views/dataQuality/dataSheet/template/newFolder.vue"
;
import
NewFolder
from
'@/views/dataQuality/dataSheet/template/newFolder.vue'
;
defineOptions
({
name
:
''
});
defineOptions
({
name
:
''
});
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
{
createMessage
,
createConfirm
}
=
useMessage
();
...
@@ -128,7 +140,7 @@
...
@@ -128,7 +140,7 @@
return
info
;
return
info
;
},
},
actionColumn
:
{
actionColumn
:
{
width
:
17
0
,
width
:
26
0
,
title
:
'操作'
,
title
:
'操作'
,
dataIndex
:
'action'
,
dataIndex
:
'action'
,
// slots: { customRender: 'action' },
// slots: { customRender: 'action' },
...
...
src/views/dataQuality/dataSheet/template/mock.ts
View file @
0814c2e1
...
@@ -3,9 +3,9 @@ export const tableList: any[] = [
...
@@ -3,9 +3,9 @@ export const tableList: any[] = [
businessId
:
1
,
businessId
:
1
,
name
:
'值域检查(倍数)'
,
name
:
'值域检查(倍数)'
,
dataSource
:
[
dataSource
:
[
{
icon
:
'🧩'
,
text
:
'
数据源1
'
},
{
icon
:
'🧩'
,
text
:
'
INCEPTOR
'
},
{
icon
:
'🧩'
,
text
:
'
数据源2
'
},
{
icon
:
'🧩'
,
text
:
'
MYSQL
'
},
{
icon
:
'🧩'
,
text
:
'
数据源3
'
},
{
icon
:
'🧩'
,
text
:
'
GBASE
'
},
],
],
templateNumber
:
'BIDQ000038'
,
templateNumber
:
'BIDQ000038'
,
createTime
:
'2023/05/23 14:36:04'
,
createTime
:
'2023/05/23 14:36:04'
,
...
@@ -17,8 +17,8 @@ export const tableList: any[] = [
...
@@ -17,8 +17,8 @@ export const tableList: any[] = [
businessId
:
2
,
businessId
:
2
,
name
:
'值域检查(数值大于零)'
,
name
:
'值域检查(数值大于零)'
,
dataSource
:
[
dataSource
:
[
{
icon
:
'🧩'
,
text
:
'
数据源1
'
},
{
icon
:
'🧩'
,
text
:
'
INCEPTOR
'
},
{
icon
:
'🧩'
,
text
:
'
数据源2
'
},
{
icon
:
'🧩'
,
text
:
'
GBASE
'
},
],
],
templateNumber
:
'BIDQ000041'
,
templateNumber
:
'BIDQ000041'
,
createTime
:
'2023/05/23 14:36:04'
,
createTime
:
'2023/05/23 14:36:04'
,
...
@@ -59,8 +59,8 @@ export const tableList: any[] = [
...
@@ -59,8 +59,8 @@ export const tableList: any[] = [
businessId
:
3
,
businessId
:
3
,
name
:
'值域检查(比率)'
,
name
:
'值域检查(比率)'
,
dataSource
:
[
dataSource
:
[
{
icon
:
'🧩'
,
text
:
'
数据源1
'
},
{
icon
:
'🧩'
,
text
:
'
MYSQL
'
},
{
icon
:
'🧩'
,
text
:
'
数据源2
'
},
{
icon
:
'🧩'
,
text
:
'
GBASE
'
},
],
],
templateNumber
:
'BIDQ000039'
,
templateNumber
:
'BIDQ000039'
,
createTime
:
'2023/05/23 14:36:04'
,
createTime
:
'2023/05/23 14:36:04'
,
...
@@ -72,8 +72,8 @@ export const tableList: any[] = [
...
@@ -72,8 +72,8 @@ export const tableList: any[] = [
businessId
:
4
,
businessId
:
4
,
name
:
'值域检查(负数率)'
,
name
:
'值域检查(负数率)'
,
dataSource
:
[
dataSource
:
[
{
icon
:
'🧩'
,
text
:
'
数据源1
'
},
{
icon
:
'🧩'
,
text
:
'
INCEPTOR
'
},
{
icon
:
'🧩'
,
text
:
'
数据源2
'
},
{
icon
:
'🧩'
,
text
:
'
MYSQL
'
},
],
],
templateNumber
:
'BIDQ000040'
,
templateNumber
:
'BIDQ000040'
,
createTime
:
'2023/05/23 14:36:04'
,
createTime
:
'2023/05/23 14:36:04'
,
...
@@ -85,8 +85,8 @@ export const tableList: any[] = [
...
@@ -85,8 +85,8 @@ export const tableList: any[] = [
businessId
:
5
,
businessId
:
5
,
name
:
'值域检查(额度)'
,
name
:
'值域检查(额度)'
,
dataSource
:
[
dataSource
:
[
{
icon
:
'🧩'
,
text
:
'
数据源1
'
},
{
icon
:
'🧩'
,
text
:
'
INCEPTOR
'
},
{
icon
:
'🧩'
,
text
:
'
数据源2
'
},
{
icon
:
'🧩'
,
text
:
'
MYSQL
'
},
],
],
templateNumber
:
'BIDQ000043'
,
templateNumber
:
'BIDQ000043'
,
createTime
:
'2023/05/23 14:36:04'
,
createTime
:
'2023/05/23 14:36:04'
,
...
@@ -98,8 +98,8 @@ export const tableList: any[] = [
...
@@ -98,8 +98,8 @@ export const tableList: any[] = [
businessId
:
6
,
businessId
:
6
,
name
:
'关键字检查(非空)'
,
name
:
'关键字检查(非空)'
,
dataSource
:
[
dataSource
:
[
{
icon
:
'🧩'
,
text
:
'
数据源1
'
},
{
icon
:
'🧩'
,
text
:
'
INCEPTOR
'
},
{
icon
:
'🧩'
,
text
:
'
数据源2
'
},
{
icon
:
'🧩'
,
text
:
'
MYSQL
'
},
],
],
templateNumber
:
'BIDQ000033'
,
templateNumber
:
'BIDQ000033'
,
createTime
:
'2023/05/23 14:36:04'
,
createTime
:
'2023/05/23 14:36:04'
,
...
@@ -111,8 +111,8 @@ export const tableList: any[] = [
...
@@ -111,8 +111,8 @@ export const tableList: any[] = [
businessId
:
7
,
businessId
:
7
,
name
:
'编码规则检查(检查证件有效)'
,
name
:
'编码规则检查(检查证件有效)'
,
dataSource
:
[
dataSource
:
[
{
icon
:
'🧩'
,
text
:
'
数据源1
'
},
{
icon
:
'🧩'
,
text
:
'
INCEPTOR
'
},
{
icon
:
'🧩'
,
text
:
'
数据源2
'
},
{
icon
:
'🧩'
,
text
:
'
GBASE
'
},
],
],
templateNumber
:
'BIDQ000042'
,
templateNumber
:
'BIDQ000042'
,
createTime
:
'2023/05/23 14:36:04'
,
createTime
:
'2023/05/23 14:36:04'
,
...
@@ -124,8 +124,8 @@ export const tableList: any[] = [
...
@@ -124,8 +124,8 @@ export const tableList: any[] = [
businessId
:
8
,
businessId
:
8
,
name
:
'长度检查[0,30]'
,
name
:
'长度检查[0,30]'
,
dataSource
:
[
dataSource
:
[
{
icon
:
'🧩'
,
text
:
'
数据源1
'
},
{
icon
:
'🧩'
,
text
:
'
MYSQL
'
},
{
icon
:
'🧩'
,
text
:
'
数据源2
'
},
{
icon
:
'🧩'
,
text
:
'
GBASE
'
},
],
],
templateNumber
:
'BIDQ000035'
,
templateNumber
:
'BIDQ000035'
,
createTime
:
'2023/05/23 14:36:04'
,
createTime
:
'2023/05/23 14:36:04'
,
...
@@ -137,8 +137,8 @@ export const tableList: any[] = [
...
@@ -137,8 +137,8 @@ export const tableList: any[] = [
businessId
:
9
,
businessId
:
9
,
name
:
'长度检查[0,4]'
,
name
:
'长度检查[0,4]'
,
dataSource
:
[
dataSource
:
[
{
icon
:
'🧩'
,
text
:
'
数据源1
'
},
{
icon
:
'🧩'
,
text
:
'
MYSQL
'
},
{
icon
:
'🧩'
,
text
:
'
数据源2
'
},
{
icon
:
'🧩'
,
text
:
'
GBASE
'
},
],
],
templateNumber
:
'BIDQ000034'
,
templateNumber
:
'BIDQ000034'
,
createTime
:
'2023/05/23 14:36:04'
,
createTime
:
'2023/05/23 14:36:04'
,
...
@@ -150,8 +150,8 @@ export const tableList: any[] = [
...
@@ -150,8 +150,8 @@ export const tableList: any[] = [
businessId
:
10
,
businessId
:
10
,
name
:
'长度检查[0,8]'
,
name
:
'长度检查[0,8]'
,
dataSource
:
[
dataSource
:
[
{
icon
:
'🧩'
,
text
:
'
数据源1
'
},
{
icon
:
'🧩'
,
text
:
'
GBASE
'
},
{
icon
:
'🧩'
,
text
:
'
数据源2
'
},
{
icon
:
'🧩'
,
text
:
'
MYSQL
'
},
],
],
templateNumber
:
'BIDQ000036'
,
templateNumber
:
'BIDQ000036'
,
createTime
:
'2023/05/23 14:36:04'
,
createTime
:
'2023/05/23 14:36:04'
,
...
...
src/views/dataQuality/dataSheet/template/moveFile.vue
View file @
0814c2e1
...
@@ -41,11 +41,11 @@
...
@@ -41,11 +41,11 @@
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
console
.
log
(
'data'
,
data
);
console
.
log
(
'data'
,
data
);
// //每次点击弹窗 需要清空存储的数据
// //每次点击弹窗 需要清空存储的数据
//
rowData.value = [];
rowData
.
value
=
[];
//
isMove.value = data.isMove;
isMove
.
value
=
data
.
isMove
;
// //重置表单数据
// //重置表单数据
//
resetFields();
resetFields
();
//
setModalProps({ confirmLoading: false });
setModalProps
({
confirmLoading
:
false
});
// if (data.idList != null && data.idList.length > 0) {
// if (data.idList != null && data.idList.length > 0) {
// /* empty */
// /* empty */
// } else {
// } else {
...
...
src/views/dataQuality/dataSheet/template/runModal.vue
View file @
0814c2e1
...
@@ -4,10 +4,18 @@
...
@@ -4,10 +4,18 @@
<BasicTable
@
register=
"registerTable"
style=
"height: 370px"
>
<BasicTable
@
register=
"registerTable"
style=
"height: 370px"
>
<template
#
value=
"
{ text, record }">
<template
#
value=
"
{ text, record }">
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<AInput
style=
"width: 220px; border-radius: 5px 0 0 5px"
:value=
"text"
/>
<!--
<AInput
style=
"width: 220px; border-radius: 5px 0 0 5px"
:value=
"text"
/>
-->
<a-button
type=
"primary"
@
click=
"handleChose()"
style=
"border-radius: 0 5px 5px 0"
<!--
<a-button
type=
"primary"
@
click=
"handleChose()"
style=
"border-radius: 0 5px 5px 0"
--
>
>
选择
</a-button
<!-- >选择
</a-button-->
>
<!-- >-->
<a-cascader
style=
"width: 100%"
:value=
"text"
placeholder=
"Please select"
showSearch
change-on-select
:options=
"options"
/>
</div>
</div>
</
template
>
</
template
>
</BasicTable>
</BasicTable>
...
@@ -30,9 +38,86 @@
...
@@ -30,9 +38,86 @@
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
importFormSchema
}
from
'./tempalte.data'
;
import
{
importFormSchema
}
from
'./tempalte.data'
;
import
{
Cascader
as
ACascader
,
CascaderProps
}
from
'ant-design-vue'
;
const
value
=
ref
<
string
[]
>
([]);
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
businessId
=
ref
();
const
businessId
=
ref
();
const
isRun
=
ref
(
false
);
const
isRun
=
ref
(
false
);
const
options
:
CascaderProps
[
'options'
]
=
[
{
value
:
'数据库对象资源'
,
label
:
'数据库对象资源'
,
children
:
[
{
value
:
'数据中台工作区01'
,
label
:
'数据中台工作区01'
,
children
:
[
{
value
:
'ArgoDB_Dev01'
,
label
:
'ArgoDB_Dev01'
,
children
:
[
{
value
:
'dmtp01'
,
label
:
'dmtp01'
,
children
:
[
{
value
:
'eligible_graduates_list'
,
label
:
'eligible_graduates_list'
,
},
{
value
:
'graduates_info'
,
label
:
'graduates_info'
,
},
{
value
:
'graduates_info_id_masked'
,
label
:
'graduates_info_id_masked'
,
},
{
value
:
'landing_graduates_info'
,
label
:
'landing_graduates_info'
,
},
{
value
:
'landing_member_relationship_info'
,
label
:
'landing_member_relationship_info'
,
},
{
value
:
'lowincome_family_children_list'
,
label
:
'lowincome_family_children_list'
,
},
{
value
:
'lowincome_family_info'
,
label
:
'lowincome_family_info'
,
},
{
value
:
'lowincome_graduates_area_ratio'
,
label
:
'lowincome_graduates_area_ratio'
,
},
{
value
:
'lowincome_graduates_cnt'
,
label
:
'lowincome_graduates_cnt'
,
},
{
value
:
'lowincome_graduates_employment_cls'
,
label
:
'lowincome_graduates_employment_cls'
,
},
{
value
:
'lowincome_graduates_employment_rat'
,
label
:
'lowincome_graduates_employment_rat'
,
},
{
value
:
'test'
,
label
:
'test'
,
},
],
},
],
},
],
},
],
},
];
//初始化弹框
//初始化弹框
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
console
.
log
(
data
);
console
.
log
(
data
);
...
@@ -104,7 +189,7 @@
...
@@ -104,7 +189,7 @@
const
[
registerFindPathModal
,
{
openModal
:
openFindPathModal
}]
=
useModal
();
const
[
registerFindPathModal
,
{
openModal
:
openFindPathModal
}]
=
useModal
();
function
handleChose
()
{
function
handleChose
()
{
openFindPathModal
(
true
);
//
openFindPathModal(true);
// console.log('record', record);
// console.log('record', record);
}
}
const
selectedPath
=
ref
(
''
);
const
selectedPath
=
ref
(
''
);
...
...
src/views/dataQuality/dataSheet/template/tempalte.data.ts
View file @
0814c2e1
...
@@ -178,6 +178,7 @@ export const formSchemaTemplate: any = [
...
@@ -178,6 +178,7 @@ export const formSchemaTemplate: any = [
component
:
'Select'
,
component
:
'Select'
,
colProps
:
{
span
:
8
},
colProps
:
{
span
:
8
},
componentProps
:
{
componentProps
:
{
mode
:
'multiple'
,
options
:
[
options
:
[
{
label
:
'INCEPTOR'
,
value
:
'INCEPTOR'
},
{
label
:
'INCEPTOR'
,
value
:
'INCEPTOR'
},
{
label
:
'IMPALA'
,
value
:
'IMPALA'
},
{
label
:
'IMPALA'
,
value
:
'IMPALA'
},
...
...
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