From 8643f174aa83caa6df77d7e5156ec41759ecdc6b Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 19 Sep 2025 15:43:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A9=BE=E9=A9=B6=E8=88=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/jsc/components/WarehouseTable.vue | 492 ++++++++++++-------- src/views/jsc/index.vue | 136 ++++-- 2 files changed, 392 insertions(+), 236 deletions(-) diff --git a/src/views/jsc/components/WarehouseTable.vue b/src/views/jsc/components/WarehouseTable.vue index 85ee27c..e8928a4 100644 --- a/src/views/jsc/components/WarehouseTable.vue +++ b/src/views/jsc/components/WarehouseTable.vue @@ -1,67 +1,158 @@ +// ::v-deep .el-table__body td { +// border-bottom: none !important; +// } + diff --git a/src/views/jsc/index.vue b/src/views/jsc/index.vue index 2dfea00..3535195 100644 --- a/src/views/jsc/index.vue +++ b/src/views/jsc/index.vue @@ -15,8 +15,8 @@
- 重要防汛物资 -
+ 市级重要防汛物资 +
-
+
{{ item.name }}: {{ item.value }}{{ item.unit ? item.unit : '' }}
-
+ +
+ +
+ 全市重要防汛物资 + +
+
+ + +
{{ item.name }}: {{ item.value }}{{ item.unit ? item.unit : '' }}
-
+
-
+
+ + +
+ + + -->
@@ -137,25 +170,30 @@ export default { id: 'yingjidiaodu_count', unit: '次' }, + // { + // label: '队伍数量', + // value: 0, + // id: 'team_count', + // unit: '个' + // }, + // { + // label: '队伍出动人次', + // value: 0, + // id: 'team_article_total', + // unit: '人次' + // }, { - label: '队伍数量', - value: 0, - id: 'team_count', - unit: '个' - }, - { - label: '队伍出动人次', + label: '本年度物资调动', value: 0, - id: 'team_article_total', - unit: '人次' + id: 'stock_outbounds_count', + unit: '次' }, { - label: '正在出动抢险队伍', + label: '本年度队伍出动', value: 0, - id: 'team_raxing_count', - unit: '个' - }, - + id: 'team_articles_count', + unit: '次' + } // { // label: '装备总数', // value: 0, @@ -183,14 +221,6 @@ export default { label: '出库管理', path: '/outbounds/index' }, - { - label: '统计报表', - path: '/reports/stocks' - }, - { - label: '应急防御', - path: '/books/index' - }, { label: '盘点管理', path: '/inventorys/stocktaking' @@ -202,6 +232,14 @@ export default { { label: '应急调令', path: '/workOrder/index' + }, + { + label: '应急防御', + path: '/books/index' + }, + { + label: '统计报表', + path: '/reports/stocks' } ], // 分类 @@ -476,19 +514,19 @@ export default { } }, // 用户点击切换 - onTypeClick(type) { - if (this.activeType !== type) { - this.activeType = type - } - this.clearAutoSwitch() - this.userInteracted = true - // 10秒后恢复自动切换 - if (this.resumeTimer) clearTimeout(this.resumeTimer) - this.resumeTimer = setTimeout(() => { - this.userInteracted = false - this.startAutoSwitch() - }, 10000) - }, + // onTypeClick(type) { + // if (this.activeType !== type) { + // this.activeType = type + // } + // this.clearAutoSwitch() + // this.userInteracted = true + // // 10秒后恢复自动切换 + // if (this.resumeTimer) clearTimeout(this.resumeTimer) + // this.resumeTimer = setTimeout(() => { + // this.userInteracted = false + // this.startAutoSwitch() + // }, 10000) + // }, // 获取统计数据 // 获取已办任务 async getFinishData() { @@ -560,6 +598,9 @@ export default { // 顶部数据 this.topObj.map(item => { item.value = home.top[item.id] + if(item.id=='stock_outbounds_count'){ + item.value = home.top['stock_count']+home.top['outbounds_count'] + } }) this.xData = [] @@ -579,7 +620,7 @@ export default { item.img = this.imgList[item.name] }) this.upListByFloodMaterials = this.mergeAndRename(res.upListByFloodMaterials) - this.startAutoSwitch() + // this.startAutoSwitch() }, mergeAndRename(arr) { const resultMap = new Map() @@ -762,7 +803,7 @@ export default { } &-content { - width: 450px; + width: 400px; display: flex; flex-wrap: wrap; @@ -813,7 +854,6 @@ export default { align-items: center; justify-content: center; gap: 20px; - .chart-title { color: #6dcde6; font-size: 16px;