From 0eef93e0d476dcf9ade32d0f8705340b56726c2b Mon Sep 17 00:00:00 2001 From: ZLI263 Date: Sun, 21 Sep 2025 21:25:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=AE=A2=E6=88=B7=E7=94=BB?= =?UTF-8?q?=E5=83=8F=EF=BC=8C=E5=93=81=E7=89=8C=E5=88=86=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- package.json | 6 +- src/router/index.js | 20 +- src/views/audio/index.vue | 1161 ++++++++++++++++++++++-------------- src/views/device/index.vue | 6 - vue.config.js | 11 +- 7 files changed, 756 insertions(+), 452 deletions(-) diff --git a/.env.development b/.env.development index de583d0..e800df6 100644 --- a/.env.development +++ b/.env.development @@ -2,4 +2,4 @@ ENV = 'development' # base api -VUE_APP_BASE_API = '/dev-api' +VUE_APP_BASE_API = '' diff --git a/.env.production b/.env.production index 80c8103..8994f69 100644 --- a/.env.production +++ b/.env.production @@ -2,5 +2,5 @@ ENV = 'production' # base api -VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = '' diff --git a/package.json b/package.json index b1a8219..dbeb8ba 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,13 @@ "description": "A vue admin template with Element UI & axios & iconfont & permission control & lint", "author": "Pan ", "scripts": { - "dev": "set CHOKIDAR_USEPOLLING=true && set CHOKIDAR_INTERVAL=1000 && vue-cli-service serve", - "dev:no-watch": "vue-cli-service serve --watch false", + "dev": "vue-cli-service serve", + "dev-no-open": "vue-cli-service serve --open false", "build:prod": "vue-cli-service build", "build:stage": "vue-cli-service build --mode staging", "preview": "node build/index.js --preview", "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", - "lint": "eslint --ext .js,.vue src", + "lint": "vue-cli-service lint", "test:unit": "jest --clearCache && vue-cli-service test:unit", "test:ci": "npm run lint && npm run test:unit" }, diff --git a/src/router/index.js b/src/router/index.js index 2797b69..6d22881 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -120,12 +120,30 @@ export const constantRoutes = [ { path: '/dealership', component: Layout, + redirect: '/dealership/index', + name: 'Dealership', + meta: { + title: '门店管理', + icon: 'el-icon-s-shop' + }, children: [ { path: 'index', - name: 'Dealership', + name: 'DealershipIndex', component: () => import('@/views/dealership/index'), meta: { title: '门店管理', icon: 'el-icon-s-shop' } + }, + { + path: 'brand-analysis', + name: 'BrandAnalysis', + component: () => import('@/views/dealership/brand-analysis'), + meta: { title: '品牌分析', icon: 'el-icon-data-analysis' } + }, + { + path: 'customer-profile', + name: 'CustomerProfile', + component: () => import('@/views/dealership/customer-profile'), + meta: { title: '客户画像', icon: 'el-icon-user-solid' } } ] }, diff --git a/src/views/audio/index.vue b/src/views/audio/index.vue index 4323f47..a7f5077 100644 --- a/src/views/audio/index.vue +++ b/src/views/audio/index.vue @@ -194,24 +194,24 @@
- + 有音频 - - + {{ scope.row.audioFileOriginalName || getAudioFileName(scope.row.audioFileUrl) }} - 下载 @@ -219,26 +219,46 @@
- + 暂无音频文件
+ + +