提交 c14ee9c2 编写于 作者: doc_wei's avatar doc_wei

编码规则的注解修改,添加分组属性

上级 0c6b87fa
......@@ -24,18 +24,22 @@ layui.config({
method: "GET",
template: $("#baseTemplate").html(),
ajaxSendLoadBefore: function (hdb, json) {
$.each(json.bean, function (key, value) {
$.each(value, function (i, item) {
item.selectHtml = codeRuleSelectHtml;
})
})
$.each(json.bean, function (key, appIdValue) {
$.each(appIdValue, function (i, groupNameValue) {
$.each(groupNameValue, function (j, bean) {
bean.selectHtml = codeRuleSelectHtml;
});
});
});
},
ajaxSendAfter: function (json) {
$.each(json.bean, function (key, value) {
$.each(value, function (i, item) {
$("#" + item.id).val(item.codeRuleId);
})
})
$.each(json.bean, function (key, appIdValue) {
$.each(appIdValue, function (i, groupNameValue) {
$.each(groupNameValue, function (j, bean) {
$("#" + bean.id).val(bean.codeRuleId);
})
});
});
form.render();
form.on('select(codeRole)', function(data) {
......
......@@ -21,12 +21,21 @@
<div class="layui-card-header"><b>{{@key}}</b></div>
<div class="layui-card-body" style="display: inline-block;">
{{#each @this}}
<blockquote class="layui-elem-quote layui-quote-nm layui-col-md2">
{{serviceName}}
<select lay-filter="codeRole" lay-search="" id="{{id}}" win-verify="required">
{{{selectHtml}}}
</select>
</blockquote>
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-card-header"><b>{{@key}}</b></div>
<div class="layui-card-body" style="display: flow-root;">
{{#each @this}}
<blockquote class="layui-elem-quote layui-quote-nm layui-col-md2">
{{serviceName}}
<select lay-filter="codeRole" lay-search="" id="{{id}}" win-verify="required">
{{{selectHtml}}}
</select>
</blockquote>
{{/each}}
</div>
</div>
</div>
{{/each}}
</div>
</div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册