From 434c8ee1b2d3985b6e5c45fe5c0044a2dba5c7b4 Mon Sep 17 00:00:00 2001 From: xuechunyuan <17853500702@163.com> Date: Thu, 23 Feb 2023 13:51:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=B7=AF=E5=BE=84=E5=89=8D?= =?UTF-8?q?=E7=BC=80=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/config/website.js | 1 + src/option/user/info.js | 2 + src/page/index/top/index.vue | 2 +- src/views/articlelist/index.vue | 14 ++- src/views/system/dept.vue | 6 +- src/views/system/user.vue | 4 +- src/views/system/userinfo.vue | 152 ++++++++++++++++---------------- vue.config.js | 5 +- 9 files changed, 102 insertions(+), 86 deletions(-) diff --git a/package.json b/package.json index be7fa81..1248dda 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "test:e2e": "vue-cli-service test:e2e" }, "dependencies": { - "avue-plugin-ueditor": "^0.1.4", + "avue-plugin-ueditor": "^0.1.7", "axios": "^0.18.0", "babel-polyfill": "^6.26.0", "classlist-polyfill": "^1.2.0", diff --git a/src/config/website.js b/src/config/website.js index c08dd35..c1e1125 100644 --- a/src/config/website.js +++ b/src/config/website.js @@ -48,4 +48,5 @@ export default { ssoUrl: 'http://localhost:8100/oauth/authorize?client_id=saber&response_type=code&redirect_uri=', // 单点登录回调地址(Saber服务的地址) redirectUri: 'http://localhost:1888', + filePrex: 'http://192.168.1.106:9000',//'http://www.qdscgs.com:9091' 图片前缀 } diff --git a/src/option/user/info.js b/src/option/user/info.js index d2fcbe0..e198ead 100644 --- a/src/option/user/info.js +++ b/src/option/user/info.js @@ -1,3 +1,4 @@ +import website from "../../config/website" export default { tabs: true, tabsActive: 1, @@ -10,6 +11,7 @@ export default { type: 'upload', listType: 'picture-img', propsHttp: { + home: website.filePrex, res: 'data', url: 'link', }, diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue index 6e22233..a31bdcf 100644 --- a/src/page/index/top/index.vue +++ b/src/page/index/top/index.vue @@ -75,7 +75,7 @@ + :src="userInfo.avatar ? website.filePrex + userInfo.avatar : require('@/assets/image/hospital_logo.png')"> {{userInfo.user_name}} diff --git a/src/views/articlelist/index.vue b/src/views/articlelist/index.vue index 5b2bc3b..850c8c8 100644 --- a/src/views/articlelist/index.vue +++ b/src/views/articlelist/index.vue @@ -3,7 +3,8 @@ + @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" + :upload-after="uploadAfter">