Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2c8abf69
authored
2024-12-22 17:26:15 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分类分级任务联调
1 parent
87a21d47
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
5 deletions
src/api/modules/dataInventory.ts
src/components/Dialog/index.vue
src/components/Tools/table_search.vue
src/views/data_inventory/taskConfig.vue
src/views/data_inventory/taskDetail.vue
src/api/modules/dataInventory.ts
View file @
2c8abf6
...
...
@@ -472,6 +472,13 @@ export const getTaskFieldCount = (data) => request({
params
:
data
})
// 分类分级任务执行数据库信息查询
export
const
getDbFieldList
=
(
data
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/cg-task-exec-result/confirm-query-db-list`
,
method
:
'get'
,
params
:
data
})
// 分类分级任务执行字段查询
export
const
execTaskFieldList
=
(
data
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/cg-task-exec-result/confirm-field-list-query`
,
...
...
@@ -489,7 +496,7 @@ export const execTaskSheetList = (data) => request({
export
const
execTaskConfirm
=
(
data
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/cg-task-exec-result/confirm-task`
,
method
:
'post'
,
data
params
:
data
})
// 分类分级任务执行字段确认
...
...
@@ -536,7 +543,7 @@ export const filterVal = (val, type) => {
}
else
if
(
type
==
'confirmStatus'
){
switch
(
val
)
{
case
'N'
:
status
=
'
草稿中
'
;
status
=
'
待确认
'
;
break
;
case
'Y'
:
status
=
'已确认'
;
...
...
@@ -557,6 +564,18 @@ export const filterVal = (val, type) => {
status
=
'待确认'
;
break
;
}
}
else
if
(
type
==
'changeStatus'
){
switch
(
val
)
{
case
'N'
:
status
=
'待确认'
;
break
;
case
'Y'
:
status
=
'已确认'
;
break
;
default
:
status
=
'--'
;
break
;
}
}
return
status
;
}
...
...
src/components/Dialog/index.vue
View file @
2c8abf6
...
...
@@ -498,6 +498,11 @@ const scheduleChange = (val, rowValue) => {
const
treeSelectNodeChange
=
(
node
,
item
,
nodeObj
)
=>
{
emits
(
"treeSelectNodeChange"
,
node
,
item
,
nodeObj
);
}
const
getCascaderCheckedData
=
()
=>
{
const
dialogForm
=
dialogFormRef
.
value
[
0
]
||
dialogFormRef
.
value
;
return
dialogForm
.
getCascaderCheckedData
();
}
const
setTreeChecked
=
(
checkedKeys
,
leafOnly
:
boolean
=
false
)
=>
{
nextTick
(()
=>
{
const
formTree
=
formTreeRef
.
value
[
0
]
||
formTreeRef
.
value
;
...
...
@@ -533,7 +538,8 @@ defineExpose({
formTreeRef
,
setTableRowSelected
,
setTreeChecked
,
getDialogConRef
getDialogConRef
,
getCascaderCheckedData
});
</
script
>
...
...
src/components/Tools/table_search.vue
View file @
2c8abf6
...
...
@@ -101,7 +101,7 @@ onMounted(() => {
<template
v-if=
"item.type == 'select'"
>
<el-select
:class=
"
{ 'is-multiple': item.multiple }" v-model="formInline[item.field]"
:placeholder="item.placeholder" :clearable="item.clearable" :filterable="item.filterable"
@change="(val) => selectChange(val, item)">
:disabled="item.disabled ?? false"
@change="(val) => selectChange(val, item)">
<el-option
v-for=
"opt in item.options"
:label=
"item.props?.label ? opt[item.props.label] : opt.label"
:value=
"item.props?.value ? opt[item.props.value] : opt.value"
/>
</el-select>
...
...
src/views/data_inventory/taskConfig.vue
View file @
2c8abf6
...
...
@@ -64,7 +64,9 @@ const tableInfo = ref({
{
label
:
"结果状态"
,
field
:
"confirmStatus"
,
width
:
TableColumnWidth
.
STATE
,
align
:
'center'
,
type
:
"tag"
,
getName
:
(
scope
)
=>
{
return
filterVal
(
scope
.
row
.
confirmStatus
,
'confirmStatus'
);
}
},
tagType
:
(
scope
)
=>
{
return
scope
.
row
.
confirmStatus
==
'Y'
?
'success'
:
'warning'
;
},
},
],
data
:
[],
...
...
@@ -157,6 +159,7 @@ const toPath = (type) => {
query
:
{
guid
:
currTableData
.
value
.
guid
,
name
:
currTableData
.
value
.
taskName
,
detail
:
JSON
.
stringify
(
currTableData
.
value
),
type
},
});
...
...
src/views/data_inventory/taskDetail.vue
View file @
2c8abf6
This diff is collapsed.
Click to expand it.
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment