f0dcc9c3 by lihua

添加policyTypeCode

1 parent 74105191
......@@ -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;
}
}
/** 约束条件下拉框改变,带出英文名称 */
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!