From 94c3d5d714672c357079baada0b3917d383b6614 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com>
Date: Sun, 28 May 2023 14:34:57 +0800
Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=96=87=E7=AB=A0=E6=96=B0?=
=?UTF-8?q?=E5=A2=9E=E6=98=AF=E5=90=A6=E5=85=AC=E5=BC=80=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/article/manager.vue | 16 +++++++++++++---
src/views/system/article/publish.vue | 6 +++++-
2 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/src/views/system/article/manager.vue b/src/views/system/article/manager.vue
index 4c24519..74f652c 100644
--- a/src/views/system/article/manager.vue
+++ b/src/views/system/article/manager.vue
@@ -57,7 +57,11 @@
-
+
+
+
+
+
@@ -91,10 +95,16 @@ const previewUrl = ref('')
const data = reactive({
form: {},
- queryParams: {}
+ queryParams: {},
+ options: {
+ isPublicOptions: [
+ { dictLabel: '是', dictValue: '1' },
+ { dictLabel: '否', dictValue: '0', listClass: 'info' }
+ ]
+ }
})
-const { queryParams } = toRefs(data)
+const { queryParams, options } = toRefs(data)
proxy.getDicts('sys_article_status').then((response) => {
statusOptions.value = response.data
diff --git a/src/views/system/article/publish.vue b/src/views/system/article/publish.vue
index af09d2a..6a8317f 100644
--- a/src/views/system/article/publish.vue
+++ b/src/views/system/article/publish.vue
@@ -30,6 +30,9 @@
+ 文章标签
+
+
+
@@ -70,7 +73,8 @@ const data = reactive({
cid: undefined,
content: undefined,
status: undefined,
- categoryId: undefined
+ categoryId: undefined,
+ isPublic: 1
},
rules: {
title: [{ required: true, message: '标题不能为空', trigger: 'blur' }],