|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<ContentWrap> |
|
|
<ContentWrap> |
|
|
<!-- 搜索工作栏 --> |
|
|
<!-- 搜索工作栏 --> |
|
|
<Search :schema="[...PurchasePlanMain.allSchemas.searchSchema,...PurchasePlanDetail.allSchemas.searchSchema]" @search="searchList" @reset="searchList" @searchTableSuccess="searchQueryTableSuccess"/> |
|
|
<Search ref="seachRef" :schema="[...PurchasePlanMain.allSchemas.searchSchema,...PurchasePlanDetail.allSchemas.searchSchema]" @search="searchList" @reset="searchList" @searchTableSuccess="searchQueryTableSuccess" @onChange="onSearchChange"/> |
|
|
</ContentWrap> |
|
|
</ContentWrap> |
|
|
|
|
|
|
|
|
<!-- 列表头部 --> |
|
|
<!-- 列表头部 --> |
|
@ -115,8 +115,23 @@ |
|
|
const updataTableColumns = (val) => { |
|
|
const updataTableColumns = (val) => { |
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
|
} |
|
|
} |
|
|
|
|
|
const seachRef = ref() |
|
|
|
|
|
const onSearchChange = (field, value)=>{ |
|
|
|
|
|
if(field=='status'){ |
|
|
|
|
|
if(value.length>0){ |
|
|
|
|
|
if(value[value.length-1]==''){ |
|
|
|
|
|
//全选 |
|
|
|
|
|
seachRef.value.setFormValues({ |
|
|
|
|
|
status:[''] |
|
|
|
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
seachRef.value.setFormValues({ |
|
|
|
|
|
status:value.filter(item=>item!='') |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
const searchQueryTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
const searchQueryTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
console.log('searchQueryTableSuccess',formField, searchField, val, formRef, type, row ) |
|
|
console.log('searchQueryTableSuccess',formField, searchField, val, formRef, type, row ) |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|