摘要: 1、引入组件: import pwInput from '@/views/component/pwInput' 2、用法: <pwInput v-model="form.oldPwd" @validatePass='validatePassOld' :showIcon='showIcon'></pw 阅读全文
posted @ 2021-04-01 16:39 诺克萨斯小刀 阅读(311) 评论(0) 推荐(0) 编辑
摘要: <a-date-picker disabled v-decorator="['createTime',{initialValue:moment(getCurrentData(), 'YYYY-MM-DD')}]" placeholder="请选择创建时间"/> 阅读全文
posted @ 2020-05-28 15:17 诺克萨斯小刀 阅读(8086) 评论(1) 推荐(0) 编辑
摘要: <a-select placeholder="请选择性别" :value='sex' @change="handleChangeSelect"> <a-select-option value=""> 未知 </a-select-option> <a-select-option value="0"> 阅读全文
posted @ 2020-05-28 15:11 诺克萨斯小刀 阅读(1826) 评论(0) 推荐(0) 编辑
摘要: <a-form :form="form" :selfUpdate='true' @submit="handleSubmit" layout="inline" hideRequiredMark autocomplete="off"><a-form> 阅读全文
posted @ 2020-05-28 15:06 诺克萨斯小刀 阅读(2280) 评论(0) 推荐(0) 编辑
摘要: <a-form-item > <a-input placeholder="用户名" v-decorator="[ 'userName', {rules: [{ required: true, message: '请填写用户名' }],validateTrigger:'blur'}//设置此属性设置当 阅读全文
posted @ 2020-05-28 14:54 诺克萨斯小刀 阅读(1019) 评论(0) 推荐(0) 编辑
摘要: if (!!window.ActiveXObject || "ActiveXObject" in window){//判断是否为ie浏览器 window.navigator.msSaveBlob(res.data, '用户模板.xlsx')//在ie中下载可用此方法,也可用下方注释的方法,此方法可以 阅读全文
posted @ 2020-05-28 14:50 诺克萨斯小刀 阅读(2231) 评论(0) 推荐(0) 编辑
摘要: var xmlhttp;xmlhttp=new XMLHttpRequest();xmlhttp.open("GET",userUrl2 + 'user/getQrCode'+accessToken+"&name="+item.name+"&phone="+item.phoneNumber+"&co 阅读全文
posted @ 2020-04-03 11:09 诺克萨斯小刀 阅读(4419) 评论(0) 推荐(0) 编辑
摘要: // 解密 b64DecodeUnicode(str) { return decodeURIComponent(Array.prototype.map.call(atob(str), function(c) { return '%' + ('00' + c.charCodeAt(0).toStrin 阅读全文
posted @ 2020-04-03 10:54 诺克萨斯小刀 阅读(2625) 评论(0) 推荐(0) 编辑
摘要: var a = document.createElement('a'); a.download = that.billName+'.xls'; a.href = URL.createObjectURL(res.data)///解决由于数据量太大导致chrome导出出现网络错误(由于url长度限制 $ 阅读全文
posted @ 2019-08-02 17:10 诺克萨斯小刀 阅读(1701) 评论(0) 推荐(0) 编辑
摘要: this.$ajax({ method:"get", url:‘’, params:{"batchnumber":exportIndex}, responseType:"blob", transformRequest: [function (data) { that.$Spin.show({ ren 阅读全文
posted @ 2019-06-11 16:24 诺克萨斯小刀 阅读(180) 评论(1) 推荐(1) 编辑