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 @@ + + + + + + 新增一级菜单 + + + + + + + + + {{ + row.component === "children" + ? "/src/components/children/index.vue" + : "/src/views/" + row.component + ".vue" + }} + + + + + + {{ + row.meta && row.meta.isMenu !== false && !row.meta.activeMenu && row.path + ? "是" + : "否" + }} + + + + + 图标 + 编辑 + 新增下级 + 删除 + + + + + + + + {{ dialog.form.parentName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 点击此处 + + 查看所有图标 + + + + + + + + + + + + 搜索 + + + + + + + + + + + + + + + + + + + 保存 + 关闭 + + + + + + + + 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