更改筛选条件
This commit is contained in:
@@ -693,32 +693,16 @@ const initSearchFormIndexAndCount = (list: any) => {
|
|||||||
watch(
|
watch(
|
||||||
() => searchForm.value.index,
|
() => searchForm.value.index,
|
||||||
(val: any, oldval: any) => {
|
(val: any, oldval: any) => {
|
||||||
// countData.value = []
|
|
||||||
if (val) {
|
if (val) {
|
||||||
initSearchFormIndexAndCount(val)
|
initSearchFormIndexAndCount(val)
|
||||||
if (val == 0) {
|
if (val == 0) {
|
||||||
countData.value = []
|
countData.value = []
|
||||||
}
|
}
|
||||||
}
|
countData.value.map((item:any,key:any)=>{
|
||||||
},
|
if(val.findIndex((vv:any)=>{return vv==item.index})==-1){
|
||||||
{
|
countData.value.splice(key,1)
|
||||||
deep: true,
|
}
|
||||||
immediate: true
|
})
|
||||||
}
|
|
||||||
)
|
|
||||||
watch(
|
|
||||||
() => countData.value,
|
|
||||||
(val: any, oldval: any) => {
|
|
||||||
if (val) {
|
|
||||||
if (val.length != searchForm.value.index.length) {
|
|
||||||
val.map((item: any, index: any) => {
|
|
||||||
searchForm.value.index.map((vv: any) => {
|
|
||||||
if (item.index != vv) {
|
|
||||||
val.splice(index, 1)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user