From 6c4f0bb95f2dc021d376ba7c8ba49279435250ca Mon Sep 17 00:00:00 2001 From: wangpeng Date: Wed, 24 Jan 2024 09:56:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 +- src/main.js | 3 + .../system/permission/route-per/index.vue | 360 +++++++++++ .../system/permission/route-per/indexcopu.vue | 310 +++++++++ src/views/system/route/components/button.vue | 266 ++++++++ src/views/system/route/components/list.vue | 592 ++++++++++++++++++ src/views/system/route/index.vue | 26 + src/views/system/route/svg-icons.js | 10 + 8 files changed, 1569 insertions(+), 1 deletion(-) create mode 100644 src/views/system/permission/route-per/index.vue create mode 100644 src/views/system/permission/route-per/indexcopu.vue create mode 100644 src/views/system/route/components/button.vue create mode 100644 src/views/system/route/components/list.vue create mode 100644 src/views/system/route/index.vue create mode 100644 src/views/system/route/svg-icons.js diff --git a/package.json b/package.json index 55b8321..4f31e84 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "", "private": true, "scripts": { - "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 192.168.0.112", + "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 192.168.0.69 --open", "start": "npm run dev", "unit": "jest --config test/unit/jest.conf.js --coverage", "e2e": "node test/e2e/runner.js", @@ -15,6 +15,7 @@ "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml" }, "dependencies": { + "@icon-park/vue": "^1.4.2", "@riophae/vue-treeselect": "^0.4.0", "axios": "^0.21.1", "default-passive-events": "^2.0.0", diff --git a/src/main.js b/src/main.js index c11733d..88689ae 100644 --- a/src/main.js +++ b/src/main.js @@ -45,6 +45,9 @@ Vue.use(BaiduMap, { ak: 'OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr' }) +import { install } from '@icon-park/vue/es/all' +install(Vue, 'icon') + import Print from 'vue-print-nb'// 打印 Vue.use(Print) // 注册 diff --git a/src/views/system/permission/route-per/index.vue b/src/views/system/permission/route-per/index.vue new file mode 100644 index 0000000..88877d5 --- /dev/null +++ b/src/views/system/permission/route-per/index.vue @@ -0,0 +1,360 @@ + + + diff --git a/src/views/system/permission/route-per/indexcopu.vue b/src/views/system/permission/route-per/indexcopu.vue new file mode 100644 index 0000000..4f6a863 --- /dev/null +++ b/src/views/system/permission/route-per/indexcopu.vue @@ -0,0 +1,310 @@ + + + diff --git a/src/views/system/route/components/button.vue b/src/views/system/route/components/button.vue new file mode 100644 index 0000000..588da82 --- /dev/null +++ b/src/views/system/route/components/button.vue @@ -0,0 +1,266 @@ + + + + diff --git a/src/views/system/route/components/list.vue b/src/views/system/route/components/list.vue new file mode 100644 index 0000000..8ee6bb1 --- /dev/null +++ b/src/views/system/route/components/list.vue @@ -0,0 +1,592 @@ + + + + diff --git a/src/views/system/route/index.vue b/src/views/system/route/index.vue new file mode 100644 index 0000000..8e5a829 --- /dev/null +++ b/src/views/system/route/index.vue @@ -0,0 +1,26 @@ + + + + + diff --git a/src/views/system/route/svg-icons.js b/src/views/system/route/svg-icons.js new file mode 100644 index 0000000..b538086 --- /dev/null +++ b/src/views/system/route/svg-icons.js @@ -0,0 +1,10 @@ +const req = require.context('../../../icons/svg', false, /\.svg$/) +const requireAll = requireContext => requireContext.keys() + +const re = /\.\/(.*)\.svg/ + +const svgIcons = requireAll(req).map(i => { + return i.match(re)[1] +}) + +export default svgIcons