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