安保维稳 il y a 6 mois
Parent
commit
923ebae3e4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;
             }
         }];