From b9deb6ed29683afd426c12eb36d2e2ad668634d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Thu, 23 May 2024 13:11:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E5=8A=A0=E8=B6=85=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courseSettings/chapter-add-or-update.vue | 509 +++++++++--------- .../medicalCourseDescription.vue | 143 +---- .../nationalStudiesCourseDescription.vue | 143 +---- src/views/modules/xieyi/add-update.vue | 76 ++- 4 files changed, 326 insertions(+), 545 deletions(-) diff --git a/src/views/modules/courseSettings/chapter-add-or-update.vue b/src/views/modules/courseSettings/chapter-add-or-update.vue index fae4966..d855d64 100644 --- a/src/views/modules/courseSettings/chapter-add-or-update.vue +++ b/src/views/modules/courseSettings/chapter-add-or-update.vue @@ -1,274 +1,271 @@ - - diff --git a/src/views/modules/courseSettings/medicalCourseDescription.vue b/src/views/modules/courseSettings/medicalCourseDescription.vue index 9924308..2fd9282 100644 --- a/src/views/modules/courseSettings/medicalCourseDescription.vue +++ b/src/views/modules/courseSettings/medicalCourseDescription.vue @@ -1,127 +1,17 @@ @@ -130,6 +20,12 @@ import AddOrUpdate from "./chapter-add-or-update"; export default { data() { return { + setList: [ + { label: "购买须知", id: 1 }, + { label: "使用须知", id: 2 }, + { label: "学习次序", id: 3 }, + { label: "超V用户", id: 4 } + ], dataForm: { key: "" }, @@ -344,8 +240,11 @@ export default { overflow: hidden; display: -webkit-box; - -webkit-line-clamp:1; + -webkit-line-clamp: 1; -webkit-box-orient: vertical; } +::v-deep .mod-config .el-tabs .el-tabs__content { + height: 100% !important; +} diff --git a/src/views/modules/courseSettings/nationalStudiesCourseDescription.vue b/src/views/modules/courseSettings/nationalStudiesCourseDescription.vue index 9924308..2fd9282 100644 --- a/src/views/modules/courseSettings/nationalStudiesCourseDescription.vue +++ b/src/views/modules/courseSettings/nationalStudiesCourseDescription.vue @@ -1,127 +1,17 @@ @@ -130,6 +20,12 @@ import AddOrUpdate from "./chapter-add-or-update"; export default { data() { return { + setList: [ + { label: "购买须知", id: 1 }, + { label: "使用须知", id: 2 }, + { label: "学习次序", id: 3 }, + { label: "超V用户", id: 4 } + ], dataForm: { key: "" }, @@ -344,8 +240,11 @@ export default { overflow: hidden; display: -webkit-box; - -webkit-line-clamp:1; + -webkit-line-clamp: 1; -webkit-box-orient: vertical; } +::v-deep .mod-config .el-tabs .el-tabs__content { + height: 100% !important; +} diff --git a/src/views/modules/xieyi/add-update.vue b/src/views/modules/xieyi/add-update.vue index 41ed62e..98af2b4 100644 --- a/src/views/modules/xieyi/add-update.vue +++ b/src/views/modules/xieyi/add-update.vue @@ -40,7 +40,33 @@ import { quillEditor } from 'vue-quill-editor' - + const toolbarOptions = [ + ["bold", "italic", "underline", "strike"], // 加粗,斜体,下划线,删除线 + ["blockquote", "code-block"], //引用,代码块 + [{ header: 1 }, { header: 2 }], // 几级标题 + [{ list: "ordered" }, { list: "bullet" }], // 有序列表,无序列表 + [{ script: "sub" }, { script: "super" }], // 下角标,上角标 + [{ indent: "-1" }, { indent: "+1" }], // 缩进 + [{ direction: "rtl" }], // 文字输入方向 + [{ size: ["small", false, "large", "huge"] }], // 字体大小 + [{ header: [1, 2, 3, 4, 5, 6, false] }], // 标题 + [{ color: [] }, { background: [] }], // 颜色选择 + [ + { + font: [ + "SimSun", + "SimHei", + "Microsoft-YaHei", + "KaiTi", + "FangSong", + "Arial" + ] + } + ], // 字体 + [{ align: [] }], // 居中 + ["clean"], // 清除样式, + ["link", "image"] // 上传图片、上传视频 +]; import 'quill/dist/quill.core.css' import 'quill/dist/quill.snow.css' import 'quill/dist/quill.bubble.css' @@ -88,50 +114,10 @@ ], editorOption: { modules: { - toolbar: [ - ['bold', 'italic', 'underline', 'strike'], // 加粗 斜体 下划线 删除线 - ['blockquote', 'code-block'], // 引用 代码块 - [{ - header: 1 - }, { - header: 2 - }], // 1、2 级标题 - [{ - list: 'ordered' - }, { - list: 'bullet' - }], // 有序、无序列表 - [{ - script: 'sub' - }, { - script: 'super' - }], // 上标/下标 - [{ - indent: '-1' - }, { - indent: '+1' - }], // 缩进 - [{ - direction: 'rtl' - }], // 文本方向 - [{ - size: ['12', '14', '16', '18', '20', '22', '24', '28', '32', '36'] - }], // 字体大小 - [{ - header: [1, 2, 3, 4, 5, 6] - }], // 标题 - [{ - color: [] - }, { - background: [] - }], // 字体颜色、字体背景颜色 - // [{ font: ['songti'] }], // 字体种类 - [{ - align: [] - }], // 对齐方式 - ['clean'], // 清除文本格式 - ['image', 'video'] // 链接、图片、视频 - ] + toolbar: { + container: toolbarOptions, + + } }, placeholder: '请输入正文' },