摘要: exportByIds({ ids: this.multipleSelection }).then((response) => { const blob = new Blob([response]) const downloadElement = document.createElement('a' 阅读全文
posted @ 2022-02-22 08:50 柠檬青味 阅读(1013) 评论(0) 推荐(0) 编辑
摘要: 上传文件放在public文件夹下 <el-button type="primary" size="medium" icon="el-icon-upload2" style="margin-left: 20px;" @click.native="handleUpload('student')">批量导 阅读全文
posted @ 2022-02-07 11:08 柠檬青味 阅读(413) 评论(0) 推荐(0) 编辑
摘要: var date = new Date(); date .getYear(); //获取当前年份(2位) date .getFullYear(); //获取完整的年份(4位) date .getMonth(); //获取当前月份(0-11,0代表1月) date .getDate(); //获取当前 阅读全文
posted @ 2022-01-26 17:04 柠檬青味 阅读(12255) 评论(0) 推荐(0) 编辑
摘要: <el-input v-model="pitem.cheapPayMoney" :placeholder="`最大输入金额为${pitem.maxcheapPayMoney}元`" class="table-input" type="number" step="0.01" onkeyup="if(i 阅读全文
posted @ 2022-01-17 16:31 柠檬青味 阅读(765) 评论(0) 推荐(0) 编辑
摘要: // list数组分组 根据名字 const groupYear = this.groupBy(list, (item) => { return item.year// 按照year进行分组 }) groupBy(list, fn) { const groups = {} list.forEach( 阅读全文
posted @ 2022-01-17 16:06 柠檬青味 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 后端返回的数据格式 转成el-tree接收的格式 // 树形结构数据转换 每个元素的 children 属性对应的 value 通过 pid 去找到,然后递归执行下去 arrToTree(arr, upperDeptId = '0') { const res = [] arr.forEach(ite 阅读全文
posted @ 2022-01-17 16:03 柠檬青味 阅读(804) 评论(0) 推荐(0) 编辑
摘要: //a.vue页面调用<user-detail ref="detailRef" :detail-visible="detailVisible" @changeShow="showDetail" /> //引入import UserDetail from './detail.vue' componen 阅读全文
posted @ 2022-01-17 15:59 柠檬青味 阅读(45) 评论(0) 推荐(0) 编辑
摘要: <el-table v-loading="loading" highlight-current-row :data="tableData" border style="width: 100%" @current-change="handleSelectChange"> <el-table-colum 阅读全文
posted @ 2022-01-17 15:54 柠檬青味 阅读(2094) 评论(0) 推荐(0) 编辑
摘要: this.ruleForm = Object.assign({},this.ruleForm,row) this.ruleForm = Object.assign([],this.ruleForm,row) 阅读全文
posted @ 2022-01-17 15:51 柠檬青味 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 父组件: <template> <comfirm-charge :is-active="drawerVisible" :userid="userId" :sid="sid" :sname="sname" @Visible="showDrawerChange" @comfirm="resetForm" 阅读全文
posted @ 2022-01-05 15:08 柠檬青味 阅读(2823) 评论(0) 推荐(0) 编辑