摘要: 接口数据 { path: '/systemc', redirect: '/system/userc', name: 'Systemc', meta: { title: '管理后台...', icon: 'c...' }, children: [ { path: 'user..' }, ] } //当 阅读全文
posted @ 2025-08-04 15:42 前端张大碗 阅读(2) 评论(0) 推荐(0)
摘要: // 根据参数日期获取具体日期信息 export const formatDate = function (date = new Date()) { let year = date.getFullYear() let month = date.getMonth() + 1 let day = dat 阅读全文
posted @ 2023-10-12 18:46 前端张大碗 阅读(96) 评论(0) 推荐(0)
摘要: 组件案例 <template> <div class="dialog-search"> <el-form :inline="true" ref="ruleForm" :model="formInline" class="demo-form-inline top-screen"> <div class 阅读全文
posted @ 2023-10-08 18:29 前端张大碗 阅读(752) 评论(0) 推荐(0)
摘要: //修改url某个指定的参数 url 地址。 paramName 参数。 repalceValue替换的新值 replaceUrl( url, paramName, repalceValue){ let oldUrl=url.toString() let r= eval('/('+paramName 阅读全文
posted @ 2023-02-22 17:07 前端张大碗 阅读(486) 评论(0) 推荐(0)
摘要: //html 部分<el-form :model="formObj" :rules="rules"> <el-table :data="formObj.list"> <el-table-column align="center" > <template slot="header"><span>nam 阅读全文
posted @ 2023-02-07 16:47 前端张大碗 阅读(247) 评论(0) 推荐(0)
摘要: function(arr){ let hash={} for (const key in arr){ if(hash[arr[key]]){ return true } hash[arr[key]]=true } return false } 阅读全文
posted @ 2022-01-07 17:17 前端张大碗 阅读(590) 评论(0) 推荐(0)
摘要: let a=[] let hash={} a=a.reduce((pre,next)=>{ hash[next.name]?"":(hash[next.name]=true&&pre.push(next)); return pre; },[[]]) 阅读全文
posted @ 2021-12-27 15:11 前端张大碗 阅读(79) 评论(0) 推荐(0)
摘要: 1. 声明和初始化数组 我们可以使用默认值(如""、null或 )初始化特定大小的数组0。您可能已经将这些用于一维数组,但如何初始化二维数组/矩阵呢? const array = Array(5).fill(''); // 输出 (5) ["", "", "", "", ""] const matr 阅读全文
posted @ 2021-06-17 11:57 前端张大碗 阅读(184) 评论(0) 推荐(0)
摘要: let result = (value.toString()).indexOf("."); if (result != -1 && value.toString().split(".")[1].length > 8) { return; } 阅读全文
posted @ 2021-06-08 14:33 前端张大碗 阅读(381) 评论(0) 推荐(0)
摘要: 凌晨0点 fields['startTime']=new Date(new Date(fields.searchTime2[0]).toLocaleDateString()).getTime() 当天23点59分59秒 fields['endTime']=new Date(new Date(fiel 阅读全文
posted @ 2021-04-09 17:58 前端张大碗 阅读(6274) 评论(0) 推荐(0)