diff --git a/package.json b/package.json
index 4c00a60..af4f590 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,7 @@
"dependencies": {
"@element-plus/icons-vue": "2.3.1",
"@highlightjs/vue-plugin": "2.1.0",
+ "@vitejs/plugin-vue-jsx": "^5.1.1",
"@vueup/vue-quill": "1.2.0",
"@vueuse/core": "13.1.0",
"animate.css": "4.1.1",
@@ -44,9 +45,11 @@
"vue-cropper": "1.1.1",
"vue-i18n": "11.1.3",
"vue-json-pretty": "2.4.0",
+ "vue-masonry": "^0.16.0",
"vue-router": "4.5.0",
"vue-types": "6.0.0",
"vue3-scroll-seamless": "^1.0.6",
+ "vue3-seamless-scroll": "^3.0.2",
"vxe-table": "4.13.7"
},
"devDependencies": {
diff --git a/src/main.ts b/src/main.ts
index f5c8778..b2ebdd1 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -41,10 +41,10 @@ VXETable.setConfig({
// 修改 el-dialog 默认点击遮照为不关闭
import { ElDialog } from 'element-plus';
ElDialog.props.closeOnClickModal.default = false;
+import { VueMasonryPlugin } from 'vue-masonry';
const app = createApp(App);
-
-
+app.use(VueMasonryPlugin);
app.use(HighLight);
app.use(ElementIcons);
app.use(router);
diff --git a/src/views/chart/chart1.vue b/src/views/chart/chart1.vue
index 4ea435f..6e7d52e 100644
--- a/src/views/chart/chart1.vue
+++ b/src/views/chart/chart1.vue
@@ -6,25 +6,31 @@
在线数量:
离线数量:
告警数量:
- 66
- 66
- 66
- 66
+ {{ overview.deviceTotal }}
+ {{ overview.onlineCount }}
+ {{ overview.offlineCount }}
+ {{ overview.alarmCount }}
+
-
-
diff --git a/src/views/chart/treeItem.vue b/src/views/chart/treeItem.vue
new file mode 100644
index 0000000..77d8422
--- /dev/null
+++ b/src/views/chart/treeItem.vue
@@ -0,0 +1,203 @@
+
+
+
+
+
+
{{ data.locationAlias }}
+
+
+
+
+
+
+
+
+ 工位名称: {{ child.locationAlias }}
+
+
编码:{{ child.code }}
+
时间:{{ child.time }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/vite.config.ts b/vite.config.ts
index 58ca5f2..186e5f7 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,5 +1,6 @@
import { defineConfig, loadEnv } from 'vite';
import createPlugins from './vite/plugins';
+import vueJsx from '@vitejs/plugin-vue-jsx';
import autoprefixer from 'autoprefixer'; // css自动添加兼容性前缀
import path from 'path';
@@ -17,14 +18,15 @@ export default defineConfig(({ mode, command }) => {
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
},
// https://cn.vitejs.dev/config/#resolve-extensions
- plugins: createPlugins(env, command === 'build'),
+ plugins: [...createPlugins(env, command === 'build'), vueJsx()],
server: {
host: '0.0.0.0',
port: Number(env.VITE_APP_PORT),
open: true,
proxy: {
[env.VITE_APP_BASE_API]: {
- target: 'http://localhost:8080',
+ // target: 'http://192.168.100.100:8080',
+ target: 'http://192.168.0.15:8080',
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')