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
76265492
authored
2025-12-05 09:55:49 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
合约策略选择产品字段
1 parent
fc69e7b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
src/api/modules/dataSmartContract.ts
src/views/data_smart_contract/smartContractCreate.vue
src/views/data_smart_contract/smartContractDetail.vue
src/api/modules/dataSmartContract.ts
View file @
7626549
...
...
@@ -155,8 +155,8 @@ export const getContractDataProduct = (tenantGuid) => request({
})
/** 获取下拉数据产品列表的去重字段 */
export
const
getDamFieldsByProductGuid
=
(
productGuid
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_API_NEW_PORTAL
}
/
dam-catalog-table/field-by-dam-guid?damGuid=
${
productGuid
}
`
,
export
const
getDamFieldsByProductGuid
=
(
productGuid
,
isTds
=
'N'
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_API_NEW_PORTAL
}
/
connector-invoke/field-by-dam-guid?damGuid=
${
productGuid
}
&isTds=
${
isTds
}
`
,
method
:
'post'
})
...
...
src/views/data_smart_contract/smartContractCreate.vue
View file @
7626549
...
...
@@ -310,7 +310,7 @@ const hanldeTableSelectChange = (val, scope, item) => {
scope
.
row
.
dataProductTypeName
=
productItem
?.
productTypeName
;
/** 选择了产品,需要重新查询去重字段 */
if
(
productItem
?.
productGuid
)
{
getDamFieldsByProductGuid
(
productItem
?.
productGuid
).
then
((
res
:
any
)
=>
{
getDamFieldsByProductGuid
(
productItem
?.
productGuid
,
isDataUse
.
value
?
'Y'
:
'N'
).
then
((
res
:
any
)
=>
{
if
(
res
?.
code
==
proxy
.
$passCode
)
{
productFieldList
.
value
=
res
.
data
||
initStrategyData
.
value
;
}
else
{
...
...
@@ -702,7 +702,7 @@ onBeforeMount(() => {
productTableInfo
.
value
.
data
=
productData
.
value
;
let
productGuid
=
productData
.
value
?.[
0
]?.
dataProductGuid
;
if
(
productGuid
)
{
getDamFieldsByProductGuid
(
productGuid
).
then
((
res
:
any
)
=>
{
getDamFieldsByProductGuid
(
productGuid
,
isDataUse
.
value
?
'Y'
:
'N'
).
then
((
res
:
any
)
=>
{
if
(
res
?.
code
==
proxy
.
$passCode
)
{
productFieldList
.
value
=
res
.
data
||
initProductFieldValue
.
value
;
}
else
{
...
...
src/views/data_smart_contract/smartContractDetail.vue
View file @
7626549
...
...
@@ -27,7 +27,7 @@ import {
import
{
getParamsList
,
}
from
"@/api/modules/queryService"
;
import
{
commonPageConfig
,
TableColumnWidth
}
from
"@/utils/enum"
;
import
{
commonPageConfig
,
TableColumnWidth
,
USERROLE
}
from
"@/utils/enum"
;
import
StrategyTable
from
'./components/strategyTable.vue'
;
import
{
onUploadFilePreview
,
onUploadFileDownload
}
from
'@/api/modules/common'
;
import
{
useValidator
}
from
"@/hooks/useValidator"
;
...
...
@@ -63,6 +63,10 @@ const detailInfo: any = ref({});
const
detailType
=
ref
(
route
.
query
.
type
);
//为null表示第一步查看,其余协整和签署等需要传递type
const
isDetail
=
ref
(
route
.
query
.
isDetail
==
'Y'
);
const
isDataUse
=
computed
(()
=>
{
return
localStorage
.
getItem
(
'userRole'
)
==
USERROLE
.
USE
;
})
const
toolBtns
:
any
=
computed
(()
=>
{
let
btnsArr
:
any
=
[{
label
:
isDetail
.
value
?
"关闭"
:
'取消'
,
value
:
"cancel"
,
plain
:
true
...
...
@@ -1061,7 +1065,7 @@ onBeforeMount(() => {
productTableInfo
.
value
.
data
=
detailInfo
.
value
.
contractSubjects
||
[];
let
productGuid
=
productTableInfo
.
value
.
data
?.[
0
]?.
dataProductGuid
;
if
(
productGuid
)
{
getDamFieldsByProductGuid
(
productGuid
).
then
((
res
:
any
)
=>
{
getDamFieldsByProductGuid
(
productGuid
,
isDataUse
.
value
?
'Y'
:
'N'
).
then
((
res
:
any
)
=>
{
if
(
res
?.
code
==
proxy
.
$passCode
)
{
productFieldList
.
value
=
res
.
data
||
initProductFieldValue
.
value
;
}
else
{
...
...
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