- (this.$refs.selectFilter.selected[key] = ['']))"
- @search="onSearch"
- ref="search" />
+
@@ -122,6 +117,11 @@ export default {
if (this.keywords) {
this.query.keywords = this.keywords
}
+ this.query.dynamicFilter.filters.push({
+ field: 'enabled',
+ operator: 'eq',
+ value: true,
+ })
},
data() {
return {
@@ -189,6 +189,12 @@ export default {
}
this.$refs.table.refresh()
},
+ //重置
+ onReset() {
+ Object.entries(this.$refs.selectFilter.selected).forEach(([key, _]) => (this.$refs.selectFilter.selected[key] = ['']))
+ this.$refs.selectFilter.selected['enabled'] = [true]
+ },
+ //搜索
onSearch(form) {
if (Array.isArray(form.dy.createdTime)) {
this.query.dynamicFilter.filters.push({
@@ -218,6 +224,12 @@ export default {
type: 'root',
})
}
+ this.$refs.search.keeps.push({
+ field: 'enabled',
+ value: true,
+ type: 'dy',
+ })
+ this.onReset()
},
props: ['keywords'],
watch: {},
diff --git a/src/frontend/admin/src/views/sys/dept/index.vue b/src/frontend/admin/src/views/sys/dept/index.vue
index 214e0dc2..26b258f3 100644
--- a/src/frontend/admin/src/views/sys/dept/index.vue
+++ b/src/frontend/admin/src/views/sys/dept/index.vue
@@ -29,7 +29,7 @@
},
]"
:vue="this"
- @reset="Object.entries(this.$refs.selectFilter.selected).forEach(([key, _]) => (this.$refs.selectFilter.selected[key] = ['']))"
+ @reset="onReset"
@search="onSearch"
ref="search" />
@@ -128,6 +128,11 @@ export default {
if (this.keywords) {
this.query.keywords = this.keywords
}
+ this.query.dynamicFilter.filters.push({
+ field: 'enabled',
+ operator: 'eq',
+ value: true,
+ })
},
data() {
return {
@@ -195,6 +200,12 @@ export default {
}
this.$refs.table.refresh()
},
+ //重置
+ onReset() {
+ Object.entries(this.$refs.selectFilter.selected).forEach(([key, _]) => (this.$refs.selectFilter.selected[key] = ['']))
+ this.$refs.selectFilter.selected['enabled'] = [true]
+ },
+ //搜索
onSearch(form) {
if (Array.isArray(form.dy.createdTime)) {
this.query.dynamicFilter.filters.push({
@@ -224,6 +235,12 @@ export default {
type: 'root',
})
}
+ this.$refs.search.keeps.push({
+ field: 'enabled',
+ value: true,
+ type: 'dy',
+ })
+ this.onReset()
},
props: ['keywords'],
watch: {},
diff --git a/src/frontend/admin/src/views/sys/job/all/index.vue b/src/frontend/admin/src/views/sys/job/all/index.vue
index ba6454ae..fbb12087 100644
--- a/src/frontend/admin/src/views/sys/job/all/index.vue
+++ b/src/frontend/admin/src/views/sys/job/all/index.vue
@@ -48,7 +48,7 @@
},
]"
:vue="this"
- @reset="Object.entries(this.$refs.selectFilter.selected).forEach(([key, _]) => (this.$refs.selectFilter.selected[key] = ['']))"
+ @reset="onReset"
@search="onSearch"
ref="search" />
@@ -228,6 +228,11 @@ export default {
if (this.keywords || this.$route.query.keywords) {
this.query.keywords = this.keywords || this.$route.query.keywords
}
+ this.query.dynamicFilter.filters.push({
+ field: 'enabled',
+ operator: 'eq',
+ value: true,
+ })
},
data() {
return {
@@ -319,6 +324,12 @@ export default {
}
this.$refs.table.refresh()
},
+ //重置
+ onReset() {
+ Object.entries(this.$refs.selectFilter.selected).forEach(([key, _]) => (this.$refs.selectFilter.selected[key] = ['']))
+ this.$refs.selectFilter.selected['enabled'] = [true]
+ },
+ //搜索
onSearch(form) {
if (Array.isArray(form.dy.createdTime)) {
this.query.dynamicFilter.filters.push({
@@ -363,6 +374,12 @@ export default {
type: 'root',
})
}
+ this.$refs.search.keeps.push({
+ field: 'enabled',
+ value: true,
+ type: 'dy',
+ })
+ this.onReset()
},
props: ['keywords'],
watch: {},
diff --git a/src/frontend/admin/src/views/sys/role/index.vue b/src/frontend/admin/src/views/sys/role/index.vue
index 55cd12fc..c32df270 100644
--- a/src/frontend/admin/src/views/sys/role/index.vue
+++ b/src/frontend/admin/src/views/sys/role/index.vue
@@ -47,7 +47,7 @@
},
]"
:vue="this"
- @reset="Object.entries(this.$refs.selectFilter.selected).forEach(([key, _]) => (this.$refs.selectFilter.selected[key] = ['']))"
+ @reset="onReset"
@search="onSearch"
ref="search" />
@@ -174,6 +174,11 @@ export default {
if (this.keywords) {
this.query.keywords = this.keywords
}
+ this.query.dynamicFilter.filters.push({
+ field: 'enabled',
+ operator: 'eq',
+ value: true,
+ })
},
data() {
return {
@@ -265,6 +270,12 @@ export default {
}
this.$refs.table.refresh()
},
+ //重置
+ onReset() {
+ Object.entries(this.$refs.selectFilter.selected).forEach(([key, _]) => (this.$refs.selectFilter.selected[key] = ['']))
+ this.$refs.selectFilter.selected['enabled'] = [true]
+ },
+ //搜索
onSearch(form) {
if (Array.isArray(form.dy.createdTime)) {
this.query.dynamicFilter.filters.push({
@@ -309,6 +320,12 @@ export default {
type: 'root',
})
}
+ this.$refs.search.keeps.push({
+ field: 'enabled',
+ value: true,
+ type: 'dy',
+ })
+ this.onReset()
},
props: ['keywords'],
watch: {},
diff --git a/src/frontend/admin/src/views/sys/user/index.vue b/src/frontend/admin/src/views/sys/user/index.vue
index ed78d29c..2e58f15b 100644
--- a/src/frontend/admin/src/views/sys/user/index.vue
+++ b/src/frontend/admin/src/views/sys/user/index.vue
@@ -45,7 +45,7 @@
},
]"
:vue="this"
- @reset="Object.entries(this.$refs.selectFilter.selected).forEach(([key, _]) => (this.$refs.selectFilter.selected[key] = ['']))"
+ @reset="onReset"
@search="onSearch"
ref="search" />
@@ -158,6 +158,11 @@ export default {
if (this.deptId) {
this.query.filter.deptId = this.deptId
}
+ this.query.dynamicFilter.filters.push({
+ field: 'enabled',
+ operator: 'eq',
+ value: true,
+ })
},
data() {
return {
@@ -216,6 +221,12 @@ export default {
})
this.$refs.search.search()
},
+ //重置
+ onReset() {
+ Object.entries(this.$refs.selectFilter.selected).forEach(([key, _]) => (this.$refs.selectFilter.selected[key] = ['']))
+ this.$refs.selectFilter.selected['enabled'] = [true]
+ },
+ //搜索
onSearch(form) {
if (Array.isArray(form.dy.createdTime)) {
this.query.dynamicFilter.filters.push({
@@ -245,6 +256,12 @@ export default {
type: 'root',
})
}
+ this.$refs.search.keeps.push({
+ field: 'enabled',
+ value: true,
+ type: 'dy',
+ })
+ this.onReset()
},
props: ['keywords', 'roleId', 'deptId'],
watch: {},