diff --git a/modules/core/src/main/resources/templates/modules/gen/include/dataGridScript.html b/modules/core/src/main/resources/templates/modules/gen/include/dataGridScript.html index 427efec2..00b0aab9 100644 --- a/modules/core/src/main/resources/templates/modules/gen/include/dataGridScript.html +++ b/modules/core/src/main/resources/templates/modules/gen/include/dataGridScript.html @@ -80,8 +80,7 @@ $('#dataGrid').dataGrid({ <% if(toBoolean(table.optionMap['isHaveDisableEnable'])){ %> if (row.status == Global.STATUS_NORMAL){ actions.push(' '); - } - if (row.status == Global.STATUS_DISABLE){ + } else if (row.status == Global.STATUS_DISABLE){ actions.push(' '); } <% } %> diff --git a/modules/core/src/main/resources/templates/modules/gen/include/searchForm.html b/modules/core/src/main/resources/templates/modules/gen/include/searchForm.html index c12e8ded..eab61ff7 100644 --- a/modules/core/src/main/resources/templates/modules/gen/include/searchForm.html +++ b/modules/core/src/main/resources/templates/modules/gen/include/searchForm.html @@ -18,7 +18,7 @@ <% }else if(c.showType == 'select' || c.showType == 'select_multiple'){ var isMultiple = (c.showType == 'select_multiple'); %>