From 53932fab72a012b413f6c7516143665eef2fc92a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com>
Date: Fri, 26 Sep 2025 10:49:16 +0800
Subject: [PATCH] =?UTF-8?q?feat(cms):=20=E6=B7=BB=E5=8A=A0=E6=96=87?=
=?UTF-8?q?=E7=AB=A0=E7=BC=96=E5=8F=B7=E5=AD=97=E6=AE=B5=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 在文章模型中新增 code 字段用于唯一标识文章
- 更新文章编辑页面表单,增加编号输入框
- 表单支持对文章编号的增删改查操作
- 完善文章数据结构以支持编号属性
-优化文章编辑界面字段布局和用户体验
---
src/api/cms/cmsArticle/model/index.ts | 2 ++
src/views/cms/cmsArticle/components/articleEdit.vue | 9 +++++++++
2 files changed, 11 insertions(+)
diff --git a/src/api/cms/cmsArticle/model/index.ts b/src/api/cms/cmsArticle/model/index.ts
index 6980048..bad09d2 100644
--- a/src/api/cms/cmsArticle/model/index.ts
+++ b/src/api/cms/cmsArticle/model/index.ts
@@ -12,6 +12,8 @@ export interface CmsArticle {
type?: number;
// 文章模型
model?: string;
+ // 文章编号
+ code?: string;
// 文章详情
detail?: string;
// 列表显示方式(10小图展示 20大图展示)
diff --git a/src/views/cms/cmsArticle/components/articleEdit.vue b/src/views/cms/cmsArticle/components/articleEdit.vue
index 191fd5d..ae12241 100644
--- a/src/views/cms/cmsArticle/components/articleEdit.vue
+++ b/src/views/cms/cmsArticle/components/articleEdit.vue
@@ -166,6 +166,13 @@
v-model:value="form.pdfUrl"
/>
+
+
+
({
articleId: undefined,
// 文章模型
model: 'detail',
+ // 文章标识
+ code: undefined,
// 封面图
image: '',
// 文章标题