摘要: 1、赋值并保存 import { setSessionStorage } from '@/store/index' Vue.prototype.$userId = res.result.userInfo.id Vue.prototype.$userType = res.result.userInfo 阅读全文
posted @ 2023-11-24 09:30 Harrylsj 阅读(46) 评论(0) 推荐(0)
摘要: 1、参考文献:https://blog.csdn.net/qq_52855464/article/details/125996915 v-if="dataSource && dataSource.length" :defaultExpandAllRows="true" 后端返回的数据中包含child 阅读全文
posted @ 2023-11-24 09:22 Harrylsj 阅读(2064) 评论(0) 推荐(0)
摘要: 1、java后台 BeanUtils.copyProperties 不是深拷贝 要实现高性能且安全的深度克隆方法还是实现Serializable接口,多层克隆时,引用类型均要实现Serializable接口。 例如:public class BaseEntity extends BaseCreate 阅读全文
posted @ 2023-11-24 09:11 Harrylsj 阅读(24) 评论(0) 推荐(0)
摘要: 目录: 一、table表格高亮某一行 二、修改表格中的值 一、table表格高亮某一行 1.table属性 rowClassName <a-table class="alerm" size="small" ref="table" rowKey="id" :rowSelection="{selecte 阅读全文
posted @ 2022-01-24 09:36 Harrylsj 阅读(279) 评论(0) 推荐(0)
摘要: 一、跨域问题 1、新建一个处理类OptionsMethodModule,如下: namespace Boiler { public class OptionsMethodModule : IHttpModule { public OptionsMethodModule() { } public vo 阅读全文
posted @ 2021-08-16 16:09 Harrylsj 阅读(129) 评论(0) 推荐(0)
摘要: https://github.com/Harrylsj/ClassGenerate.git 阅读全文
posted @ 2021-04-24 15:28 Harrylsj 阅读(34) 评论(0) 推荐(0)
摘要: 在设计表结构时,我们首先遇到的问题就是主键设置为什么类型的。之前我用过int 也用过GUID,都不太理想: 使用int做主键的缺点 1、如果经常有合并表的操作,就可能会出现主键重复的情况。 2、使用int 数据范围有限制。如果存在大量的数据,可能会超出int 的取值范围。 3、很难处理分布式存储的数 阅读全文
posted @ 2021-04-24 12:00 Harrylsj 阅读(2076) 评论(0) 推荐(0)