1 2 3 4 5 ··· 20 下一页
摘要: addToRight() { const selectList = this.$refs.tableLeft.$refs.table.getCheckboxRecords(true) if (selectList && selectList.length > 0) { const unselectL 阅读全文
posted @ 2024-05-28 17:29 hello芳芳 阅读(1) 评论(0) 推荐(0) 编辑
摘要: <vxe-table border :data="tableData"> <vxe-column type="seq" width="80"></vxe-column> <vxe-column field="name" title="Name" width="200"></vxe-column> < 阅读全文
posted @ 2024-05-25 10:18 hello芳芳 阅读(2) 评论(0) 推荐(0) 编辑
摘要: function hasSpace(text) { return /\s/.test(text);}console.log(hasSpace("Hello World")); // trueconsole.log(hasSpace("HelloWorld")); // falseconsole.lo 阅读全文
posted @ 2024-05-22 10:16 hello芳芳 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-05-22 09:30 hello芳芳 阅读(1) 评论(0) 推荐(0) 编辑
摘要: <vxe-table ref="table" v-loading="listLoading" :data="tableData" border stripe :height="tableHeight" :seq-config="{seqMethod}" @resizable-change="resi 阅读全文
posted @ 2024-05-09 09:51 hello芳芳 阅读(29) 评论(0) 推荐(0) 编辑
摘要: data() { //element校验 const checkTemplate = (rule, value, callback) => { if (this._.isEmpty(value)) { return callback(new Error('单据模板不能为空')) } callback 阅读全文
posted @ 2024-05-08 11:15 hello芳芳 阅读(26) 评论(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芳芳 阅读(36) 评论(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芳芳 阅读(74) 评论(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芳芳 阅读(27) 评论(0) 推荐(0) 编辑
摘要: const commonItem = {} this.mainForm.customermachinedetailList.forEach(item => { if (commonItem[item.lngdetailid]) { commonItem[item.lngdetailid].push( 阅读全文
posted @ 2024-04-27 11:56 hello芳芳 阅读(1) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 20 下一页