From 73f3d2a6033185966274a8bf34ebdf8797da37c6 Mon Sep 17 00:00:00 2001
From: z_yu <1534695664@qq.com>
Date: Fri, 27 May 2022 17:32:13 +0800
Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E7=B1=BB=E7=AE=A1=E7=90=86=20?=
 =?UTF-8?q?=E9=97=A8=E7=B1=BB=E5=AD=97=E6=AE=B5=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 src/views/category/baseInfo/index.vue         |  76 ++++++++
 src/views/category/fieldManage/index.vue      | 173 ++++++++++++++++++
 .../category/fieldManage/module/form.vue      | 107 +++++++++++
 src/views/category/index.vue                  |  33 +++-
 4 files changed, 382 insertions(+), 7 deletions(-)
 create mode 100644 src/views/category/baseInfo/index.vue
 create mode 100644 src/views/category/fieldManage/index.vue
 create mode 100644 src/views/category/fieldManage/module/form.vue
diff --git a/src/views/category/baseInfo/index.vue b/src/views/category/baseInfo/index.vue
new file mode 100644
index 0000000..7402729
--- /dev/null
+++ b/src/views/category/baseInfo/index.vue
@@ -0,0 +1,76 @@
+
+  
+    
+      
+        
+      
+      
+        
+          
+          
+        
+      
+      
+        
+      
+      
+        
+      
+      
+        
+      
+    
+  
+
+
+
+
+
diff --git a/src/views/category/fieldManage/index.vue b/src/views/category/fieldManage/index.vue
new file mode 100644
index 0000000..e9f513a
--- /dev/null
+++ b/src/views/category/fieldManage/index.vue
@@ -0,0 +1,173 @@
+
+  
+    
+      
+    
+    
+    
+      
+      
+      
+      
+      
+        
+          字符
+          数字
+        
+      
+      
+      
+      
+      
+      
+        
+          
+        
+      
+      
+        
+          
+        
+      
+      
+        
+          
+        
+      
+      
+        
+          
+        
+      
+      
+        
+          
+        
+      
+      
+        
+          
+        
+      
+      
+      
+        
+          
+        
+      
+    
+    
+    
+  
+      
+        
+          
+        
+        
+          
+        
+        
+          
+            
+          
+        
+        
+          
+        
+        
+          
+        
+      
+      
+    
+  
+
+
+
+
+
diff --git a/src/views/category/index.vue b/src/views/category/index.vue
index dbed9d9..37172ab 100644
--- a/src/views/category/index.vue
+++ b/src/views/category/index.vue
@@ -44,15 +44,16 @@
         
         
         
-          - 基本信息-
- 门类字段管理-
- 著录界面管理-
- 列表界面浏览设置-
- 浏览排序规则设置-
- 档号规则设置+
- 基本信息+
- 门类字段管理+
- 著录界面管理+
- 列表界面浏览设置+
- 浏览排序规则设置+
- 档号规则设置
+        
       
     
   
@@ -63,12 +64,15 @@ import crudDict from '@/api/archivesConfig/dict'
 import CRUD, { presenter, header } from '@crud/crud'
 import eForm from './form'
 import sortDialog from './sortDialog'
+import baseInfo from './baseInfo/index'
+import fieldManage from './fieldManage/index'
+import descriptionPreview from './descriptionPreview/index'
 import crudOperation from '@crud/CRUD.operation'
 import { findSubsetById } from '@/api/archivesConfig/dictDetail'
 
 export default {
   name: 'Category',
-  components: { crudOperation, eForm, sortDialog },
+  components: { crudOperation, eForm, sortDialog, baseInfo, fieldManage, descriptionPreview },
   cruds() {
     return [
       CRUD({
@@ -114,6 +118,18 @@ export default {
       // sortTableData: []
     }
   },
+  computed: {
+    comName: function() {
+      if (this.activeIndex === 0) {
+        return 'baseInfo'
+      } else if (this.activeIndex === 1) {
+        return 'fieldManage'
+      } else if (this.activeIndex === 2) {
+        return 'descriptionPreview'
+      }
+      return 'baseInfo'
+    }
+  },
   methods: {
     // 右边初始化数据是空
     // [CRUD.HOOK.beforeRefresh]() {
@@ -168,6 +184,9 @@ export default {
         this.$refs.sort.sortVisible = true
         // this.rowDrop()
       })
+    },
+    changeActiveTab(data) {
+      this.activeIndex = data
     }
   }
 }