
前端
小年年年~~~
System.out.println("hello world");
展开
-
2021-10-24
el table 后端返回数字,前端对应显示汉字ant日期选择(a-date-picker),限制不能选择今天之前或之后的日期直接上代码当为大于号“>”时,功能是不能选择今天以后的日期当为小于号“<”时,功能是不能选择今天以前的日期直接上代码限制的参数是disabledDate然后在methods中添加disableDate方法在这里插入图片描述当为大于号“>”时,功能是不能选择今天以后的日期disabledDate(current) {return current原创 2021-10-24 23:23:26 · 110 阅读 · 0 评论 -
el table 后端返回数字,前端对应显示汉字
el table 后端返回数字,前端对应显示汉字效果展示没有转换之前的代码转换之后的代码在el-table-colum中添加 <template slot-scope="scope"> <span>{{one[scope.row.cost_categories1]}}</span> ...原创 2020-04-29 11:20:19 · 2185 阅读 · 7 评论 -
antd table按表格里的日期去排序
表格内容根据票据日期升序(这里是已经排序后的效果)上代码代码中data的内容如下根据paper_date排序,因为目前这种格式不支持比较,需要先转换成时间戳new Date(aTimeString).getTime()之后再用装换后的时间戳去比较,比较用到的函数是 .sort,一下是用来比较的代码data.sort(function(a, b) { ...原创 2020-04-15 17:35:57 · 3687 阅读 · 4 评论 -
ant日期选择(a-date-picker),限制不能选择今天之前或之后的日期
ant日期选择(a-date-picker),限制不能选择今天之前或之后的日期直接上代码当为大于号“>”时,功能是不能选择今天以后的日期当为小于号“<”时,功能是不能选择今天以前的日期直接上代码限制的参数是disabledDate <a-date-picker style="width: 200px" allowClear ...原创 2020-04-03 09:50:32 · 10618 阅读 · 12 评论 -
在ant table组件中使用customRender,提示找不到数组,错误处理
在ant table组件中使用customRender,提示找不到数组,错误处理错误代码图片解决方法方法一方法二错误代码图片错误原因typearr是vue中的数据,上面数组是在外层script,所以到不到typearr。解决方法方法一把typearr写在< script > 里面方法二使用function函数function(字段名){ return 数组[字段...原创 2020-04-01 23:18:27 · 6651 阅读 · 4 评论