新增:导航栏目设计拆分简单和高级展示方式
This commit is contained in:
@@ -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 }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user