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
df50318c
authored
2025-12-05 13:50:56 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
解决数据字段策略传参问题
1 parent
564e281c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
src/views/data_smart_contract/smartContractCreate.vue
src/views/data_smart_contract/smartContractDetail.vue
src/views/data_smart_contract/smartContractCreate.vue
View file @
df50318
...
...
@@ -463,7 +463,7 @@ const getSubmitInfo = () => {
}];
params
.
policys
=
strategyTableRef
.
value
.
strategyData
?.
map
((
d
,
index
)
=>
{
let
v
=
Object
.
assign
({},
d
,
{
orderNum
:
index
+
1
,
});
if
(
d
.
constraintName
==
'dataField'
&&
d
.
constraintFieldValue
?.
length
)
{
if
(
d
.
constraint
En
Name
==
'dataField'
&&
d
.
constraintFieldValue
?.
length
)
{
v
.
constraintValue
=
d
.
constraintFieldValue
.
join
(
','
);
v
.
additionValue
=
d
.
constraintFieldValue
?.
map
(
dv
=>
{
return
{
...
...
src/views/data_smart_contract/smartContractDetail.vue
View file @
df50318
...
...
@@ -40,6 +40,7 @@ import showFile from "./components/showFile.vue";
import
html2pdf
from
'html2pdf.js'
;
import
{
getPathUrl
,
getUpFileSignByUrl
,
obsUploadRequest
}
from
"@/api/modules/obsService"
;
import
{
ElMessage
}
from
"element-plus"
;
import
{
isEqual
}
from
"lodash-es"
;
const
{
required
,
requiredFiles
}
=
useValidator
();
const
userStore
=
useUserStore
();
...
...
@@ -129,7 +130,7 @@ const btnHandles = ref({
contractGuid
:
route
.
query
.
guid
,
policys
:
strategyTableEditRef
.
value
.
strategyData
?.
map
((
d
,
index
)
=>
{
let
v
=
Object
.
assign
({},
d
,
{
orderNum
:
index
+
1
,
});
if
(
d
.
constraintName
==
'dataField'
&&
d
.
constraintFieldValue
?.
length
)
{
if
(
d
.
constraint
En
Name
==
'dataField'
&&
d
.
constraintFieldValue
?.
length
)
{
v
.
constraintValue
=
d
.
constraintFieldValue
.
join
(
','
);
v
.
additionValue
=
d
.
constraintFieldValue
?.
map
(
dv
=>
{
return
{
...
...
@@ -462,7 +463,9 @@ const disableConfirmBtn = computed(() => {
for
(
const
newItem
of
newValue
)
{
let
oldItem
=
originValue
[
index
];
if
(
newItem
.
action
!=
oldItem
.
action
||
newItem
.
constraintEnName
!=
oldItem
.
constraintEnName
||
newItem
.
constraintOperatorCode
!=
oldItem
.
constraintOperatorCode
||
newItem
.
constraintValue
!=
oldItem
.
constraintValue
)
{
newItem
.
constraintOperatorCode
!=
oldItem
.
constraintOperatorCode
||
newItem
.
constraintValue
!=
oldItem
.
constraintValue
||
isEqual
(
newItem
.
constraintFieldValue
,
oldItem
.
constraintFieldValue
||
isEqual
(
newItem
.
constraintConnectorValue
,
oldItem
.
constraintConnectorValue
)
))
{
return
true
;
}
index
++
;
...
...
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