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
462faf29
Commit
462faf29
authored
Dec 16, 2024
by
baiyinhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改质量任务
parent
432872ff
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
82 additions
and
19 deletions
+82
-19
QualityTaskSetting.data.ts
...ews/dataQuality/dataSheet/task/QualityTaskSetting.data.ts
+9
-1
QualityTaskSetting.vue
src/views/dataQuality/dataSheet/task/QualityTaskSetting.vue
+2
-5
index.vue
src/views/dataQuality/dataSheet/task/index.vue
+20
-12
mainBody.data.ts
src/views/dataQuality/dataSheet/task/mainBody.data.ts
+27
-0
mock.ts
src/views/dataQuality/dataSheet/task/mock.ts
+16
-0
removeModal.vue
src/views/dataQuality/dataSheet/task/removeModal.vue
+8
-1
No files found.
src/views/dataQuality/dataSheet/task/QualityTaskSetting.data.ts
View file @
462faf29
...
...
@@ -186,7 +186,15 @@ export const storageManagementBasicFormSchema: FormSchema[] = [
},
{
field
:
'dispatchCycle'
,
component
:
'Input'
,
component
:
'Select'
,
componentProps
:
{
options
:
[
{
label
:
'调度周期1'
,
value
:
1
},
{
label
:
'调度周期2'
,
value
:
2
},
{
label
:
'调度周期3'
,
value
:
3
},
{
label
:
'调度周期4'
,
value
:
4
},
],
},
label
:
'调度周期'
,
colProps
:
{
span
:
12
,
...
...
src/views/dataQuality/dataSheet/task/QualityTaskSetting.vue
View file @
462faf29
...
...
@@ -9,11 +9,11 @@
<template
#
footer
>
<a-button
type=
"primary"
@
click=
"handleSubmit"
>
关闭
</a-button>
</
template
>
<div
class=
"btns"
>
<div
class=
"btns"
style=
"display: flex; justify-content: flex-start"
>
<a-button
type=
"primary"
@
click=
"handleQualityTaskService"
style=
"margin-right: 10px; margin-bottom: 20px
; margin-left: 600px
"
style=
"margin-right: 10px; margin-bottom: 20px"
>
跳转运维
</a-button
>
<a-button
...
...
@@ -290,9 +290,6 @@
</
script
>
<
style
scoped
>
.btns
{
display
:
flex
;
flex-wrap
:
nowrap
;
margin-right
:
-200px
;
transform
:
translateX
(
-50%
);
}
</
style
>
src/views/dataQuality/dataSheet/task/index.vue
View file @
462faf29
...
...
@@ -19,11 +19,15 @@
style=
"margin-right: 10px"
>
批量下线
</a-button>
<a-button
type=
"primary"
@
click=
"handleBusinessLabel"
style=
"margin-right: 10px"
<
!--
<
a-button
type=
"primary"
@
click=
"handleBusinessLabel"
style=
"margin-right: 10px"
>
设置业务标签
</a-button>
<a-button
type=
"primary"
@
click=
"handleCopyTo"
style=
"margin-right: 10px"
>
复制到
</a-button>
-->
<a-button
type=
"primary"
@
click=
"handleCopyTo"
style=
"margin-right: 10px"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
>
复制
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
...
...
@@ -168,7 +172,7 @@
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
tableList
}
from
'./mock'
;
import
{
columns
,
searchFormSchema
}
from
'./mainBody.data'
;
import
{
columns
2
,
searchFormSchema
}
from
'./mainBody.data'
;
import
{
useGo
}
from
'@/hooks/web/usePage'
;
import
{
useRoute
,
onBeforeRouteLeave
}
from
'vue-router'
;
import
{
useFilterStore
}
from
'@/store/modules/filterData'
;
...
...
@@ -230,7 +234,7 @@
},
rowKey
:
'businessId'
,
rowSelection
:
true
,
columns
,
columns
:
columns2
,
formConfig
:
{
labelWidth
:
10
,
schemas
:
searchFormSchema
,
...
...
@@ -270,11 +274,18 @@
function
handleAdd
()
{
openModal
(
true
,
{});
}
/// 移动
function
handleRemove
()
{
openRemoveModal
(
true
,
{});
openRemoveModal
(
true
,
{
isMove
:
true
,
});
}
/** 复制到 */
function
handleCopyTo
()
{
openRemoveModal
(
true
,
{
isMove
:
false
,
});
}
/** 新建质量任务文件*/
function
handleAddMainBody
()
{
openMainModal
(
true
,
{
...
...
@@ -366,9 +377,6 @@
/** 设置业务标签 */
function
handleBusinessLabel
()
{}
/** 复制到 */
function
handleCopyTo
()
{}
/** 跳转运维 未完成 应为跳转到运维界面*/
function
handleQualityTaskService
()
{
go
(
'/dataQuality/dataSheet/task/taskOperation'
);
...
...
src/views/dataQuality/dataSheet/task/mainBody.data.ts
View file @
462faf29
...
...
@@ -86,6 +86,33 @@ export const columns: BasicColumn[any] = [
},
},
];
export
const
columns2
:
BasicColumn
[
any
]
=
[
{
title
:
'路径'
,
dataIndex
:
'path'
,
width
:
120
,
},
{
title
:
'文件名称'
,
dataIndex
:
'name'
,
width
:
120
,
},
{
title
:
'文件类型'
,
dataIndex
:
'fileType'
,
width
:
120
,
},
{
title
:
'目录权属模式'
,
dataIndex
:
'menuModal'
,
width
:
120
,
},
{
title
:
'权属工作组'
,
dataIndex
:
'group'
,
width
:
120
,
},
];
export
const
formSchemaRemove
:
any
=
[
{
...
...
src/views/dataQuality/dataSheet/task/mock.ts
View file @
462faf29
...
...
@@ -19,6 +19,10 @@ export const tableList: any[] = [
ruleGroup
:
'bingtest'
,
qualityPassRate
:
'100'
,
taskName
:
'指标导入'
,
path
:
'指标演示工作区/SLA明细信息'
,
fileType
:
'质量任务'
,
menuModal
:
'指标演示模式'
,
group
:
'指标演示组'
,
},
{
businessId
:
2
,
...
...
@@ -38,6 +42,10 @@ export const tableList: any[] = [
ruleGroup
:
'bingtest'
,
qualityPassRate
:
'100'
,
taskName
:
'指标导入'
,
path
:
'指标演示工作区/SLA明细信息'
,
fileType
:
'质量任务'
,
menuModal
:
'目录模式'
,
group
:
'指标修改组'
,
},
{
businessId
:
3
,
...
...
@@ -57,6 +65,10 @@ export const tableList: any[] = [
ruleGroup
:
'Trinotest'
,
qualityPassRate
:
'100'
,
taskName
:
'指标导入'
,
path
:
'指标演示工作区/SLA明细信息'
,
fileType
:
'质量任务'
,
menuModal
:
'指标权属模式'
,
group
:
'指标演示组'
,
},
{
businessId
:
4
,
...
...
@@ -76,6 +88,10 @@ export const tableList: any[] = [
ruleGroup
:
'Trinotest'
,
qualityPassRate
:
'100'
,
taskName
:
'指标导入'
,
path
:
'指标演示工作区/SLA明细信息'
,
fileType
:
'质量任务'
,
menuModal
:
'指标演示模式'
,
group
:
'指标演示组'
,
},
];
...
...
src/views/dataQuality/dataSheet/task/removeModal.vue
View file @
462faf29
...
...
@@ -23,6 +23,7 @@
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
{
createMessage
}
=
useMessage
();
const
isUpdate
=
ref
(
true
);
const
isMove
=
ref
(
false
);
const
rowId
=
ref
(
''
);
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单
...
...
@@ -41,6 +42,7 @@
resetFields
();
setModalProps
({
confirmLoading
:
false
});
isUpdate
.
value
=
!!
data
?.
isUpdate
;
isMove
.
value
=
!!
data
?.
isMove
;
if
(
unref
(
isUpdate
))
{
// 通过id获取行详情信息
// 塞值
...
...
@@ -54,7 +56,7 @@
});
});
const
getTitle
=
computed
(()
=>
'移动到'
);
const
getTitle
=
computed
(()
=>
(
unref
(
isMove
)
?
'移动到'
:
'复制到'
)
);
async
function
handleSubmit
()
{
try
{
...
...
@@ -66,5 +68,10 @@
}
finally
{
setModalProps
({
confirmLoading
:
false
});
}
if
(
unref
(
isMove
))
{
createMessage
.
success
(
'移动成功'
);
}
else
{
createMessage
.
success
(
'复制成功'
);
}
}
</
script
>
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