mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 14:10:27 +08:00
优化
This commit is contained in:
parent
cd3431d985
commit
6f1945e05e
@ -34,7 +34,6 @@ export function useCode() {
|
|||||||
table: {
|
table: {
|
||||||
label,
|
label,
|
||||||
dict: list,
|
dict: list,
|
||||||
dictColor: true,
|
|
||||||
minWidth: 120
|
minWidth: 120
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
|
@ -141,7 +141,7 @@ const info = ref<Eps.PluginInfoEntity>();
|
|||||||
|
|
||||||
// 刷新
|
// 刷新
|
||||||
function refresh() {
|
function refresh() {
|
||||||
service.plugin.info.page().then((res) => {
|
service.plugin.info.page({ page: 1, size: 100 }).then((res) => {
|
||||||
list.value = res.list;
|
list.value = res.list;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,11 @@ const props = defineProps({
|
|||||||
defaultQuickType: {
|
defaultQuickType: {
|
||||||
type: String as PropType<"day" | "week" | "month" | "year" | "">,
|
type: String as PropType<"day" | "week" | "month" | "year" | "">,
|
||||||
default: "day"
|
default: "day"
|
||||||
|
},
|
||||||
|
// 筛选后是否刷新
|
||||||
|
enableRefresh: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -108,7 +113,8 @@ function onChange(value: any) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (props.prop) {
|
// 筛选列表
|
||||||
|
if (props.enableRefresh) {
|
||||||
Crud.value?.refresh({
|
Crud.value?.refresh({
|
||||||
...params,
|
...params,
|
||||||
page: 1
|
page: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user