Ver Fonte

fix(文档组件): 统一文档位置字段为directoryPath并移除多余格式化逻辑

liujt há 2 meses atrás
pai
commit
7fa9b63e63

+ 5 - 5
src/views/bpm/documents/documentTemplate/components/file-table-list.vue

@@ -201,15 +201,15 @@
           },
           {
             label: '文档位置',
-            prop: 'typeName',
+            prop: 'directoryPath',
             width: 180,
             align: 'center',
             fixed: 'left',
             showOverflowTooltip: true,
-            formatter: () => {
-              // 优先使用fullPath,如果没有则回退到name
-              return this.parentData?.fullPath || this.parentData?.name || '';
-            }
+            // formatter: () => {
+            //   // 优先使用fullPath,如果没有则回退到name
+            //   return this.parentData?.fullPath || this.parentData?.name || '';
+            // }
           },
           {
             label: '编码',

+ 5 - 5
src/views/bpm/documents/noticeIssuance/components/documentDialog.vue

@@ -118,15 +118,15 @@
           },
           {
             label: '文档位置',
-            prop: 'typeName',
+            prop: 'directoryPath',
             width: 180,
             align: 'center',
             fixed: 'left',
             showOverflowTooltip: true,
-            formatter: () => {
-              // 优先使用fullPath,如果没有则回退到name
-              return this.curNodeData?.fullPath || this.curNodeData?.name || '';
-            }
+            // formatter: () => {
+            //   // 优先使用fullPath,如果没有则回退到name
+            //   return this.curNodeData?.fullPath || this.curNodeData?.name || '';
+            // }
           },
           {
             label: '编码',