zhangjie 1 gadu atpakaļ
vecāks
revīzija
4d3f4cc7bb

+ 6 - 1
src/features/report/ReportBatchDownload.vue

@@ -6,7 +6,12 @@
 
   <!-- card-view-frame -->
   <div v-if="reportPreviewUrl" class="report-preview-frame">
-    <iframe :src="reportPreviewUrl" frameborder="0"></iframe>
+    <iframe
+      :src="reportPreviewUrl"
+      frameborder="0"
+      width="800"
+      height="600"
+    ></iframe>
   </div>
 
   <SelectProject

+ 5 - 3
src/features/report/ReportCompare.vue

@@ -120,7 +120,7 @@
           :autoresize="true"
         />
       </div>
-      <div class="count-intro report-part result-part">
+      <!-- <div class="count-intro report-part result-part">
         <p>
           本科目较上个分析项目相比,最高分{{ evaluates.maxScore }},有效样本数{{
             evaluates.totalCount
@@ -130,7 +130,7 @@
             evaluates.reliability1
           }},试卷整体难度{{ evaluates.difficulty }}。
         </p>
-      </div>
+      </div> -->
     </div>
     <div class="report-pfoot"></div>
   </div>
@@ -177,7 +177,7 @@ const chartOptions1 = ref<ChartOptionItem[]>([]);
 const chartOptions2 = ref<ChartOptionItem[]>([]);
 
 onMounted(() => {
-  updateEvaluate();
+  // updateEvaluate();
   countChartOption();
 });
 
@@ -269,6 +269,7 @@ function countChartOption() {
 
   const chartOptions = countFields.map((item) => {
     const chart = {
+      animation: false,
       grid: {
         show: true,
         left: 35,
@@ -386,6 +387,7 @@ function scoreChartOption() {
     };
   });
   return {
+    animation: false,
     legend: {
       show: true,
       left: 0,

+ 1 - 0
src/features/report/ReportDifficulty.vue

@@ -37,6 +37,7 @@ const props = defineProps<{
 
 function chartOption() {
   return {
+    animation: false,
     grid: {
       show: true,
       left: 35,

+ 1 - 0
src/features/report/ReportDiscrimination.vue

@@ -37,6 +37,7 @@ const props = defineProps<{
 
 function chartOption() {
   return {
+    animation: false,
     grid: {
       show: true,
       left: 35,

+ 0 - 20
src/features/report/ReportMain.vue

@@ -134,14 +134,6 @@ onMounted(async () => {
       const ids = (route.params.compareProjectId as string) || "";
       compareProjectId = ids.split(",").map((item) => +item);
       viewType = route.params.viewType as string;
-
-      if (viewType !== "frame") {
-        const key = window.location.href.split("?")[1];
-        if (!key) return;
-        let keyVal = window.atob(key);
-        let user = JSON.parse(keyVal);
-        store.setUserInfo(user);
-      }
     }
 
     await fetchData();
@@ -149,8 +141,6 @@ onMounted(async () => {
     await nextTick();
 
     commonInfoUpdate();
-
-    if (viewType === "print") publishReady();
   } catch (error) {
     console.error(error);
 
@@ -202,16 +192,6 @@ function commonInfoUpdate() {
   });
 }
 
-function publishReady() {
-  const eventEmitInterval = setInterval(function () {
-    document.body.dispatchEvent(new Event("view-ready"));
-  }, 25);
-
-  document.body.addEventListener("view-ready-acknowledged", function () {
-    clearInterval(eventEmitInterval);
-  });
-}
-
 function numberPrecision(num: number) {
   return Math.round(num * 100) / 100;
 }

+ 1 - 0
src/features/report/ReportScore.vue

@@ -72,6 +72,7 @@ const props = defineProps<{
 
 function chartOption() {
   return {
+    animation: false,
     grid: {
       show: true,
       left: 35,

+ 1 - 0
src/features/report/ReportScoreGroup.vue

@@ -67,6 +67,7 @@ const props = defineProps<{
 
 function chartOption() {
   return {
+    animation: false,
     grid: {
       show: true,
       left: 35,

+ 2 - 0
src/styles/pages.less

@@ -176,4 +176,6 @@
   position: fixed;
   left: -9999px;
   top: 0;
+  width: 800px;
+  height: 600px;
 }

+ 1 - 1
vite.config.ts

@@ -12,7 +12,7 @@ const resolvePath = (...args) => {
 // const SERVER_URL = "http://192.168.10.108:7180";
 // const SERVER_URL = "http://192.168.10.138:13800";
 const SERVER_URL = "http://192.168.10.39:7100";
-// const SERVER_URL = "http://192.168.10.152:7100";
+// const SERVER_URL = "http://192.168.10.141:7100";
 // const SERVER_URL = "http://192.168.10.106:7100";
 
 // https://vitejs.dev/config/