From 122970829413af065d317508e72b79652cc2f1e7 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Fri, 31 Oct 2025 13:29:10 +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/api/enterpriseLibrary/tool/tool.js | 2 +- .../enterpriseLibrary/technical/index.vue | 21 -- .../tool/components/ToolForm.vue | 215 +++++++++++++----- src/views/enterpriseLibrary/tool/config.js | 12 +- src/views/enterpriseLibrary/tool/index.vue | 83 +++---- 5 files changed, 209 insertions(+), 124 deletions(-) diff --git a/src/api/enterpriseLibrary/tool/tool.js b/src/api/enterpriseLibrary/tool/tool.js index a2b4e8a..2f5c1d6 100644 --- a/src/api/enterpriseLibrary/tool/tool.js +++ b/src/api/enterpriseLibrary/tool/tool.js @@ -39,7 +39,7 @@ export function delDataAPI(data) { /* 工器具库->查询详情 */ export function getDetailDataAPI(params) { return request({ - url: '/smartBid/mainDatabase/tool/getDetailData', + url: '/smartBid/mainDatabase/tool/detailData', method: 'GET', params }) diff --git a/src/views/enterpriseLibrary/technical/index.vue b/src/views/enterpriseLibrary/technical/index.vue index fa568af..45e471c 100644 --- a/src/views/enterpriseLibrary/technical/index.vue +++ b/src/views/enterpriseLibrary/technical/index.vue @@ -42,27 +42,6 @@ export default { handleCategoryChange(categoryId) { this.activeCategory = categoryId }, - handleAddCategory() { - }, - handleCategoryCommand(command) { - if (command.type === 'edit') { - console.log('编辑分类:', command.id) - } else if (command.type === 'delete') { - console.log('删除分类:', command.id) - } - }, - handleAddScheme() { - console.log('新增方案') - }, - handleView(row) { - console.log('查看:', row) - }, - handleEdit(row) { - console.log('编辑:', row) - }, - handleDelete(row) { - console.log('删除:', row) - }, // 返回上一页 handleBack() { const obj = { diff --git a/src/views/enterpriseLibrary/tool/components/ToolForm.vue b/src/views/enterpriseLibrary/tool/components/ToolForm.vue index 6196681..1ccd41d 100644 --- a/src/views/enterpriseLibrary/tool/components/ToolForm.vue +++ b/src/views/enterpriseLibrary/tool/components/ToolForm.vue @@ -5,16 +5,16 @@