diff --git a/.env.development b/.env.development
index 5b0a196..4fbe76a 100644
--- a/.env.development
+++ b/.env.development
@@ -5,8 +5,8 @@ VUE_APP_TITLE = 共享空间
ENV = 'development'
# 共享空间/开发环境
-# VUE_APP_BASE_API = '/dev-api'
-VUE_APP_BASE_API = 'http://localhost:8089'
+VUE_APP_BASE_API = 'https://testcha.chuangtewl.com/prod-api'
+# VUE_APP_BASE_API = 'http://localhost:8089'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
diff --git a/src/router/index.js b/src/router/index.js
index 109d6d8..2d253cf 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -147,6 +147,20 @@ export const dynamicRoutes = [
meta: { title: '用户列表', activeMenu: '/user/user' }
}
]
+ },
+ {
+ path: '/system/deviceDetail',
+ component: Layout,
+ hidden: true,
+ permissions: ['system:dept:list'],
+ children: [
+ {
+ path: 'index/:deviceId(\\d+)?', // 将参数设置为可选
+ component: () => import('@/views/system/device/device_detail'),
+ name: 'Data',
+ meta: { title: '设备详情', activeMenu: '/system/device' }
+ }
+ ]
},
{
path: '/system/device/sn',
diff --git a/src/views/system/device/device_detail.vue b/src/views/system/device/device_detail.vue
new file mode 100644
index 0000000..7f59c61
--- /dev/null
+++ b/src/views/system/device/device_detail.vue
@@ -0,0 +1,460 @@
+
+
+
+
+
+
+
+
+
+
+
+ MAC-1:
+ {{ deviceData.mac || '--' }}
+
+
+
+ 型号:
+ {{ deviceData.model || '--' }}
+
+
+ 限制充值时间:
+ {{ deviceData.limitRechargeTime || '--' }}
+
+
+ 用户手动操作类型:
+ {{ deviceData.outageWay || '--' }}
+
+
+
+
+ MAC-2:
+ {{ deviceData.mac2 || '--' }}
+
+
+ 产品ID:
+ {{ deviceData.productId || '--' }}
+
+
+ 限制充值原因:
+ {{ deviceData.limitRechargeReason || '--' }}
+
+
+
+
+ SN:
+ {{ deviceData.sn || '--' }}
+
+
+ 型号功能:
+
+ {{ tag }}
+
+
+
+ 用户手动操作时间:
+ {{ deviceData.lastRecoverTime || '--' }}
+
+
+ 用户手动操作传量:
+ {{ deviceData.surplusEle || '--' }} 度
+
+
+
+
+
+
+
+
+
+
+ 设备名称:
+ {{ deviceData.deviceName || '--' }}
+
+
+ 月费:
+ {{ deviceData.monthFee || '--' }} 元/月
+
+
+
+
+ 服务模式:
+
+ {{ serviceModeText }}
+
+
+
+ 平台服务费:
+ {{ deviceData.serviceRate || '--' }} %
+
+
+
+
+ 所属商户:
+ {{ deviceData.storeName || '--' }}
+
+
+ 备注:
+ {{ deviceData.remark || '--' }}
+
+
+
+
+
+
+
+
+
+
+ 在线状态:
+
+ {{ deviceData.onlineStatus === '1' ? '在线' : '离线' }}
+
+
+
+ 开关状态:
+
+ {{ deviceData.powerStatus === '1' ? '已开启' : '已关闭' }}
+
+
+
+
+
+ 最后在线时间:
+ {{ deviceData.lastOnlineTime || '--' }}
+
+
+ 总用电量:
+ {{ deviceData.totalElectriQuantity || '--' }} 度
+
+
+
+
+ 版本号:
+ {{ deviceData.version || '--' }}
+
+
+ 电量读数:
+ {{ deviceData.electricity || '--' }} 度
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+ 平台:
+ {{ deviceData.agentName || '--' }}
+
+
+ 分成比例:
+ {{ deviceData.serviceFeeProportion || '--' }} %
+
+
+
+
+
+
+ 时长(数据库):
+ {{ deviceData.remainTime || '--' }} 秒
+
+
+ 电量(数据库):
+ {{ deviceData.electricity || '--' }} 度
+
+
+ 电压:
+ {{ deviceData.voltage || '--' }} V
+
+
+ 电流:
+ {{ deviceData.realTimePower || '--' }} A
+
+
+ 功率:
+ {{ deviceData.realTimePower || '--' }} W
+
+
+ 电压系数:
+ {{ deviceData.placementStatus || '--' }}
+
+
+
+
+
+
+
+ 详情
+ 修改
+ 打开
+ 关闭
+ 禁用
+ 重启
+ 更新
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+ 订单列表内容
+ 命令日志内容
+ 抄表记录内容
+ 绑定/解绑记录内容
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/system/device/index.vue b/src/views/system/device/index.vue
index a786311..9347230 100644
--- a/src/views/system/device/index.vue
+++ b/src/views/system/device/index.vue
@@ -2,65 +2,37 @@
-
+
-
+
-
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
@@ -71,76 +43,63 @@
- 新增
+ 新增
- 修改
+ 修改
- 删除
+ 删除
- 导出
+ 导出
-
+
+
+
+
+ {{ d.row.mac }}
+
+
+
+
+
+
+ {{ d.row.mac2 }}
+
+
+
+
+
+
+ {{ d.row.sn }}
+
+
+
+
+
+
+
+
+
-
+
-
- {{d.row[column.key]}}
-
-
-
+
+
-
+
扫描二维码进行设备绑定
@@ -148,114 +107,78 @@
查看
-
-
-
-
-
+
-
+
+ {{ d.row[column.key] === 1 ? '在线' : '离线' }}
+
+
+
+ {{ d.row[column.key] }}
+
+
+ 商户:{{ d.row.userName }}
- {{d.row[column.key]}}
+ {{ d.row[column.key] }}
-
-
- 详情
- 修改
- 打开
- 关闭
- {{ scope.row.status === '8' ? '解禁' : '禁用' }}
- 重启
- 更新
- 删除
-
-
+
+
+
+ 详情
+ 修改
+ 打开
+ 关闭
+
+ {{ scope.row.status === '8' ? '解禁' : '禁用' }}
+
+ 重启
+ 更新
+ 删除
+
+
+
-
+
-
+
-
+
-
+
-
+
@@ -267,42 +190,38 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
- {{versionDescription}}
-
+
+ {{ versionDescription }}
+
@@ -313,8 +232,9 @@
-
-
+
+
{{ form.mac }}
@@ -323,23 +243,21 @@
{{ form.areaName }}
- {{ form.remainingPower }}%
+ {{ form.remainingPower }}%
-
-
-
-
- 查看
-
+
+
+
+
+ 查看
+
- {{ form.onlineStatus == 1 ? '在线' : '离线' }}
+ {{ form.onlineStatus == 1 ? '在线' : '离线'
+ }}
@@ -350,7 +268,7 @@
{{ form.latitude }}
-
+
{{ form.lastLocationTime }}
@@ -358,40 +276,7 @@
当前无gps信号
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+}
+
+.nav-container {
+ display: flex;
+ justify-content: center;
+}
+
+.nav-menu {
+ margin: 0;
+ padding: 0;
+}
+
+.el-dialog__body {
+ padding: 10px 20px;
+}
+
+.el-dialog:not(.is-fullscreen) {
+ margin-top: 1vh !important;
+}
+
+.el-dialog__header {
+ padding: 10px 20px !important;
+}
+
\ No newline at end of file