会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
紫诺花开
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
26
下一页
2021年6月9日
后台报错"Optional int parameter 'page' is present but cannot be translated into a null value due to being declared as a primitive type"
摘要: 前端传分页参数时候,后端报错,提示 存在可选int参数'page',但由于被声明为基元类型,因此无法转换为null值 原因是后端获取前端传的参数接收给错了,改成@PathVariable接收即可 两者区别: @RequestParam 和 @PathVariable 注解是用于从 request 中
阅读全文
posted @ 2021-06-09 10:22 紫诺花开
阅读(6197)
评论(0)
推荐(0)
2021年6月6日
ant design vue中table动态合并列
摘要: 需求:查看详情中的表格模板,第一列需要合并。 <!-- 表格 --> <a-table :columns="columns2" :data-source="form1.prePlanProjectAppends" bordered rowKey="" style="margin-top: 20px"
阅读全文
posted @ 2021-06-06 22:06 紫诺花开
阅读(3560)
评论(0)
推荐(0)
2021年5月23日
vuex数据持久化 - vuex-persistedstate插件
摘要: 借助插件来解决vuex页面刷新后数据丢失的问题。 安装插件 npm install vuex-persistedstate --save 配置使用(默认存储到localStorage) import createPersistedState from "vuex-persistedstate" co
阅读全文
posted @ 2021-05-23 16:53 紫诺花开
阅读(211)
评论(0)
推荐(0)
2021年5月20日
ant design vue中使用TreeSelect懒加载
摘要: 项目中使用下拉机构懒加载,tree Select控件。 <a-tree-select v-model="form1.constructionCompany" style="width: 100%" :dropdownStyle="{ maxHeight: '400px', overflow: 'au
阅读全文
posted @ 2021-05-20 19:54 紫诺花开
阅读(3952)
评论(0)
推荐(0)
2021年5月10日
vue报错You are using the runtime-only build of Vue where the template compiler
摘要: 使用ant design vue的单元格编辑时候,报以下错误 (项目用的的是vue-cli3.0) 网上搜索发现这跟vue的构建版本有关 在项目配置的时候,默认 npm 包导出的是运行时构建,即 runtime 版本,不支持编译 template 模板 vue 在初始化项目配置的时候,有两个运行环境
阅读全文
posted @ 2021-05-10 09:35 紫诺花开
阅读(525)
评论(0)
推荐(0)
2021年5月7日
ant design vue中表格自带分页
摘要: ant design vue中表格里面自带分页,目前使用的是远程加载数据的形式。 需要注意的是一定要设置total <a-table :columns="columns" :data-source="tableData" :row-key="record => record.id" :paginat
阅读全文
posted @ 2021-05-07 11:39 紫诺花开
阅读(3976)
评论(0)
推荐(0)
2021年4月29日
ant desgin vue中table复选框根据状态disabled置灰
摘要: 当状态为1或者2的时候,就不能再发起流程,需要置灰复选框 <a-table :columns="columns" :data-source="tableData" :row-key="(record) => record.id" :pagination="pagination" :loading="
阅读全文
posted @ 2021-04-29 15:10 紫诺花开
阅读(3858)
评论(0)
推荐(1)
2021年4月8日
ant design vue 中tree实现单选
摘要: 需求:发起会签时候,会签人是多人,会签审核是单人。
阅读全文
posted @ 2021-04-08 20:03 紫诺花开
阅读(2493)
评论(1)
推荐(0)
2021年4月4日
[antdv: DatePicker] `value` provides invalidate moment time. If you want to set empty value, use `null` instead.
摘要: 使用ant design vue日期选择器报错。 原因:这里通过moment.format后的时间是一个string类型,而ant design vue datepicker 默认是个moment 所以会报错 解决:将v-model中的时间转化为moment形式 <a-date-picker sty
阅读全文
posted @ 2021-04-04 17:28 紫诺花开
阅读(9667)
评论(0)
推荐(0)
2021年3月27日
ant design vue 日期选择器只选择年份
摘要: <a-form-model :model="form" :label-col="labelCol" :wrapper-col="wrapperCol"> <a-form-model-item label="年度/季度" > <a-date-picker mode="year" placeholder
阅读全文
posted @ 2021-03-27 17:25 紫诺花开
阅读(6576)
评论(0)
推荐(3)
上一页
1
2
3
4
5
6
7
8
9
···
26
下一页
公告