张田田 3 mesi fa
parent
commit
3f39bc9600
2 ha cambiato i file con 17 aggiunte e 8 eliminazioni
  1. 16 7
      src/satisfaction/Statistics.vue
  2. 1 1
      src/satisfaction/SurveyList.vue

+ 16 - 7
src/satisfaction/Statistics.vue

@@ -262,16 +262,16 @@ defineExpose({
     </section>
 
     <section class="chart-card">
-      <main>
-        <a-spin :spinning="loading">
+      <a-spin :spinning="loading">
+        <main>
           <template v-if="chartOptions.length > 0">
             <div v-for="(chartConfig, index) in chartOptions" :key="`chart-${String(chartConfig.questionnaireId)}-${index}`" class="chart-wrapper">
               <VChart class="chart" :option="chartConfig.option" autoresize />
             </div>
           </template>
           <a-empty v-else description="请选择问卷查看统计" />
-        </a-spin>
-      </main>
+        </main>
+      </a-spin>
     </section>
   </div>
 </template>
@@ -318,6 +318,13 @@ defineExpose({
   padding: 24px;
   display: flex;
   flex-direction: column;
+  min-height: 0;
+
+  :deep(.ant-spin-container) {
+    height: 100%;
+    display: flex;
+    flex-direction: column;
+  }
 
   header {
     display: flex;
@@ -329,18 +336,20 @@ defineExpose({
   main {
     flex: 1;
     display: flex;
-    flex-direction: column;
+    flex-direction: row;
+    flex-wrap: wrap;
     gap: 24px;
+    min-height: 0;
   }
 }
 
 .chart-wrapper {
-  width: 100%;
+  width: calc((100% - 24px) / 2);
   background: #fff;
   border-radius: 8px;
   padding: 16px;
   border: 1px solid #f0f0f0;
-  margin-bottom: 10px;
+  box-sizing: border-box;
 }
 
 .chart-title {

+ 1 - 1
src/satisfaction/SurveyList.vue

@@ -265,7 +265,7 @@ defineExpose({
           {{ row.status == '0' ? '启用' : '停用' }}
         </template>
         <template #pushTypeCell="{ row }">
-          {{ row.pushType == '0' ? '站内' : '企业微信' }}
+          {{ row.pushType == '0' ? '站内' : '-' }}
         </template>
         <template #toolbar-extra>
           <vxe-button style="margin-right: 12px" icon="vxe-icon-repeat" circle @click="refresh(page)"></vxe-button>