feat(sj_1.0.0): 解决groupConfig搜索重置问题,drawer打开刷新分区表

This commit is contained in:
dhb52 2024-04-22 15:17:12 +08:00
parent a2f92b03b7
commit 6928cf0041
3 changed files with 4 additions and 7 deletions

View File

@ -15,7 +15,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP
apiParams: {
page: 1,
size: 10,
groupName: undefined
groupName: null
},
columns: () => [
{

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { computed, onMounted, reactive, ref, watch } from 'vue';
import { computed, reactive, ref, watch } from 'vue';
import { useFormRules, useNaiveForm } from '@/hooks/common/form';
import { $t } from '@/locales';
import { translateOptions, translateOptions2 } from '@/utils/common';
@ -149,14 +149,11 @@ const getAllPartitions = async () => {
watch(visible, () => {
if (visible.value) {
getAllPartitions(); // drawerkeepaliveonMounteddrawer
handleUpdateModelWhenEdit();
restoreValidation();
}
});
onMounted(async () => {
await getAllPartitions();
});
</script>
<template>

View File

@ -25,7 +25,7 @@ function search() {
<template>
<SearchForm :model="model" @search="search" @reset="reset">
<NFormItemGi span="24 s:12 m:6" :label="$t('page.groupConfig.groupName')" path="userName" class="pr-24px">
<NFormItemGi span="24 s:12 m:6" :label="$t('page.groupConfig.groupName')" path="groupName" class="pr-24px">
<NInput v-model:value="model.groupName" :placeholder="$t('page.groupConfig.form.groupName')" />
</NFormItemGi>
</SearchForm>