新增:css样式支持
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user