新增:css样式支持

This commit is contained in:
2024-08-30 17:51:56 +08:00
parent ecf88b04fd
commit 41ad9a474e
33 changed files with 1458 additions and 180 deletions
+22 -3
View File
@@ -22,17 +22,26 @@
allow-clear
:tree-data="navigationList"
tree-default-expand-all
style="width: 230px"
style="width: 280px"
placeholder="请选择栏目"
:value="where.categoryId || undefined"
:dropdown-style="{ maxHeight: '360px', overflow: 'auto' }"
@update:value="(value?: number) => (where.categoryId = value)"
@change="onCategoryId"
/>
<ChooseDictionary
v-if="showChooseDict"
dict-code="NavigationModel"
:placeholder="`选择模型`"
style="width: 120px"
v-model:value="where.model"
@done="chooseModel"
/>
<a-input-search
allow-clear
placeholder="请输入关键词"
v-model:value="where.keywords"
style="width: 280px"
v-model:value="where.userId"
@pressEnter="reload"
@search="reload"
/>
@@ -62,15 +71,18 @@
const type = ref<string>();
// 统计数据
const articleCount = ref<ArticleCount>();
const showChooseDict = ref<boolean>(false);
// 表单数据
const { where, resetFields } = useSearch<ArticleParam>({
articleId: undefined,
model: undefined,
navigationId: undefined,
categoryId: undefined,
merchantId: undefined,
status: undefined,
keywords: ''
keywords: '',
userId: undefined
});
const emit = defineEmits<{
@@ -107,6 +119,13 @@
emit('search', where);
};
// 按模型查找
const chooseModel = (item: Navigation) => {
where.model = `${item.value}`;
where.modelName = `${item.label}`;
emit('search', where);
};
// 按分类查询
const onCategoryId = (id: number) => {
where.categoryId = id;
+1 -1
View File
@@ -317,7 +317,7 @@
data: res?.map((d) => {
d.value = d.navigationId;
d.label = d.title;
if (d.type != 2) {
if (d.model == 'links' || d.model == 'product' || d.path == '/') {
d.disabled = true;
}
return d;