shaogen1995 2 سال پیش
والد
کامیت
9c8ba0f797
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 3 3
      后台管理/src/pages/A2Gallery/A2Edit/index.tsx
  2. 1 1
      后台管理/src/pages/A2Gallery/index.module.scss

+ 3 - 3
后台管理/src/pages/A2Gallery/A2Edit/index.tsx

@@ -109,7 +109,7 @@ function A2Edit({ editInfo, editFu, closeFu }: Props) {
   );
 
   const columns = useMemo(() => {
-    const arr = [
+    const arr: any = [
       {
         title: "展览名称",
         dataIndex: "name",
@@ -149,10 +149,10 @@ function A2Edit({ editInfo, editFu, closeFu }: Props) {
     if (editInfo.type === "edit") {
       arr.push({
         title: "操作",
-        render: (item: A2TableType) => (
+        render: (item: A2TableType, _: any, index: number) => (
           <>
             <Button
-              hidden={item.hasIndex === 1}
+              hidden={item.hasIndex === 1 || index === 0}
               size="small"
               type="text"
               onClick={() => updateIndexFu(item.id, pid)}

+ 1 - 1
后台管理/src/pages/A2Gallery/index.module.scss

@@ -17,7 +17,7 @@
       background-color: #fff;
 
       .ant-table-body {
-        height: 565px;
+        height: 617px;
         overflow-y: auto !important;
 
         .ant-table-row {