摘要:
方法一: function mergeSimilarItems(arr) { return arr.reduce((acc, current) => { const existingItemIndex = acc.findIndex(item => item.name current.name); 阅读全文
摘要:
<template> <div class="callback float" @click="onClick" @mousedown="down" @touchstart="down" @mousemove="move" @touchmove="move" @mouseup="end" @touch 阅读全文
摘要:
<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 阅读全文
摘要:
methods:{ dataURLtoFile(baseurl) { let arr = baseurl.split(","), mime = arr[0].match(/:(.*?);/)[1], bstr = atob(arr[1]), n = bstr.length, u8arr = new 阅读全文
摘要:
效果: <el-table :data="tableData" style="width: 100%" v-loading="tableDataLoading" :header-cell-style="{ background: '#FAFAFA' }" :span-method="objectSp 阅读全文
摘要:
tooltip: { trigger: "axis", position: function (point, params, dom, rect, size) { var x = 0; // x坐标位置 var y = 0; // y坐标位置 // 当前鼠标位置 var pointX = point 阅读全文
摘要:
// 通过后端接口拿到文件流 export function getExport(url, parameter, method) { return request({ url: url, method: method || 'post', data: method !== 'get' ? param 阅读全文
摘要:
方法一: let url = window.location.href let fun = getUrlParams(url) if (fun.token) { setToken(fun.token); if (url) { const paramsStr = url.split('?')[1] l 阅读全文
摘要:
方法一: <div id="shadow"></div> // 下载证书 function download() { console.log('下载') html2canvas(document.querySelector("#shadow")).then(canvas => { document. 阅读全文
摘要:
<div class="sale"> <select @change="GetCountyData()"> <option>请选择</option> <option v-for="(item,index) in data" :disabled="item.is_true==1?true:false" 阅读全文