上一页 1 2 3 4 5 6 7 8 ··· 23 下一页
摘要: data() { //element校验 const checkTemplate = (rule, value, callback) => { if (this._.isEmpty(value)) { return callback(new Error('单据模板不能为空')) } callback 阅读全文
posted @ 2024-05-08 11:15 hello芳芳 阅读(490) 评论(0) 推荐(0)
摘要: <vxe-table ref="table" v-loading="listLoading" :data="tableData" border stripe :height="tableHeight" show-footer :footer-method="footerMethod" :seq-co 阅读全文
posted @ 2024-05-06 11:38 hello芳芳 阅读(484) 评论(0) 推荐(0)
摘要: vxe-table复选框翻页选中问题 根据vxe-table官方文档,想要保留勾选中的数据,我们的代码中需要设置“row-id”和:checkbox-config中的“reserve”属性。 简单写下html部分: 1 2 3 4 5 6 7 8 <vxe-grid row-id="id" :che 阅读全文
posted @ 2024-05-06 10:26 hello芳芳 阅读(3290) 评论(0) 推荐(0)
摘要: key值原先绑定的是索引,应该绑strfield refreshTable(){ this.tableKey = Math.random() } //添加一行 <vxe-table ref="table" :key="tableKey" > methods:{ //滚动到左侧 this.tableK 阅读全文
posted @ 2024-04-30 11:27 hello芳芳 阅读(433) 评论(0) 推荐(0)
摘要: const commonItem = {} this.mainForm.customermachinedetailList.forEach(item => { if (commonItem[item.lngdetailid]) { commonItem[item.lngdetailid].push( 阅读全文
posted @ 2024-04-27 11:56 hello芳芳 阅读(20) 评论(0) 推荐(0)
摘要: // 自定义过滤器,确保金额精确到指定小数位数 Vue.filter('currency', function(value, currency, decimals) { if (!value) return '0.00'; value = parseFloat(value).toFixed(deci 阅读全文
posted @ 2024-04-22 09:59 hello芳芳 阅读(32) 评论(0) 推荐(0)
摘要: hasDepartmentIdFn(treeData, key) { this.hasDepartmentId = false const loop = (data) => { for (const item of data) { if (item.treedataid key) { this.ha 阅读全文
posted @ 2024-04-03 10:09 hello芳芳 阅读(29) 评论(0) 推荐(0)
摘要: 11.15 星期三学习地址:ECMAScript 6 入门 http://es6.ruanyifeng.com/ 阮一峰下载node js,Node JS环境搭建及sublime Text 3配置Node Js环境,添加前端插件。一、es6简介: 二者关系:ECMAScript 和 JavaScri 阅读全文
posted @ 2024-03-20 09:05 hello芳芳 阅读(61) 评论(0) 推荐(0)
摘要: instanceof和typeof的区别 1.typeof:可以用来确定一个变量的数据类型 2.instanceof:可以用来确定一个引用类型值的是什么类型的对象 typeof用以获取一个变量的类型,typeof一般只能返回如下几个结 果:number,boolean,string,function 阅读全文
posted @ 2024-03-08 15:29 hello芳芳 阅读(1153) 评论(0) 推荐(0)
摘要: 背景 前两天因为对硬盘进行了误操作,导致系统无法进入,只能重新安装。待系统安装完毕后第一时间将VS下了回来。在VS开发环境部署完毕后,我打开了自己的解决方案,结果在“Git更改”选项卡内遇到了如下图的提示(分别是VS2022和VS2019): 过程 在点击“将其标记为安全”后该存储库可以正常使用,但 阅读全文
posted @ 2024-03-05 10:04 hello芳芳 阅读(265) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 23 下一页