@@ -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