296 lines
		
	
	
		
			17 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			296 lines
		
	
	
		
			17 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Code generated by templ - DO NOT EDIT.
 | |
| 
 | |
| // templ: version: v0.3.898
 | |
| package role
 | |
| 
 | |
| //lint:file-ignore SA4006 This context is only used if a nested component is present.
 | |
| 
 | |
| import "github.com/a-h/templ"
 | |
| import templruntime "github.com/a-h/templ/runtime"
 | |
| 
 | |
| import (
 | |
| 	"context"
 | |
| 	"time"
 | |
| 
 | |
| 	"management/internal/erpserver/model/system"
 | |
| 	"management/internal/erpserver/templ/base"
 | |
| 	"management/internal/erpserver/templ/component"
 | |
| 	"management/internal/pkg/mid"
 | |
| )
 | |
| 
 | |
| func Edit(ctx context.Context, item *system.Role) templ.Component {
 | |
| 	return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
 | |
| 		templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
 | |
| 		if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
 | |
| 			return templ_7745c5c3_CtxErr
 | |
| 		}
 | |
| 		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
 | |
| 		if !templ_7745c5c3_IsBuffer {
 | |
| 			defer func() {
 | |
| 				templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
 | |
| 				if templ_7745c5c3_Err == nil {
 | |
| 					templ_7745c5c3_Err = templ_7745c5c3_BufErr
 | |
| 				}
 | |
| 			}()
 | |
| 		}
 | |
| 		ctx = templ.InitializeContext(ctx)
 | |
| 		templ_7745c5c3_Var1 := templ.GetChildren(ctx)
 | |
| 		if templ_7745c5c3_Var1 == nil {
 | |
| 			templ_7745c5c3_Var1 = templ.NopComponent
 | |
| 		}
 | |
| 		ctx = templ.ClearChildren(ctx)
 | |
| 		templ_7745c5c3_Var2 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
 | |
| 			templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
 | |
| 			templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
 | |
| 			if !templ_7745c5c3_IsBuffer {
 | |
| 				defer func() {
 | |
| 					templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
 | |
| 					if templ_7745c5c3_Err == nil {
 | |
| 						templ_7745c5c3_Err = templ_7745c5c3_BufErr
 | |
| 					}
 | |
| 				}()
 | |
| 			}
 | |
| 			ctx = templ.InitializeContext(ctx)
 | |
| 			meuns := mid.GetCurMenus(ctx)
 | |
| 			ht := mid.GetHtmlCsrfToken(ctx)
 | |
| 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<div class=\"layui-body layui-bg-gray\"><div class=\"layui-card\"><form class=\"layui-form\">")
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			templ_7745c5c3_Err = ht.Render(ctx, templ_7745c5c3_Buffer)
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "<input type=\"hidden\" id=\"id\" name=\"id\" value=\"")
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			var templ_7745c5c3_Var3 string
 | |
| 			templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(item.ID)
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/erpserver/templ/system/role/edit.templ`, Line: 21, Col: 74}
 | |
| 			}
 | |
| 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "\"><div class=\"layui-tab layui-tab-card\"><ul class=\"layui-tab-title\"><li class=\"layui-this\">基础信息</li><li>其它</li></ul><div class=\"layui-tab-content\"><!-- 基础信息 --><div class=\"layui-tab-item layui-show\">")
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			if item.ID > 0 {
 | |
| 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "<div class=\"layui-form-item\"><div class=\"layui-form-label\">ID</div><div class=\"layui-form-label\" style=\"width:400px;text-align:left;\">")
 | |
| 				if templ_7745c5c3_Err != nil {
 | |
| 					return templ_7745c5c3_Err
 | |
| 				}
 | |
| 				var templ_7745c5c3_Var4 string
 | |
| 				templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(item.ID)
 | |
| 				if templ_7745c5c3_Err != nil {
 | |
| 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/erpserver/templ/system/role/edit.templ`, Line: 36, Col: 53}
 | |
| 				}
 | |
| 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
 | |
| 				if templ_7745c5c3_Err != nil {
 | |
| 					return templ_7745c5c3_Err
 | |
| 				}
 | |
| 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 5, "</div></div>")
 | |
| 				if templ_7745c5c3_Err != nil {
 | |
| 					return templ_7745c5c3_Err
 | |
| 				}
 | |
| 			}
 | |
| 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 6, "<div class=\"layui-form-item\"><label class=\"layui-form-label\">上级</label><div class=\"layui-input-inline\" style=\"width:300px;\"><ul id=\"roleTree\" class=\"dtree organizationTree\"></ul></div></div><div class=\"layui-form-item\"><label for=\"name\" class=\"layui-form-label\">名称</label><div class=\"layui-input-inline\" style=\"width:300px;\"><input type=\"text\" id=\"name\" name=\"name\" value=\"")
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			var templ_7745c5c3_Var5 string
 | |
| 			templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(item.Name)
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/erpserver/templ/system/role/edit.templ`, Line: 51, Col: 98}
 | |
| 			}
 | |
| 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "\" lay-verify=\"required\" autocomplete=\"off\" placeholder=\"请输入名称\" class=\"layui-input\"></div></div><div class=\"layui-form-item\"><label for=\"display_name\" class=\"layui-form-label\">显示名称</label><div class=\"layui-input-inline\" style=\"width:300px;\"><input type=\"text\" id=\"display_name\" name=\"display_name\" value=\"")
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			var templ_7745c5c3_Var6 string
 | |
| 			templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(item.DisplayName)
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/erpserver/templ/system/role/edit.templ`, Line: 59, Col: 121}
 | |
| 			}
 | |
| 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6))
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "\" lay-verify=\"required\" autocomplete=\"off\" placeholder=\"请输入显示名称\" class=\"layui-input\"></div></div><div class=\"layui-form-item\"><label for=\"status\" class=\"layui-form-label\">状态标识</label><div class=\"layui-input-inline\"><select id=\"status\" name=\"status\">")
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			if item.Status == 0 {
 | |
| 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "<option value=\"0\" selected>正常</option> <option value=\"-1\">删除</option>")
 | |
| 				if templ_7745c5c3_Err != nil {
 | |
| 					return templ_7745c5c3_Err
 | |
| 				}
 | |
| 			} else if item.Status == -1 {
 | |
| 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 10, "<option value=\"0\">正常</option> <option value=\"-1\" selected>删除</option>")
 | |
| 				if templ_7745c5c3_Err != nil {
 | |
| 					return templ_7745c5c3_Err
 | |
| 				}
 | |
| 			}
 | |
| 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, "</select></div></div><div class=\"layui-form-item\"><label for=\"sort\" class=\"layui-form-label\">排序</label><div class=\"layui-input-inline\"><input type=\"number\" id=\"sort\" name=\"sort\" value=\"")
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			var templ_7745c5c3_Var7 string
 | |
| 			templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(item.Sort)
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/erpserver/templ/system/role/edit.templ`, Line: 83, Col: 100}
 | |
| 			}
 | |
| 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7))
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 12, "\" lay-affix=\"number\" min=\"1\" class=\"layui-input\"></div></div></div><!-- 其它 --><div class=\"layui-tab-item\">")
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			if item.ID > 0 {
 | |
| 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 13, "<div class=\"layui-form-item\"><label class=\"layui-form-label\">创建时间</label><div class=\"layui-form-label\" style=\"width:400px;text-align:left;\">")
 | |
| 				if templ_7745c5c3_Err != nil {
 | |
| 					return templ_7745c5c3_Err
 | |
| 				}
 | |
| 				var templ_7745c5c3_Var8 string
 | |
| 				templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(item.CreatedAt.Format(time.DateTime))
 | |
| 				if templ_7745c5c3_Err != nil {
 | |
| 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/erpserver/templ/system/role/edit.templ`, Line: 95, Col: 78}
 | |
| 				}
 | |
| 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8))
 | |
| 				if templ_7745c5c3_Err != nil {
 | |
| 					return templ_7745c5c3_Err
 | |
| 				}
 | |
| 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 14, "</div></div><div class=\"layui-form-item\"><label class=\"layui-form-label\">更新时间</label><div class=\"layui-form-label\" style=\"width:400px;text-align:left;\">")
 | |
| 				if templ_7745c5c3_Err != nil {
 | |
| 					return templ_7745c5c3_Err
 | |
| 				}
 | |
| 				var templ_7745c5c3_Var9 string
 | |
| 				templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(item.UpdatedAt.Format(time.DateTime))
 | |
| 				if templ_7745c5c3_Err != nil {
 | |
| 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/erpserver/templ/system/role/edit.templ`, Line: 101, Col: 78}
 | |
| 				}
 | |
| 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9))
 | |
| 				if templ_7745c5c3_Err != nil {
 | |
| 					return templ_7745c5c3_Err
 | |
| 				}
 | |
| 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "</div></div>")
 | |
| 				if templ_7745c5c3_Err != nil {
 | |
| 					return templ_7745c5c3_Err
 | |
| 				}
 | |
| 			}
 | |
| 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, "</div></div></div><div class=\"layui-form-item layui-fixbar btn-fixbar-box\"><div class=\"layui-input-block\">")
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			templ_7745c5c3_Err = component.SubmitBtn(meuns, "save").Render(ctx, templ_7745c5c3_Buffer)
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "<button type=\"button\" class=\"layui-btn layui-btn-primary layui-btn-sm\" lay-on=\"close\"><i class=\"layui-icon layui-icon-close\"></i>关闭</button></div></div></form></div></div>")
 | |
| 			if templ_7745c5c3_Err != nil {
 | |
| 				return templ_7745c5c3_Err
 | |
| 			}
 | |
| 			return nil
 | |
| 		})
 | |
| 		templ_7745c5c3_Err = base.Base(ctx, editCss(), editJs(ctx, item)).Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer)
 | |
| 		if templ_7745c5c3_Err != nil {
 | |
| 			return templ_7745c5c3_Err
 | |
| 		}
 | |
| 		return nil
 | |
| 	})
 | |
| }
 | |
| 
 | |
| func editCss() templ.Component {
 | |
| 	return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
 | |
| 		templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
 | |
| 		if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
 | |
| 			return templ_7745c5c3_CtxErr
 | |
| 		}
 | |
| 		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
 | |
| 		if !templ_7745c5c3_IsBuffer {
 | |
| 			defer func() {
 | |
| 				templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
 | |
| 				if templ_7745c5c3_Err == nil {
 | |
| 					templ_7745c5c3_Err = templ_7745c5c3_BufErr
 | |
| 				}
 | |
| 			}()
 | |
| 		}
 | |
| 		ctx = templ.InitializeContext(ctx)
 | |
| 		templ_7745c5c3_Var10 := templ.GetChildren(ctx)
 | |
| 		if templ_7745c5c3_Var10 == nil {
 | |
| 			templ_7745c5c3_Var10 = templ.NopComponent
 | |
| 		}
 | |
| 		ctx = templ.ClearChildren(ctx)
 | |
| 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 18, "<style>\n        .layui-body {\n            padding: 15px;\n            left: 0;\n        }\n    </style>")
 | |
| 		if templ_7745c5c3_Err != nil {
 | |
| 			return templ_7745c5c3_Err
 | |
| 		}
 | |
| 		return nil
 | |
| 	})
 | |
| }
 | |
| 
 | |
| func editJs(ctx context.Context, item *system.Role) templ.Component {
 | |
| 	return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
 | |
| 		templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
 | |
| 		if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
 | |
| 			return templ_7745c5c3_CtxErr
 | |
| 		}
 | |
| 		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
 | |
| 		if !templ_7745c5c3_IsBuffer {
 | |
| 			defer func() {
 | |
| 				templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
 | |
| 				if templ_7745c5c3_Err == nil {
 | |
| 					templ_7745c5c3_Err = templ_7745c5c3_BufErr
 | |
| 				}
 | |
| 			}()
 | |
| 		}
 | |
| 		ctx = templ.InitializeContext(ctx)
 | |
| 		templ_7745c5c3_Var11 := templ.GetChildren(ctx)
 | |
| 		if templ_7745c5c3_Var11 == nil {
 | |
| 			templ_7745c5c3_Var11 = templ.NopComponent
 | |
| 		}
 | |
| 		ctx = templ.ClearChildren(ctx)
 | |
| 		token := mid.GetCsrfToken(ctx)
 | |
| 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 19, "<script>\n        layui.use(['jquery', 'form', 'xmSelect', 'util'], function () {\n            let $ = layui.jquery;\n            let form = layui.form;\n            let xmSelect = layui.xmSelect;\n            let util = layui.util;\n\n            getRoleTree();\n\n            // 表单提交\n            form.on('submit(save)', function (data) {\n                $.ajax({\n                    url: '/system/role/save',\n                    type: 'post',\n                    dataType: 'json',\n                    data: data.field,\n                    success: function (result) {\n                        if (result.success) {\n                            layer.msg(result.msg, { icon: 1, time: 1000 }, function () {\n                                parent.layer.close(parent.layer.getFrameIndex(window.name)); // 关闭当前页\n                                parent.layui.table.reload(\"tablelist\", {\n                                    page: { curr: 1 },\n                                });\n                            });\n                        } else {\n                            parent.layer.msg(result.msg, { icon: 2 })\n                        }\n                    }\n                });\n\n                return false;\n            });\n\n            // 事件绑定\n            util.on(\"lay-on\", {\n                \"close\": function () {\n                    window.parent.layer.close(parent.layer.getFrameIndex(window.name));\n                }\n            });\n\n            function getRoleTree() {\n                $.ajax({\n                    url: \"/system/role/data?type=xm_select_tree\",\n                    type: 'post',\n                    dataType: 'json',\n                    headers: { 'X-CSRF-Token': '")
 | |
| 		if templ_7745c5c3_Err != nil {
 | |
| 			return templ_7745c5c3_Err
 | |
| 		}
 | |
| 		templ_7745c5c3_Var12, templ_7745c5c3_Err := templruntime.ScriptContentInsideStringLiteral(token)
 | |
| 		if templ_7745c5c3_Err != nil {
 | |
| 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/erpserver/templ/system/role/edit.templ`, Line: 179, Col: 56}
 | |
| 		}
 | |
| 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var12)
 | |
| 		if templ_7745c5c3_Err != nil {
 | |
| 			return templ_7745c5c3_Err
 | |
| 		}
 | |
| 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 20, "' },\n                    success: function (res) {\n                        xmSelect.render({\n                            el: '#roleTree',\n                            // 工具栏\n                            toolbar: {\n                                show: true\n                            },\n                            radio: true,\n                            clickClose: true,\n                            tips: '请选择父级',\n                            filterable: true,\n                            data: res,\n                            name: 'parent_id',\n                            initValue: ['")
 | |
| 		if templ_7745c5c3_Err != nil {
 | |
| 			return templ_7745c5c3_Err
 | |
| 		}
 | |
| 		templ_7745c5c3_Var13, templ_7745c5c3_Err := templruntime.ScriptContentInsideStringLiteral(item.ParentID)
 | |
| 		if templ_7745c5c3_Err != nil {
 | |
| 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/erpserver/templ/system/role/edit.templ`, Line: 193, Col: 57}
 | |
| 		}
 | |
| 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var13)
 | |
| 		if templ_7745c5c3_Err != nil {
 | |
| 			return templ_7745c5c3_Err
 | |
| 		}
 | |
| 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 21, "'],\n                            tree: {\n                                show: true,\n                                //非严格模式\n                                strict: false,\n                                //默认展开节点的数组, 为 true 时, 展开所有节点\n                                expandedKeys: [1],\n                            },\n                            on: function (data) { },\n                        });\n                    },\n                    error: function (err) {\n                        // 处理请求错误\n                        console.log('请求出错:', err);\n                    }\n                });\n            }\n        });\n    </script>")
 | |
| 		if templ_7745c5c3_Err != nil {
 | |
| 			return templ_7745c5c3_Err
 | |
| 		}
 | |
| 		return nil
 | |
| 	})
 | |
| }
 | |
| 
 | |
| var _ = templruntime.GeneratedTemplate
 |