|
@@ -1,13 +1,13 @@
|
|
import { Button, Checkbox, CheckboxGroup, Icon, Image, Loading } from "vant";
|
|
import { Button, Checkbox, CheckboxGroup, Icon, Image, Loading } from "vant";
|
|
import { defineComponent } from "vue";
|
|
import { defineComponent } from "vue";
|
|
-import styles from './subject-model.module.less';
|
|
|
|
|
|
+import styles from './index.module.less';
|
|
|
|
|
|
-import checkBoxActive from '../images/checkbox_active.png';
|
|
|
|
-import checkBoxDefault from '../images/checkbox_default.png';
|
|
|
|
|
|
+import checkBoxActive from '@/teacher/teacher-cert/images/checkbox_active.png';
|
|
|
|
+import checkBoxDefault from '@/teacher/teacher-cert/images/checkbox_default.png';
|
|
import ColResult from "@/components/col-result";
|
|
import ColResult from "@/components/col-result";
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
- name: "subject-model",
|
|
|
|
|
|
+ name: "SubjectList",
|
|
props: {
|
|
props: {
|
|
onChoice: {
|
|
onChoice: {
|
|
type: Function,
|
|
type: Function,
|
|
@@ -45,7 +45,7 @@ export default defineComponent({
|
|
<div class={styles.subjects}>
|
|
<div class={styles.subjects}>
|
|
{this.subjectList.length ? <CheckboxGroup v-model={this.checkBox} max={this.max}>
|
|
{this.subjectList.length ? <CheckboxGroup v-model={this.checkBox} max={this.max}>
|
|
{this.subjectList.map((item: any) => (
|
|
{this.subjectList.map((item: any) => (
|
|
- <>
|
|
|
|
|
|
+ item.subjects && item.subjects.length > 0 ? <>
|
|
<div class={styles.title}>{item.name}</div>
|
|
<div class={styles.title}>{item.name}</div>
|
|
<div class={styles['subject-list']}>
|
|
<div class={styles['subject-list']}>
|
|
{item.subjects && item.subjects.map((sub: any) => (
|
|
{item.subjects && item.subjects.map((sub: any) => (
|
|
@@ -64,7 +64,7 @@ export default defineComponent({
|
|
</div>
|
|
</div>
|
|
))}
|
|
))}
|
|
</div>
|
|
</div>
|
|
- </>
|
|
|
|
|
|
+ </> : null
|
|
))}
|
|
))}
|
|
</CheckboxGroup> : <ColResult tips="暂无声部数据" btnStatus={false} />}
|
|
</CheckboxGroup> : <ColResult tips="暂无声部数据" btnStatus={false} />}
|
|
|
|
|