摘要: 搜索条件过多会导致展示的table内容行少 <template slot="searchMenu" slot-scope="scope"> <el-button @click="searchToggle">{{ searchShow ? '折叠搜索' : '展开搜索' }}</el-button> 阅读全文
posted @ 2024-12-25 14:40 LaLaLa_heng 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 表格高度自适应或者再次计算和render this.$nextTick(() => { this.$refs.crud.getTableHeight()//表格自适应 }) 阅读全文
posted @ 2024-12-23 11:10 LaLaLa_heng 阅读(4) 评论(0) 推荐(0) 编辑
摘要: AVUE select远程搜索 type: 'select', remote: true, filterable: true, dicUrl: `/system/spbm/tXxSpbm/list?pageNum=1&pageSize=10&condition={{key}}`, props: { 阅读全文
posted @ 2024-12-05 11:40 LaLaLa_heng 阅读(46) 评论(0) 推荐(0) 编辑
摘要: @change="handleChange" <avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" :cell-style="{padding:'0'}" :page.sync="page" v-mo 阅读全文
posted @ 2024-08-27 11:11 LaLaLa_heng 阅读(353) 评论(0) 推荐(0) 编辑
摘要: function baseConverter(decNumber, base) { var remStack = new Stack(), rem, baseString = '', digits = '0123456789ABCDEF'; //{6} while (decNumber > 0) { 阅读全文
posted @ 2024-01-03 10:12 LaLaLa_heng 阅读(7) 评论(0) 推荐(0) 编辑
摘要: AVUE formatter 用来格式化列内容 formatter:(val,value,label)=>{ let arr = val.invoiceType.split(','); let str = ''; for (let index = 0; index < arr.length; ind 阅读全文
posted @ 2023-12-21 16:14 LaLaLa_heng 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 判断数据格式为PDF或非 getViewImg(row.row.id).then((res) => { if(row.row.fileExtension == 'pdf') { let newBlob = new window.Blob([res.data], { type: 'applicatio 阅读全文
posted @ 2023-12-21 15:12 LaLaLa_heng 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 一、下载pdf.js文件 https://mozilla.github.io/pdf.js/getting_started/ web里边有一个viewer.html文件 此文件为展示pdf的文件 直接打开此文件不能展示 需要本地启动一个服务 可以使用 http-server -c-1 提示错误的 全 阅读全文
posted @ 2023-09-20 11:55 LaLaLa_heng 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 解码 function decode(str){ return str.replace(/\\x(\w{2})/g,function(_,$1){ return String.fromCharCode(parseInt($1,16)) });} 编码 function encode(str){ re 阅读全文
posted @ 2023-05-25 14:42 LaLaLa_heng 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 给元素添加样式margin-left:auto; 阅读全文
posted @ 2023-04-17 18:49 LaLaLa_heng 阅读(143) 评论(0) 推荐(0) 编辑