|
@@ -37,18 +37,19 @@
|
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="gxhpz:followTemplate:add">
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="gxhpz:followTemplate:add">
|
|
|
<i class="fa fa-plus"></i> 新增模版
|
|
<i class="fa fa-plus"></i> 新增模版
|
|
|
</a>
|
|
</a>
|
|
|
|
|
+ <a class="btn btn-success" onclick="addFields()" shiro:hasPermission="gxhpz:followTemplate:add">
|
|
|
|
|
+ <i class="fa fa-cog"></i> 添加字段
|
|
|
|
|
+ </a>
|
|
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="gxhpz:followTemplate:edit">
|
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="gxhpz:followTemplate:edit">
|
|
|
- <i class="fa fa-edit"></i> 修改
|
|
|
|
|
|
|
+ <i class="fa fa-edit"></i> 修改模版
|
|
|
</a>
|
|
</a>
|
|
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="gxhpz:followTemplate:remove">
|
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="gxhpz:followTemplate:remove">
|
|
|
- <i class="fa fa-remove"></i> 删除
|
|
|
|
|
|
|
+ <i class="fa fa-remove"></i> 删除模版
|
|
|
</a>
|
|
</a>
|
|
|
<a class="btn btn-info single disabled" onclick="configFields()" shiro:hasPermission="gxhpz:followTemplate:field">
|
|
<a class="btn btn-info single disabled" onclick="configFields()" shiro:hasPermission="gxhpz:followTemplate:field">
|
|
|
<i class="fa fa-cog"></i> 字段配置
|
|
<i class="fa fa-cog"></i> 字段配置
|
|
|
</a>
|
|
</a>
|
|
|
- <a class="btn btn-info single disabled" onclick="addFields()" shiro:hasPermission="gxhpz:followTemplate:field">
|
|
|
|
|
- <i class="fa fa-cog"></i> 添加字段
|
|
|
|
|
- </a>
|
|
|
|
|
|
|
+
|
|
|
<!-- <a class="btn btn-warning single disabled" onclick="configRules()" shiro:hasPermission="gxhpz:followTemplate:rule">-->
|
|
<!-- <a class="btn btn-warning single disabled" onclick="configRules()" shiro:hasPermission="gxhpz:followTemplate:rule">-->
|
|
|
<!-- <i class="fa fa-gear"></i> 规则配置-->
|
|
<!-- <i class="fa fa-gear"></i> 规则配置-->
|
|
|
<!-- </a>-->
|
|
<!-- </a>-->
|
|
@@ -253,16 +254,16 @@
|
|
|
var url = ctx + 'gxhpz/followTemplateConfig/fields/' + id;
|
|
var url = ctx + 'gxhpz/followTemplateConfig/fields/' + id;
|
|
|
$.modal.openTab("字段配置", url);
|
|
$.modal.openTab("字段配置", url);
|
|
|
}
|
|
}
|
|
|
- function addFields(id) {
|
|
|
|
|
- if (typeof id === 'undefined') {
|
|
|
|
|
- var rows = $.table.selectFirstColumns();
|
|
|
|
|
- if (rows.length == 0) {
|
|
|
|
|
- $.modal.alertWarning("请选择一条记录");
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- id = rows[0];
|
|
|
|
|
- }
|
|
|
|
|
- var url = ctx + 'gxhpz/followTemplateConfig/addField/' + id;
|
|
|
|
|
|
|
+ function addFields() {
|
|
|
|
|
+ // if (typeof id === 'undefined') {
|
|
|
|
|
+ // var rows = $.table.selectFirstColumns();
|
|
|
|
|
+ // if (rows.length == 0) {
|
|
|
|
|
+ // $.modal.alertWarning("请选择一条记录");
|
|
|
|
|
+ // return;
|
|
|
|
|
+ // }
|
|
|
|
|
+ // id = rows[0];
|
|
|
|
|
+ // }
|
|
|
|
|
+ var url = ctx + 'gxhpz/followTemplateConfig/addField';
|
|
|
$.modal.openTab("添加字段", url);
|
|
$.modal.openTab("添加字段", url);
|
|
|
}
|
|
}
|
|
|
// 规则配置
|
|
// 规则配置
|