摘要: const compute = { // 加法运算 accAdd(arg1, arg2) { let r1; let r2; let m; let c; try { r1 = arg1.toString().split('.')[1].length; } catch (e) { r1 = 0; } 阅读全文
posted @ 2023-07-13 19:38 不服憋着 阅读(68) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="contentArea"> <div class="fileContainer" ref="fileDiv" v-if="$route.query.fileName.indexOf('docx') !== -1"></div> <div class="f 阅读全文
posted @ 2023-04-11 10:42 不服憋着 阅读(346) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_46801282/article/details/123386264 // base64数据 this.imgSrc = 'data:image/jpg;base64,' + res.payload.imageStr; 解决方案一:后端把图片 阅读全文
posted @ 2023-03-22 17:26 不服憋着 阅读(336) 评论(0) 推荐(0) 编辑
摘要: <a-table :columns="columns" :rowKey="record=>record.rowId" :data-source="data" :scroll="{x:true}" :pagination='false' 当点击按钮编辑table里面的内容时导致,高度变化,需要手动触发 阅读全文
posted @ 2022-12-09 17:42 不服憋着 阅读(991) 评论(0) 推荐(0) 编辑
摘要: tree.vue 组件 <template> <div> <div @click="getData" :style="getDetph(currentItem.level)" class="li"> <span class="icon"></span> <div contenteditable cl 阅读全文
posted @ 2022-11-15 17:10 不服憋着 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1:npm install element-plus --save 2: 组件按需引入所需插件:unplugin-auto-import 、 unplugin-vue-components 图标按需引入所需插件:unplugin-auto-import 、 unplugin-icons npm i 阅读全文
posted @ 2022-09-01 18:31 不服憋着 阅读(1566) 评论(1) 推荐(0) 编辑
摘要: export function getCurrentMenu(dataList, roleList){ let menu = dataList.filter(item =>{ console.log(roleList.indexOf(item.name) !== -1) if(roleList.in 阅读全文
posted @ 2022-08-03 19:20 不服憋着 阅读(107) 评论(0) 推荐(0) 编辑
摘要: export const isIdCard = card => { // 身份证号 if (!card) return true let num = card.toUpperCase() // 身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X 阅读全文
posted @ 2022-07-20 15:52 不服憋着 阅读(555) 评论(0) 推荐(0) 编辑
摘要: FileDownload(this.upStandFileId) .then((res) => { // 预览文件 const binaryData = [res.data]; const pdfUrl = window.URL.createObjectURL( new Blob(binaryDat 阅读全文
posted @ 2022-07-19 23:21 不服憋着 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 1:Sansnn-uQRCode 导入插件(生成二维码) 2:弹窗展示海报内容 3:createCanvasContext 绘制canvas海报 4:canvasToTempFilePath (canvas转成图片文件) <template> <view class="" v-if="isPaper 阅读全文
posted @ 2022-07-08 15:34 不服憋着 阅读(695) 评论(0) 推荐(0) 编辑