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
2c3a7512
Commit
2c3a7512
authored
Dec 09, 2024
by
baiyinhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改质量任务
parent
fb3cc103
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
171 additions
and
31 deletions
+171
-31
QualityTaskRunSetting.data.ts
.../dataQuality/dataSheet/task/QualityTaskRunSetting.data.ts
+91
-10
QualityTaskSetting.vue
src/views/dataQuality/dataSheet/task/QualityTaskSetting.vue
+38
-8
index.vue
src/views/dataQuality/dataSheet/task/index.vue
+42
-13
No files found.
src/views/dataQuality/dataSheet/task/QualityTaskRunSetting.data.ts
View file @
2c3a7512
...
...
@@ -100,9 +100,9 @@ export const storageManagementData: any[] = [
pointNum
:
'5000'
,
num
:
'2000'
,
user
:
'张三'
,
parameterName
:
'check_date'
,
parameterName
:
Math
.
random
().
toString
(
36
).
substring
(
2
,
12
)
,
parameterType
:
'字符类'
,
parameterValue
:
'参数值'
,
parameterValue
:
Math
.
random
().
toString
(
36
).
substring
(
7
)
,
},
{
id
:
'2'
,
...
...
@@ -114,9 +114,9 @@ export const storageManagementData: any[] = [
pointNum
:
'7000'
,
num
:
'3500'
,
user
:
'李四'
,
parameterName
:
'check_date'
,
parameterName
:
Math
.
random
().
toString
(
36
).
substring
(
2
,
12
)
,
parameterType
:
'时间类'
,
parameterValue
:
'参数值'
,
parameterValue
:
Math
.
random
().
toString
(
36
).
substring
(
7
)
,
},
{
id
:
'3'
,
...
...
@@ -128,9 +128,9 @@ export const storageManagementData: any[] = [
pointNum
:
'6000'
,
num
:
'3000'
,
user
:
'王五'
,
parameterName
:
'check_date'
,
parameterName
:
Math
.
random
().
toString
(
36
).
substring
(
2
,
12
)
,
parameterType
:
'数值类'
,
parameterValue
:
'参数值'
,
parameterValue
:
Math
.
random
().
toString
(
36
).
substring
(
7
)
,
},
{
id
:
'4'
,
...
...
@@ -142,9 +142,9 @@ export const storageManagementData: any[] = [
pointNum
:
'4500'
,
num
:
'2250'
,
user
:
'赵六'
,
parameterName
:
'check_date'
,
parameterName
:
Math
.
random
().
toString
(
36
).
substring
(
2
,
12
)
,
parameterType
:
'自定义类'
,
parameterValue
:
'参数值'
,
parameterValue
:
Math
.
random
().
toString
(
36
).
substring
(
7
)
,
},
{
id
:
'5'
,
...
...
@@ -156,9 +156,9 @@ export const storageManagementData: any[] = [
pointNum
:
'5500'
,
num
:
'2750'
,
user
:
'孙七'
,
parameterName
:
'check_date'
,
parameterName
:
Math
.
random
().
toString
(
36
).
substring
(
2
,
12
)
,
parameterType
:
'数值类'
,
parameterValue
:
'参数值'
,
parameterValue
:
Math
.
random
().
toString
(
36
).
substring
(
7
)
,
},
];
export
const
storageManagementBasicFormSchema
:
FormSchema
[]
=
[
...
...
@@ -216,4 +216,85 @@ export const storageManagementBasicFormSchema: FormSchema[] = [
span
:
24
,
},
},
{
field
:
'divider-linked'
,
component
:
'Divider'
,
label
:
'计划逻辑正确'
,
colProps
:
{
span
:
24
,
},
},
{
field
:
'field122'
,
component
:
'InputTextArea'
,
label
:
''
,
componentProps
:
{
disabled
:
true
,
defaultValue
:
Math
.
random
().
toString
(
36
).
substring
(
2
,
52
),
},
colProps
:
{
span
:
24
,
},
},
{
field
:
'divider-linked'
,
component
:
'Divider'
,
label
:
'标题逻辑正确'
,
colProps
:
{
span
:
24
,
},
},
{
field
:
'field123'
,
component
:
'InputTextArea'
,
label
:
''
,
componentProps
:
{
disabled
:
true
,
defaultValue
:
Math
.
random
().
toString
(
36
).
substring
(
2
,
52
),
},
colProps
:
{
span
:
24
,
},
},
{
field
:
'divider-linked'
,
component
:
'Divider'
,
label
:
'名称逻辑正确'
,
colProps
:
{
span
:
24
,
},
},
{
field
:
'field122'
,
component
:
'InputTextArea'
,
label
:
''
,
componentProps
:
{
disabled
:
true
,
defaultValue
:
Math
.
random
().
toString
(
36
).
substring
(
2
,
52
),
},
colProps
:
{
span
:
24
,
},
},
{
field
:
'divider-linked'
,
component
:
'Divider'
,
label
:
'时刻逻辑'
,
colProps
:
{
span
:
24
,
},
},
{
field
:
'field123'
,
component
:
'InputTextArea'
,
label
:
''
,
componentProps
:
{
disabled
:
true
,
defaultValue
:
Math
.
random
().
toString
(
36
).
substring
(
2
,
52
),
},
colProps
:
{
span
:
24
,
},
},
];
src/views/dataQuality/dataSheet/task/QualityTaskSetting.vue
View file @
2c3a7512
...
...
@@ -22,7 +22,11 @@
style=
"margin-right: 10px; margin-bottom: 20px"
>
查看报告
</a-button
>
<a-button
type=
"primary"
style=
"margin-right: 10px; margin-bottom: 20px"
@
click=
"handleSave"
<a-button
type=
"primary"
style=
"margin-right: 10px; margin-bottom: 20px"
@
click=
"handleSave"
:disabled=
"isDisabled"
>
保存
</a-button
>
<a-button
...
...
@@ -52,7 +56,7 @@
>
运行
</a-button
></div
>
<BasicForm
@
register=
"registerForm"
/>
<BasicForm
@
register=
"registerForm"
:disabled=
"isDisabled"
/>
<PageWrapper
dense
contentFullHeight
fixedHeight
contentClass=
"flex"
>
<DeptTree
class=
"w-1/4"
@
select=
"handleSelect"
/>
<BasicTable
@
register=
"registerTable"
class=
"w-3/4"
:searchInfo=
"searchInfo"
/>
...
...
@@ -89,6 +93,7 @@
const
tableData
=
ref
([]);
const
isOnline
=
ref
(
true
);
const
isOffline
=
ref
(
false
);
const
isDisabled
=
ref
(
false
);
const
rowId
=
ref
(
''
);
const
searchInfo
=
reactive
<
Recordable
>
({});
...
...
@@ -177,15 +182,40 @@
go
(
'/dataQuality/dataSheet/task/viewTaskOperation'
,
false
);
}
/** 上线
未完成 应为弹窗
*/
/** 上线 */
function
handleQualityTaskOnline
()
{
isOnline
.
value
=
false
;
isOffline
.
value
=
true
;
Modal
.
confirm
({
title
:
'确认上线'
,
content
:
'是否确认上线?'
,
onOk
:
()
=>
{
go
(
'/dataQuality/dataSheet/task'
);
isOnline
.
value
=
false
;
isOffline
.
value
=
true
;
isDisabled
.
value
=
true
;
createMessage
.
success
(
'上线成功!'
);
},
onCancel
:
()
=>
{
console
.
log
(
'取消上线'
);
},
});
}
/** 下线 未完成 应为弹窗*/
/** 下线 */
function
handleQualityTaskOffline
()
{
isOnline
.
value
=
true
;
isOffline
.
value
=
false
;
Modal
.
confirm
({
title
:
'确认下线'
,
content
:
'是否确认下线?'
,
onOk
:
()
=>
{
go
(
'/dataQuality/dataSheet/task'
);
isOnline
.
value
=
true
;
isOffline
.
value
=
false
;
isDisabled
.
value
=
false
;
createMessage
.
success
(
'下线成功!'
);
},
onCancel
:
()
=>
{
console
.
log
(
'取消下线'
);
},
});
}
/** 配置运行 正在做 应为弹窗*/
...
...
src/views/dataQuality/dataSheet/task/index.vue
View file @
2c3a7512
...
...
@@ -45,12 +45,20 @@
<a-button
type=
"primary"
@
click=
"handleAddMainBody"
style=
"margin-right: 10px"
>
新增质量任务
</a-button>
<a-button
type=
"primary"
@
click=
"handleAddQualityRule"
style=
"margin-right: 10px"
>
新增质量规则
</a-button>
<a-button
type=
"primary"
@
click=
"handleQualityTaskRunSetting"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
>
配置运行
</a-button
>
<!--
<a-button
type=
"primary"
@
click=
"handleQualityTaskSetting"
style=
"margin-right: 10px"
>
配置质量任务文件
</a-button>
-->
<!-- -->
<!--
<a-button
type=
"primary"
@
click=
"handleAddQualityRule"
style=
"margin-right: 10px"
>
新增质量规则-->
<!--
</a-button>
-->
<!-- -->
<!--
<a-button-->
<!-- type="primary"-->
<!-- @click="handleAlarmSetting"-->
...
...
@@ -161,6 +169,7 @@
import
AddFolder
from
'@/views/dataQuality/dataSheet/task/addFolder.vue'
;
import
RemoveModal
from
'@/views/dataQuality/dataSheet/task/removeModal.vue'
;
import
MainBodyModal
from
'@/views/dataQuality/dataSheet/task/mainBodyModal.vue'
;
import
QualityRunSettingModal
from
'./QualityTaskRunSetting.vue'
;
import
QualitySettingModal
from
'./QualityTaskSetting.vue'
;
import
NewRuleModal
from
'./QualityTaskNewRule.vue'
;
import
AlarmSettingModal
from
'./QualityTaskAlarmSetting.vue'
;
...
...
@@ -307,18 +316,38 @@
openCheckRangePlusModal
(
true
,
{});
}
/** 上线
未完成 应为弹窗
*/
/** 上线 */
function
handleQualityTaskOnline
()
{
go
(
'/dataQuality/dataSheet/task'
);
isOnline
.
value
=
false
;
isOffline
.
value
=
true
;
Modal
.
confirm
({
title
:
'确认上线'
,
content
:
'是否确认上线?'
,
onOk
:
()
=>
{
go
(
'/dataQuality/dataSheet/task'
);
isOnline
.
value
=
false
;
isOffline
.
value
=
true
;
createMessage
.
success
(
'上线成功!'
);
},
onCancel
:
()
=>
{
console
.
log
(
'取消上线'
);
},
});
}
/** 下线
未完成 应为弹窗
*/
/** 下线 */
function
handleQualityTaskOffline
()
{
go
(
'/dataQuality/dataSheet/task'
);
isOnline
.
value
=
true
;
isOffline
.
value
=
false
;
Modal
.
confirm
({
title
:
'确认下线'
,
content
:
'是否确认下线?'
,
onOk
:
()
=>
{
go
(
'/dataQuality/dataSheet/task'
);
isOnline
.
value
=
true
;
isOffline
.
value
=
false
;
createMessage
.
success
(
'下线成功!'
);
},
onCancel
:
()
=>
{
console
.
log
(
'取消下线'
);
},
});
}
/** 设置业务标签 */
...
...
@@ -341,11 +370,11 @@
}
function
handleDeleteIds
()
{
createConfirm
({
iconType
:
'warning'
,
Modal
.
confirm
({
title
:
'确认删除'
,
content
:
'确认批量删除选中数据吗?'
,
onOk
()
{
onOk
:
()
=>
{
// Your code to delete the selected items goes here.
createMessage
.
success
(
'批量删除成功!'
);
},
});
...
...
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