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
c8dfd301
Commit
c8dfd301
authored
Dec 16, 2024
by
LiXuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
质量规则-改
parent
ca8b0d86
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
96 additions
and
13 deletions
+96
-13
index.vue
src/views/dataQuality/dataSheet/rule/index.vue
+13
-12
moveOutGroupModel.vue
src/views/dataQuality/dataSheet/rule/moveOutGroupModel.vue
+55
-0
rule.data.ts
src/views/dataQuality/dataSheet/rule/rule.data.ts
+27
-0
versionManage.vue
src/views/dataQuality/dataSheet/rule/versionManage.vue
+1
-1
No files found.
src/views/dataQuality/dataSheet/rule/index.vue
View file @
c8dfd301
...
...
@@ -42,11 +42,11 @@
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"handle
Delete
Group"
@
click=
"handle
MoveOut
Group"
>
移出规则组
</a-button
>
<a-button
type=
"primary"
@
click=
"handleImport"
>
导入
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
>
导出
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"handleExport"
>
导出
</a-button>
<a-button
type=
"primary"
@
click=
"handleAdd"
>
新建规则
</a-button>
<a-button
type=
"primary"
@
click=
"handleMoreAdd"
>
批量新建规则
</a-button>
<a-button
type=
"primary"
@
click=
"handleAddQuality"
>
新建质量任务
</a-button>
...
...
@@ -84,6 +84,7 @@
<RuleGroupAddModel
@
register=
"ruleGroupAddModel"
/>
<RuleGroupEditModel
@
register=
"ruleGroupEditModel"
/>
<MoveInGroupModel
@
register=
"moveInGroupModel"
/>
<MoveOutGroupModel
@
register=
"moveOutGroupModel"
/>
<VersionManage
@
register=
"versionManage"
/>
</PageWrapper>
</template>
...
...
@@ -99,6 +100,7 @@
import
RuleGroupAddModel
from
'./ruleGroupAddModel.vue'
;
import
RuleGroupEditModel
from
'./ruleGroupEditModel.vue'
;
import
MoveInGroupModel
from
'./moveInGroupModel.vue'
;
import
MoveOutGroupModel
from
'./moveOutGroupModel.vue'
;
import
VersionManage
from
'./versionManage.vue'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
useRouter
}
from
'vue-router'
;
...
...
@@ -117,6 +119,7 @@
const
[
ruleGroupAddModel
,
{
openModal
:
openRuleGroupAddModel
}]
=
useModal
();
const
[
ruleGroupEditModel
,
{
openModal
:
openRuleGroupEditModel
}]
=
useModal
();
const
[
moveInGroupModel
,
{
openModal
:
openMoveInGroupModel
}]
=
useModal
();
const
[
moveOutGroupModel
,
{
openModal
:
openMoveOutGroupModel
}]
=
useModal
();
const
[
versionManage
,
{
openModal
:
openVersionManage
}]
=
useModal
();
const
actionList
:
TreeActionItem
[]
=
[
{
...
...
@@ -230,6 +233,11 @@
openImportModal
(
true
,
{});
}
// 导出
function
handleExport
()
{
createMessage
.
success
(
'导出成功!'
);
}
/** 导入成功*/
function
handleImportSuccess
()
{
reload
();
...
...
@@ -251,16 +259,9 @@
},
});
}
// 批量删除
function
handleDeleteGroup
()
{
createConfirm
({
iconType
:
'warning'
,
title
:
'确认删除'
,
content
:
'确认批量移出所选工作组吗?'
,
onOk
()
{
createMessage
.
success
(
'移出成功!'
);
reload
();
},
function
handleMoveOutGroup
()
{
openMoveOutGroupModel
(
true
,
{
isUpdate
:
false
,
});
}
const
[
...
...
src/views/dataQuality/dataSheet/rule/moveOutGroupModel.vue
0 → 100644
View file @
c8dfd301
<
template
>
<BasicModal
width=
"40%"
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"getTitle"
@
ok=
"handleSubmit"
>
<BasicForm
@
register=
"registerForm"
/>
</BasicModal>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
ref
,
unref
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
moveOutGroupFormSchema
}
from
'@/views/dataQuality/dataSheet/rule/rule.data'
;
import
BasicForm
from
'@/components/Form/src/BasicForm.vue'
;
import
{
useForm
}
from
'@/components/Form'
;
const
isUpdate
=
ref
(
true
);
const
rowId
=
ref
(
''
);
// const getTitle = computed(() => (isUpdate.value ? '质量规则详情' : '新建规则'));
const
getTitle
=
'移出规则组'
;
//初始化弹框
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
await
resetFields
();
setModalProps
({
confirmLoading
:
false
});
isUpdate
.
value
=
!!
data
?.
isUpdate
;
if
(
unref
(
isUpdate
))
{
// 获取行数据的id
rowId
.
value
=
data
.
record
.
businessId
;
// 塞值
await
setFieldsValue
({
...
data
.
record
,
});
}
});
const
[
registerForm
,
{
setFieldsValue
,
updateSchema
,
resetFields
,
validate
}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
moveOutGroupFormSchema
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
// 确认按钮配置
submitButtonOptions
:
{
text
:
'提交新版本'
,
},
});
/**确定按钮*/
async
function
handleSubmit
()
{
await
validate
();
closeModal
();
}
</
script
>
src/views/dataQuality/dataSheet/rule/rule.data.ts
View file @
c8dfd301
...
...
@@ -468,6 +468,33 @@ export const moveInGroupFormSchema = [
colProps
:
{
lg
:
24
,
md
:
24
},
},
];
export
const
moveOutGroupFormSchema
:
FormSchema
[]
=
[
{
field
:
'group'
,
label
:
'移出规则组'
,
required
:
true
,
defaultValue
:
[
'landing'
,
'ods'
],
component
:
'Select'
,
componentProps
:
{
mode
:
'multiple'
,
options
:
[
{
label
:
'landing'
,
value
:
'landing'
,
},
{
label
:
'ods'
,
value
:
'ods'
,
},
{
label
:
'毕业生'
,
value
:
'毕业生'
,
},
],
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
];
export
const
addNewVersionFormSchema
=
[
{
field
:
'describe'
,
...
...
src/views/dataQuality/dataSheet/rule/versionManage.vue
View file @
c8dfd301
...
...
@@ -10,7 +10,7 @@
<List>
<template
v-for=
"item in versionModelList"
:key=
"item.id"
>
<List
.
Item
>
<List
.
Item
.
Meta
>
<List
.
Item
.
Meta
@
click=
"handleRollback(item)"
style=
"cursor: pointer"
>
<template
#
title
>
<div
style=
"display: flex"
>
<div
style=
"flex: 1"
>
...
...
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