diff --git a/src/api/user.ts b/src/api/user.ts index 4ade1e3d..ac18ae3f 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -1,4 +1,5 @@ import request from "@/utils/request"; +import { AxiosPromise, AxiosResponse } from "axios"; const USER_BASE_URL = "/api/v1/users"; @@ -194,6 +195,16 @@ class UserAPI { data: data, }); } + + /** + * 获取用户下拉列表 + */ + static getOptions(): AxiosPromise { + return request({ + url: `${USER_BASE_URL}/options`, + method: "get", + }); + } } export default UserAPI; diff --git a/src/components/WangEditor/index.vue b/src/components/WangEditor/index.vue index bdc4cc8d..bc63be4d 100644 --- a/src/components/WangEditor/index.vue +++ b/src/components/WangEditor/index.vue @@ -30,6 +30,10 @@ const props = defineProps({ type: [String], default: "", }, + excludeKeys: { + type: Array, + default: [], + }, }); const emit = defineEmits(["update:modelValue"]); @@ -37,8 +41,10 @@ const emit = defineEmits(["update:modelValue"]); const modelValue = useVModel(props, "modelValue", emit); const editorRef = shallowRef(); // 编辑器实例,必须用 shallowRef -const mode = ref("default"); // 编辑器模式 -const toolbarConfig = ref({}); // 工具条配置 +const mode = ref("simple"); // 编辑器模式 +const toolbarConfig = ref({ + excludeKeys: props.excludeKeys, +}); // 工具条配置 // 编辑器配置 const editorConfig = ref({ placeholder: "请输入内容...", diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue index 32d5b95a..385d7b5f 100644 --- a/src/views/system/notice/index.vue +++ b/src/views/system/notice/index.vue @@ -80,7 +80,7 @@ align="center" key="noticeType" label="通知类型" - prop="noticeType" + prop="noticeTypeLabel" min-width="150" /> -
- + + + + + + + + + + + + + + + + + + + 全体 + 指定 + + + - - + - - - - - - - - - - - - - - - - - 全体 - 指定 - - - -
+ + +