| | |
| | | <label for="L_appCode" class="layui-form-label"> |
| | | 关键字</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="key" lay-verify="" placeholder="" autocomplete="off" |
| | | class="layui-input"> |
| | | <select type="text" name="key" placeholder="" autocomplete="off" |
| | | class="layui-input"></select> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | <label for="L_appCode" class="layui-form-label"> |
| | | 内容</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="value" lay-verify="" placeholder="" autocomplete="off" |
| | | class="layui-input"> |
| | | <textarea type="text" rows="5" name="value" lay-verify="" placeholder="" autocomplete="off" |
| | | class="layui-textarea"></textarea> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | <label for="L_appCode" class="layui-form-label"> |
| | | 备注</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="remarks" lay-verify="" placeholder="" autocomplete="off" |
| | | class="layui-input"> |
| | | <textarea type="text" name="remarks" lay-verify="" placeholder="" autocomplete="off" rows="5" |
| | | class="layui-textarea"></textarea> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | //渲染上传控件 |
| | | uploadTool.init(upload); |
| | | |
| | | var params = {}; |
| | | var type = ksapp.getQueryParam("type"); |
| | | if (type != null && type.length > 0) { |
| | | params["type"] = type; |
| | | } |
| | | |
| | | ksapp.post('/admin/api/config/getKeyList', params, function (res) { |
| | | if (res.code == 0) { |
| | | //填充数据 |
| | | $("select[name=key]").empty(); |
| | | for (var i = 0; i < res.data.length; i++) { |
| | | var html = "<option value='" + res.data[i].key + "'>"; |
| | | html += res.data[i].value + "</option>"; |
| | | $("select[name=key]").append(html); |
| | | } |
| | | //重新渲染表单 |
| | | form.render(); |
| | | } else { |
| | | layer.msg(res.msg); |
| | | } |
| | | |
| | | }, function (res) { |
| | | }); |
| | | |
| | | |
| | | //监听提交 |
| | | form.on('submit(add)', |