From 22fa800d6068b2cae66251bdd1caa65b20545615 Mon Sep 17 00:00:00 2001 From: jiang Date: Tue, 3 Feb 2026 14:24:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=85=E5=A4=87=E9=85=8D=E7=BD=AE=E7=8E=87?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/equipmentNew.js | 3 +- .../home/components/provincial/Center2.vue | 68 +++++++++++-------- src/views/rent-facility/index.vue | 4 +- 3 files changed, 42 insertions(+), 33 deletions(-) diff --git a/src/api/system/equipmentNew.js b/src/api/system/equipmentNew.js index 7e4ff6c3..1df41633 100644 --- a/src/api/system/equipmentNew.js +++ b/src/api/system/equipmentNew.js @@ -302,7 +302,8 @@ export function updateConfiguration(data) { return request({ url: '/material-mall/deptConfig/updateConfiguration', method: 'post', - data: data + data: data, + timeout: 100000 }) } diff --git a/src/views/home/components/provincial/Center2.vue b/src/views/home/components/provincial/Center2.vue index 03c0dff3..829a1c34 100644 --- a/src/views/home/components/provincial/Center2.vue +++ b/src/views/home/components/provincial/Center2.vue @@ -1,6 +1,6 @@ @@ -91,8 +91,8 @@ export default { options: [], proNum: 0, equipNum: 0, - tabIndex: 0, - tableData: [], + tabIndex: '线路', + tableData: [] } }, mounted() { @@ -113,7 +113,7 @@ export default { try { const params = { type: this.tabIndex, - proCode: this.proCode, + proCode: this.proCode } const res = await getEquipmentUseApi(params) this.tableData = res.data.equipmentUse || [] @@ -156,7 +156,7 @@ export default { return { background, height: '40px', // 👈 统一行高 - borderRadius: '5px', + borderRadius: '5px' } }, indexStyle(index) { @@ -172,10 +172,10 @@ export default { } return { - color, + color } - }, - }, + } + } } @@ -194,17 +194,20 @@ export default { font-family: OPPOSans; font-size: 16px; } + .unit-text { font-family: Microsoft YaHei, Microsoft YaHei; font-weight: 400; font-size: 12px; color: #333; } + .index-num { font-family: Microsoft YaHei, Microsoft YaHei; font-weight: bold; font-size: 14px; } + .pro-name { display: inline-block; max-width: 260px; @@ -215,18 +218,22 @@ export default { text-align: left; vertical-align: middle; } + .row-sty { height: 40px; margin-bottom: 7px; border-radius: 5px; } + table { border-collapse: separate; border-spacing: 0 7px; } + td { background-clip: padding-box; } + td:first-child { border-top-left-radius: 5px; border-bottom-left-radius: 5px; @@ -251,6 +258,7 @@ td:last-child { text-align: center; cursor: pointer; } + .active { background: #2cbab2; color: #fff; diff --git a/src/views/rent-facility/index.vue b/src/views/rent-facility/index.vue index c45b7d4b..fde34452 100644 --- a/src/views/rent-facility/index.vue +++ b/src/views/rent-facility/index.vue @@ -376,8 +376,8 @@ export default { this.$message.success(res.msg) } } catch (err) { - console.error('导出失败:', err) - this.$message.error('导出失败,请稍后重试') + console.error('更新失败:', err) + this.$message.error('更新失败,请稍后重试') } finally { this.$loading().close() }