💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
~~~ {include file="public/header"/} <!--弹出框主体start--> <div class="layui-tab-content"> <div class="layui-tab-item layui-show" style="margin-top: 20px;"> <form class="layui-form form-container" > <div class="layui-form-item"> <label class="layui-form-label">分组名称</label> <div class="layui-input-inline"> <input type="text" name="title" value="{$apage.title}" required lay-verify="required" placeholder="" class="layui-input"> </div> <div class="layui-form-mid layui-word-aux">*填写1-4个字符最佳</div> </div> <!--隐藏域--> <input type="hidden" name="id" value="{$apage.id}"> <div class="layui-form-item"> <div class="layui-input-block"> <a class="layui-btn" id="save">保存</a> <button type="reset" class="layui-btn layui-btn-primary">重置</button> </div> </div> </form> </div> </div> <script src="/public/admin/js/jquery.min.js"></script> <script src="/public/admin/js/layui/layui.all.js"></script> <script src="/public/admin/js/admin.js"></script> <script> //编辑分组 /*******start*******/ $(".layui-tab-content").on("click","#save",function(){ $.ajax({ url:"{:url('imgfiletag/update')}", data:$('.layui-form').serialize(), dataType: "json", type:'post', async: false, success:function(res) { console.log(res); if(res.status == 1) { layer.msg(res.message,function () { window.parent.location.reload(); // 获得frame索引 var index = parent.layer.getFrameIndex(window.name); //关闭当前frame parent.layer.close(index); }); }else { layer.msg(res.message); } } }) return false; }) /*******end*******/ </script> <!--弹出框主体end--> {include file="public/footer"/} ~~~