摘要:
Vue项目中使用el-table联动勾选,要求选中父节点,子节点table全选,选中所有子节点,对应的父节点勾选框选中,勾选全部父节点,子节点全部选中,效果如下图 el-table的展开行下的table是一个list,因此对应的ref选择用与子table同级的prodId唯一键作为ref绑定的唯一值 阅读全文
摘要:
记录一次项目中遇到的事务不生效问题: SpringBoot事务配置: 1.启动类开启事务注解 @EnableTransactionManagement 2.service 方法加上事务注解 @Transactional只会监听RuntimeException, 加上rollbackFor = Exc 阅读全文
摘要:
针对form表单的输入框单号批量查询,这里用换行符进行分割,注意v-model不要使用.trim 前端代码: <el-form-item label="SKU编码:" prop="prodNumbers"> <el-input type="textarea" :rows="4" placeholde 阅读全文
摘要:
1.通过list中的某个字段来对list分组,然后得到多组数据 Map<String, List<WmsStockRefundItem>> refundMap = itemList.stream().collect(Collectors.groupingBy(WmsStockRefundItem:: 阅读全文
摘要:
如图所示,在table表中,输入框填入后提交,校验输入框 <template> <el-form :model="request" ref="request" :rules="rules" class="demo-ruleForm"> <el-table :data="request.prodlis 阅读全文
摘要:
在vue的<el-form> 标签中,<el-form-item > required属性,会出现英文提示,这个时候需要自定义rules,写对应的需要校验的字段,如果没有使用rules定义,会提示英文提示,这个时候只需要自己写校验,然后在<el-form-item >标签上的 prop属性去掉,则英 阅读全文
摘要:
监听事件,注解监听事件,切面监听事件 阅读全文