diff --git a/src/components/Form/src/jeecg/components/JEditor2.vue b/src/components/Form/src/jeecg/components/JEditor2.vue new file mode 100644 index 0000000..5e426a2 --- /dev/null +++ b/src/components/Form/src/jeecg/components/JEditor2.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/src/components/Tinymce/index2.ts b/src/components/Tinymce/index2.ts new file mode 100644 index 0000000..962807a --- /dev/null +++ b/src/components/Tinymce/index2.ts @@ -0,0 +1,4 @@ +import { withInstall } from '/@/utils/index'; +import tinymce from './src/Editor2.vue'; + +export const Tinymce = withInstall(tinymce); diff --git a/src/components/Tinymce/src/Editor.vue b/src/components/Tinymce/src/Editor.vue index ff9279b..61a495b 100644 --- a/src/components/Tinymce/src/Editor.vue +++ b/src/components/Tinymce/src/Editor.vue @@ -90,7 +90,7 @@ height: { type: [Number, String] as PropType, required: false, - default: 400, + default: 220, }, width: { type: [Number, String] as PropType, diff --git a/src/components/Tinymce/src/Editor2.vue b/src/components/Tinymce/src/Editor2.vue new file mode 100644 index 0000000..1257b34 --- /dev/null +++ b/src/components/Tinymce/src/Editor2.vue @@ -0,0 +1,331 @@ + + + + + + + diff --git a/src/components/Tinymce/src/tinymce2.ts b/src/components/Tinymce/src/tinymce2.ts new file mode 100644 index 0000000..7f5bcc1 --- /dev/null +++ b/src/components/Tinymce/src/tinymce2.ts @@ -0,0 +1,39 @@ +// Any plugins you want to setting has to be imported +// Detail plugins list see https://www.tinymce.com/docs/plugins/ +// Custom builds see https://www.tinymce.com/download/custom-builds/ +// colorpicker/contextmenu/textcolor plugin is now built in to the core editor, please remove it from your editor configuration + +// export const plugins = [ +// 'advlist anchor autolink autosave code codesample directionality fullscreen hr insertdatetime link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus template textpattern visualblocks visualchars wordcount image', +// ]; + +// export const toolbar = +// 'fullscreen code preview | undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent lineheight|subscript superscript blockquote| numlist bullist checklist | forecolor backcolor casechange permanentpen formatpainter removeformat | pagebreak | charmap emoticons | insertfile image media pageembed link anchor codesample insertdatetime hr| a11ycheck ltr rtl'; + +// export const simplePlugins = ['lists image link media table textcolor wordcount contextmenu fullscreen']; + +// export const simpleToolbar = [ +// 'undo redo formatselect bold italic alignleft aligncenter alignright alignjustify bullist numlist outdent indent', +// 'lists link unlink image media table removeformat fullscreen', +// ]; + +// export const menubar = 'file edit insert view format table'; + +export const plugins = [ + 'image', +]; + +// export const toolbar = +// 'fullscreen code preview | undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent lineheight|subscript superscript blockquote| numlist bullist checklist | forecolor backcolor casechange permanentpen formatpainter removeformat | pagebreak | charmap emoticons | insertfile image media pageembed link anchor codesample insertdatetime hr| a11ycheck ltr rtl'; + + export const toolbar = + ''; + // fullscreen code preview | undo redo | + +export const simplePlugins = ['lists image link media table textcolor wordcount contextmenu fullscreen']; + +export const simpleToolbar = [ + 'lists link unlink image media table removeformat fullscreen', +]; + +export const menubar = ''; diff --git a/src/views/kc/wjxCswj/WjxCywjV2List.vue b/src/views/kc/wjxCswj/WjxCywjV2List.vue index eff7da6..72d27b5 100644 --- a/src/views/kc/wjxCswj/WjxCywjV2List.vue +++ b/src/views/kc/wjxCswj/WjxCywjV2List.vue @@ -172,11 +172,11 @@ >填空

- + >

我的题库

@@ -430,14 +430,29 @@ +
@@ -945,10 +962,12 @@ import { list, deleteOne, saveOrUpdate } from '/@/views/kc/wjxWjxx/WjxWjxx.api'; import { Form } from 'ant-design-vue'; import { getValueType } from '/@/utils'; import JEditor from '/@/components/Form/src/jeecg/components/JEditor.vue'; +import JEditor2 from '/@/components/Form/src/jeecg/components/JEditor2.vue'; import { useUserStore } from '/@/store/modules/user'; import draggable from 'vuedraggable'; import { QrCode } from '/@/components/Qrcode/index'; import { useGlobSetting } from '/@/hooks/setting'; +import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue'; import WjxWjxxTmlbDjjgsModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgsModal.vue'; import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue'; @@ -2279,4 +2298,8 @@ onMounted(() => { white-space: nowrap; text-overflow: clip; } +// /deep/.jeecg-tinymce-container{ +// width: 20rem !important; +// height: 100px; +// } diff --git a/src/views/zy/zyInfo/ZyInfoV2List.vue b/src/views/zy/zyInfo/ZyInfoV2List.vue index 1db91f8..820e635 100644 --- a/src/views/zy/zyInfo/ZyInfoV2List.vue +++ b/src/views/zy/zyInfo/ZyInfoV2List.vue @@ -934,7 +934,7 @@ function handleScoreFabu(record: Recordable) { } //教师批阅作业 function handlepiyue(record: Recordable) { - registerPiyueModal.value.disableSubmit = false; + registerPiyueModal.value.disableSubmit = true; registerPiyueModal.value.edit(record); } diff --git a/src/views/zy/zyInfoStudent/components/ZyInfoStudentPiyueForm.vue b/src/views/zy/zyInfoStudent/components/ZyInfoStudentPiyueForm.vue index 31b8343..8d60a69 100644 --- a/src/views/zy/zyInfoStudent/components/ZyInfoStudentPiyueForm.vue +++ b/src/views/zy/zyInfoStudent/components/ZyInfoStudentPiyueForm.vue @@ -2,36 +2,73 @@ - - - - {{zyInfo.title}} - + +
+ +
+
+ +
+
+
+ +
+
+
+ 下载文件 +
- - - {{formData.studentName}} - - - - - - - - - - - + + + + + {{zyInfo.title}} + + + + + {{formData.studentName}} + + + + + + + + + + + + + + + + + + +
+ 保存 + 保存并下一个 +
+
+
+