From 09891cea3bd0c4c6182a786c302dc20921f07ccd Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期二, 11 二月 2025 18:01:50 +0800
Subject: [PATCH] 设备结构树: 1、实现点击设备关联NC程序展示文档详细信息、文件内容预览以及文档内容对比功能 2、实现设备层级导入已接收NC程序功能 全局: 1、解决类似文档出库弹窗在路由跳转后点击后会同时出现多个问题

---
 src/views/dnc/common/DocumentModalForm.vue |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/src/views/dnc/common/DocumentModalForm.vue b/src/views/dnc/common/DocumentModalForm.vue
index 804181d..d6e34da 100644
--- a/src/views/dnc/common/DocumentModalForm.vue
+++ b/src/views/dnc/common/DocumentModalForm.vue
@@ -58,10 +58,10 @@
         validatorRules: {
           docName: [
             { required: true, message: '璇疯緭鍏ユ枃妗e師鍚嶇О!' }
-          ],
+          ]
         },
         url: {
-          edit: '/mdc/mdcPartProcessInfo/edit'
+          edit: '/nc/doc/edit'
         }
       }
     },
@@ -86,14 +86,9 @@
         this.$refs.form.validate(valid => {
           if (valid) {
             that.confirmLoading = true
-            let httpUrl = ''
-            let method = 'post'
-            if (!this.model.id) {
-              httpUrl += this.url.add
-            } else {
-              httpUrl += this.url.edit
-            }
-            httpAction(httpUrl, this.model, method).then((res) => {
+            let httpUrl = this.url.edit
+            let method = 'put'
+            httpAction(httpUrl + `/${that.model.docId}`, this.model, method).then((res) => {
               if (res.success) {
                 that.$notification.success({
                   message: '娑堟伅',

--
Gitblit v1.9.3