新增:导航栏目设计拆分简单和高级展示方式

This commit is contained in:
2024-09-03 01:13:18 +08:00
parent bf43bdbab4
commit aa85c133e3
24 changed files with 1121 additions and 353 deletions
+13 -8
View File
@@ -63,6 +63,7 @@
selection?: [];
merchantId?: number;
navigationList?: Navigation[];
categoryId?: number;
model?: string;
}>(),
{}
@@ -99,7 +100,6 @@
const handleSearch = (e) => {
const text = e.target.value;
resetFields();
if (text === '已发布') {
where.status = 0;
}
@@ -113,6 +113,7 @@
};
const reload = () => {
console.log(where);
getCount(where).then((data: any) => {
articleCount.value = data;
});
@@ -141,14 +142,18 @@
watch(
() => props.merchantId,
(id) => {
if (Number(id) > 0) {
where.merchantId = id;
reload();
} else {
where.merchantId = undefined;
reload();
() => {
if (props.categoryId) {
where.categoryId = props.categoryId;
}
reload();
// if (Number(id) > 0) {
// where.merchantId = id;
// reload();
// } else {
// where.merchantId = undefined;
// reload();
// }
},
{ immediate: true }
);