Loading

摘要: 日常使用的工具链接,后期慢慢积累 阅读全文
posted @ 2022-07-18 10:26 请叫我王小胖 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 父组件 <template> <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body> <statement-preview :data-list="dataList" ref="statementPr 阅读全文
posted @ 2024-07-18 14:07 请叫我王小胖 阅读(3) 评论(0) 推荐(0) 编辑
摘要: eCharts记录折线图案例 option = { grid: { left: 30, right: 20, bottom: 20, top: 30, containLabel: true }, xAxis: { name: '粒径(mm)', type: 'log', nameLocation: 'middle', nameT 阅读全文
posted @ 2024-07-18 11:11 请叫我王小胖 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1.确定keep-alive标签是否存在 2.判断菜单上面路由地址是否与页面上name保持一致并且首字母大写 阅读全文
posted @ 2024-03-29 15:56 请叫我王小胖 阅读(18) 评论(0) 推荐(0) 编辑
摘要: server: { port: 80, host: true, open: true, proxy: { [env.VITE_APP_BASE_API]: { target: env.VITE_APP_API, changeOrigin: true, rewrite: (p) => p.replac 阅读全文
posted @ 2024-03-29 15:09 请叫我王小胖 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1.导入xlsx、xlsx-style、file-saver npm install --save xlsx npm install --save xlsx-style npm install --save file-saver 2.防止xlsx-style报错 vue.config.js添加 ch 阅读全文
posted @ 2024-03-28 10:11 请叫我王小胖 阅读(352) 评论(0) 推荐(0) 编辑
摘要: eCharts记录一柱形图案例 option = { color: '#8AE6C7', grid: { left: '50', right: '50', bottom: '50', containLabel: true }, textStyle: { color: 'rgba(0,0,0,.58)' }, xAxis: { ty 阅读全文
posted @ 2023-12-25 18:01 请叫我王小胖 阅读(14) 评论(0) 推荐(0) 编辑
摘要: /** *重写toFixed 解决四舍五入问题 * * @export * @param {*} data * @param {*} len */ export function toFixedFun(data, len) { const number = Number(data) if (isNa 阅读全文
posted @ 2023-12-19 16:54 请叫我王小胖 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 全局样式 /* 取消[type='number']的input的上下箭头 */ input::-webkit-inner-spin-button { -webkit-appearance: none !important; } input::-webkit-outer-spin-button { - 阅读全文
posted @ 2023-11-13 09:34 请叫我王小胖 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 校验金额 export const validateMoney = (rule, value, callback) => { if (value "") { return callback(new Error("不能为空")); } if (value <= 0) { return callback 阅读全文
posted @ 2023-06-05 10:40 请叫我王小胖 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 加减乘除运算 /** * @description: 加法运算 * @param {*} arg1 * @param {*} arg2 * @param {*} number 展示小数点后位数 * @return {*} */ export function operationAdd(arg1, a 阅读全文
posted @ 2023-06-05 10:34 请叫我王小胖 阅读(28) 评论(0) 推荐(0) 编辑