新增:产品管理模块

This commit is contained in:
2024-09-27 21:08:57 +08:00
parent 5e56c31300
commit 7a180ee5a7
89 changed files with 2925 additions and 11756 deletions
+18 -1
View File
@@ -7,6 +7,18 @@
</template>
<span>添加</span>
</a-button>
<a-button
danger
type="primary"
class="ele-btn-icon"
:disabled="selection?.length === 0"
@click="removeBatch"
>
<template #icon>
<DeleteOutlined />
</template>
<span>批量删除</span>
</a-button>
<a-radio-group v-model:value="type" @change="handleSearch">
<a-radio-button value="已发布"
>已发布({{ articleCount?.totalNum }})</a-radio-button
@@ -50,7 +62,7 @@
</template>
<script lang="ts" setup>
import { PlusOutlined } from '@ant-design/icons-vue';
import { DeleteOutlined, PlusOutlined } from '@ant-design/icons-vue';
import { ref, watch } from 'vue';
import { getCount } from '@/api/cms/cmsArticle';
import type { ArticleCount, ArticleParam } from '@/api/cms/article/model';
@@ -98,6 +110,11 @@
emit('add');
};
// 批量删除
const removeBatch = () => {
emit('remove');
};
const handleSearch = (e) => {
const text = e.target.value;
if (text === '已发布') {