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
61654c4c
authored
2025-02-11 17:38:18 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化流程接口调用时机
1 parent
e5c49b0a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
15 deletions
src/views/data_asset/qualityEvaluate.vue
src/views/data_asset/valueEvaluate.vue
src/views/data_asset/qualityEvaluate.vue
View file @
61654c4
...
...
@@ -45,13 +45,6 @@ const tableFields = ref([
const
deploymentId
=
ref
(
''
);
onMounted
(()
=>
{
getCamundaDeploymentId
(
'10018'
,
userData
.
tenantGuid
,
userData
.
staffGuid
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
deploymentId
.
value
=
res
.
data
;
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
});
onActivated
(()
=>
{
...
...
@@ -412,6 +405,7 @@ const dialogInfo = ref({
const
dialogBtnClick
=
(
btn
,
info
)
=>
{
if
(
btn
.
value
==
'submit'
)
{
dialogInfo
.
value
.
footer
.
btns
[
1
].
loading
=
true
;
let
submitFunc
=
()
=>
{
getProcessNodesPromise
({
deploymentId
:
deploymentId
.
value
,
processInstanceId
:
null
,
...
...
@@ -480,6 +474,20 @@ const dialogBtnClick = (btn, info) => {
ElMessage
.
error
(
res
.
msg
);
}
})
}
if
(
deploymentId
.
value
)
{
submitFunc
();
}
else
{
getCamundaDeploymentId
(
'10018'
,
userData
.
tenantGuid
,
userData
.
staffGuid
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
deploymentId
.
value
=
res
.
data
;
submitFunc
();
}
else
{
dialogInfo
.
value
.
footer
.
btns
[
1
].
loading
=
false
;
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
}
}
else
if
(
btn
.
value
==
'cancel'
)
{
dialogInfo
.
value
.
visible
=
false
;
}
...
...
src/views/data_asset/valueEvaluate.vue
View file @
61654c4
...
...
@@ -96,13 +96,6 @@ onBeforeMount(() => {
// ElMessage.error(res.msg);
// }
// })
getCamundaDeploymentId
(
'10019'
,
userData
.
tenantGuid
,
userData
.
staffGuid
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
deploymentId
.
value
=
res
.
data
;
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
});
onActivated
(()
=>
{
...
...
@@ -680,7 +673,7 @@ const dialogInfo = ref({
footer
:
{
btns
:
[
{
type
:
"default"
,
label
:
"取消"
,
value
:
"cancel"
},
{
type
:
"primary"
,
label
:
"确定"
,
value
:
"submit"
},
{
type
:
"primary"
,
label
:
"确定"
,
value
:
"submit"
,
loading
:
false
},
],
},
});
...
...
@@ -738,6 +731,7 @@ const reSubmitPromise: any = ref(null);
const
dialogBtnClick
=
(
btn
,
info
)
=>
{
console
.
log
(
'btn'
,
btn
,
info
);
if
(
btn
.
value
==
'submit'
)
{
let
submitFunc
=
()
=>
{
getProcessNodesPromise
({
deploymentId
:
deploymentId
.
value
,
processInstanceId
:
null
,
...
...
@@ -848,6 +842,19 @@ const dialogBtnClick = (btn, info) => {
}
});
})
}
if
(
deploymentId
.
value
)
{
submitFunc
();
}
else
{
getCamundaDeploymentId
(
'10019'
,
userData
.
tenantGuid
,
userData
.
staffGuid
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
deploymentId
.
value
=
res
.
data
;
submitFunc
();
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
}
}
else
if
(
btn
.
value
==
'cancel'
)
{
dialogInfo
.
value
.
visible
=
false
;
}
...
...
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