methods: { search(formInline) { // 筛选数据 this.filteredData = this.allData.filter(data => data.process_no === formInline.value); // 动态生成列 if (this.filteredData.length > 0) { this.dynamicCols = Object.keys(this.filteredData[0]).map(item => { return { prop: item, label: item }; }); } }, }