diff --git a/gofaster/app/plugins/modules/trigger-analyzer.js b/gofaster/app/plugins/modules/trigger-analyzer.js index 7661983..16cc850 100644 --- a/gofaster/app/plugins/modules/trigger-analyzer.js +++ b/gofaster/app/plugins/modules/trigger-analyzer.js @@ -997,7 +997,7 @@ class TriggerAnalyzer { // 如果找到的是form,需要查找其中的submit按钮 if (context.triggerType === 'form') { - const submitButton = this.findSubmitButtonInForm(node, componentName, methodName) + const submitButton = this.findSubmitButtonInForm(node, componentName, methodName, filePath) if (submitButton) { return submitButton } @@ -1031,7 +1031,7 @@ class TriggerAnalyzer { * @param {string} methodName - 方法名称 * @returns {Object|null} submit按钮上下文 */ - findSubmitButtonInForm(formNode, componentName, methodName) { + findSubmitButtonInForm(formNode, componentName, methodName, filePath) { if (!formNode || !formNode.children) return null // 递归查找submit按钮 @@ -1052,6 +1052,8 @@ class TriggerAnalyzer { if (!triggerName) { // 生成唯一的name属性:组件名+唯一尾缀 triggerName = `${componentName.toLowerCase()}-${this.generateUniqueSuffix()}` + // 自动为Vue文件添加name属性 + this.addNameAttributeToVueFile(filePath, child, triggerName) } return { triggerName: triggerName, @@ -1061,7 +1063,7 @@ class TriggerAnalyzer { } // 递归查找子元素 - const result = this.findSubmitButtonInForm(child, componentName, methodName) + const result = this.findSubmitButtonInForm(child, componentName, methodName, filePath) if (result) return result } } diff --git a/gofaster/app/src/renderer/modules/role-management/components/PermissionManager.vue b/gofaster/app/src/renderer/modules/role-management/components/PermissionManager.vue index 8df5805..33490fd 100644 --- a/gofaster/app/src/renderer/modules/role-management/components/PermissionManager.vue +++ b/gofaster/app/src/renderer/modules/role-management/components/PermissionManager.vue @@ -55,7 +55,7 @@ diff --git a/gofaster/app/src/renderer/modules/role-management/components/RolePermissionAssignment.vue b/gofaster/app/src/renderer/modules/role-management/components/RolePermissionAssignment.vue index f120a56..80367bb 100644 --- a/gofaster/app/src/renderer/modules/role-management/components/RolePermissionAssignment.vue +++ b/gofaster/app/src/renderer/modules/role-management/components/RolePermissionAssignment.vue @@ -1,767 +1,767 @@ - - - - - + + + + + diff --git a/gofaster/app/src/renderer/modules/role-management/components/UserRoleAssignment.vue b/gofaster/app/src/renderer/modules/role-management/components/UserRoleAssignment.vue index 7617b7d..5856439 100644 --- a/gofaster/app/src/renderer/modules/role-management/components/UserRoleAssignment.vue +++ b/gofaster/app/src/renderer/modules/role-management/components/UserRoleAssignment.vue @@ -82,7 +82,7 @@ diff --git a/gofaster/app/src/renderer/modules/role-management/views/RoleManagement.vue b/gofaster/app/src/renderer/modules/role-management/views/RoleManagement.vue index 52fa2cf..56b0c94 100644 --- a/gofaster/app/src/renderer/modules/role-management/views/RoleManagement.vue +++ b/gofaster/app/src/renderer/modules/role-management/views/RoleManagement.vue @@ -58,7 +58,7 @@ - @@ -177,7 +177,7 @@ - diff --git a/gofaster/app/src/renderer/modules/route-sync/direct-route-mappings.js b/gofaster/app/src/renderer/modules/route-sync/direct-route-mappings.js index 670b1e6..8a04ebf 100644 --- a/gofaster/app/src/renderer/modules/route-sync/direct-route-mappings.js +++ b/gofaster/app/src/renderer/modules/route-sync/direct-route-mappings.js @@ -48,7 +48,7 @@ export default { }, { "component": "RoleManagement", - "triggerName": "save-role", + "triggerName": "rolemanagement-7gjwbd", "triggerType": "button" } ] @@ -72,7 +72,7 @@ export default { "triggerSources": [ { "component": "RoleManagement", - "triggerName": "save-role", + "triggerName": "rolemanagement-7gjwbd", "triggerType": "button" } ] @@ -84,12 +84,12 @@ export default { "triggerSources": [ { "component": "PermissionManager", - "triggerName": "save-permissions", + "triggerName": "permissionmanager-ufeqez", "triggerType": "button" }, { "component": "RoleManagement", - "triggerName": "save-role", + "triggerName": "rolemanagement-7gjwbd", "triggerType": "button" } ] @@ -101,7 +101,7 @@ export default { "triggerSources": [ { "component": "RoleManagement", - "triggerName": "delete-role", + "triggerName": "rolemanagement-gih20x", "triggerType": "button" } ] @@ -130,7 +130,7 @@ export default { "triggerSources": [ { "component": "UserRoleAssignment", - "triggerName": "userroleassignment-xbmtac", + "triggerName": "userroleassignment-snvkol", "triggerType": "button" } ] @@ -154,7 +154,7 @@ export default { "triggerSources": [ { "component": "UserRoleAssignment", - "triggerName": "userroleassignment-xbmtac", + "triggerName": "userroleassignment-snvkol", "triggerType": "button" } ] @@ -166,7 +166,7 @@ export default { "triggerSources": [ { "component": "RolePermissionAssignment", - "triggerName": "rolepermissionassignment-krq0js", + "triggerName": "rolepermissionassignment-106c2d", "triggerType": "button" } ] @@ -178,12 +178,12 @@ export default { "triggerSources": [ { "component": "RolePermissionAssignment", - "triggerName": "rolepermissionassignment-krq0js", + "triggerName": "rolepermissionassignment-106c2d", "triggerType": "button" }, { "component": "RolePermissionAssignment", - "triggerName": "rolepermissionassignment-2m2snp", + "triggerName": "rolepermissionassignment-u5nohd", "triggerType": "button" } ] @@ -195,12 +195,12 @@ export default { "triggerSources": [ { "component": "RolePermissionAssignment", - "triggerName": "rolepermissionassignment-qa8mqd", + "triggerName": "rolepermissionassignment-nd91kw", "triggerType": "button" }, { "component": "RolePermissionAssignment", - "triggerName": "rolepermissionassignment-cwppvx", + "triggerName": "rolepermissionassignment-hve7dn", "triggerType": "button" } ] @@ -218,7 +218,7 @@ export default { "triggerSources": [ { "component": "UserManagement", - "triggerName": "usermanagement-9jq7qi", + "triggerName": "usermanagement-4rtqic", "triggerType": "link" } ] @@ -230,7 +230,7 @@ export default { "triggerSources": [ { "component": "UserManagement", - "triggerName": "usermanagement-tcfjru", + "triggerName": "usermanagement-elrh6q", "triggerType": "button" } ] @@ -242,7 +242,7 @@ export default { "triggerSources": [ { "component": "UserManagement", - "triggerName": "usermanagement-tcfjru", + "triggerName": "usermanagement-elrh6q", "triggerType": "button" } ] @@ -254,7 +254,7 @@ export default { "triggerSources": [ { "component": "UserManagement", - "triggerName": "usermanagement-djl8u7", + "triggerName": "usermanagement-25s1yv", "triggerType": "button" } ] @@ -266,7 +266,7 @@ export default { "triggerSources": [ { "component": "PasswordChangeModal", - "triggerName": "passwordchangemodal-krxyp6", + "triggerName": "passwordchangemodal-4ud6kv", "triggerType": "button" } ] @@ -290,7 +290,7 @@ export default { "triggerSources": [ { "component": "PasswordChangeModal", - "triggerName": "passwordchangemodal-sfn0g2", + "triggerName": "passwordchangemodal-ihl507", "triggerType": "input" } ] @@ -302,7 +302,7 @@ export default { "triggerSources": [ { "component": "UserProfile", - "triggerName": "userprofile-llgkyu", + "triggerName": "userprofile-sdddz1", "triggerType": "button" } ] @@ -314,7 +314,7 @@ export default { "triggerSources": [ { "component": "PasswordChangeModal", - "triggerName": "passwordchangemodal-krxyp6", + "triggerName": "passwordchangemodal-4ud6kv", "triggerType": "button" } ] diff --git a/gofaster/app/src/renderer/modules/user-management/components/PasswordChangeModal.vue b/gofaster/app/src/renderer/modules/user-management/components/PasswordChangeModal.vue index 5a35846..43ff743 100644 --- a/gofaster/app/src/renderer/modules/user-management/components/PasswordChangeModal.vue +++ b/gofaster/app/src/renderer/modules/user-management/components/PasswordChangeModal.vue @@ -1,968 +1,968 @@ - - - - - + + + + + diff --git a/gofaster/app/src/renderer/modules/user-management/views/UserManagement.vue b/gofaster/app/src/renderer/modules/user-management/views/UserManagement.vue index 16d8c52..6d98ccd 100644 --- a/gofaster/app/src/renderer/modules/user-management/views/UserManagement.vue +++ b/gofaster/app/src/renderer/modules/user-management/views/UserManagement.vue @@ -71,7 +71,7 @@ - @@ -200,7 +200,7 @@ - diff --git a/gofaster/app/src/renderer/modules/user-management/views/UserProfile.vue b/gofaster/app/src/renderer/modules/user-management/views/UserProfile.vue index 9338279..081c414 100644 --- a/gofaster/app/src/renderer/modules/user-management/views/UserProfile.vue +++ b/gofaster/app/src/renderer/modules/user-management/views/UserProfile.vue @@ -16,7 +16,7 @@

加载失败

{{ error }}

-