摘要: 方法一: function mergeSimilarItems(arr) { return arr.reduce((acc, current) => { const existingItemIndex = acc.findIndex(item => item.name current.name); 阅读全文
posted @ 2024-03-18 17:01 挽你手 阅读(52) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="callback float" @click="onClick" @mousedown="down" @touchstart="down" @mousemove="move" @touchmove="move" @mouseup="end" @touch 阅读全文
posted @ 2024-02-29 14:33 挽你手 阅读(16) 评论(0) 推荐(0) 编辑
摘要: <template> <div style="border:1px solid #ccc;max-height:280px;width:100%;overflow-y: auto;" v-if="recordList.length > 0" @scroll="onScroll"> <div v-fo 阅读全文
posted @ 2024-01-11 16:08 挽你手 阅读(8) 评论(0) 推荐(0) 编辑
摘要: methods:{ dataURLtoFile(baseurl) { let arr = baseurl.split(","), mime = arr[0].match(/:(.*?);/)[1], bstr = atob(arr[1]), n = bstr.length, u8arr = new 阅读全文
posted @ 2024-01-06 17:50 挽你手 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 效果: <el-table :data="tableData" style="width: 100%" v-loading="tableDataLoading" :header-cell-style="{ background: '#FAFAFA' }" :span-method="objectSp 阅读全文
posted @ 2023-09-22 11:52 挽你手 阅读(21) 评论(0) 推荐(0) 编辑
摘要: tooltip: { trigger: "axis", position: function (point, params, dom, rect, size) { var x = 0; // x坐标位置 var y = 0; // y坐标位置 // 当前鼠标位置 var pointX = point 阅读全文
posted @ 2023-08-29 16:33 挽你手 阅读(53) 评论(0) 推荐(0) 编辑
摘要: // 通过后端接口拿到文件流 export function getExport(url, parameter, method) { return request({ url: url, method: method || 'post', data: method !== 'get' ? param 阅读全文
posted @ 2023-07-11 09:37 挽你手 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 方法一: let url = window.location.href let fun = getUrlParams(url) if (fun.token) { setToken(fun.token); if (url) { const paramsStr = url.split('?')[1] l 阅读全文
posted @ 2023-06-14 11:03 挽你手 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 方法一: <div id="shadow"></div> // 下载证书 function download() { console.log('下载') html2canvas(document.querySelector("#shadow")).then(canvas => { document. 阅读全文
posted @ 2023-06-02 11:11 挽你手 阅读(374) 评论(0) 推荐(0) 编辑
摘要: <div class="sale"> <select @change="GetCountyData()"> <option>请选择</option> <option v-for="(item,index) in data" :disabled="item.is_true==1?true:false" 阅读全文
posted @ 2023-05-10 17:20 挽你手 阅读(448) 评论(0) 推荐(0) 编辑