From f79ef13ddf305eddfbf9bb97a7014cfb32909673 Mon Sep 17 00:00:00 2001 From: WangHao <43278047@qq.com> Date: Mon, 5 Oct 2020 22:49:59 +0800 Subject: [PATCH] =?UTF-8?q?MDUI=E5=89=8D=E7=AB=AFcss=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E7=BE=8E=E5=8C=96=E5=BA=93=E9=9B=86=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/package.json | 225 +++++++++--------- ruoyi-ui/public/index.html | 15 +- ruoyi-ui/src/main.js | 5 + ruoyi-ui/src/router/index.js | 6 +- .../src/views/bookmark/bookmark/index.vue | 4 +- .../src/views/bookmark/common/ImportHtml.vue | 3 +- ruoyi-ui/src/views/bookmark/common/NqEdit.vue | 107 +++++++++ .../src/views/bookmark/common/NqQuillEdit.vue | 68 ------ ruoyi-ui/src/views/bookmark/index/index.vue | 23 +- 9 files changed, 253 insertions(+), 203 deletions(-) create mode 100644 ruoyi-ui/src/views/bookmark/common/NqEdit.vue delete mode 100644 ruoyi-ui/src/views/bookmark/common/NqQuillEdit.vue diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json index 443e60484..1be5fdf1a 100644 --- a/ruoyi-ui/package.json +++ b/ruoyi-ui/package.json @@ -1,112 +1,113 @@ -{ - "name": "ruoyi", - "version": "3.0.0", - "description": "若依管理系统", - "author": "若依", - "license": "MIT", - "scripts": { - "dev": "vue-cli-service serve --open", - "build:prod": "vue-cli-service build", - "build:stage": "vue-cli-service build --mode staging", - "preview": "node build/index.js --preview", - "lint": "eslint --ext .js,.vue src", - "test:unit": "jest --clearCache && vue-cli-service test:unit", - "test:ci": "npm run lint && npm run test:unit", - "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", - "new": "plop" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "lint-staged": { - "src/**/*.{js,vue}": [ - "eslint --fix", - "git add" - ] - }, - "keywords": [ - "vue", - "admin", - "dashboard", - "element-ui", - "boilerplate", - "admin-template", - "management-system" - ], - "repository": { - "type": "git", - "url": "https://gitee.com/y_project/RuoYi-Vue.git" - }, - "dependencies": { - "@riophae/vue-treeselect": "0.4.0", - "@tinymce/tinymce-vue": "^3.2.3", - "axios": "0.18.1", - "clipboard": "2.0.4", - "echarts": "4.2.1", - "element-ui": "^2.13.2", - "file-saver": "2.0.1", - "fuse.js": "3.4.4", - "js-beautify": "^1.10.2", - "js-cookie": "2.2.0", - "jsencrypt": "3.0.0-rc.1", - "normalize.css": "7.0.0", - "nprogress": "0.2.0", - "path-to-regexp": "2.4.0", - "screenfull": "4.2.0", - "sortablejs": "1.8.4", - "timeago.js": "^4.0.2", - "tinymce": "^5.5.1", - "vue": "2.6.10", - "vue-count-to": "1.0.13", - "vue-cropper": "0.4.9", - "vue-quill-editor": "3.0.6", - "vue-router": "3.0.2", - "vue-splitpane": "1.0.4", - "vue-timeago": "^5.1.2", - "vuedraggable": "2.20.0", - "vuex": "3.1.0" - }, - "devDependencies": { - "@vue/cli-plugin-babel": "3.5.3", - "@vue/cli-plugin-eslint": "^3.9.1", - "@vue/cli-plugin-unit-jest": "3.5.3", - "@vue/cli-service": "3.5.3", - "@vue/test-utils": "1.0.0-beta.29", - "autoprefixer": "^9.5.1", - "babel-core": "7.0.0-bridge.0", - "babel-eslint": "10.0.1", - "babel-jest": "23.6.0", - "chalk": "2.4.2", - "chokidar": "2.1.5", - "connect": "3.6.6", - "eslint": "5.15.3", - "eslint-plugin-vue": "5.2.2", - "html-webpack-plugin": "3.2.0", - "http-proxy-middleware": "^0.19.1", - "husky": "1.3.1", - "less": "^3.12.2", - "less-loader": "^7.0.1", - "lint-staged": "8.1.5", - "mockjs": "1.0.1-beta3", - "node-sass": "^4.14.1", - "plop": "2.3.0", - "runjs": "^4.3.2", - "sass-loader": "^7.3.1", - "script-ext-html-webpack-plugin": "2.1.3", - "script-loader": "0.7.2", - "serve-static": "^1.13.2", - "svg-sprite-loader": "4.1.3", - "svgo": "1.2.0", - "vue-template-compiler": "2.6.10" - }, - "engines": { - "node": ">=8.9", - "npm": ">= 3.0.0" - }, - "browserslist": [ - "> 1%", - "last 2 versions" - ] -} +{ + "name": "ruoyi", + "version": "3.0.0", + "description": "若依管理系统", + "author": "若依", + "license": "MIT", + "scripts": { + "dev": "vue-cli-service serve --open", + "build:prod": "vue-cli-service build", + "build:stage": "vue-cli-service build --mode staging", + "preview": "node build/index.js --preview", + "lint": "eslint --ext .js,.vue src", + "test:unit": "jest --clearCache && vue-cli-service test:unit", + "test:ci": "npm run lint && npm run test:unit", + "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", + "new": "plop" + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, + "lint-staged": { + "src/**/*.{js,vue}": [ + "eslint --fix", + "git add" + ] + }, + "keywords": [ + "vue", + "admin", + "dashboard", + "element-ui", + "boilerplate", + "admin-template", + "management-system" + ], + "repository": { + "type": "git", + "url": "https://gitee.com/y_project/RuoYi-Vue.git" + }, + "dependencies": { + "@riophae/vue-treeselect": "0.4.0", + "@tinymce/tinymce-vue": "^3.2.3", + "axios": "0.18.1", + "clipboard": "2.0.4", + "echarts": "4.2.1", + "element-ui": "^2.13.2", + "file-saver": "2.0.1", + "fuse.js": "3.4.4", + "js-beautify": "^1.10.2", + "js-cookie": "2.2.0", + "jsencrypt": "3.0.0-rc.1", + "mdui": "^1.0.0", + "normalize.css": "7.0.0", + "nprogress": "0.2.0", + "path-to-regexp": "2.4.0", + "screenfull": "4.2.0", + "sortablejs": "1.8.4", + "timeago.js": "^4.0.2", + "tinymce": "^5.5.1", + "vue": "2.6.10", + "vue-count-to": "1.0.13", + "vue-cropper": "0.4.9", + "vue-quill-editor": "3.0.6", + "vue-router": "3.0.2", + "vue-splitpane": "1.0.4", + "vue-timeago": "^5.1.2", + "vuedraggable": "2.20.0", + "vuex": "3.1.0" + }, + "devDependencies": { + "@vue/cli-plugin-babel": "3.5.3", + "@vue/cli-plugin-eslint": "^3.9.1", + "@vue/cli-plugin-unit-jest": "3.5.3", + "@vue/cli-service": "3.5.3", + "@vue/test-utils": "1.0.0-beta.29", + "autoprefixer": "^9.5.1", + "babel-core": "7.0.0-bridge.0", + "babel-eslint": "10.0.1", + "babel-jest": "23.6.0", + "chalk": "2.4.2", + "chokidar": "2.1.5", + "connect": "3.6.6", + "eslint": "5.15.3", + "eslint-plugin-vue": "5.2.2", + "html-webpack-plugin": "3.2.0", + "http-proxy-middleware": "^0.19.1", + "husky": "1.3.1", + "less": "^3.12.2", + "less-loader": "^7.0.1", + "lint-staged": "8.1.5", + "mockjs": "1.0.1-beta3", + "node-sass": "^4.14.1", + "plop": "2.3.0", + "runjs": "^4.3.2", + "sass-loader": "^7.3.1", + "script-ext-html-webpack-plugin": "2.1.3", + "script-loader": "0.7.2", + "serve-static": "^1.13.2", + "svg-sprite-loader": "4.1.3", + "svgo": "1.2.0", + "vue-template-compiler": "2.6.10" + }, + "engines": { + "node": ">=8.9", + "npm": ">= 3.0.0" + }, + "browserslist": [ + "> 1%", + "last 2 versions" + ] +} diff --git a/ruoyi-ui/public/index.html b/ruoyi-ui/public/index.html index 89bb9ea9d..77bb3239b 100644 --- a/ruoyi-ui/public/index.html +++ b/ruoyi-ui/public/index.html @@ -5,9 +5,10 @@ + @@ -204,6 +205,7 @@ } +
@@ -213,10 +215,11 @@
正在加载系统资源,请耐心等待
+ - + diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js index b96a288e5..5a9619872 100644 --- a/ruoyi-ui/src/main.js +++ b/ruoyi-ui/src/main.js @@ -54,6 +54,11 @@ Vue.prototype.msgInfo = function (msg) { this.$message.info(msg); } +//上线前需要删除的目前使用的 +// 1.目前使用的是 cdn引入 +// package.json >> "mdui": "^1.0.0", + + // 全局组件挂载 Vue.component('Pagination', Pagination) Vue.use(ElementUI) diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index 218bf89f2..60b8cf459 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -186,9 +186,9 @@ export const constantRoutes = [ requireAuth: true,//加该字段,表示进入这个路由是需要登录的true }, },{ - path: '/NqQuillEdit', - name: 'NqQuillEdit', - component: resolve => require(['../views/bookmark/common/NqQuillEdit.vue'], resolve), + path: '/NqEdit', + name: 'NqEdit', + component: resolve => require(['../views/bookmark/common/NqEdit.vue'], resolve), meta:{ title: 'Quill编辑器',icon:'user', requireAuth: true,//加该字段,表示进入这个路由是需要登录的true diff --git a/ruoyi-ui/src/views/bookmark/bookmark/index.vue b/ruoyi-ui/src/views/bookmark/bookmark/index.vue index d769f77b4..d794aa7d7 100644 --- a/ruoyi-ui/src/views/bookmark/bookmark/index.vue +++ b/ruoyi-ui/src/views/bookmark/bookmark/index.vue @@ -79,7 +79,7 @@ -
+
修改 @@ -97,7 +97,7 @@
-
+

{{bm.title}}

diff --git a/ruoyi-ui/src/views/bookmark/common/ImportHtml.vue b/ruoyi-ui/src/views/bookmark/common/ImportHtml.vue index 0d05f4238..453e54e07 100644 --- a/ruoyi-ui/src/views/bookmark/common/ImportHtml.vue +++ b/ruoyi-ui/src/views/bookmark/common/ImportHtml.vue @@ -29,8 +29,9 @@
提示:仅允许导入".html"格式文件!
diff --git a/ruoyi-ui/src/views/bookmark/common/NqEdit.vue b/ruoyi-ui/src/views/bookmark/common/NqEdit.vue new file mode 100644 index 000000000..64d6e009d --- /dev/null +++ b/ruoyi-ui/src/views/bookmark/common/NqEdit.vue @@ -0,0 +1,107 @@ + + + diff --git a/ruoyi-ui/src/views/bookmark/common/NqQuillEdit.vue b/ruoyi-ui/src/views/bookmark/common/NqQuillEdit.vue deleted file mode 100644 index da3fcedd4..000000000 --- a/ruoyi-ui/src/views/bookmark/common/NqQuillEdit.vue +++ /dev/null @@ -1,68 +0,0 @@ - - diff --git a/ruoyi-ui/src/views/bookmark/index/index.vue b/ruoyi-ui/src/views/bookmark/index/index.vue index f0a857626..7b9ef5f1e 100644 --- a/ruoyi-ui/src/views/bookmark/index/index.vue +++ b/ruoyi-ui/src/views/bookmark/index/index.vue @@ -5,13 +5,13 @@ -