فهرست منبع

分段设置提示

Michael Wang 3 سال پیش
والد
کامیت
6015813d62

+ 2 - 1
src/features/allAnalysis/ScoreFirstTryRate.vue

@@ -16,7 +16,7 @@
               <a-button @click="openModal1">说明</a-button>
             </div>
           </div>
-          <table class="custom-table">
+          <table class="custom-table" v-if="item.totalRangeConfig">
             <tr>
               <th>初试总分分数段</th>
               <th>人数占比(%)</th>
@@ -46,6 +46,7 @@
               </td>
             </tr>
           </table>
+          <div v-else>请先进行分段设置。</div>
         </a-collapse-panel>
       </a-collapse>
     </div>

+ 1 - 0
src/features/allAnalysis/ScoreRate.vue

@@ -76,6 +76,7 @@
               <v-chart class="chart" :option="rangeSegementsLine(course)" />
             </div>
           </div>
+          <div v-else>请先进行分段设置。</div>
         </a-collapse-panel>
       </a-collapse>
     </div>

+ 3 - 1
src/features/paperAnalysis/QuestionDifficultyGroup.vue

@@ -39,7 +39,7 @@
     </div>
 
     <div class="tw-overflow-y-scroll">
-      <table class="custom-table">
+      <table class="custom-table" v-if="props.rangeConfig">
         <tr>
           <td>大题号</td>
           <td>小题号</td>
@@ -62,6 +62,7 @@
           </td>
         </tr>
       </table>
+      <div v-else>请先进行分段设置。</div>
     </div>
 
     <CommonRangeConfig
@@ -102,6 +103,7 @@ let rangeConfigRef = $ref(null);
 
 let selectedRangeConfig = $ref([]);
 let selectedCourseId = $ref(0);
+console.log(props.rangeConfig);
 
 const openRangeConfigModal = () => {
   selectedCourseId = props.courseId;