guns-vip-main/src/main/webapp/assets/modular/bs/materialInfo/materialInfo_add.js
@@ -26,33 +26,20 @@ var form = layui.form; var admin = layui.admin; getDictType(); function getDictType(){ $.ajax({ type: "POST", contentType: "application/json;charset=UTF-8", url: Feng.ctxPath + '/dict/list?dictTypeId=1724238087352172546', success: function (result) { $.each(result.data, function (index, value) { $('#typeL').append(new Option(value.name,value.code));// 下拉菜单里添加元素 }); layui.form.render("select");//重新渲染 固定写法 }, }); } //表单提交事件 form.on('submit(btnSubmit)', function (data) {