This commit is contained in:
神仙都没用 2024-09-06 15:34:44 +08:00
parent cd3431d985
commit 6f1945e05e
3 changed files with 8 additions and 3 deletions

View File

@ -34,7 +34,6 @@ export function useCode() {
table: {
label,
dict: list,
dictColor: true,
minWidth: 120
},
form: {

View File

@ -141,7 +141,7 @@ const info = ref<Eps.PluginInfoEntity>();
//
function refresh() {
service.plugin.info.page().then((res) => {
service.plugin.info.page({ page: 1, size: 100 }).then((res) => {
list.value = res.list;
});
}

View File

@ -56,6 +56,11 @@ const props = defineProps({
defaultQuickType: {
type: String as PropType<"day" | "week" | "month" | "year" | "">,
default: "day"
},
//
enableRefresh: {
type: Boolean,
default: true
}
});
@ -108,7 +113,8 @@ function onChange(value: any) {
};
}
if (props.prop) {
//
if (props.enableRefresh) {
Crud.value?.refresh({
...params,
page: 1