09 2020 档案

摘要:今天需要将一个对象push到一个对象数组中 const tableColumns = [ { title: '级别', dataIndex: 'VIP', width: 200 }, { title: '比例', dataIndex: 'FEE' }, ]; const operationColum 阅读全文
posted @ 2020-09-30 10:42 無玑小姐 阅读(3647) 评论(0) 推荐(0)
摘要:在form中使用{...getFieldProps('TEMP_NAME', {initialValue: formData.detailCurrentData.TEMP_NAME}) }设置初始值和获取参数值 结果写的时候粗心把initialValue写成了initValue,结果初始值怎么都显示 阅读全文
posted @ 2020-09-23 11:42 無玑小姐 阅读(482) 评论(0) 推荐(0)
摘要:npm 1、npm修改全局配置 npm config set prefix "D:\nodejs\node_global" npm config set cache "D:\nodejs\node_cache" 2、npm获取全局安装的默认目录 npm config get prefix 3、npm 阅读全文
posted @ 2020-09-22 15:37 無玑小姐 阅读(1261) 评论(0) 推荐(0)
摘要:一、比较两个字符串格式的日期 思路:先得到两个字符串格式的日期,之后利用Date.parse()方法把这些字符串日期转成时间戳(实际上就是计算出从1970年00:00:00到目前时间日期的毫秒数),然后再比较两个时间戳的大小,就能判断日期大小。 1、得到标准的字符串格式的日期 一般我们的字符串格式的 阅读全文
posted @ 2020-09-22 15:28 無玑小姐 阅读(27361) 评论(0) 推荐(3)
摘要:查询总数没有值时报错 这个时候需要讲dao层接口的返回数据类型改成Integer就好了 阅读全文
posted @ 2020-09-21 09:31 無玑小姐 阅读(4497) 评论(0) 推荐(0)
摘要:有两种菜单格式,一种是就只有一层,一种是有多层的 一、单层的菜单 首先在pages目录下新建一个文件目录 然后在config.js中进行配置 { name: 'new_test', icon: 'table', path: '/new_test', component: './TestRoute/t 阅读全文
posted @ 2020-09-18 16:11 無玑小姐 阅读(3283) 评论(0) 推荐(1)
摘要:按照官网入门使用的介绍创建ant design pro项目,结果报错(图片是网上找的) 在网上找到两种解决办法 第一种,比较常见的解决办法,参考:https://www.pianshen.com/article/63631726630/ 打开 D:\node\node_global\bin目录,里面 阅读全文
posted @ 2020-09-17 16:27 無玑小姐 阅读(3805) 评论(0) 推荐(1)
摘要:要求:每次打开修改弹窗都根据该条数据的ID发请求获取数据渲染表格 解决办法:给Modal添加key,每次弹出的时候 改变key的值,保证每次key的值不同 代码: 在state中设定一个初始值,并在Modal中给模态框设置key constructor(props) { super(props); 阅读全文
posted @ 2020-09-16 10:36 無玑小姐 阅读(7249) 评论(0) 推荐(2)
摘要:一个修改功能,点击确定调用回调函数往后台发请求,因为想加一个确定按钮的loading效果 原来的代码 //模态框确认点击事件,修改子页面props valid状态,触发子页面执行回调 handleModalOk() { this.setState({ modelIsValid: true, }, ( 阅读全文
posted @ 2020-09-11 10:36 無玑小姐 阅读(1121) 评论(0) 推荐(0)
摘要:直接上代码 public class TestRegex { public static void main(String[] args){ String a = "^(?!^$)([a-zA-Z0-9]{6,})$"; Pattern pattern2 = Pattern.compile(a); 阅读全文
posted @ 2020-09-09 15:48 無玑小姐 阅读(1922) 评论(0) 推荐(0)
摘要:1,需要安装nodejs,并且npm 版本需要大于 3.0 我的已经安装过了,检查一下版本 如果没有安装或者版本低参考这两个文章 https://www.runoob.com/vue2/vue-install.html https://www.jianshu.com/p/02b12c600c7b 2 阅读全文
posted @ 2020-09-04 11:35 無玑小姐 阅读(262) 评论(0) 推荐(0)