|  | @@ -1,210 +1,218 @@
 | 
											
												
													
														|  |  <template>
 |  |  <template>
 | 
											
												
													
														|  | -  <mx-table :prop-defines="formatCols" :rows="tableList" @expand-change="expand">
 |  | 
 | 
											
												
													
														|  | -    <template #expand="{row,$index}" >
 |  | 
 | 
											
												
													
														|  | -       <div>
 |  | 
 | 
											
												
													
														|  | -         <mx-table :prop-defines="majorCol"  :show-header="false" :rows="row.majors">
 |  | 
 | 
											
												
													
														|  | -           <template #t0="{row}">
 |  | 
 | 
											
												
													
														|  | -             <!--    录取概率 -->
 |  | 
 | 
											
												
													
														|  | -             <div>
 |  | 
 | 
											
												
													
														|  | -               <p class="mb10"><span class="f18">{{ row.enrollRatio }}</span>%</p>
 |  | 
 | 
											
												
													
														|  | -               <p class="mb10 f-9b f12">{{row.enrollRatioText}}</p>
 |  | 
 | 
											
												
													
														|  | -               <p><el-tag type="success">冲</el-tag></p>
 |  | 
 | 
											
												
													
														|  | -             </div>
 |  | 
 | 
											
												
													
														|  | -           </template>
 |  | 
 | 
											
												
													
														|  | -           <template #t1="{row}">
 |  | 
 | 
											
												
													
														|  | -             <div>
 |  | 
 | 
											
												
													
														|  | -               <p class="mb10"><span class="pointer">{{row.marjorName}}</span></p>
 |  | 
 | 
											
												
													
														|  | -               <p class="f-9b f12">代码 {{row.marjorBelongs}}</p>
 |  | 
 | 
											
												
													
														|  | -             </div>
 |  | 
 | 
											
												
													
														|  | -           </template>
 |  | 
 | 
											
												
													
														|  | -           <template #t2="{row}">
 |  | 
 | 
											
												
													
														|  | -             <div>
 |  | 
 | 
											
												
													
														|  | -                               <p><span class="f18">{{ row.planCount || '-'}}</span>人</p>
 |  | 
 | 
											
												
													
														|  | -                                         <p class="f-9b f12">{{`${row.xuezhi} ¥${row.xuefei}`}}</p>
 |  | 
 | 
											
												
													
														|  | -             </div>
 |  | 
 | 
											
												
													
														|  | -           </template>
 |  | 
 | 
											
												
													
														|  | -           <template #t3="{row}">
 |  | 
 | 
											
												
													
														|  | -             <div class="f14">
 |  | 
 | 
											
												
													
														|  | -               <p>录取人数</p>
 |  | 
 | 
											
												
													
														|  | -               <p>线差</p>
 |  | 
 | 
											
												
													
														|  | -               <p>最低分</p>
 |  | 
 | 
											
												
													
														|  | -               <p>最低位次</p>
 |  | 
 | 
											
												
													
														|  | -             </div>
 |  | 
 | 
											
												
													
														|  | -           </template>
 |  | 
 | 
											
												
													
														|  | -           <template #t4="{row}">
 |  | 
 | 
											
												
													
														|  | -             <div class="f14">
 |  | 
 | 
											
												
													
														|  | -               <div v-if="row.histories[0]">
 |  | 
 | 
											
												
													
														|  | -                 <p>{{ row.histories[0].numReal || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -                 <p>{{ row.histories[0].lineDiff || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -                 <p>{{ row.histories[0].score || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -                 <p>{{ row.histories[0].seat|| '-' }}</p>
 |  | 
 | 
											
												
													
														|  | -               </div>
 |  | 
 | 
											
												
													
														|  | -               <span v-else>暂无</span>
 |  | 
 | 
											
												
													
														|  | -             </div>
 |  | 
 | 
											
												
													
														|  | -           </template>
 |  | 
 | 
											
												
													
														|  | -           <template #t5="{row}">
 |  | 
 | 
											
												
													
														|  | -             <div class="f14">
 |  | 
 | 
											
												
													
														|  | -               <div v-if="row.histories[1]">
 |  | 
 | 
											
												
													
														|  | -                 <p>{{ row.histories[1].numReal || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -                 <p>{{ row.histories[1].lineDiff || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -                 <p>{{ row.histories[1].score || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -                 <p>{{ row.histories[1].seat|| '-' }}</p>
 |  | 
 | 
											
												
													
														|  | -               </div>
 |  | 
 | 
											
												
													
														|  | -               <span v-else>暂无</span>
 |  | 
 | 
											
												
													
														|  | -             </div>
 |  | 
 | 
											
												
													
														|  | -           </template>
 |  | 
 | 
											
												
													
														|  | -           <template #t6="{row}">
 |  | 
 | 
											
												
													
														|  | -             <div class="f14">
 |  | 
 | 
											
												
													
														|  | -               <div v-if="row.histories[2]">
 |  | 
 | 
											
												
													
														|  | -                 <p>{{ row.histories[2].numReal || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -                 <p>{{ row.histories[2].lineDiff || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -                 <p>{{ row.histories[2].score || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -                 <p>{{ row.histories[2].seat|| '-' }}</p>
 |  | 
 | 
											
												
													
														|  | -               </div>
 |  | 
 | 
											
												
													
														|  | -               <span v-else>暂无</span>
 |  | 
 | 
											
												
													
														|  | -             </div>
 |  | 
 | 
											
												
													
														|  | -           </template>
 |  | 
 | 
											
												
													
														|  | -           <template #t7="{row}">
 |  | 
 | 
											
												
													
														|  | -             <el-button type="primary" @click="apply(row,$index)">添加</el-button>
 |  | 
 | 
											
												
													
														|  | -           </template>
 |  | 
 | 
											
												
													
														|  | -         </mx-table>
 |  | 
 | 
											
												
													
														|  | -       </div>
 |  | 
 | 
											
												
													
														|  | -    </template>
 |  | 
 | 
											
												
													
														|  | -    <template #t0="{row}">
 |  | 
 | 
											
												
													
														|  | -<!--    录取概率 -->
 |  | 
 | 
											
												
													
														|  | -      <div>
 |  | 
 | 
											
												
													
														|  | -        <p class="mb10"><span class="f18">{{ row.enrollRatio }}</span>%</p>
 |  | 
 | 
											
												
													
														|  | -        <p class="mb10 f-9b f12">{{row.enrollRatioText}}</p>
 |  | 
 | 
											
												
													
														|  | -        <p><el-tag type="success">冲</el-tag></p>
 |  | 
 | 
											
												
													
														|  | -      </div>
 |  | 
 | 
											
												
													
														|  | -    </template>
 |  | 
 | 
											
												
													
														|  | -    <template #t1="{row}">
 |  | 
 | 
											
												
													
														|  | -      <!-- 院校 -->
 |  | 
 | 
											
												
													
														|  | -      <div>
 |  | 
 | 
											
												
													
														|  | -        <p class="mb10"><span class="pointer">{{row.university.name || ''}}</span></p>
 |  | 
 | 
											
												
													
														|  | -        <p class="mb5 f-9b f12">{{row.university.features.split(',').join(' ')}}</p>
 |  | 
 | 
											
												
													
														|  | -        <p class="mb5 f-9b f12">{{row.university.location}} {{row.university.cityName}} 排名{{row.university.ranking}}</p>
 |  | 
 | 
											
												
													
														|  | -        <p class="f-9b f12">代码 {{row.university.code}}</p>
 |  | 
 | 
											
												
													
														|  | -      </div>
 |  | 
 | 
											
												
													
														|  | -    </template>
 |  | 
 | 
											
												
													
														|  | -    <template #t2="{row}">
 |  | 
 | 
											
												
													
														|  | -      <!-- 招生计划 -->
 |  | 
 | 
											
												
													
														|  | -      <div>
 |  | 
 | 
											
												
													
														|  | -        <p><span class="f18">{{ row.recruitPlan.planCount}}</span>人</p>
 |  | 
 | 
											
												
													
														|  | -        <p class="f-9b f12">{{row.recruitPlan.course}}</p>
 |  | 
 | 
											
												
													
														|  | -      </div>
 |  | 
 | 
											
												
													
														|  | -    </template>
 |  | 
 | 
											
												
													
														|  | -    <template #t3="{row}">
 |  | 
 | 
											
												
													
														|  | 
 |  | +  <div>
 | 
											
												
													
														|  | 
 |  | +    <dynamic-table :rows="tableList" :columns="columns" @expand-change="expand" >
 | 
											
												
													
														|  | 
 |  | +      <template #expand="{row,$index}">
 | 
											
												
													
														|  | 
 |  | +        <div>
 | 
											
												
													
														|  | 
 |  | +          <dynamic-table :columns="majorCol" :show-header="false" :rows="row.majors">
 | 
											
												
													
														|  | 
 |  | +            <template #t0="{row}">
 | 
											
												
													
														|  | 
 |  | +              <!--    录取概率 -->
 | 
											
												
													
														|  | 
 |  | +              <div>
 | 
											
												
													
														|  | 
 |  | +                <p class="mb10"><span class="f18">{{ row.enrollRatio }}</span>%</p>
 | 
											
												
													
														|  | 
 |  | +                <p class="mb10 f-9b f12">{{ row.enrollRatioText }}</p>
 | 
											
												
													
														|  | 
 |  | +                <p>
 | 
											
												
													
														|  | 
 |  | +                  <el-tag type="success">冲</el-tag>
 | 
											
												
													
														|  | 
 |  | +                </p>
 | 
											
												
													
														|  | 
 |  | +              </div>
 | 
											
												
													
														|  | 
 |  | +            </template>
 | 
											
												
													
														|  | 
 |  | +            <template #t1="{row}">
 | 
											
												
													
														|  | 
 |  | +              <div>
 | 
											
												
													
														|  | 
 |  | +                <p class="mb10"><span class="pointer">{{ row.marjorName }}</span></p>
 | 
											
												
													
														|  | 
 |  | +                <p class="f-9b f12">代码 {{ row.marjorBelongs }}</p>
 | 
											
												
													
														|  | 
 |  | +              </div>
 | 
											
												
													
														|  | 
 |  | +            </template>
 | 
											
												
													
														|  | 
 |  | +            <template #t2="{row}">
 | 
											
												
													
														|  | 
 |  | +              <div>
 | 
											
												
													
														|  | 
 |  | +                <p><span class="f18">{{ row.planCount || '-' }}</span>人</p>
 | 
											
												
													
														|  | 
 |  | +                <p class="f-9b f12">{{ `${row.xuezhi} ¥${row.xuefei}` }}</p>
 | 
											
												
													
														|  | 
 |  | +              </div>
 | 
											
												
													
														|  | 
 |  | +            </template>
 | 
											
												
													
														|  | 
 |  | +            <template #t3="{row}">
 | 
											
												
													
														|  | 
 |  | +              <div class="f14">
 | 
											
												
													
														|  | 
 |  | +                <p>录取人数</p>
 | 
											
												
													
														|  | 
 |  | +                <p>线差</p>
 | 
											
												
													
														|  | 
 |  | +                <p>最低分</p>
 | 
											
												
													
														|  | 
 |  | +                <p>最低位次</p>
 | 
											
												
													
														|  | 
 |  | +              </div>
 | 
											
												
													
														|  | 
 |  | +            </template>
 | 
											
												
													
														|  | 
 |  | +            <template #t4="{row}">
 | 
											
												
													
														|  | 
 |  | +              <div class="f14">
 | 
											
												
													
														|  | 
 |  | +                <div v-if="row.histories[0]">
 | 
											
												
													
														|  | 
 |  | +                  <p>{{ row.histories[0].numReal || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +                  <p>{{ row.histories[0].lineDiff || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +                  <p>{{ row.histories[0].score || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +                  <p>{{ row.histories[0].seat || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +                </div>
 | 
											
												
													
														|  | 
 |  | +                <span v-else>暂无</span>
 | 
											
												
													
														|  | 
 |  | +              </div>
 | 
											
												
													
														|  | 
 |  | +            </template>
 | 
											
												
													
														|  | 
 |  | +            <template #t5="{row}">
 | 
											
												
													
														|  | 
 |  | +              <div class="f14">
 | 
											
												
													
														|  | 
 |  | +                <div v-if="row.histories[1]">
 | 
											
												
													
														|  | 
 |  | +                  <p>{{ row.histories[1].numReal || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +                  <p>{{ row.histories[1].lineDiff || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +                  <p>{{ row.histories[1].score || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +                  <p>{{ row.histories[1].seat || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +                </div>
 | 
											
												
													
														|  | 
 |  | +                <span v-else>暂无</span>
 | 
											
												
													
														|  | 
 |  | +              </div>
 | 
											
												
													
														|  | 
 |  | +            </template>
 | 
											
												
													
														|  | 
 |  | +            <template #t6="{row}">
 | 
											
												
													
														|  | 
 |  | +              <div class="f14">
 | 
											
												
													
														|  | 
 |  | +                <div v-if="row.histories[2]">
 | 
											
												
													
														|  | 
 |  | +                  <p>{{ row.histories[2].numReal || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +                  <p>{{ row.histories[2].lineDiff || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +                  <p>{{ row.histories[2].score || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +                  <p>{{ row.histories[2].seat || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +                </div>
 | 
											
												
													
														|  | 
 |  | +                <span v-else>暂无</span>
 | 
											
												
													
														|  | 
 |  | +              </div>
 | 
											
												
													
														|  | 
 |  | +            </template>
 | 
											
												
													
														|  | 
 |  | +            <template #t7="{row}">
 | 
											
												
													
														|  | 
 |  | +              <el-button :type="row.selected ? 'danger' : 'primary'" @click="apply(row,$index)"> {{row.selected ?'取消' :  '填报' }}</el-button>
 | 
											
												
													
														|  | 
 |  | +            </template>
 | 
											
												
													
														|  | 
 |  | +          </dynamic-table>
 | 
											
												
													
														|  | 
 |  | +        </div>
 | 
											
												
													
														|  | 
 |  | +      </template>
 | 
											
												
													
														|  | 
 |  | +      <template #t0="{row}">
 | 
											
												
													
														|  | 
 |  | +        <!--    录取概率 -->
 | 
											
												
													
														|  | 
 |  | +        <div>
 | 
											
												
													
														|  | 
 |  | +          <p class="mb10"><span class="f18">{{ row.enrollRatio }}</span>%</p>
 | 
											
												
													
														|  | 
 |  | +          <p class="mb10 f-9b f12">{{ row.enrollRatioText }}</p>
 | 
											
												
													
														|  | 
 |  | +          <p>
 | 
											
												
													
														|  | 
 |  | +            <el-tag type="success">冲</el-tag>
 | 
											
												
													
														|  | 
 |  | +          </p>
 | 
											
												
													
														|  | 
 |  | +        </div>
 | 
											
												
													
														|  | 
 |  | +      </template>
 | 
											
												
													
														|  | 
 |  | +      <template #t1="{row}">
 | 
											
												
													
														|  | 
 |  | +        <!-- 院校 -->
 | 
											
												
													
														|  | 
 |  | +        <div>
 | 
											
												
													
														|  | 
 |  | +          <p class="mb10"><span class="pointer">{{ `${row.university.name}(${row.recruitPlan.collegeCode })` || '' }}</span></p>
 | 
											
												
													
														|  | 
 |  | +          <p class="mb5 f-9b f12">{{ row.university.features.split(',').join(' ') }}</p>
 | 
											
												
													
														|  | 
 |  | +          <p class="mb5 f-9b f12">{{ row.university.location }} {{ row.university.cityName }}
 | 
											
												
													
														|  | 
 |  | +            排名{{ row.university.ranking }}</p>
 | 
											
												
													
														|  | 
 |  | +          <p class="f-9b f12">代码 {{ row.recruitPlan.collegeCode }}</p>
 | 
											
												
													
														|  | 
 |  | +        </div>
 | 
											
												
													
														|  | 
 |  | +      </template>
 | 
											
												
													
														|  | 
 |  | +      <template #t2="{row}">
 | 
											
												
													
														|  | 
 |  | +        <!-- 招生计划 -->
 | 
											
												
													
														|  | 
 |  | +        <div>
 | 
											
												
													
														|  | 
 |  | +          <p><span class="f18">{{ row.recruitPlan.planCount }}</span>人</p>
 | 
											
												
													
														|  | 
 |  | +          <p class="f-9b f12">{{ row.recruitPlan.course }}</p>
 | 
											
												
													
														|  | 
 |  | +        </div>
 | 
											
												
													
														|  | 
 |  | +      </template>
 | 
											
												
													
														|  | 
 |  | +      <template #t3="{row}">
 | 
											
												
													
														|  |          <!--   历年 -->
 |  |          <!--   历年 -->
 | 
											
												
													
														|  | -      <div class="f14">
 |  | 
 | 
											
												
													
														|  | -        <p>录取人数</p>
 |  | 
 | 
											
												
													
														|  | -        <p>线差</p>
 |  | 
 | 
											
												
													
														|  | -        <p>最低分</p>
 |  | 
 | 
											
												
													
														|  | -        <p>最低位次</p>
 |  | 
 | 
											
												
													
														|  | -      </div>
 |  | 
 | 
											
												
													
														|  | -    </template>
 |  | 
 | 
											
												
													
														|  | -    <template #t4="{row}">
 |  | 
 | 
											
												
													
														|  | -      <div class="f14">
 |  | 
 | 
											
												
													
														|  | -        <div v-if="row.histories[0]">
 |  | 
 | 
											
												
													
														|  | -          <p>{{ row.histories[0].numReal || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -          <p>{{ row.histories[0].lineDiff || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -          <p>{{ row.histories[0].score || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -          <p>{{ row.histories[0].seat|| '-' }}</p>
 |  | 
 | 
											
												
													
														|  | 
 |  | +        <div class="f14">
 | 
											
												
													
														|  | 
 |  | +          <p>录取人数</p>
 | 
											
												
													
														|  | 
 |  | +          <p>线差</p>
 | 
											
												
													
														|  | 
 |  | +          <p>最低分</p>
 | 
											
												
													
														|  | 
 |  | +          <p>最低位次</p>
 | 
											
												
													
														|  |          </div>
 |  |          </div>
 | 
											
												
													
														|  | -        <span v-else>暂无</span>
 |  | 
 | 
											
												
													
														|  | -      </div>
 |  | 
 | 
											
												
													
														|  | -    </template>
 |  | 
 | 
											
												
													
														|  | -    <template #t5="{row}">
 |  | 
 | 
											
												
													
														|  | -      <div class="f14">
 |  | 
 | 
											
												
													
														|  | -        <div v-if="row.histories[1]">
 |  | 
 | 
											
												
													
														|  | -          <p>{{ row.histories[1].numReal || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -          <p>{{ row.histories[1].lineDiff || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -          <p>{{ row.histories[1].score || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -          <p>{{ row.histories[1].seat|| '-' }}</p>
 |  | 
 | 
											
												
													
														|  | 
 |  | +      </template>
 | 
											
												
													
														|  | 
 |  | +      <template #t4="{row}">
 | 
											
												
													
														|  | 
 |  | +        <div class="f14">
 | 
											
												
													
														|  | 
 |  | +          <div v-if="row.histories[0]">
 | 
											
												
													
														|  | 
 |  | +            <p>{{ row.histories[0].numReal || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +            <p>{{ row.histories[0].lineDiff || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +            <p>{{ row.histories[0].score || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +            <p>{{ row.histories[0].seat || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +          </div>
 | 
											
												
													
														|  | 
 |  | +          <span v-else>暂无</span>
 | 
											
												
													
														|  |          </div>
 |  |          </div>
 | 
											
												
													
														|  | -        <span v-else>暂无</span>
 |  | 
 | 
											
												
													
														|  | -      </div>
 |  | 
 | 
											
												
													
														|  | -    </template>
 |  | 
 | 
											
												
													
														|  | -    <template #t6="{row}">
 |  | 
 | 
											
												
													
														|  | -      <div class="f14">
 |  | 
 | 
											
												
													
														|  | -        <div v-if="row.histories[2]">
 |  | 
 | 
											
												
													
														|  | -          <p>{{ row.histories[2].numReal || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -          <p>{{ row.histories[2].lineDiff || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -          <p>{{ row.histories[2].score || '-'}}</p>
 |  | 
 | 
											
												
													
														|  | -          <p>{{ row.histories[2].seat|| '-' }}</p>
 |  | 
 | 
											
												
													
														|  | 
 |  | +      </template>
 | 
											
												
													
														|  | 
 |  | +      <template #t5="{row}">
 | 
											
												
													
														|  | 
 |  | +        <div class="f14">
 | 
											
												
													
														|  | 
 |  | +          <div v-if="row.histories[1]">
 | 
											
												
													
														|  | 
 |  | +            <p>{{ row.histories[1].numReal || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +            <p>{{ row.histories[1].lineDiff || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +            <p>{{ row.histories[1].score || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +            <p>{{ row.histories[1].seat || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +          </div>
 | 
											
												
													
														|  | 
 |  | +          <span v-else>暂无</span>
 | 
											
												
													
														|  |          </div>
 |  |          </div>
 | 
											
												
													
														|  | -        <span v-else>暂无</span>
 |  | 
 | 
											
												
													
														|  | -      </div>
 |  | 
 | 
											
												
													
														|  | -    </template>
 |  | 
 | 
											
												
													
														|  | -    <template #t7="{row}">
 |  | 
 | 
											
												
													
														|  | -      <span type="primary" > {{`共有专业${row.recruitPlan.majorCount}个`}}</span>
 |  | 
 | 
											
												
													
														|  | -    </template>
 |  | 
 | 
											
												
													
														|  | -  </mx-table>
 |  | 
 | 
											
												
													
														|  | 
 |  | +      </template>
 | 
											
												
													
														|  | 
 |  | +      <template #t6="{row}">
 | 
											
												
													
														|  | 
 |  | +        <div class="f14">
 | 
											
												
													
														|  | 
 |  | +          <div v-if="row.histories[2]">
 | 
											
												
													
														|  | 
 |  | +            <p>{{ row.histories[2].numReal || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +            <p>{{ row.histories[2].lineDiff || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +            <p>{{ row.histories[2].score || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +            <p>{{ row.histories[2].seat || '-' }}</p>
 | 
											
												
													
														|  | 
 |  | +          </div>
 | 
											
												
													
														|  | 
 |  | +          <span v-else>暂无</span>
 | 
											
												
													
														|  | 
 |  | +        </div>
 | 
											
												
													
														|  | 
 |  | +      </template>
 | 
											
												
													
														|  | 
 |  | +      <template #t7="{row}">
 | 
											
												
													
														|  | 
 |  | +        <p type="primary"> {{ `共有专业${row.recruitPlan.majorCount}个` }}</p>
 | 
											
												
													
														|  | 
 |  | +        <p class="f12 f-primary" v-show="row.majors.filter(major => {return major.selected}).length">  已填  <span>{{ row.majors.filter(major => {return major.selected}).length }}</span> </p>
 | 
											
												
													
														|  | 
 |  | +      </template>
 | 
											
												
													
														|  | 
 |  | +    </dynamic-table>
 | 
											
												
													
														|  | 
 |  | +  </div>
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  </template>
 |  |  </template>
 | 
											
												
													
														|  |  <script>
 |  |  <script>
 | 
											
												
													
														|  | - export default {
 |  | 
 | 
											
												
													
														|  | -   props:{
 |  | 
 | 
											
												
													
														|  | -     tableList:{
 |  | 
 | 
											
												
													
														|  | -       type:Array,
 |  | 
 | 
											
												
													
														|  | -       default:[]
 |  | 
 | 
											
												
													
														|  | -     },
 |  | 
 | 
											
												
													
														|  | -     cols: {
 |  | 
 | 
											
												
													
														|  | -       type:Array,
 |  | 
 | 
											
												
													
														|  | -       default:[]
 |  | 
 | 
											
												
													
														|  | -     }
 |  | 
 | 
											
												
													
														|  | -   },
 |  | 
 | 
											
												
													
														|  | -   data() {
 |  | 
 | 
											
												
													
														|  | -     return {
 |  | 
 | 
											
												
													
														|  | -       propDefines:{
 |  | 
 | 
											
												
													
														|  | 
 |  | +import DynamicTable from '@/components/dynamic-table'
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -       }
 |  | 
 | 
											
												
													
														|  | -     }
 |  | 
 | 
											
												
													
														|  | -   },
 |  | 
 | 
											
												
													
														|  | -   computed:{
 |  | 
 | 
											
												
													
														|  | -     formatCols(){
 |  | 
 | 
											
												
													
														|  | -       if(!this.cols) return {}
 |  | 
 | 
											
												
													
														|  | -       const obj = {
 |  | 
 | 
											
												
													
														|  | -         temp:{
 |  | 
 | 
											
												
													
														|  | -           type:'expand',
 |  | 
 | 
											
												
													
														|  | -           slot:'expand'
 |  | 
 | 
											
												
													
														|  | -         }
 |  | 
 | 
											
												
													
														|  | -       }
 |  | 
 | 
											
												
													
														|  | -       this.cols.map((item,index) => {
 |  | 
 | 
											
												
													
														|  | -         obj['a' + item] = {
 |  | 
 | 
											
												
													
														|  | -           label:item,
 |  | 
 | 
											
												
													
														|  | -           slot: 't'+index
 |  | 
 | 
											
												
													
														|  | -         }
 |  | 
 | 
											
												
													
														|  | -       })
 |  | 
 | 
											
												
													
														|  | -       return obj
 |  | 
 | 
											
												
													
														|  | -     },
 |  | 
 | 
											
												
													
														|  | -     majorCol() {
 |  | 
 | 
											
												
													
														|  | -       const obj = {
 |  | 
 | 
											
												
													
														|  | -       }
 |  | 
 | 
											
												
													
														|  | -       this.cols.map((item,index) => {
 |  | 
 | 
											
												
													
														|  | -         obj['a' + item] = {
 |  | 
 | 
											
												
													
														|  | -           label:item,
 |  | 
 | 
											
												
													
														|  | -           slot: 't'+index
 |  | 
 | 
											
												
													
														|  | -         }
 |  | 
 | 
											
												
													
														|  | -       })
 |  | 
 | 
											
												
													
														|  | -       return obj
 |  | 
 | 
											
												
													
														|  | -     }
 |  | 
 | 
											
												
													
														|  | -   },
 |  | 
 | 
											
												
													
														|  | -   methods:{
 |  | 
 | 
											
												
													
														|  | -     expand(item) {
 |  | 
 | 
											
												
													
														|  | -        this.$emit('expand',item)
 |  | 
 | 
											
												
													
														|  | -     },
 |  | 
 | 
											
												
													
														|  | -     apply(item,index) {
 |  | 
 | 
											
												
													
														|  | -       console.log(item)
 |  | 
 | 
											
												
													
														|  | -       console.log(index)
 |  | 
 | 
											
												
													
														|  | -     }
 |  | 
 | 
											
												
													
														|  | -   }
 |  | 
 | 
											
												
													
														|  | - }
 |  | 
 | 
											
												
													
														|  | 
 |  | +export default {
 | 
											
												
													
														|  | 
 |  | +  components: {
 | 
											
												
													
														|  | 
 |  | +    DynamicTable,
 | 
											
												
													
														|  | 
 |  | +  },
 | 
											
												
													
														|  | 
 |  | +  props: {
 | 
											
												
													
														|  | 
 |  | +    tableList: {
 | 
											
												
													
														|  | 
 |  | +      type: Array,
 | 
											
												
													
														|  | 
 |  | +      default: []
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    cols: {
 | 
											
												
													
														|  | 
 |  | +      type: Array,
 | 
											
												
													
														|  | 
 |  | +      default: []
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +  },
 | 
											
												
													
														|  | 
 |  | +  data() {
 | 
											
												
													
														|  | 
 |  | +    return {
 | 
											
												
													
														|  | 
 |  | +      show:false,
 | 
											
												
													
														|  | 
 |  | +      input:'',
 | 
											
												
													
														|  | 
 |  | +      selectedList:[]
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +  },
 | 
											
												
													
														|  | 
 |  | +  computed: {
 | 
											
												
													
														|  | 
 |  | +    columns() {
 | 
											
												
													
														|  | 
 |  | +      if(!this.cols.length) return []
 | 
											
												
													
														|  | 
 |  | +      const columns = [{
 | 
											
												
													
														|  | 
 |  | +        type: 'expand',
 | 
											
												
													
														|  | 
 |  | +        slotBody: 'expand'
 | 
											
												
													
														|  | 
 |  | +      }]
 | 
											
												
													
														|  | 
 |  | +      this.cols.map((item, index) => {
 | 
											
												
													
														|  | 
 |  | +        columns.push({
 | 
											
												
													
														|  | 
 |  | +          label: item,
 | 
											
												
													
														|  | 
 |  | +          slotBody: 't' + index
 | 
											
												
													
														|  | 
 |  | +        })
 | 
											
												
													
														|  | 
 |  | +      })
 | 
											
												
													
														|  | 
 |  | +      return columns
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    majorCol() {
 | 
											
												
													
														|  | 
 |  | +      return this.cols.map((item, index) => {
 | 
											
												
													
														|  | 
 |  | +        return {
 | 
											
												
													
														|  | 
 |  | +          label: item,
 | 
											
												
													
														|  | 
 |  | +          slotBody: 't' + index
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +      })
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +  },
 | 
											
												
													
														|  | 
 |  | +  methods: {
 | 
											
												
													
														|  | 
 |  | +    expand(item) {
 | 
											
												
													
														|  | 
 |  | +      this.$emit('expand', item)
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    apply(item,index) {
 | 
											
												
													
														|  | 
 |  | +      this.$emit('apply',item,index)
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +  }
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  |  </script>
 |  |  </script>
 | 
											
												
													
														|  |  <style scoped lang="scss">
 |  |  <style scoped lang="scss">
 | 
											
												
													
														|  | -.f-9b{
 |  | 
 | 
											
												
													
														|  | 
 |  | +.f-9b {
 | 
											
												
													
														|  |    color: #9b9b9b;
 |  |    color: #9b9b9b;
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  | -::v-deep .el-table__expanded-cell{
 |  | 
 | 
											
												
													
														|  | 
 |  | +::v-deep .el-table__expanded-cell {
 | 
											
												
													
														|  |    padding-top: 0;
 |  |    padding-top: 0;
 | 
											
												
													
														|  |    padding-right: 0;
 |  |    padding-right: 0;
 | 
											
												
													
														|  |    padding-bottom: 0;
 |  |    padding-bottom: 0;
 |