diff --git a/src/api/iot-card/cardManagement.ts b/src/api/iot-card/cardManagement.ts
index 34aee292..768aba60 100644
--- a/src/api/iot-card/cardManagement.ts
+++ b/src/api/iot-card/cardManagement.ts
@@ -115,4 +115,10 @@ export const add = (data: any) => server.patch(`/network/card`, data);
* 编辑物联卡
* @param data
*/
-export const edit = (data: any) => server.put(`/network/card/${data.id}`, data);
\ No newline at end of file
+export const edit = (data: any) => server.put(`/network/card/${data.id}`, data);
+
+/**
+ * 根据id查看详情
+ * @param id
+ */
+export const queryDetail = (id: any) => server.get(`/network/card/${id}`);
\ No newline at end of file
diff --git a/src/router/menu.ts b/src/router/menu.ts
index 234bcabf..4f044c8a 100644
--- a/src/router/menu.ts
+++ b/src/router/menu.ts
@@ -145,6 +145,14 @@ export default [
path: '/iot-card/CardManagement',
component: () => import('@/views/iot-card/CardManagement/index.vue')
},
+ {
+ path: '/iot-card/CardManagement/Detail',
+ component: () => import('@/views/iot-card/CardManagement/Detail/index.vue')
+ },
+ {
+ path: '/iot-card/Recharge',
+ component: () => import('@/views/iot-card/Recharge/index.vue')
+ },
// 北向输出
{
path: '/northbound/DuerOS',
diff --git a/src/views/iot-card/CardManagement/Detail/index.vue b/src/views/iot-card/CardManagement/Detail/index.vue
new file mode 100644
index 00000000..3e1a330d
--- /dev/null
+++ b/src/views/iot-card/CardManagement/Detail/index.vue
@@ -0,0 +1,167 @@
+
+
+
+
+
+
+
+
+
+
+ 基本信息
+ {
+ visible = true;
+ current = detail;
+ saveType = 'edit';
+ }
+ "
+ >
+
+ 编辑
+
+
+
+ {{
+ detail.id
+ }}
+ {{
+ detail.iccId
+ }}
+ {{
+ detail.deviceName
+ }}
+ {{
+ detail.operatorPlatformType?.text
+ }}
+ {{
+ detail.platformConfigName
+ }}
+ {{
+ detail.operatorName
+ }}
+ {{
+ detail.cardType?.text
+ }}
+ {{
+ detail.activationDate
+ ? moment(detail.activationDate).format(
+ 'YYYY-MM-DD HH:mm:ss',
+ )
+ : ''
+ }}
+ {{
+ detail.updateTime
+ ? moment(detail.updateTime).format(
+ 'YYYY-MM-DD HH:mm:ss',
+ )
+ : ''
+ }}
+ {{
+ detail.totalFlow
+ ? detail.totalFlow.toFixed(2) + ' M'
+ : ''
+ }}
+ {{
+ detail.usedFlow
+ ? detail.usedFlow.toFixed(2) + ' M'
+ : ''
+ }}
+ {{
+ detail.residualFlow
+ ? detail.residualFlow.toFixed(2) + ' M'
+ : ''
+ }}
+ {{
+ detail?.cardState?.text
+ }}
+ {{
+ detail?.describe
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/iot-card/CardManagement/index.vue b/src/views/iot-card/CardManagement/index.vue
index 3b5a1809..1ac18f80 100644
--- a/src/views/iot-card/CardManagement/index.vue
+++ b/src/views/iot-card/CardManagement/index.vue
@@ -351,6 +351,8 @@ import Import from './Import.vue';
import Export from './Export.vue';
import Save from './Save.vue';
+const router = useRouter();
+
const cardManageRef = ref>({});
const params = ref>({});
const _selectedRowKeys = ref([]);
@@ -535,6 +537,14 @@ const getActions = (
title: '查看',
},
icon: 'EyeOutlined',
+ onClick: () => {
+ router.push({
+ path: '/iot-card/CardManagement/Detail',
+ query: {
+ id: data.id,
+ },
+ });
+ },
},
{
key: 'bindDevice',
diff --git a/src/views/iot-card/Recharge/index.vue b/src/views/iot-card/Recharge/index.vue
new file mode 100644
index 00000000..4f1bbbc0
--- /dev/null
+++ b/src/views/iot-card/Recharge/index.vue
@@ -0,0 +1,8 @@
+
+
+ 充值管理
+
+
+
+
+