添加快速填充
This commit is contained in:
@@ -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 = [
|
||||
|
||||
@@ -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="市区"}}
|
||||
@@ -212,6 +212,16 @@ 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()
|
||||
|
||||
Reference in New Issue
Block a user