From 283450270b3a9e2a2c0e7a5c08a3a01e9ecf8e9d Mon Sep 17 00:00:00 2001 From: Wangxin Date: Wed, 24 Sep 2025 15:25:13 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E3=80=90web=E3=80=91=20=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ALOps_sys_fe/alops-ui/package.json | 1 + ALOps_sys_fe/alops-ui/src/api/device/files.js | 6 +- ALOps_sys_fe/alops-ui/src/main.js | 2 + .../src/views/QandA/Aiassistant/index.vue | 6 +- ALOps_sys_fe/alops-ui/src/views/index.vue | 437 +++++++++++------- ALOps_sys_fe/alops-ui/src/views/index_v1.vue | 98 ---- 6 files changed, 284 insertions(+), 266 deletions(-) delete mode 100644 ALOps_sys_fe/alops-ui/src/views/index_v1.vue diff --git a/ALOps_sys_fe/alops-ui/package.json b/ALOps_sys_fe/alops-ui/package.json index 7a122d05..77b1102f 100644 --- a/ALOps_sys_fe/alops-ui/package.json +++ b/ALOps_sys_fe/alops-ui/package.json @@ -24,6 +24,7 @@ "url": "https://gitee.com/y_project/RuoYi-Vue.git" }, "dependencies": { + "@jiaminghi/data-view": "^2.10.0", "@riophae/vue-treeselect": "0.4.0", "axios": "0.28.1", "clipboard": "2.0.8", diff --git a/ALOps_sys_fe/alops-ui/src/api/device/files.js b/ALOps_sys_fe/alops-ui/src/api/device/files.js index 2d1afa91..53fc7e3d 100644 --- a/ALOps_sys_fe/alops-ui/src/api/device/files.js +++ b/ALOps_sys_fe/alops-ui/src/api/device/files.js @@ -1,6 +1,6 @@ import request from '@/utils/request' import { parseStrEmpty } from "@/utils/ruoyi"; -const api = '/equipment/' +const api = '/device/files/' // 查询详细 export function getDict() { @@ -13,8 +13,8 @@ export function getDict() { // 查询列表 export function list(query) { return request({ - url: api + 'queryByVO', - method: 'get', + url: api + 'list', + method: 'post', params: query }) } diff --git a/ALOps_sys_fe/alops-ui/src/main.js b/ALOps_sys_fe/alops-ui/src/main.js index da017509..6d9d91f7 100644 --- a/ALOps_sys_fe/alops-ui/src/main.js +++ b/ALOps_sys_fe/alops-ui/src/main.js @@ -35,6 +35,7 @@ import ImagePreview from "@/components/ImagePreview" import DictTag from '@/components/DictTag' // 字典数据组件 import DictData from '@/components/DictData' +import dataV from '@jiaminghi/data-view' // 全局方法挂载 Vue.prototype.getDicts = getDicts @@ -58,6 +59,7 @@ Vue.component('ImagePreview', ImagePreview) Vue.use(directive) Vue.use(plugins) +Vue.use(dataV) DictData.install() /** diff --git a/ALOps_sys_fe/alops-ui/src/views/QandA/Aiassistant/index.vue b/ALOps_sys_fe/alops-ui/src/views/QandA/Aiassistant/index.vue index 12316a09..97029c7a 100644 --- a/ALOps_sys_fe/alops-ui/src/views/QandA/Aiassistant/index.vue +++ b/ALOps_sys_fe/alops-ui/src/views/QandA/Aiassistant/index.vue @@ -10,7 +10,7 @@
-
+
@@ -205,7 +205,7 @@ export default { padding: 15px; } .chat-section { - width: 70%; + width: 100%; display: flex; flex-direction: column; } diff --git a/ALOps_sys_fe/alops-ui/src/views/index.vue b/ALOps_sys_fe/alops-ui/src/views/index.vue index 88f6122d..4f703508 100644 --- a/ALOps_sys_fe/alops-ui/src/views/index.vue +++ b/ALOps_sys_fe/alops-ui/src/views/index.vue @@ -1,187 +1,300 @@ - // 初始化设备类型统计图表 - const typeChart = echarts.init(document.getElementById('typeChart')); - typeChart.setOption({ - title: { text: '设备类型统计', subtext: '按设备类型', left: 'center' }, - tooltip: { trigger: 'item' }, - series: [ - { - name: '设备类型', - type: 'pie', - radius: '50%', - data: [ - { value: 44, name: '自主房屋' }, - { value: 33, name: '出租房屋' }, - { value: 11, name: '空置房屋' }, - { value: 11, name: '其他' }, - ], - }, - ], - }); + \ No newline at end of file + diff --git a/ALOps_sys_fe/alops-ui/src/views/index_v1.vue b/ALOps_sys_fe/alops-ui/src/views/index_v1.vue deleted file mode 100644 index d2d2ec63..00000000 --- a/ALOps_sys_fe/alops-ui/src/views/index_v1.vue +++ /dev/null @@ -1,98 +0,0 @@ - - - - - From 705a2f6ddf2cfdde1c925d2ccf943f811e9f9eb4 Mon Sep 17 00:00:00 2001 From: Wangxin Date: Wed, 24 Sep 2025 15:57:54 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E3=80=90web=E3=80=91=20=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../alops-ui/src/views/dashboard/digital.vue | 40 ++ .../src/views/device/deviceSupplier/index.vue | 449 ++++++++++++++++++ 2 files changed, 489 insertions(+) create mode 100644 ALOps_sys_fe/alops-ui/src/views/dashboard/digital.vue create mode 100644 ALOps_sys_fe/alops-ui/src/views/device/deviceSupplier/index.vue diff --git a/ALOps_sys_fe/alops-ui/src/views/dashboard/digital.vue b/ALOps_sys_fe/alops-ui/src/views/dashboard/digital.vue new file mode 100644 index 00000000..cbbf3c69 --- /dev/null +++ b/ALOps_sys_fe/alops-ui/src/views/dashboard/digital.vue @@ -0,0 +1,40 @@ + + + diff --git a/ALOps_sys_fe/alops-ui/src/views/device/deviceSupplier/index.vue b/ALOps_sys_fe/alops-ui/src/views/device/deviceSupplier/index.vue new file mode 100644 index 00000000..2a1cefef --- /dev/null +++ b/ALOps_sys_fe/alops-ui/src/views/device/deviceSupplier/index.vue @@ -0,0 +1,449 @@ + + + \ No newline at end of file