ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~ {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"> <select name="tag_id"> {volist name="file_tag" id="vo"} <option value="{$vo.id}" {eq name="vo['id']" value="1"} selected="selected" {/eq}>{$vo.title}</option> {/volist} </select> </div> </div> <!--隐藏域--> <input type="hidden" name="ids" value="{$Request.param.ids}"> <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('imgfile/updatetag')}", 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"/} ~~~