feat(sj_1.0.0): 解决groupConfig搜索重置问题,drawer打开刷新分区表
This commit is contained in:
parent
a2f92b03b7
commit
6928cf0041
@ -15,7 +15,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP
|
||||
apiParams: {
|
||||
page: 1,
|
||||
size: 10,
|
||||
groupName: undefined
|
||||
groupName: null
|
||||
},
|
||||
columns: () => [
|
||||
{
|
||||
|
@ -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(); // 因为drawer会keepalive,onMounted不能报账每次打开drawer会调用刷新
|
||||
handleUpdateModelWhenEdit();
|
||||
restoreValidation();
|
||||
}
|
||||
});
|
||||
|
||||
onMounted(async () => {
|
||||
await getAllPartitions();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user