| | |
| | | import 'tinymce/plugins/anchor' |
| | | import 'tinymce/plugins/codesample' |
| | | import 'tinymce/plugins/fullscreen' |
| | | import 'tinymce/plugins/paste' |
| | | export default { |
| | | components: { |
| | | Editor, |
| | |
| | | plugins: { |
| | | type: [String, Array], |
| | | default: |
| | | 'importcss autoresize searchreplace autolink code visualblocks visualchars fullscreen image link codesample table charmap nonbreaking anchor advlist lists wordcount charmap emoticons indent2em', |
| | | 'importcss autoresize searchreplace autolink code visualblocks visualchars fullscreen image link codesample table charmap nonbreaking anchor advlist lists wordcount charmap emoticons indent2em paste', |
| | | }, |
| | | toolbar: { |
| | | type: [String, Array], |
| | |
| | | branding: false, |
| | | promotion: false, |
| | | convert_urls: false, |
| | | paste_preprocess: (plugin, args) => { |
| | | if (args.wordContent) { |
| | | this.$message.warning( |
| | | '检测到可能是从word中复制的内容,如果存在图片请通过编辑器的图片上传功能上传' |
| | | ) |
| | | } |
| | | }, |
| | | paste_data_images: true, |
| | | font_formats: |
| | | 'Arial=arial,helvetica,sans-serif; 宋体=SimSun; 微软雅黑=Microsoft Yahei; Impact=impact,chicago;', |
| | | fontsize_formats: |
| | |
| | | minWidth: 250, |
| | | showOverflowTooltip: true, |
| | | }, |
| | | { label: '反馈类型', prop: 'typeStr', minWidth: 120 }, |
| | | { label: '反馈时间', prop: 'createTime', minWidth: 180 }, |
| | | { |
| | | label: '回复内容', |
| | |
| | | type: 'input', |
| | | el: { type: 'textarea' }, |
| | | }, |
| | | { label: '反馈类型:', id: 'typeStr', type: 'input' }, |
| | | { |
| | | label: '图片:', |
| | | id: 'pictures', |
| | | type: 'bus-upload', |
| | | forceDisabled: true, |
| | | el: { |
| | | listType: 'picture-card', |
| | | }, |
| | | inputFormat: (row) => { |
| | | if ('pictures' in row) { |
| | | try { |
| | | return row.pictures |
| | | ? JSON.parse(row.pictures).map((i) => ({ url: i })) |
| | | : [] |
| | | } catch (e) {} |
| | | } |
| | | }, |
| | | }, |
| | | { label: '反馈时间:', id: 'createTime', type: 'input' }, |
| | | { |
| | | label: '回复内容:', |