- 博客(7)
- 收藏
- 关注
原创 post 下载文件
download(params,filename){ showdownLoading() let tooldata = {'toolsID': params, 'token': this.token, 'sname': this.$getCode(this.sname)} this.$http.post('http://127.0.0.1:5000/down_tools', tooldata,{responseType: 'blob'}).then((respon...
2021-03-18 17:42:13
172
原创 纯前端csv导出
vue <el-button size="small" style="margin-left:30px" @click="exportPathMethod" type="primary" >样例下载</el-button> js exportPathMethod() { /* *注:csv文件:","逗号换列,\n换行,\t防止excel将长数字变科学计算法等样式 */ //
2021-03-18 17:32:55
224
原创 vue+ts Computed property “XX“ was assigned to but it has no setter.报错
vue+ts Computed property “XX” was assigned to but it has no setter.报错 .vue 文件 get custom_field() { return this.$store.state.vuexlist.custom_field } set custom_field(value) { this.$store.commit('vuexlist/setcustom_field', value) } action.ts
2021-03-18 10:15:57
395
原创 element-ui table type=“expand“ 无内容时,不显示图标
table的表头中添加 <el-table :row-class-name="getRowClass"></el-table> js中添加 // 表格详情没有内容隐藏箭头 getRowClass(row) { if(row.row.detail.length === 0 || row.row.detail === undefined){ // 即该行没有子元素时,添加row-expand-cover类 return 'row-expand-cov
2020-08-03 10:35:48
2243
原创 Vue 引入组件内的循环生成多个表单的验证
Vue 引入组件内的循环生成多个表单的验证 子组件~1 <template> <section> <el-form ref="domainGroup" :model="item" :rules="rules" label-position="left" label-width="200px"> <el-form-item :label="域名'+(index+1)" prop="ke
2020-07-22 17:44:26
1180
原创 Vue的自定义验证
Vue的自定义验证 文本域多IP或多域名,以*开头,以分号分隔 要记得写最后的 callback() var validTextarea = (rule, value, callback) => { var pattern = /^\*((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/ //IP的验证 var urlReg = /^\*((https|http|ftp|rt
2020-07-22 15:57:49
363
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人