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
6d269887
authored
2025-12-11 16:19:02 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
产品上架修改接口调用
1 parent
e4afe105
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
57 deletions
src/api/modules/dataSmartContract.ts
src/views/data_product/productListing.vue
src/api/modules/dataSmartContract.ts
View file @
6d26988
...
...
@@ -155,9 +155,9 @@ export const getContractDataProduct = (tenantGuid) => request({
})
/** 获取下拉数据产品列表的去重字段 */
export
const
getDamFieldsByProductGuid
=
(
productGuid
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTAL
}
/dam-catalog-table/field-by-dam-guid?damGuid=
${
productGuid
}
`
,
method
:
'
pos
t'
export
const
getDamFieldsByProductGuid
=
(
productGuid
,
isTds
=
'N'
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_DIGITAL_CONTRACT_URL
}
/connector-invoke/field-by-dam-guid?damGuid=
${
productGuid
}
&isTds=
${
isTds
}
`
,
method
:
'
ge
t'
})
/** 创建合约 */
...
...
src/views/data_product/productListing.vue
View file @
6d26988
...
...
@@ -405,65 +405,69 @@ const tableBtnClick = (scope, btn) => {
}
if
(
type
==
'pass'
)
{
if
(
getFirstNodePromise
.
value
[
row
.
guid
])
{
return
;
}
getFirstNodePromise
.
value
[
row
.
guid
]
=
isMyFirstNode
({
deploymentId
:
row
.
approveVO
.
camundaDeploymentId
,
processInstanceId
:
row
.
approveVO
.
camundaInstanceId
,
staffGuid
:
userData
.
staffGuid
}).
then
((
res
:
any
)
=>
{
getFirstNodePromise
.
value
[
row
.
guid
]
=
null
;
if
(
res
?.
code
==
proxy
.
$passCode
)
{
if
(
res
.
data
)
{
approveSuggest
.
value
=
''
;
dynamicPlaceholder
.
value
=
'请填写通过理由(选填)'
;
// if (listingFormRef.value) {
// clearFormValues(listingFormRef.value.formInline);
// listingFormRef.value.ruleFormRef.clearValidate(formInfo.value.items.map(item => item.field))
// listingFormRef.value.ruleFormRef.resetFields(formInfo.value.items.map(item => item.field))
// if (getFirstNodePromise.value[row.guid]) {
// return;
// }
approveType
.
value
=
'pass'
;
dialogTitle
.
value
=
'通过流程'
dialogVisible
.
value
=
true
;
}
else
{
passCommonDialogInfo
.
value
.
visible
=
true
;
}
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
passCommonDialogInfo
.
value
.
contents
[
0
].
formInfo
.
items
[
0
].
default
=
''
;
// getFirstNodePromise.value[row.guid] = isMyFirstNode({
// deploymentId: row.approveVO.camundaDeploymentId,
// processInstanceId: row.approveVO.camundaInstanceId,
// staffGuid: userData.staffGuid
// }).then((res: any) => {
// getFirstNodePromise.value[row.guid] = null;
// if (res?.code == proxy.$passCode) {
// if (res.data) {
// approveSuggest.value = '';
// dynamicPlaceholder.value = '请填写通过理由(选填)';
// // if (listingFormRef.value) {
// // clearFormValues(listingFormRef.value.formInline);
// // listingFormRef.value.ruleFormRef.clearValidate(formInfo.value.items.map(item => item.field))
// // listingFormRef.value.ruleFormRef.resetFields(formInfo.value.items.map(item => item.field))
// // }
// approveType.value = 'pass';
// dialogTitle.value = '通过流程'
// dialogVisible.value = true;
// } else {
// passCommonDialogInfo.value.visible = true;
// }
// } else {
// proxy.$ElMessage.error(res.msg);
// }
// })
}
if
(
type
==
'reject'
)
{
if
(
getFirstNodePromise1
.
value
[
row
.
guid
])
{
return
;
}
getFirstNodePromise1
.
value
[
row
.
guid
]
=
isMyFirstNode
({
deploymentId
:
row
.
approveVO
.
camundaDeploymentId
,
processInstanceId
:
row
.
approveVO
.
camundaInstanceId
,
staffGuid
:
userData
.
staffGuid
}).
then
((
res
:
any
)
=>
{
getFirstNodePromise1
.
value
[
row
.
guid
]
=
null
;
if
(
res
?.
code
==
proxy
.
$passCode
)
{
if
(
res
.
data
)
{
approveSuggest
.
value
=
''
;
dynamicPlaceholder
.
value
=
'请填写驳回理由(必填)'
;
// if (listingFormRef.value) {
// clearFormValues(listingFormRef.value.formInline);
// listingFormRef.value.ruleFormRef.clearValidate(formInfo.value.items.map(item => item.field))
// listingFormRef.value.ruleFormRef.resetFields(formInfo.value.items.map(item => item.field))
// }
approveType
.
value
=
'reject'
;
dialogTitle
.
value
=
'驳回流程'
dialogVisible
.
value
=
true
;
}
else
{
rejectDialogInfo
.
value
.
visible
=
true
;
}
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
rejectDialogInfo
.
value
.
contents
[
0
].
formInfo
.
items
[
0
].
default
=
''
;
// if (getFirstNodePromise1.value[row.guid]) {
// return;
// }
// getFirstNodePromise1.value[row.guid] = isMyFirstNode({
// deploymentId: row.approveVO.camundaDeploymentId,
// processInstanceId: row.approveVO.camundaInstanceId,
// staffGuid: userData.staffGuid
// }).then((res: any) => {
// getFirstNodePromise1.value[row.guid] = null;
// if (res?.code == proxy.$passCode) {
// if (res.data) {
// approveSuggest.value = '';
// dynamicPlaceholder.value = '请填写驳回理由(必填)';
// // if (listingFormRef.value) {
// // clearFormValues(listingFormRef.value.formInline);
// // listingFormRef.value.ruleFormRef.clearValidate(formInfo.value.items.map(item => item.field))
// // listingFormRef.value.ruleFormRef.resetFields(formInfo.value.items.map(item => item.field))
// // }
// approveType.value = 'reject';
// dialogTitle.value = '驳回流程'
// dialogVisible.value = true;
// } else {
// rejectDialogInfo.value.visible = true;
// }
// } else {
// proxy.$ElMessage.error(res.msg);
// }
// })
}
if
(
type
==
'up'
)
{
if
(
row
.
exchangeGuid
)
{
...
...
@@ -662,6 +666,7 @@ const passCommonDialogInfo = ref({
field
:
"approveSuggest"
,
clearable
:
true
,
maxlength
:
400
,
default
:
''
,
block
:
true
,
col
:
'margin_b_0'
,
}
...
...
@@ -725,6 +730,7 @@ const rejectDialogInfo = ref({
type
:
"textarea"
,
placeholder
:
"请填写驳回理由(必填)"
,
field
:
"approveSuggest"
,
default
:
''
,
clearable
:
true
,
block
:
true
,
col
:
'margin_b_0'
,
...
...
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