添加快速填充

This commit is contained in:
庞东林
2021-12-20 21:24:38 +08:00
parent c40ae033eb
commit 38cbc32fe3
2 changed files with 22 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
:loading="loading"
/>
<ele-pro-table ref="table" row-key="drinkingWaterId" :datasource="datasource" :columns="columns" :where="where"
<ele-pro-table ref="table" row-key="drinkingWaterId" :datasource="datasource" :columns="columns" :where="where" @change="onChange"
:scroll="{ x: 'max-content' }" @done="(d) => (data = d.data)">
<template #county="{text}">
{{text="市区"}}
@@ -211,11 +211,21 @@ export default {
this.$emit("search", this.where);
this.reload();
},
onChange(e,filters){
this.datasource = this.datasource.map(item=>(
{
...item,
index1:filters.index1
}
))
},
/* 刷新表格 */
reload() {
this.getPageData()
this.columns[6].filters = []
this.columns[6].filterMultiple = false
if(this.where.waterSourceType ==1 ){
// 地表水
this.columns[6].filters = [