完善客户画像,品牌分析
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
ENV = 'development'
|
||||
|
||||
# base api
|
||||
VUE_APP_BASE_API = '/dev-api'
|
||||
VUE_APP_BASE_API = ''
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
ENV = 'production'
|
||||
|
||||
# base api
|
||||
VUE_APP_BASE_API = '/prod-api'
|
||||
VUE_APP_BASE_API = ''
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
"description": "A vue admin template with Element UI & axios & iconfont & permission control & lint",
|
||||
"author": "Pan <panfree23@gmail.com>",
|
||||
"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"
|
||||
},
|
||||
|
||||
@@ -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' }
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -68,13 +68,7 @@
|
||||
<el-table-column label="设备信息(最近一次)" min-width="300">
|
||||
<template slot-scope="scope">
|
||||
<div class="device-info">
|
||||
<div>联网时间: {{ scope.row.lastOnlineTime || '-' }}</div>
|
||||
<div>开机时间: {{ scope.row.lastPowerOnTime || '-' }}</div>
|
||||
<div>关机时间: {{ scope.row.lastPowerOffTime || '-' }}</div>
|
||||
<div>WIFI名称: {{ scope.row.wifiName || '-' }}</div>
|
||||
<div>未上传数量: {{ scope.row.unuploadedCount || 0 }}</div>
|
||||
<div>空间大小: {{ scope.row.storageUsed || '0GB' }}/{{ scope.row.storageSize || '0GB' }}</div>
|
||||
<div>剩余电量: {{ scope.row.remainingBattery || '-' }}</div>
|
||||
<div>
|
||||
充电状态:
|
||||
<span
|
||||
|
||||
@@ -31,12 +31,12 @@ module.exports = {
|
||||
productionSourceMap: false,
|
||||
devServer: {
|
||||
port: port,
|
||||
open: true,
|
||||
open: false, // 禁用自动打开浏览器
|
||||
overlay: {
|
||||
warnings: false,
|
||||
errors: true
|
||||
},
|
||||
// before: require('./mock/mock-server.js'), // 注释掉 mock 服务器
|
||||
// before: require('./mock/mock-server.js'), // 启用 mock 服务器
|
||||
watchOptions: {
|
||||
ignored: [
|
||||
'**/node_modules/**',
|
||||
@@ -56,12 +56,15 @@ module.exports = {
|
||||
},
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:9060', // 从环境变量获取后端服务器地址
|
||||
target: 'http://localhost:9060', // 本地后端服务器地址
|
||||
// target: 'https://api.huayang-star.com/', // 生产环境后端地址
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/api': '/api' // 保持 /api 前缀
|
||||
},
|
||||
logLevel: 'debug' // 开发环境下显示代理日志
|
||||
logLevel: 'debug', // 开发环境下显示代理日志
|
||||
secure: false, // 如果是https,忽略证书验证
|
||||
timeout: 10000 // 设置超时时间
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user