Loading

摘要: 全局样式 /* 取消[type='number']的input的上下箭头 */ input::-webkit-inner-spin-button { -webkit-appearance: none !important; } input::-webkit-outer-spin-button { - 阅读全文
posted @ 2023-11-13 09:34 请叫我王小胖 阅读(626) 评论(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 请叫我王小胖 阅读(21) 评论(0) 推荐(0)
摘要: 加减乘除运算 /** * @description: 加法运算 * @param {*} arg1 * @param {*} arg2 * @param {*} number 展示小数点后位数 * @return {*} */ export function operationAdd(arg1, a 阅读全文
posted @ 2023-06-05 10:34 请叫我王小胖 阅读(34) 评论(0) 推荐(0)
摘要: 在按钮点击后强制按钮失去焦点 1.在按钮点击的方法后加上失去焦点的方法 <el-button @click="showDetail(scope.row, $event)">详情</el-button> showDetail (rowData, event) { if (event.target.no 阅读全文
posted @ 2023-05-26 09:19 请叫我王小胖 阅读(1427) 评论(0) 推荐(0)
摘要: 1 mounted () { 2 3 // 禁用浏览器返回键 4 5 history.pushState(null, null, document.URL); 6 7 window.addEventListener('popstate', this.disableBrowserBack); 8 9 阅读全文
posted @ 2023-04-06 15:30 请叫我王小胖 阅读(333) 评论(0) 推荐(0)
摘要: 一、问题描述 Element的el-table组件在设置表格高度heoght 同时 开启合计行show-summary ,项目中合计这一列不显示,但是缩放下页面或者稍微修改下F12里dom中的东西就又显示了 二、问题分析 查看dom发现,合计一列并未包含在el-table中,而el-table原始文 阅读全文
posted @ 2023-04-04 15:32 请叫我王小胖 阅读(1518) 评论(0) 推荐(0)
摘要: 1 /** 提交按钮 */ 2 async submitForm () { 3 let flg = true 4 await Promise.all([ 5 this.$refs['form'].validate(), 6 this.$refs['formTable'].validate(), 7 阅读全文
posted @ 2023-04-04 14:52 请叫我王小胖 阅读(37) 评论(0) 推荐(0)
摘要: 1.dom el-table添加方法 :span-method="objectSpanMethod" 2.引入排序 import { groupBy, orderBy, map } from "lodash"; 3.data数据 //合并表格 columnArr: ['sheetCode', 'sh 阅读全文
posted @ 2023-03-24 11:31 请叫我王小胖 阅读(1422) 评论(0) 推荐(0)
摘要: 1.安装 npm i dhtmlx-gantt 2.组件导入 import gantt from "dhtmlx-gantt"; // 引入模块 import "dhtmlx-gantt/codebase/dhtmlxgantt.css"; //引入甘特图样式 3.dom数据 <div ref="g 阅读全文
posted @ 2023-03-23 09:40 请叫我王小胖 阅读(6583) 评论(0) 推荐(0)
摘要: 需求:系统顶部添加项目下拉框,顶部下拉框选项改变时其他模块下拉框同时改变。 1.开始进入系统的时候获取项目列表 页面调用接口 // 获取项目列表 store.dispatch("getProject").then(() => {}); store新建project.js 1 import { lis 阅读全文
posted @ 2023-03-15 16:37 请叫我王小胖 阅读(29) 评论(0) 推荐(0)