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
f8acf167
Commit
f8acf167
authored
Nov 27, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周期任务调度页面
parent
07b4d06c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
91 additions
and
6 deletions
+91
-6
SuccessfullySettingModal.vue
...intenance/periodicScheduling/SuccessfullySettingModal.vue
+54
-0
index.vue
...heduling/taskFlowMaintenance/periodicScheduling/index.vue
+18
-3
taskFlowMaintenance.data.ts
...aintenance/periodicScheduling/taskFlowMaintenance.data.ts
+16
-0
addTask.vue
...skScheduling/taskFlowMaintenance/supplyNumber/addTask.vue
+3
-3
No files found.
src/views/taskScheduling/taskFlowMaintenance/periodicScheduling/SuccessfullySettingModal.vue
0 → 100644
View file @
f8acf167
<
template
>
<BasicModal
width=
"40%"
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"getTitle"
@
ok=
"handleSubmit"
>
<div
style=
"font-size: 15px"
>
手动置成功修改了任务对象的状态,并不是当前任务真实运行成功,该状态变更会影响下游任务的执行,请确定要手动修改吗?
</div>
<BasicForm
@
register=
"registerForm"
/>
</BasicModal>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
ref
,
computed
,
unref
,
reactive
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
mainFormSchema4
}
from
"./taskFlowMaintenance.data"
;
defineOptions
({
name
:
'AccountModal'
});
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
{
createMessage
}
=
useMessage
();
const
getTitle
=
computed
(()
=>
(
'置成功'
));
const
[
registerForm
,
{
updateSchema
:
updateSchema1
}]
=
useForm
({
labelWidth
:
100
,
schemas
:
mainFormSchema4
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
//初始化弹框
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
setModalProps
({
confirmLoading
:
false
});
});
/**确定按钮*/
async
function
handleSubmit
()
{
createMessage
.
success
(
'设置成功'
);
closeModal
()
}
</
script
>
<
style
lang=
"less"
scoped
>
.buttonClass{
margin-top: 10px;
border-color: rgb(41, 147, 249);
color: rgb(41, 147, 249)
}
.textAreaClass{
width: 100%;
margin-top:20px;
background-color: rgb(37, 37, 37);
color: white
}
</
style
>
src/views/taskScheduling/taskFlowMaintenance/periodicScheduling/index.vue
View file @
f8acf167
...
...
@@ -281,6 +281,8 @@
</div>
<!-- 查看日志 弹窗-->
<LookLogModal
@
register=
"registerLookLogModal"
@
success=
"handleSuccess"
/>
<!-- 置成功 弹窗-->
<SuccessfullySettingModal
@
register=
"registerSuccessfullySettingModal"
@
success=
"handleSuccess"
/>
</div>
</template>
...
...
@@ -304,6 +306,8 @@
import
{
EventDataNode
}
from
"ant-design-vue/es/vc-tree/interface"
;
import
{
BasicTree
,
ContextMenuItem
,
TreeActionType
,
TreeItem
}
from
'@/components/Tree'
;
import
{
Divider
}
from
'ant-design-vue'
;
import
SuccessfullySettingModal
from
'./SuccessfullySettingModal.vue'
defineOptions
({
name
:
'AccountManagement'
});
const
chartRef1
=
ref
<
HTMLDivElement
|
null
>
(
null
);
const
{
setOptions
:
setOptions1
}
=
useECharts
(
chartRef1
as
Ref
<
HTMLDivElement
>
);
...
...
@@ -427,6 +431,7 @@
],
});
}
const
[
registerSuccessfullySettingModal
,
{
openModal
:
openSuccessfullySettingModal
}]
=
useModal
();
const
[
registerLookLogModal
,
{
openModal
:
openLookLogModal
}]
=
useModal
();
const
[
registerTable
,
{
reload
,
getForm
,
getRowSelection
}]
=
useTable
({
title
:
'执行记录'
,
...
...
@@ -569,13 +574,13 @@
{
label
:
'取消执行'
,
handler
:
()
=>
{
handleOpe
n
(
node
)
cancelButto
n
(
node
)
},
},
{
label
:
'置成功'
,
handler
:
()
=>
{
handleOpe
n
(
node
)
settingSuccessfulButto
n
(
node
)
},
},
];
...
...
@@ -588,8 +593,18 @@
}
onMounted
(()
=>
{
/**置成功 按钮*/
function
settingSuccessfulButton
(
node
){
openSuccessfullySettingModal
(
true
,{})
}
/**取消 按钮*/
function
cancelButton
(){
createMessage
.
success
(
'取消成功!'
)
}
onMounted
(()
=>
{
getEchartsData1
()
const
treeData
=
handleTree
(
TreeData
,
'businessId'
,
undefined
,
undefined
,
undefined
)
updateSchema1
([
...
...
src/views/taskScheduling/taskFlowMaintenance/periodicScheduling/taskFlowMaintenance.data.ts
View file @
f8acf167
...
...
@@ -205,6 +205,22 @@ export const mainFormSchema3: FormSchema[] = [
colProps
:
{
lg
:
8
,
md
:
24
},
},
];
/**首页-表单4*/
export
const
mainFormSchema4
:
FormSchema
[]
=
[
{
field
:
'settingTask'
,
label
:
''
,
component
:
'RadioGroup'
,
defaultValue
:
'自动触发下游'
,
componentProps
:
{
options
:
[
{
label
:
'仅当前任务'
,
value
:
'仅当前任务'
},
{
label
:
'自动触发下游'
,
value
:
'自动触发下游'
},
],
},
},
];
/**详情页-任务列表*/
export
const
tableListColumns
:
BasicColumn
[]
=
[
{
...
...
src/views/taskScheduling/taskFlowMaintenance/supplyNumber/addTask.vue
View file @
f8acf167
...
...
@@ -96,9 +96,9 @@
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
route
=
useRoute
();
const
go
=
useGo
();
const
message
=
ref
(
'1、默认包含选中任务流在“补数时间范围”内有执行的相关上游和下游,故相关任务流需要处于发布中
;
\
n
'
+
'
2、若执行记录已经存在,则忽略不会产生补数记录;
\
n
'
+
'3、补数时会按照当前选中资源的最新版本配置执行。'
);
const
message
=
ref
(
'1、默认包含选中任务流在“补数时间范围”内有执行的相关上游和下游,故相关任务流需要处于发布中
;
'
+
'
2、若执行记录已经存在,则忽略不会产生补数记录;
'
+
'
3、补数时会按照当前选中资源的最新版本配置执行。'
);
const
[
registerResetNameModal
,
{
openModal
:
openResetNameModal
}]
=
useModal
();
const
[
registerTable1
]
=
useTable
({
title
:
''
,
...
...
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