From 8d2eedeaf4130c5c2c90749b6b4ef2ed04503f8a Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Mon, 3 Nov 2025 14:27:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=99=A8=E5=85=B7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/common/ImportExcelDialog.vue | 3 +- .../components/EnterpriseDetail.vue | 39 ++++++++++++------- .../personnel/components/PersonnelDetail.vue | 33 +++++++++++----- .../technical/components/TechnicalDetail.vue | 37 +++++++++++------- 4 files changed, 75 insertions(+), 37 deletions(-) diff --git a/src/views/common/ImportExcelDialog.vue b/src/views/common/ImportExcelDialog.vue index 089e0f1..b2f10cc 100644 --- a/src/views/common/ImportExcelDialog.vue +++ b/src/views/common/ImportExcelDialog.vue @@ -156,8 +156,9 @@ export default { // 显示导入结果 if (response && response.msg) { + const msg = response.msg.replace(/\n/g, '
'); this.$alert( - "
" + response.msg + "
", + "
" + msg + "
", "导入结果", { dangerouslyUseHTMLString: true, diff --git a/src/views/enterpriseLibrary/enterprise/components/EnterpriseDetail.vue b/src/views/enterpriseLibrary/enterprise/components/EnterpriseDetail.vue index 2faf734..7d039a4 100644 --- a/src/views/enterpriseLibrary/enterprise/components/EnterpriseDetail.vue +++ b/src/views/enterpriseLibrary/enterprise/components/EnterpriseDetail.vue @@ -3,28 +3,28 @@
返回 - + 编辑
- + - + - +
@@ -186,20 +197,24 @@ export default { gap: 12px; } -.search-btn { +.edit-btn { width: 98px; height: 36px; - background: #1F72EA; - box-shadow: 0px 4px 8px 0px rgba(51, 135, 255, 0.5); - border-radius: 4px; - border: none; + background: #EAA819; + box-shadow: 0px 4px 8px 0px rgba(255,156,51,0.5); + border-radius: 4px 4px 4px 4px; + border-color: #EAA819; color: #fff; + font-weight: 600; + letter-spacing: 0.5px; font-size: 14px; transition: all 0.3s ease; &:hover { - background: #4A8BFF; - box-shadow: 0px 6px 12px 0px rgba(51, 135, 255, 0.6); + background: #ffb733; + border-color: #ffb733; + box-shadow: 0px 6px 12px 0px rgba(255,156,51,0.6); + transform: translateY(-1px); } } diff --git a/src/views/enterpriseLibrary/technical/components/TechnicalDetail.vue b/src/views/enterpriseLibrary/technical/components/TechnicalDetail.vue index d517e56..703d850 100644 --- a/src/views/enterpriseLibrary/technical/components/TechnicalDetail.vue +++ b/src/views/enterpriseLibrary/technical/components/TechnicalDetail.vue @@ -3,6 +3,7 @@
返回 + 编辑
@@ -66,6 +67,18 @@ export default { this.detailData = res.data; } }, + // 编辑 + handleEdit() { + this.$router.push({ + name: 'TechnicalEdit', + query: { + enterpriseId: encryptWithSM4(this.enterpriseId || '0'), + technicalSolutionTypeId: encryptWithSM4(this.technicalSolutionTypeId || '0'), + type: encryptWithSM4('edit'), + technicalSolutionId: encryptWithSM4(this.technicalSolutionId + '' || '0'), + } + }) + }, }, } @@ -121,26 +134,24 @@ export default { gap: 12px; } -.search-btn { +.edit-btn { width: 98px; height: 36px; - background: #1F72EA; - box-shadow: 0px 4px 8px 0px rgba(51, 135, 255, 0.5); - border-radius: 4px; - border: none; + background: #EAA819; + box-shadow: 0px 4px 8px 0px rgba(255,156,51,0.5); + border-radius: 4px 4px 4px 4px; + border-color: #EAA819; color: #fff; + font-weight: 600; + letter-spacing: 0.5px; font-size: 14px; transition: all 0.3s ease; &:hover { - background: #4A8BFF; - box-shadow: 0px 6px 12px 0px rgba(51, 135, 255, 0.6); - } - - // 当按钮处于loading状态时的样式 - &.is-loading { - opacity: 0.7; - pointer-events: none; + background: #ffb733; + border-color: #ffb733; + box-shadow: 0px 6px 12px 0px rgba(255,156,51,0.6); + transform: translateY(-1px); } }