forked from zhurui/management
1 line
17 KiB
JSON
1 line
17 KiB
JSON
|
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\sys\\news-add-or-update.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\sys\\news-add-or-update.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport Cookies from 'js-cookie';\nimport debounce from 'lodash/debounce';\nimport 'quill/dist/quill.snow.css';\nimport Quill from 'quill';\nexport default {\n data: function data() {\n return {\n visible: false,\n quillEditor: null,\n quillEditorToolbarOptions: [['bold', 'italic', 'underline', 'strike'], ['blockquote', 'code-block', 'image'], [{\n 'header': 1\n }, {\n 'header': 2\n }], [{\n 'list': 'ordered'\n }, {\n 'list': 'bullet'\n }], [{\n 'script': 'sub'\n }, {\n 'script': 'super'\n }], [{\n 'indent': '-1'\n }, {\n 'indent': '+1'\n }], [{\n 'direction': 'rtl'\n }], [{\n 'size': ['small', false, 'large', 'huge']\n }], [{\n 'header': [1, 2, 3, 4, 5, 6, false]\n }], [{\n 'color': []\n }, {\n 'background': []\n }], [{\n 'font': []\n }], [{\n 'align': []\n }], ['clean']],\n uploadUrl: '',\n dataForm: {\n id: '',\n title: '',\n content: '',\n pubDate: ''\n }\n };\n },\n computed: {\n dataRule: function dataRule() {\n var _this = this;\n\n var validateContent = function validateContent(rule, value, callback) {\n if (_this.quillEditor.getLength() <= 1) {\n return callback(new Error(_this.$t('validate.required')));\n }\n\n callback();\n };\n\n return {\n title: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }],\n content: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }, {\n validator: validateContent,\n trigger: 'blur'\n }],\n pubDate: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }]\n };\n }\n },\n methods: {\n init: function init() {\n var _this2 = this;\n\n this.visible = true;\n this.$nextTick(function () {\n if (_this2.quillEditor) {\n _this2.quillEditor.deleteText(0, _this2.quillEditor.getLength());\n } else {\n _this2.quillEditorHandle();\n }\n\n _this2.$refs['dataForm'].resetFields();\n\n if (_this2.dataForm.id) {\n _this2.getInfo();\n }\n });\n },\n // 富文本编辑器\n quillEditorHandle: function quillEditorHandle() {\n var _this3 = this;\n\n this.quillEditor = new Quill('#J_quillEditor', {\n modules: {\n toolbar: this.quillEditorToolbarOptions\n },\n theme: 'snow'\n }); // 自定义上传图片功能 (使用element upload组件)\n\n
|