摘要: <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 柠檬青味 阅读(787) 评论(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 柠檬青味 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 后端返回的数据格式 转成el-tree接收的格式 // 树形结构数据转换 每个元素的 children 属性对应的 value 通过 pid 去找到,然后递归执行下去 arrToTree(arr, upperDeptId = '0') { const res = [] arr.forEach(ite 阅读全文
posted @ 2022-01-17 16:03 柠檬青味 阅读(834) 评论(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 柠檬青味 阅读(2109) 评论(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) 编辑