Ver Fonte

删除调整

安保维稳 há 6 meses atrás
pai
commit
923ebae3e4
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/main/resources/templates/admin/article/list.html

+ 1 - 1
src/main/resources/templates/admin/article/list.html

@@ -133,7 +133,7 @@
             width: 180,
             formatter: function (value, row, index) {
                 var edit = editFlag ? row.approvalStatus != 1 ? '<button class="btn btn-info btn-sm ml-1 btn_assign" onclick="editArticle(' + row.id + ')">编辑</button>': (row.userInfoName=='admin'||row.userInfoName=='ptspyh') ? '<button class="btn btn-info btn-sm ml-1 btn_assign" onclick="editArticle(' + row.id + ')">编辑</button>' :'' : '';
-                var del = deleteFlag ? '<button class="btn btn-danger btn-sm ml-1 btn_del" onclick="deleteArticle(' + row.id + ')">删除</button>' : '';
+                var del = deleteFlag ? row.approvalStatus != 1 ? '<button class="btn btn-danger btn-sm ml-1 btn_del" onclick="deleteArticle(' + row.id + ')">删除</button>' : (row.userInfoName=='admin'||row.userInfoName=='ptspyh') ? '<button class="btn btn-danger btn-sm ml-1 btn_del" onclick="deleteArticle(' + row.id + ')">删除</button>' :'': '';
                 return  edit + del;
             }
         }];