news 2026/7/4 2:51:46

记录holdAction

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
记录holdAction

数据字典1打开(值为'1'),数据字典2打开(值为'1'),将toSpc开关关闭,holdAction的值要设置false;这条就不对了,

数据字典1打开(值为'1'),数据字典2打开(值为'1'),toSpc开关打开,holdAction的值应该是null;
数据字典1打开(值为'1'),数据字典2打开(值为'1'),toSpc开关关闭,holdAction的值应该是false;
数据字典1打开(值为'1'),数据字典2打开(值为'0'),toSpc开关关闭,holdAction的值原来是什么就是什么;
数据字典1打开(值为'1'),数据字典2打开(值为'0'),toSpc开关打开,holdAction的值应该是null;
数据字典1打开(值为'0'),holdAction的值原来是什么就是什么;

声明:数据字典1打开(值为'1'),toSpc开关打开,我会在页面初始化的时候将holdAction值设为 false

一、数据字典1打开(值为'1'),数据字典2打开(值为'1')
数据字典1打开(值为'1'),数据字典2打开(值为'1'),toSpc开关打开,初始holdAction值为 false ,将toSpc开关关闭,holdAction的值应为 false ;
数据字典1打开(值为'1'),数据字典2打开(值为'1'),toSpc开关关闭,初始holdAction值为 null ,将toSpc开关打开,holdAction的值应为null;
数据字典1打开(值为'1'),数据字典2打开(值为'1'),toSpc开关关闭,初始holdAction值为 true ,将toSpc开关打开,holdAction的值应为null;
数据字典1打开(值为'1'),数据字典2打开(值为'1'),toSpc开关关闭,初始holdAction值为 false ,将toSpc开关打开,holdAction的值应为null;
数据字典1打开(值为'1'),数据字典2打开(值为'1'),toSpc开关打开,初始holdAction值为 false ,将toSpc开关关闭,holdAction的值应为 false ;再将toSpc开关打开,holdAction的值应为 null ;
数据字典1打开(值为'1'),数据字典2打开(值为'1'),toSpc开关关闭,初始holdAction值为 null ,将toSpc开关打开,holdAction的值应为 null ;再将toSpc开关关闭,holdAction的值应为 false ;
数据字典1打开(值为'1'),数据字典2打开(值为'1'),toSpc开关关闭,初始holdAction值为 true ,将toSpc开关打开,holdAction的值应为 null ;再将toSpc开关关闭,holdAction的值应为 false ;
数据字典1打开(值为'1'),数据字典2打开(值为'1'),toSpc开关关闭,初始holdAction值为 false ,将toSpc开关打开,holdAction的值应为 null ;再将toSpc开关关闭,holdAction的值应为 false ;

二、数据字典1打开(值为'1'),数据字典2关闭(值为其他),holdAction初始有值(true或false)
数据字典1打开(值为'1'),数据字典2关闭(值为其他),toSpc开关打开,初始holdAction有值(false),将toSpc开关关闭,holdAction的值应为false;
数据字典1打开(值为'1'),数据字典2关闭(值为其他),toSpc开关关闭,初始holdAction有值(true),将toSpc开关打开,holdAction的值应为null;
数据字典1打开(值为'1'),数据字典2关闭(值为其他),toSpc开关关闭,初始holdAction有值(false),将toSpc开关打开,holdAction的值应为null;
数据字典1打开(值为'1'),数据字典2关闭(值为其他),toSpc开关打开,初始holdAction有值(false),将toSpc开关关闭,holdAction的值应为false;再将toSpc开关打开,holdAction的值应为null;
数据字典1打开(值为'1'),数据字典2关闭(值为其他),toSpc开关关闭,初始holdAction有值(true),将toSpc开关打开,holdAction的值应为null;再将toSpc开关关闭,holdAction的值应为null;
数据字典1打开(值为'1'),数据字典2关闭(值为其他),toSpc开关关闭,初始holdAction有值(false),将toSpc开关打开,holdAction的值应为null;再将toSpc开关关闭,holdAction的值应为null;

三、数据字典1打开(值为'1'),数据字典2关闭(值为其他),holdAction初始无值(null,字段已隐藏)
数据字典1打开(值为'1'),数据字典2关闭(值为其他),toSpc开关打开,初始holdAction无值(null),将toSpc开关关闭,holdAction的值应为null;
数据字典1打开(值为'1'),数据字典2关闭(值为其他),toSpc开关关闭,初始holdAction无值(null),将toSpc开关打开,holdAction的值应为null;
数据字典1打开(值为'1'),数据字典2关闭(值为其他),toSpc开关打开,初始holdAction无值(null),将toSpc开关关闭,holdAction的值应为null;再将toSpc开关打开,holdAction的值应为null;
数据字典1打开(值为'1'),数据字典2关闭(值为其他),toSpc开关关闭,初始holdAction无值(null),将toSpc开关打开,holdAction的值应为null;再将toSpc开关关闭,holdAction的值应为null;


四、数据字典1关闭(值为其他),总的来说,数据字典1关闭的时候,toSpc开关不联动更新holdAction值
数据字典1关闭(值为其他),toSpc开关打开,初始holdAction值为null,将toSpc开关关闭,holdAction的值应为null;
数据字典1关闭(值为其他),toSpc开关打开,初始holdAction值为true,将toSpc开关关闭,holdAction的值应为true;
数据字典1关闭(值为其他),toSpc开关打开,初始holdAction值为false,将toSpc开关关闭,holdAction的值应为false;
数据字典1关闭(值为其他),toSpc开关关闭,初始holdAction值为null,将toSpc开关打开,holdAction的值应为null;
数据字典1关闭(值为其他),toSpc开关关闭,初始holdAction值为true,将toSpc开关打开,holdAction的值应为true;
数据字典1关闭(值为其他),toSpc开关关闭,初始holdAction值为false,将toSpc开关打开,holdAction的值应为false;
数据字典1关闭(值为其他),toSpc开关打开,初始holdAction值为null,将toSpc开关关闭,holdAction的值应为null;再将toSpc开关打开,holdAction的值应为null;
数据字典1关闭(值为其他),toSpc开关打开,初始holdAction值为true,将toSpc开关关闭,holdAction的值应为true;再将toSpc开关打开,holdAction的值应为true;
数据字典1关闭(值为其他),toSpc开关打开,初始holdAction值为false,将toSpc开关关闭,holdAction的值应为false;再将toSpc开关打开,holdAction的值应为false;
数据字典1关闭(值为其他),toSpc开关关闭,初始holdAction值为null,将toSpc开关打开,holdAction的值应为null;再将toSpc开关关闭,holdAction的值应为null;
数据字典1关闭(值为其他),toSpc开关关闭,初始holdAction值为true,将toSpc开关打开,holdAction的值应为true;再将toSpc开关关闭,holdAction的值应为true;
数据字典1关闭(值为其他),toSpc开关关闭,初始holdAction值为false,将toSpc开关打开,holdAction的值应为false;再将toSpc开关关闭,holdAction的值应为false;

// 页面初始化
const initPage = () => {
if (ext1 === '1' && toSpc === true) {
holdAction.value = false;
}
};

// toSpc 切换事件
const onToSpcChange = (value: boolean) => {
if (ext1 !== '1') return;

if (value === true) {
// 打开 toSpc → 设为 null
holdAction.value = null;
} else if (ext3 === '1') {
// 关闭 toSpc,且 ext3='1' → 设为 false
holdAction.value = false;
}
// 其他情况:ext3≠'1' 时关闭 toSpc,不联动
};

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/7/4 2:50:59

JMeter响应时间图实战:从性能拐点到缓存优化

1. 项目概述:从“慕慕生鲜”搜索接口压测说起 最近在给一个生鲜电商项目“慕慕生鲜”做性能优化,核心目标之一就是评估其商品搜索接口在高并发下的表现。这个场景非常典型:用户在下单高峰期,会频繁使用搜索框查找商品,…

作者头像 李华
网站建设 2026/7/4 2:49:56

SpringBoot+Vue实现JWT安全注销方案

1. 项目背景与核心需求前后端分离架构下的用户会话管理一直是开发中的关键环节。在SpringBootVue技术栈中,登录认证通常采用JWT或Session机制,而注销功能看似简单,实则涉及前后端协同、安全防护和状态同步等多方面考量。我最近在重构一个企业…

作者头像 李华
网站建设 2026/7/4 2:46:21

Linux文本处理三剑客:grep、wc与管道符高效组合

1. Linux文本处理三剑客:grep、wc与管道符的黄金组合刚接触Linux那会儿,我最头疼的就是在成堆的日志文件里找特定信息。直到师傅扔给我三个命令:"用grep过滤内容,拿wc统计行数,中间用管道符串起来"。这个组合…

作者头像 李华
网站建设 2026/7/4 2:43:18

嘉立创PCB设计与打样全攻略:从入门到实战

1. 嘉立创PCB设计入门指南作为一名电子工程师,第一次接触嘉立创PCB打样服务时,那种既兴奋又忐忑的心情至今记忆犹新。记得当时为了毕业设计,需要在两周内完成一块四层板的制作,传统PCB厂商的报价和交期让我望而却步。偶然发现嘉立…

作者头像 李华
网站建设 2026/7/4 2:43:14

不贪捷径,深耕细水长流的同城烟火客源

很多实体店主开店,都偏爱快速见效的付费流量。渴望投入即有回报,期待快速看到业绩增长,这本无可厚非。可我们常常在追逐捷径的路上,弄丢了最珍贵的细水长流。杭州这座城市的烟火里,藏着无数自主寻觅服务的同城客源。他…

作者头像 李华