1c440476 by lihua

添加policyTypeCode

1 parent ea2e8d29
...@@ -209,6 +209,7 @@ const transferValueToNew = (val, isTemplate = false) => { ...@@ -209,6 +209,7 @@ const transferValueToNew = (val, isTemplate = false) => {
209 delete childInfo.children; //删掉冗余信息,否则后续修改会覆盖正确的值 209 delete childInfo.children; //删掉冗余信息,否则后续修改会覆盖正确的值
210 delete childInfo.action; 210 delete childInfo.action;
211 delete childInfo.actionEnName; 211 delete childInfo.actionEnName;
212 delete childInfo.policyTypeCode;
212 if (!lastItem || lastItem.action != p.action) { 213 if (!lastItem || lastItem.action != p.action) {
213 detailPolicyListValue.push(Object.assign({ 214 detailPolicyListValue.push(Object.assign({
214 index: detailPolicyListValue.length + 1, 215 index: detailPolicyListValue.length + 1,
...@@ -250,6 +251,7 @@ const strategyData = computed(() => { ...@@ -250,6 +251,7 @@ const strategyData = computed(() => {
250 guid: sc.guid, 251 guid: sc.guid,
251 action: s.action, 252 action: s.action,
252 actionEnName: s.actionEnName, 253 actionEnName: s.actionEnName,
254 policyTypeCode: s.policyTypeCode,
253 index: s.index, 255 index: s.index,
254 orderNum: s.orderNum 256 orderNum: s.orderNum
255 }, sc)); 257 }, sc));
...@@ -265,8 +267,12 @@ const strategyData = computed(() => { ...@@ -265,8 +267,12 @@ const strategyData = computed(() => {
265 const selectOperationChange = (val, scope) => { 267 const selectOperationChange = (val, scope) => {
266 let index = scope.row.index; 268 let index = scope.row.index;
267 let sv = strategyValueInfo.value.find(s => s.index == index); 269 let sv = strategyValueInfo.value.find(s => s.index == index);
268 sv && (sv.actionEnName = props.actionOptionsList.find(o => o.policyName == val)?.policyEnName); 270 if (sv) {
269 sv && (sv.action = val); 271 let actionOption = props.actionOptionsList.find(o => o.policyName == val);
272 sv.actionEnName = actionOption?.policyEnName;
273 sv.policyTypeCode = actionOption?.policyTypeCode;
274 sv.action = val;
275 }
270 } 276 }
271 277
272 /** 约束条件下拉框改变,带出英文名称 */ 278 /** 约束条件下拉框改变,带出英文名称 */
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!