修复已知问题

This commit is contained in:
2024-09-27 14:17:12 +08:00
parent c0328fa23e
commit 5e56c31300
299 changed files with 17512 additions and 987 deletions

View File

@@ -52,17 +52,17 @@
<script lang="ts" setup>
import { PlusOutlined } from '@ant-design/icons-vue';
import { ref, watch } from 'vue';
import { getCount } from '@/api/cms/article';
import { getCount } from '@/api/cms/cmsArticle';
import type { ArticleCount, ArticleParam } from '@/api/cms/article/model';
import useSearch from '@/utils/use-search';
import { Navigation } from '@/api/cms/navigation/model';
import { CmsNavigation } from '@/api/cms/cmsNavigation/model';
const props = withDefaults(
defineProps<{
// 选中的角色
selection?: [];
merchantId?: number;
navigationList?: Navigation[];
navigationList?: CmsNavigation[];
categoryId?: number;
model?: string;
}>(),
@@ -113,7 +113,6 @@
};
const reload = () => {
console.log(where);
getCount(where).then((data: any) => {
articleCount.value = data;
});
@@ -121,7 +120,7 @@
};
// 按模型查找
const chooseModel = (item: Navigation) => {
const chooseModel = (item: CmsNavigation) => {
where.model = `${item.value}`;
where.modelName = `${item.label}`;
emit('search', where);
@@ -136,7 +135,7 @@
/* 重置 */
const reset = () => {
resetFields();
type.value = '';
type.value = undefined;
reload();
};