From f8ef13d0494d93a521166a962aa5324bb57382db Mon Sep 17 00:00:00 2001 From: ysn <2126564605@qq.com> Date: Thu, 28 May 2026 14:34:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7-=E6=95=B0=E6=8D=AE=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- .env.staging | 2 +- src/api/login.js | 10 +- src/permission.js | 20 +- src/views/utility/index.vue | 471 +++++++++++++++++-------- src/views/videoCommunication/index.vue | 4 +- vue.config.js | 6 +- 8 files changed, 351 insertions(+), 166 deletions(-) diff --git a/.env.development b/.env.development index 686d928..f9ba1de 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VUE_APP_TITLE = 信联 ENV = 'development' # 修改为你真实的接口前缀 -VUE_APP_BASE_API = '/api_admin/v1' +VUE_APP_BASE_API = '/api/v1' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.production b/.env.production index b12af66..a4aabf7 100644 --- a/.env.production +++ b/.env.production @@ -5,4 +5,4 @@ VUE_APP_TITLE = 信联 ENV = 'production' # 信联/生产环境 -VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = '/api/v1' diff --git a/.env.staging b/.env.staging index 1c8a4d3..e1b7d7c 100644 --- a/.env.staging +++ b/.env.staging @@ -9,4 +9,4 @@ NODE_ENV = production ENV = 'staging' # 信联/测试环境 -VUE_APP_BASE_API = '/stage-api' +VUE_APP_BASE_API = '/api/v1' diff --git a/src/api/login.js b/src/api/login.js index c70850d..6dab655 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -57,4 +57,12 @@ export function getCodeImg() { method: 'get', timeout: 20000 }) -} \ No newline at end of file +} +// 获取网络配置 +export function getCommonConfigOptions(data) { + return request({ + url: '/common/config/options', + method: 'post', + data: data + }) +} diff --git a/src/permission.js b/src/permission.js index b818358..5b905fc 100644 --- a/src/permission.js +++ b/src/permission.js @@ -37,18 +37,20 @@ router.beforeEach((to, from, next) => { isRelogin.show = true // 判断当前用户是否已拉取完user_info信息 store.dispatch('GetInfo').then(() => { - isRelogin.show = false - store.dispatch('GenerateRoutes').then(accessRoutes => { - // 根据roles权限生成可访问的路由表 - router.addRoutes(accessRoutes) // 动态添加可访问路由表 - next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 + store.dispatch('GetNetConfig').then(res => { + isRelogin.show = false + store.dispatch('GenerateRoutes').then(accessRoutes => { + // 根据roles权限生成可访问的路由表 + router.addRoutes(accessRoutes) // 动态添加可访问路由表 + next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 + }) }) }).catch(err => { - store.dispatch('LogOut').then(() => { - Message.error(err) - next({ path: '/' }) - }) + store.dispatch('LogOut').then(() => { + Message.error(err) + next({ path: '/' }) }) + }) } else { next() } diff --git a/src/views/utility/index.vue b/src/views/utility/index.vue index 0e9409a..cca7a86 100644 --- a/src/views/utility/index.vue +++ b/src/views/utility/index.vue @@ -9,188 +9,361 @@ style="float: right; padding: 3px 0" type="text" icon="el-icon-delete" - @click="handleClearRecords" + :disabled="groupedRecords.length === 0" + @click="handleClearAll" > 清空记录 -
- - - {{ dateItem.date }} - - - - - - - - - - - - - - - - + + + + + + + + + + +
+ + + \ No newline at end of file diff --git a/src/views/videoCommunication/index.vue b/src/views/videoCommunication/index.vue index 0167e7e..aba85b7 100644 --- a/src/views/videoCommunication/index.vue +++ b/src/views/videoCommunication/index.vue @@ -76,7 +76,7 @@ v-show="queryParams.total > 0" :total="queryParams.total" :page.sync="queryParams.page" - :limit.sync="queryParams.pageSize" + :limit.sync="queryParams.size" @pagination="getList" /> @@ -169,7 +169,7 @@ export default { loading: false, queryParams: { page: 1, - pageSize: 10, + size: 10, total: 0, }, meetingModes: [ diff --git a/vue.config.js b/vue.config.js index d08d756..199fc25 100644 --- a/vue.config.js +++ b/vue.config.js @@ -9,8 +9,10 @@ const CompressionPlugin = require('compression-webpack-plugin') const name = process.env.VUE_APP_TITLE || '信联' // 网页标题 -// const baseUrl = 'http://www.haiteriot.com:13002' // 后端接口 -const baseUrl = 'http://47.92.6.51:8005' // 后端接口 +const baseUrl = 'http://www.haiteriot.com:13005' // 后端接口 +// const baseUrl = 'http://47.92.6.51:8005' // 后端接口 +// const baseUrl = 'http://47.92.6.51:8001' // 后端接口 +