摘要:
addToRight() { const selectList = this.$refs.tableLeft.$refs.table.getCheckboxRecords(true) if (selectList && selectList.length > 0) { const unselectL 阅读全文
摘要:
<vxe-table border :data="tableData"> <vxe-column type="seq" width="80"></vxe-column> <vxe-column field="name" title="Name" width="200"></vxe-column> < 阅读全文
摘要:
function hasSpace(text) { return /\s/.test(text);}console.log(hasSpace("Hello World")); // trueconsole.log(hasSpace("HelloWorld")); // falseconsole.lo 阅读全文
摘要:
阅读全文
摘要:
<vxe-table ref="table" v-loading="listLoading" :data="tableData" border stripe :height="tableHeight" :seq-config="{seqMethod}" @resizable-change="resi 阅读全文
摘要:
data() { //element校验 const checkTemplate = (rule, value, callback) => { if (this._.isEmpty(value)) { return callback(new Error('单据模板不能为空')) } callback 阅读全文
摘要:
<vxe-table ref="table" v-loading="listLoading" :data="tableData" border stripe :height="tableHeight" show-footer :footer-method="footerMethod" :seq-co 阅读全文
摘要:
vxe-table复选框翻页选中问题 根据vxe-table官方文档,想要保留勾选中的数据,我们的代码中需要设置“row-id”和:checkbox-config中的“reserve”属性。 简单写下html部分: 1 2 3 4 5 6 7 8 <vxe-grid row-id="id" :che 阅读全文
摘要:
key值原先绑定的是索引,应该绑strfield refreshTable(){ this.tableKey = Math.random() } //添加一行 <vxe-table ref="table" :key="tableKey" > methods:{ //滚动到左侧 this.tableK 阅读全文
摘要:
const commonItem = {} this.mainForm.customermachinedetailList.forEach(item => { if (commonItem[item.lngdetailid]) { commonItem[item.lngdetailid].push( 阅读全文