Commit 8c751344 authored by wuhao's avatar wuhao 🎯

asder

parent 39c70a78
Pipeline #3587 passed with stages
in 2 minutes and 39 seconds
...@@ -9,7 +9,7 @@ import editorIsNull from "@/utils/editorIsNull"; ...@@ -9,7 +9,7 @@ import editorIsNull from "@/utils/editorIsNull";
import { Box, Container, Grid, Link, Stack, Typography } from "@mui/material"; import { Box, Container, Grid, Link, Stack, Typography } from "@mui/material";
import { useParams } from "@umijs/max"; import { useParams } from "@umijs/max";
import { useRequest } from "ahooks"; import { useRequest } from "ahooks";
import { Badge, message, Tabs } from "antd"; import { message, Tabs } from "antd";
import { useEffect, useMemo, useRef, useState } from "react"; import { useEffect, useMemo, useRef, useState } from "react";
import { history } from "umi"; import { history } from "umi";
...@@ -292,7 +292,7 @@ function Dolessons() { ...@@ -292,7 +292,7 @@ function Dolessons() {
}, },
{ {
key: "2", key: "2",
label: '查看实验', label: "查看实验",
children: ( children: (
<Box boxShadow={"0 0 18px #f0f0f0"} borderRadius={2}> <Box boxShadow={"0 0 18px #f0f0f0"} borderRadius={2}>
<AutoTable <AutoTable
...@@ -459,6 +459,7 @@ function Dolessons() { ...@@ -459,6 +459,7 @@ function Dolessons() {
...val, ...val,
id: drawer?.defaultFormValue?.id, id: drawer?.defaultFormValue?.id,
trainId: params?.id, trainId: params?.id,
type: "edit",
}; };
default: default:
break; break;
......
...@@ -241,18 +241,7 @@ function Dolessons() { ...@@ -241,18 +241,7 @@ function Dolessons() {
<AutoTable <AutoTable
rerendered={false} rerendered={false}
actionRef={cksyactionRef} actionRef={cksyactionRef}
columns={[ columns={[...experimentColumns]}
...experimentColumns,
{
title: "操作",
valueType: "option",
width: 180,
render: (text, row, _, action) => [
edit(text, row, _, action),
remove(text, row, _, action),
],
},
]}
path="/studentTrain/experimentPage" path="/studentTrain/experimentPage"
extraparams={{ extraparams={{
id: params?.id, id: params?.id,
...@@ -285,7 +274,6 @@ function Dolessons() { ...@@ -285,7 +274,6 @@ function Dolessons() {
}, },
]; ];
const handleClose = () => { const handleClose = () => {
setDrawer((s) => ({ setDrawer((s) => ({
...s, ...s,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment