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