-        
+        
+            
+                
+            
+
             
                 
                     
@@ -18,19 +22,25 @@
                                 style="width: 100%"
                             />
                         
-                        
-                            
-                                SSH
-                                RDP
-                                
-                            
+                        
+                            
                         
                         
                             
                         
-                        
+                        
+                            
+                                
+                            
+                        
+                        
                             
-                                 
+                                 
                             
                             :
                             
@@ -81,7 +91,7 @@
                     确 定
                 
             
-        
+        
     
 
 
@@ -92,6 +102,9 @@ import { ElMessage } from 'element-plus';
 import TagTreeSelect from '../component/TagTreeSelect.vue';
 import SshTunnelSelect from '../component/SshTunnelSelect.vue';
 import AuthCertSelect from './authcert/AuthCertSelect.vue';
+import { MachineProtocolEnum } from './enums';
+import DrawerHeader from '@/components/drawer-header/DrawerHeader.vue';
+import { ResourceCodePattern } from '@/common/pattern';
 
 const props = defineProps({
     visible: {
@@ -116,6 +129,18 @@ const rules = {
             trigger: ['change'],
         },
     ],
+    code: [
+        {
+            required: true,
+            message: '请输入编码',
+            trigger: ['change', 'blur'],
+        },
+        {
+            pattern: ResourceCodePattern.pattern,
+            message: ResourceCodePattern.message,
+            trigger: ['blur'],
+        },
+    ],
     name: [
         {
             required: true,
@@ -134,7 +159,7 @@ const rules = {
         {
             required: true,
             message: '请输入主机ip和端口',
-            trigger: ['change', 'blur'],
+            trigger: ['blur'],
         },
     ],
     authCertId: [
@@ -263,11 +288,11 @@ const getReqForm = () => {
 };
 
 const handleChangeProtocol = (val: any) => {
-    if (val == 1) {
+    if (val == MachineProtocolEnum.Ssh.value) {
         state.form.port = 22;
-    } else if (val == 2) {
+    } else if (val == MachineProtocolEnum.Rdp.value) {
         state.form.port = 3389;
-    } else if (val == 3) {
+    } else {
         state.form.port = 5901;
     }
 };
diff --git a/mayfly_go_web/src/views/ops/machine/MachineList.vue b/mayfly_go_web/src/views/ops/machine/MachineList.vue
index f743a91d..cc8ee70b 100644
--- a/mayfly_go_web/src/views/ops/machine/MachineList.vue
+++ b/mayfly_go_web/src/views/ops/machine/MachineList.vue
@@ -251,10 +251,16 @@ const perms = {
     terminal: 'machine:terminal',
 };
 
-const searchItems = [getTagPathSearchItem(TagResourceTypeEnum.Machine.value), SearchItem.input('ip', 'IP'), SearchItem.input('name', '名称')];
+const searchItems = [
+    getTagPathSearchItem(TagResourceTypeEnum.Machine.value),
+    SearchItem.input('code', '编号'),
+    SearchItem.input('ip', 'IP'),
+    SearchItem.input('name', '名称'),
+];
 
 const columns = [
     TableColumn.new('tags[0].tagPath', '关联标签').isSlot('tagPath').setAddWidth(20),
+    TableColumn.new('code', '编号'),
     TableColumn.new('name', '名称'),
     TableColumn.new('ipPort', 'ip:port').isSlot().setAddWidth(50),
     TableColumn.new('stat', '运行状态').isSlot().setAddWidth(55),
diff --git a/mayfly_go_web/src/views/ops/machine/enums.ts b/mayfly_go_web/src/views/ops/machine/enums.ts
index 345d7d15..c817424f 100644
--- a/mayfly_go_web/src/views/ops/machine/enums.ts
+++ b/mayfly_go_web/src/views/ops/machine/enums.ts
@@ -1,5 +1,10 @@
 import { EnumValue } from '@/common/Enum';
 
+export const MachineProtocolEnum = {
+    Ssh: EnumValue.of(1, 'SSH'),
+    Rdp: EnumValue.of(2, 'RDP'),
+};
+
 // 脚本执行结果类型
 export const ScriptResultEnum = {
     Result: EnumValue.of(1, '有结果'),
diff --git a/mayfly_go_web/src/views/ops/mongo/MongoEdit.vue b/mayfly_go_web/src/views/ops/mongo/MongoEdit.vue
index 74919e1f..2d5574ac 100644
--- a/mayfly_go_web/src/views/ops/mongo/MongoEdit.vue
+++ b/mayfly_go_web/src/views/ops/mongo/MongoEdit.vue
@@ -17,7 +17,14 @@
                                 style="width: 100%"
                             />
                         
-
+