- 博客(17)
- 收藏
- 关注
原创 获取二进制流加载验证码
queryImg = () => { const { dispatch } = this.props; dispatch({ type: 'login/captchaImage', }).then(res =>{ if(res){ this.preView(res); } }) }; preV...
2020-01-09 14:21:05
331
原创 ant 编辑回显
编辑原理:修改时触发接口,将数据存入model层并输出使用mapPropsToFields**model层**export default { namespace: "addperson", state: { dict: { dictName: undefined, dictId: undefined, dictType: undefi...
2020-01-09 14:20:07
589
原创 ant 把数据写在model层
Model层export default { namespace: 'Statemanagement', state: { data:[], pagination: { pageSize: 10, pageSizeOptions:["10"], showSizeChanger:...
2019-12-16 17:28:35
290
原创 ant desgin List实现多选
import React, { Component } from 'react';import { Row , Col , List , Checkbox } from 'antd';class Xxxxx extends Component{ constructor(props) { super(props); this.state={ checkbox:[...
2019-12-16 17:06:40
1107
原创 From表单邮箱后缀提示
内容<Col xs={8} sm={16} md={12}> <FormItem label="邮箱"> {getFieldDecorator('email',{rules: [{ required: true, message: '请填写邮箱'},{ pattern: /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)...
2019-12-16 16:19:45
383
原创 excel二进制流输出(ArrayBuffer)
ArrayBuffer主要将二进制码转译为二进制数组 const uInt8Array = new Uint8Array(content); //先将返回的二进制数组转化为js的二进制数组 const blob=new Blob([uInt8Array],{type:"application/vnd.ms-excel"});//然后创建blob对象,文件类型设置为excel的类型...
2019-12-11 13:51:29
1307
原创 ant 二进制流 excel格式 输出 兼容性IE
derive=()=>{ const {gain} = this.state; this.props.dispatch({ type:'Statemanagement/', payload:{ gain } }).then((res)=>{ console.log(res,"res") ...
2019-12-11 13:43:49
229
原创 ant table 隔行变色
jsimport styles from '/Task.less';........................................... <Table rowKey={(item, index) => index} columns={columns} dataSource=...
2019-12-09 15:25:00
2022
原创 密码格式 密码强度 正则表达式
密码长度8——16个字符,且区分大小写;不能使用空格、中文密码需要使用大写字母、小写字母、数字及特殊符号中至少三种的组合change = (e) => {const Epwd = e.target.value;const chinese = /[\u4E00-\u9FA5\uF900-\uFA2D\u0020]/; // 包含大小写字母、数字、特殊字符至少3个组合大于8个字符c...
2019-12-09 15:20:42
775
原创 git 关联远程库
1.首先创建本地分支:git branch lcl2.查看本地分支情况:git branch -vv3.切换到lcl分支上:git checkout lcl (此时你仅仅是创建了本地的分支,远程库并没有,而且也没有关联)4.在本地分支 创建远程分支并关联:git push -u origin lcl(lcl是你创建的远程分支的名字,也可以是ljj,随意)...
2019-12-09 15:19:33
162
原创 git更改目标的远程库
git branch -u origin/lcl zcf 更改目标的远程库git branch -vv可以查看本地分支与远程分支的关联情况git branch -u origin/(远程库) (本地分支名)执行之后本地分支对应的远程库名字,会被更改为origin/(远程库)中远程库的名字。完成关联更改。...
2019-11-28 10:51:15
321
原创 ant notification的使用
import { Button, notification } from 'antd';queryDemanDetail_two = () => { const openNotificationWithIcon = type => { switch (type) { case 'success': notification[type](...
2019-11-25 17:54:28
1325
原创 调用接口实现Table 增删改查 并且动态适内容
主页import React from 'react';import { connect } from 'dva';import { Breadcrumb, Table, Divider, Row, Col, DatePicker, Button, Form ,Popconfirm} from 'antd';import router from 'umi/router';import m...
2019-11-07 13:38:02
757
原创 ant design pro调接口
View层<===Model层<===Api 接口层<===反向代理**View层**使用connect链接model层调用dispatch获取 add 下异步Kan使用payload传递请求参数then会返回你所请求的值使用Setstate放入state在需要的地方遍历输出import React from 'react';import { Bread...
2019-11-06 17:50:35
2346
原创 Ant design pro 中使用Table实现内容为零时动态翻页功能
Ant design pro 中使用Table实现翻页功能 实现增删改查 撤回viwe层import React from 'react';import { connect } from 'dva';import { Breadcrumb, Table, Divider, Row, Col, DatePicker, Button, Form ,Popconfirm} from 'antd'...
2019-11-06 17:00:58
724
原创 Ant design获取form表单中数据
import React from 'react';import { Breadcrumb, Form, DatePicker, Row, Col, Select, Button, Table } from 'antd';;import { connect } from 'dva';import moment from 'moment';const { Option } = Select...
2019-11-06 16:20:20
14867
原创 Ant design 选定年度
import React from 'react';import { Form, DatePicker, Row, Col, Button } from 'antd';import { connect } from 'dva';import moment from 'moment';@Form.create()@connect(({ add }) => ({ add}...
2019-11-06 16:09:27
525
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人