From 1ec084debe4cf265e89d4f1fb021c62593a8e9ee Mon Sep 17 00:00:00 2001 From: qsh <> Date: Thu, 16 May 2024 16:33:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Editor/src/Editor.vue | 20 ++- src/components/Editor/src/README.md | 68 ++++++++++ src/router/modules/remaining.ts | 11 ++ src/styles/index.scss | 5 +- src/views/Basic/GeneralSet/Comp/BSClue.vue | 45 ++++++ .../GeneralSet/Comp/BSSalerComission.vue | 69 ++++++++++ src/views/Basic/GeneralSet/index.vue | 21 +++ src/views/Clue/Pool/Comp/DialogClue.vue | 2 +- src/views/Clue/Pool/Comp/DialogSuccess.vue | 2 +- src/views/Clue/Pool/cluePool.data.js | 25 ++-- src/views/Clue/Set/Comp/ClueSource.vue | 105 ++++++++++++++ src/views/Clue/Set/Comp/DialogSource.vue | 111 +++++++++++++++ src/views/Clue/Set/index.vue | 12 +- src/views/Clue/Skill/Comp/DialogSkill.vue | 2 +- .../Class/Comp/DialogClass.vue | 2 +- src/views/SchoolManagement/Place/index.vue | 128 +++++++++--------- .../School/Comp/DialogSchool.vue | 2 +- 17 files changed, 542 insertions(+), 88 deletions(-) create mode 100644 src/components/Editor/src/README.md create mode 100644 src/views/Basic/GeneralSet/Comp/BSClue.vue create mode 100644 src/views/Basic/GeneralSet/Comp/BSSalerComission.vue create mode 100644 src/views/Basic/GeneralSet/index.vue create mode 100644 src/views/Clue/Set/Comp/ClueSource.vue create mode 100644 src/views/Clue/Set/Comp/DialogSource.vue diff --git a/src/components/Editor/src/Editor.vue b/src/components/Editor/src/Editor.vue index 73925f8..109f092 100644 --- a/src/components/Editor/src/Editor.vue +++ b/src/components/Editor/src/Editor.vue @@ -18,7 +18,7 @@ i18nChangeLanguage(unref(currentLocale).lang) const props = defineProps({ editorId: propTypes.string.def('wangeEditor-1'), - height: propTypes.oneOfType([Number, String]).def('500px'), + height: propTypes.oneOfType([Number, String]).def('40vh'), editorConfig: { type: Object as PropType>, default: () => undefined @@ -154,6 +154,23 @@ const editorStyle = computed(() => { } }) +const toolbarConfig = ref({ + excludeKeys: [ + 'insertVideo', // 网络视频 + 'insertImage', // 网络图片 + 'insertLink', // 链接 + 'codeBlock', // 代码块 + 'headerSelect', // 标题 + 'blockquote', // 引用 + 'fontFamily', // 字体 + 'todo', // 代办 + 'group-indent', // 缩进 + 'emotion', // 表情 + 'undo', // 撤销 + 'redo' // 重做 + ] +}) + // 回调函数 const handleChange = (editor: IDomEditor) => { emit('change', editor) @@ -184,6 +201,7 @@ defineExpose({ diff --git a/src/components/Editor/src/README.md b/src/components/Editor/src/README.md new file mode 100644 index 0000000..3fdcc2c --- /dev/null +++ b/src/components/Editor/src/README.md @@ -0,0 +1,68 @@ + +**「工具栏key」** +[ + "headerSelect",// 标题 + "blockquote", // 引用 + "bold", // 加粗 + "underline", // 下划线 + "italic", // 斜体 + // 删除线、清除格式等 + "group-more-style", + { + key: "group-more-style", + title: "更多", + iconSvg: + '', + menuKeys: Array(5) + }, + "color", // 文字颜色 + "bgColor", // 背景色 + "fontSize", // 字号 + "fontFamily", // 字体 + "lineHeight", // 行高 + "bulletedList", // 无序列表 + "numberedList", // 有序列表 + "todo", // 代办 + // 对齐 + "group-justify", + { + key: "group-justify", + title: "对齐", + iconSvg: + '', + menuKeys: Array(4) + }, + // 缩进 + "group-indent", + { + key: "group-indent", + title: "缩进", + iconSvg: + '', + menuKeys: Array(2) + }, + "emotion",// 表情 + "insertLink",// 插入链接 + "group-image",// 上传图片 + { + key: "group-image", + title: "图片", + iconSvg: + '', + menuKeys: Array(2) + }, + "group-video",// 上传视频 + { + key: "group-video", + title: "视频", + iconSvg: + '', + menuKeys: Array(2) + }, + "insertTable",// 插入表格 + "codeBlock", // 代码块 + "divider", // 分割线 + "undo", // 撤销 + "redo", // 重做 + "fullScreen" // 全屏 +] diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index e09a062..94943ae 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -295,6 +295,17 @@ const remainingRouter: AppRouteRecordRaw[] = [ noCache: false, affix: true } + }, + { + path: 'generalSet', + component: () => import('@/views/Basic/GeneralSet/index.vue'), + name: 'GeneralSet', + meta: { + title: '通用配置', + icon: 'ep:home-filled', + noCache: false, + affix: true + } } ] }, diff --git a/src/styles/index.scss b/src/styles/index.scss index c1650dc..101e97e 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -19,7 +19,8 @@ .el-dialog__body { overflow-y: auto; padding-top: 0; - max-height: calc(100% - 118px); + padding-bottom: 0; + // max-height: calc(100% - 118px); } /* nprogress 适配 element-plus 的主题色 */ @@ -53,7 +54,7 @@ .el-dialog { margin-top: 5vh; - max-height: 90vh; + // max-height: 90vh; } .el-form--inline .el-form-item { diff --git a/src/views/Basic/GeneralSet/Comp/BSClue.vue b/src/views/Basic/GeneralSet/Comp/BSClue.vue new file mode 100644 index 0000000..d61e7f6 --- /dev/null +++ b/src/views/Basic/GeneralSet/Comp/BSClue.vue @@ -0,0 +1,45 @@ + + + + + diff --git a/src/views/Basic/GeneralSet/Comp/BSSalerComission.vue b/src/views/Basic/GeneralSet/Comp/BSSalerComission.vue new file mode 100644 index 0000000..a64b5f7 --- /dev/null +++ b/src/views/Basic/GeneralSet/Comp/BSSalerComission.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/src/views/Basic/GeneralSet/index.vue b/src/views/Basic/GeneralSet/index.vue new file mode 100644 index 0000000..5561900 --- /dev/null +++ b/src/views/Basic/GeneralSet/index.vue @@ -0,0 +1,21 @@ + + + + + diff --git a/src/views/Clue/Pool/Comp/DialogClue.vue b/src/views/Clue/Pool/Comp/DialogClue.vue index 1b00c85..a794463 100644 --- a/src/views/Clue/Pool/Comp/DialogClue.vue +++ b/src/views/Clue/Pool/Comp/DialogClue.vue @@ -1,5 +1,5 @@