diff --git a/config/dev.env.js b/config/dev.env.js index 031402a..0115503 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -5,4 +5,5 @@ const prodEnv = require('./prod.env') module.exports = merge(prodEnv, { NODE_ENV: '"development"', BASE_API: '"http://localhost:8000"' + // BASE_API: '"https://api.auauz.net"' }) diff --git a/config/index.js b/config/index.js index f70a9d5..9307278 100644 --- a/config/index.js +++ b/config/index.js @@ -1,15 +1,35 @@ 'use strict' // Template version: 1.2.6 -// see http://vuejs-templates.github.io/webpack for documentation. - +const devEnv = require('./dev.env') +// 获取接口地址 +const base_url = devEnv.BASE_API.replace(/"/g,'') const path = require('path') - module.exports = { dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', - proxyTable: {}, + // 配置代理 + proxyTable: { + '/auth': { + // 测试环境 + target: base_url, + secure: true, + changeOrigin: true, + pathRewrite: { + '^/auth': 'auth' + } + }, + '/api': { + // 测试环境 + target: base_url, + secure: true, + changeOrigin: true, + pathRewrite: { + '^/api': 'api' + } + } + }, // Various Dev Server settings host: 'localhost', // can be overwritten by process.env.HOST @@ -57,7 +77,7 @@ module.exports = { * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: './', /** * Source Maps diff --git a/package.json b/package.json index da1d0e9..66ccd70 100644 --- a/package.json +++ b/package.json @@ -18,14 +18,13 @@ }, "dependencies": { "@riophae/vue-treeselect": "0.0.38", - "axios": ">=0.18.1", + "axios": "^0.19.0", "clipboard": "1.7.1", "codemirror": "^5.38.0", "connect": "3.6.6", "echarts": "4.1.0", - "element-ui": "^2.10.1", + "element-ui": "^2.11.1", "file-saver": "1.3.8", - "html2canvas": "^1.0.0-rc.3", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "jszip": "3.1.5", @@ -34,10 +33,9 @@ "nprogress": "0.2.0", "path-to-regexp": "2.4.0", "screenfull": "3.3.3", - "simple-drawing-board": "1.4.1", "vue": "2.5.17", "vue-count-to": "1.0.13", - "vue-router": "^3.1.3", + "vue-router": "3.1.3", "vuex": "3.0.1", "wangeditor": ">=3.0.0", "xlsx": "^0.11.16" diff --git a/src/api/localStorage.js b/src/api/localStorage.js index 02293f0..b2e1bdb 100644 --- a/src/api/localStorage.js +++ b/src/api/localStorage.js @@ -15,6 +15,14 @@ export function del(id) { }) } +export function delAll(ids) { + return request({ + url: 'api/localStorage/', + method: 'delete', + data: ids + }) +} + export function edit(data) { return request({ url: 'api/localStorage', diff --git a/src/api/user.js b/src/api/user.js index a928986..49e2777 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -7,6 +7,13 @@ export function add(data) { data }) } +export function downloadUser() { + return request({ + url: 'api/users/download', + method: 'get', + responseType: 'blob' + }) +} export function del(id) { return request({ diff --git a/src/assets/avatar/avatar.png b/src/assets/avatar/avatar.png new file mode 100644 index 0000000..e16488e Binary files /dev/null and b/src/assets/avatar/avatar.png differ diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 89d967e..96b78dc 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -37,6 +37,9 @@ export default { if (first && first.name !== '首页') { matched = [{ path: '/dashboard', meta: { title: '首页' }}].concat(matched) } + if (matched.length >= 4) { + matched.splice(1, 1) + } this.levelList = matched }, pathCompile(path) { diff --git a/src/config/index.js b/src/config/index.js index 5bf337d..492405f 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -36,7 +36,7 @@ export default { /** * @description 固定头部 */ - fixedHeader: false, + fixedHeader: true, /** * @description 是否显示logo @@ -46,7 +46,7 @@ export default { /** * 是否显示设置的悬浮按钮 */ - settingBtn: true, + settingBtn: false, /** * 是否显示设置的底部信息 diff --git a/src/icons/svg/weixin.svg b/src/icons/svg/weixin.svg new file mode 100644 index 0000000..5d57a61 --- /dev/null +++ b/src/icons/svg/weixin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/layout/Layout.vue b/src/layout/Layout.vue index 05f927e..47a6193 100644 --- a/src/layout/Layout.vue +++ b/src/layout/Layout.vue @@ -5,13 +5,6 @@