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
1c440476
authored
2025-12-05 11:02:02 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加policyTypeCode
1 parent
ea2e8d29
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
src/views/data_smart_contract/components/strategyTable.vue
src/views/data_smart_contract/components/strategyTable.vue
View file @
1c44047
...
...
@@ -209,6 +209,7 @@ const transferValueToNew = (val, isTemplate = false) => {
delete
childInfo
.
children
;
//删掉冗余信息,否则后续修改会覆盖正确的值
delete
childInfo
.
action
;
delete
childInfo
.
actionEnName
;
delete
childInfo
.
policyTypeCode
;
if
(
!
lastItem
||
lastItem
.
action
!=
p
.
action
)
{
detailPolicyListValue
.
push
(
Object
.
assign
({
index
:
detailPolicyListValue
.
length
+
1
,
...
...
@@ -250,6 +251,7 @@ const strategyData = computed(() => {
guid
:
sc
.
guid
,
action
:
s
.
action
,
actionEnName
:
s
.
actionEnName
,
policyTypeCode
:
s
.
policyTypeCode
,
index
:
s
.
index
,
orderNum
:
s
.
orderNum
},
sc
));
...
...
@@ -265,8 +267,12 @@ const strategyData = computed(() => {
const
selectOperationChange
=
(
val
,
scope
)
=>
{
let
index
=
scope
.
row
.
index
;
let
sv
=
strategyValueInfo
.
value
.
find
(
s
=>
s
.
index
==
index
);
sv
&&
(
sv
.
actionEnName
=
props
.
actionOptionsList
.
find
(
o
=>
o
.
policyName
==
val
)?.
policyEnName
);
sv
&&
(
sv
.
action
=
val
);
if
(
sv
)
{
let
actionOption
=
props
.
actionOptionsList
.
find
(
o
=>
o
.
policyName
==
val
);
sv
.
actionEnName
=
actionOption
?.
policyEnName
;
sv
.
policyTypeCode
=
actionOption
?.
policyTypeCode
;
sv
.
action
=
val
;
}
}
/** 约束条件下拉框改变,带出英文名称 */
...
...
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