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: {
|
||||
label,
|
||||
dict: list,
|
||||
dictColor: true,
|
||||
minWidth: 120
|
||||
},
|
||||
form: {
|
||||
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user