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