diff --git a/dyf-vue-ui/src/views/homeIndex/index.vue b/dyf-vue-ui/src/views/homeIndex/index.vue
new file mode 100644
index 0000000..4716ddb
--- /dev/null
+++ b/dyf-vue-ui/src/views/homeIndex/index.vue
@@ -0,0 +1,174 @@
+
+
\ No newline at end of file
diff --git a/src/assets/homeIndex/alarmIMG.png b/src/assets/homeIndex/alarmIMG.png
new file mode 100644
index 0000000..92771d0
Binary files /dev/null and b/src/assets/homeIndex/alarmIMG.png differ
diff --git a/src/assets/homeIndex/card.png b/src/assets/homeIndex/card.png
new file mode 100644
index 0000000..c73def8
Binary files /dev/null and b/src/assets/homeIndex/card.png differ
diff --git a/src/assets/homeIndex/nav.png b/src/assets/homeIndex/nav.png
new file mode 100644
index 0000000..7d69121
Binary files /dev/null and b/src/assets/homeIndex/nav.png differ
diff --git a/src/router/index.ts b/src/router/index.ts
index af4e1a8..f4089a8 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -39,6 +39,12 @@ export const constantRoutes: RouteRecordRaw[] = [
component: () => import('@/views/error/401.vue'),
hidden: true
},
+ {
+ path: "/homeIndex",
+ name: "HomeIndex",
+ component: () => import("@/views/homeIndex/index.vue"),
+ meta: {title: '数据大屏', icon: 'dashboard', preload: true, keepAlive: true },
+ },
{
path: '',
component: Layout,
@@ -48,10 +54,11 @@ export const constantRoutes: RouteRecordRaw[] = [
path: '/index',
component: () => import('@/views/index.vue'),
name: 'Index',
- meta: { title: '首页', icon: 'dashboard', affix: true,keepAlive: false }
+ meta: { title: '首页', icon: 'dashboard', affix: true, keepAlive: false }
}
]
},
+
{
path: '/user',
component: Layout,
diff --git a/src/views/equipmentManagement/devices/index.vue b/src/views/equipmentManagement/devices/index.vue
index 0cf81b0..5f6ff9f 100644
--- a/src/views/equipmentManagement/devices/index.vue
+++ b/src/views/equipmentManagement/devices/index.vue
@@ -56,8 +56,8 @@
- 导出
+ 导出
-
+
@@ -517,7 +517,7 @@ const handleExport = () => {
{
...queryParams.value
},
- `${new Date().getTime()}.xlsx`,
+ `设备列表${new Date().getTime()}.xlsx`,
'get'
);
};
@@ -913,12 +913,19 @@ const beforeImportUpload = (file: any) => {
const head_upload = () => getBearerToken();
const handleImportSuccess = (response: any) => {
if (response.code == 200) {
+ console.log('导入成功了么');
importResult.value.isShow = true;
+
if (response.data) {
- importResult.value.succeed = response.data.successCount || 0;
- importResult.value.errorSun = response.data.failureCount || 0;
+ console.log(response.data,'response.data');
+
+ importResult.value.succeed = response.data.successCount;
+ importResult.value.errorSun = response.data.failureCount;
importResult.value.total = importResult.value.succeed + importResult.value.errorSun;
- importResult.value.link = response.data.errorExcelUrl || '';
+ importResult.value.link = response.data.errorExcelUrl;
+ }
+ if (importUpload.value) {
+ importUpload.value.clearFiles();
}
getList(); // 初始化列表数据
} else {
diff --git a/src/views/homeIndex/components/AlarmCount.vue b/src/views/homeIndex/components/AlarmCount.vue
new file mode 100644
index 0000000..222094f
--- /dev/null
+++ b/src/views/homeIndex/components/AlarmCount.vue
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/homeIndex/components/AlarmEvent.vue b/src/views/homeIndex/components/AlarmEvent.vue
new file mode 100644
index 0000000..222094f
--- /dev/null
+++ b/src/views/homeIndex/components/AlarmEvent.vue
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/homeIndex/components/AlarmOverview.vue b/src/views/homeIndex/components/AlarmOverview.vue
new file mode 100644
index 0000000..caa6381
--- /dev/null
+++ b/src/views/homeIndex/components/AlarmOverview.vue
@@ -0,0 +1,45 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/homeIndex/components/DeviceCategory.vue b/src/views/homeIndex/components/DeviceCategory.vue
new file mode 100644
index 0000000..222094f
--- /dev/null
+++ b/src/views/homeIndex/components/DeviceCategory.vue
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/homeIndex/components/DeviceOverview.vue b/src/views/homeIndex/components/DeviceOverview.vue
new file mode 100644
index 0000000..222094f
--- /dev/null
+++ b/src/views/homeIndex/components/DeviceOverview.vue
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/homeIndex/components/DeviceUsage.vue b/src/views/homeIndex/components/DeviceUsage.vue
new file mode 100644
index 0000000..222094f
--- /dev/null
+++ b/src/views/homeIndex/components/DeviceUsage.vue
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/homeIndex/components/MapComponent.vue b/src/views/homeIndex/components/MapComponent.vue
new file mode 100644
index 0000000..c1e1fd8
--- /dev/null
+++ b/src/views/homeIndex/components/MapComponent.vue
@@ -0,0 +1,8 @@
+
+ 地图模块
+
+
+
\ No newline at end of file
diff --git a/src/views/homeIndex/components/RealTimeAlarm.vue b/src/views/homeIndex/components/RealTimeAlarm.vue
new file mode 100644
index 0000000..222094f
--- /dev/null
+++ b/src/views/homeIndex/components/RealTimeAlarm.vue
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/homeIndex/index.vue b/src/views/homeIndex/index.vue
new file mode 100644
index 0000000..65093f5
--- /dev/null
+++ b/src/views/homeIndex/index.vue
@@ -0,0 +1,228 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+