修复已知问题
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user