feat
parent
45beeabf85
commit
36e49bdf90
|
|
@ -25,6 +25,7 @@ function ClassCourseTab(props) {
|
|||
classCourseList: dataSource,
|
||||
classCourseTotal: total,
|
||||
classCourseLoading: loading,
|
||||
classDetailData
|
||||
} = props.courseware || {};
|
||||
const tableSource = Array.isArray(dataSource) ? dataSource : [];
|
||||
|
||||
|
|
@ -146,9 +147,9 @@ function ClassCourseTab(props) {
|
|||
/>
|
||||
|
||||
<Space style={{ marginBottom: 12 }}>
|
||||
<Button type="primary" onClick={() => setSelectOpen(true)}>
|
||||
{classDetailData?.status !== 2&&<Button type="primary" onClick={() => setSelectOpen(true)}>
|
||||
选择课程
|
||||
</Button>
|
||||
</Button>}
|
||||
<ClassPaperConfig classId={classId} />
|
||||
</Space>
|
||||
|
||||
|
|
|
|||
|
|
@ -164,6 +164,7 @@ function ClassAddPage(props) {
|
|||
<Spin spinning={isEdit && !!detailLoading}>
|
||||
<Form
|
||||
form={form}
|
||||
disabled={classDetailData?.status === 2}
|
||||
layout="vertical"
|
||||
scrollToFirstError
|
||||
initialValues={{
|
||||
|
|
|
|||
Loading…
Reference in New Issue