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 11 месяцев назад
Родитель
Сommit
4a7e36392a

+ 288 - 206
src/components/generatingCapacityComponent/excel.vue

@@ -1,231 +1,313 @@
 <template>
-    <div class="excelData" :style="{ height: height, overflow: 'auto' }">
-        <el-empty v-if="!data.length" :image="nodata" image-size="100" description="暂无数据,敬请期待" />
-        <el-checkbox-group size="small" v-model="excelCheckIds" v-if="showCheckbox" @change="funCheckChange">
-            <el-checkbox size="small" class="excelDatahaveCheck" :class="theme ? 'excelW' : 'excelB'" :label="item.id"
-                v-for="item in data" :key="item.name"
-                :style="!theme && showCC ? 'background: rgba(0,70,199,0.35)' : ''">
-                <span @click.stop="funExcelChange(item)">
-                    <svg t="1711515837802" v-if="isshowC(item)" class="icon" viewBox="0 -120 1024 1024" version="1.1"
-                        xmlns="http://www.w3.org/2000/svg" p-id="2706" width="20" height="20">
-                        <path
-                            d="M249.856 389.12v-178.176c0-45.056 36.864-81.92 81.92-81.92h456.704l163.84 167.936v337.92c0 12.288-8.192 20.48-20.48 20.48s-20.48-8.192-20.48-20.48V337.92h-102.4c-34.816 0-61.44-26.624-61.44-61.44v-106.496h-415.744c-22.528 0-40.96 18.432-40.96 40.96v178.176h456.704c22.528 0 40.96 18.432 40.96 40.96v286.72c0 22.528-18.432 40.96-40.96 40.96h-456.704v61.44c0 22.528 18.432 40.96 40.96 40.96h538.624c22.528 0 40.96-18.432 40.96-40.96v-61.44c0-12.288 8.192-20.48 20.48-20.48s20.48 8.192 20.48 20.48v61.44c0 45.056-36.864 81.92-81.92 81.92h-538.624c-45.056 0-81.92-36.864-81.92-81.92v-61.44h-137.216c-22.528 0-40.96-18.432-40.96-40.96v-286.72c0-22.528 18.432-40.96 40.96-40.96h137.216z m538.624-202.752v90.112c0 10.24 8.192 20.48 20.48 20.48h86.016l-106.496-110.592z m-473.088 350.208c-14.336-38.912-40.96-57.344-83.968-59.392-59.392 4.096-90.112 36.864-94.208 102.4 2.048 65.536 34.816 100.352 94.208 102.4 47.104 0 77.824-22.528 88.064-67.584l-36.864-12.288c-4.096 32.768-22.528 47.104-49.152 47.104-34.816-2.048-53.248-26.624-55.296-71.68 2.048-45.056 20.48-67.584 55.296-69.632 24.576 2.048 40.96 14.336 47.104 36.864l34.816-8.192z m26.624 79.872c10.24 45.056 38.912 65.536 90.112 65.536s75.776-20.48 77.824-59.392c0-24.576-14.336-40.96-40.96-53.248l-36.864-12.288c-28.672-6.144-43.008-16.384-40.96-28.672 2.048-16.384 14.336-22.528 34.816-24.576 24.576 0 38.912 10.24 43.008 32.768l36.864-8.192c-6.144-36.864-34.816-57.344-81.92-55.296-45.056 2.048-69.632 20.48-71.68 53.248-2.048 28.672 16.384 47.104 57.344 57.344 10.24 2.048 20.48 4.096 30.72 8.192 22.528 6.144 32.768 16.384 30.72 30.72-2.048 18.432-14.336 26.624-38.912 28.672-28.672 0-47.104-14.336-51.2-45.056l-38.912 10.24z m380.928-137.216h-40.96l-49.152 145.408c-4.096 12.288-6.144 18.432-6.144 20.48 0-4.096-2.048-10.24-6.144-20.48l-51.2-147.456h-40.96l77.824 198.656h43.008l73.728-196.608z"
-                            fill="#5473E8" p-id="2707"></path>
-                    </svg>
-                    <svg t="1711515837802" v-else class="icon" viewBox="0 -120 1024 1024" version="1.1"
-                        xmlns="http://www.w3.org/2000/svg" p-id="2706" width="20" height="20">
-                        <path
-                            d="M249.856 389.12v-178.176c0-45.056 36.864-81.92 81.92-81.92h456.704l163.84 167.936v337.92c0 12.288-8.192 20.48-20.48 20.48s-20.48-8.192-20.48-20.48V337.92h-102.4c-34.816 0-61.44-26.624-61.44-61.44v-106.496h-415.744c-22.528 0-40.96 18.432-40.96 40.96v178.176h456.704c22.528 0 40.96 18.432 40.96 40.96v286.72c0 22.528-18.432 40.96-40.96 40.96h-456.704v61.44c0 22.528 18.432 40.96 40.96 40.96h538.624c22.528 0 40.96-18.432 40.96-40.96v-61.44c0-12.288 8.192-20.48 20.48-20.48s20.48 8.192 20.48 20.48v61.44c0 45.056-36.864 81.92-81.92 81.92h-538.624c-45.056 0-81.92-36.864-81.92-81.92v-61.44h-137.216c-22.528 0-40.96-18.432-40.96-40.96v-286.72c0-22.528 18.432-40.96 40.96-40.96h137.216z m538.624-202.752v90.112c0 10.24 8.192 20.48 20.48 20.48h86.016l-106.496-110.592z m-473.088 350.208c-14.336-38.912-40.96-57.344-83.968-59.392-59.392 4.096-90.112 36.864-94.208 102.4 2.048 65.536 34.816 100.352 94.208 102.4 47.104 0 77.824-22.528 88.064-67.584l-36.864-12.288c-4.096 32.768-22.528 47.104-49.152 47.104-34.816-2.048-53.248-26.624-55.296-71.68 2.048-45.056 20.48-67.584 55.296-69.632 24.576 2.048 40.96 14.336 47.104 36.864l34.816-8.192z m26.624 79.872c10.24 45.056 38.912 65.536 90.112 65.536s75.776-20.48 77.824-59.392c0-24.576-14.336-40.96-40.96-53.248l-36.864-12.288c-28.672-6.144-43.008-16.384-40.96-28.672 2.048-16.384 14.336-22.528 34.816-24.576 24.576 0 38.912 10.24 43.008 32.768l36.864-8.192c-6.144-36.864-34.816-57.344-81.92-55.296-45.056 2.048-69.632 20.48-71.68 53.248-2.048 28.672 16.384 47.104 57.344 57.344 10.24 2.048 20.48 4.096 30.72 8.192 22.528 6.144 32.768 16.384 30.72 30.72-2.048 18.432-14.336 26.624-38.912 28.672-28.672 0-47.104-14.336-51.2-45.056l-38.912 10.24z m380.928-137.216h-40.96l-49.152 145.408c-4.096 12.288-6.144 18.432-6.144 20.48 0-4.096-2.048-10.24-6.144-20.48l-51.2-147.456h-40.96l77.824 198.656h43.008l73.728-196.608z"
-                            fill="#838793" p-id="2707"></path>
-                    </svg>
-                    <!-- <img :src="CSV_C" alt="" v-if="isshowC(item)"> -->
-                    <!-- <img :src="CSV" alt="" v-else> -->
-                    <span class="excelName">{{ item?.name?.split("_")?.[0] || item.name  }}</span>
-                </span>
-            </el-checkbox>
-        </el-checkbox-group>
-        <div v-else>
-            <div class="excelDataNoCheck" :class="theme ? 'excelW' : 'excelB'" v-for="item in data" :key="item.name"
-                @click="funExcelChange(item)"
-                :style="!theme && currentId === item.id ? 'background: rgba(0,70,199,0.35)' : ''">
-                <!-- <el-icon>
+  <div class="excelData" :style="{ height: height, overflow: 'auto' }">
+    <el-empty
+      v-if="!data.length"
+      :image="nodata"
+      image-size="100"
+      description="暂无数据,敬请期待"
+    />
+    <el-checkbox-group
+      size="small"
+      v-model="excelCheckIds"
+      v-if="showCheckbox"
+      @change="funCheckChange"
+    >
+      <el-checkbox
+        size="small"
+        class="excelDatahaveCheck"
+        :class="theme ? 'excelW' : 'excelB'"
+        :label="item.id"
+        v-for="item in data"
+        :key="item.name"
+        :style="!theme && showCC ? 'background: rgba(0,70,199,0.35)' : ''"
+      >
+        <span @click.stop="funExcelChange(item)">
+          <svg
+            t="1711515837802"
+            v-if="isshowC(item)"
+            class="icon"
+            viewBox="0 -120 1024 1024"
+            version="1.1"
+            xmlns="http://www.w3.org/2000/svg"
+            p-id="2706"
+            width="20"
+            height="20"
+          >
+            <path
+              d="M249.856 389.12v-178.176c0-45.056 36.864-81.92 81.92-81.92h456.704l163.84 167.936v337.92c0 12.288-8.192 20.48-20.48 20.48s-20.48-8.192-20.48-20.48V337.92h-102.4c-34.816 0-61.44-26.624-61.44-61.44v-106.496h-415.744c-22.528 0-40.96 18.432-40.96 40.96v178.176h456.704c22.528 0 40.96 18.432 40.96 40.96v286.72c0 22.528-18.432 40.96-40.96 40.96h-456.704v61.44c0 22.528 18.432 40.96 40.96 40.96h538.624c22.528 0 40.96-18.432 40.96-40.96v-61.44c0-12.288 8.192-20.48 20.48-20.48s20.48 8.192 20.48 20.48v61.44c0 45.056-36.864 81.92-81.92 81.92h-538.624c-45.056 0-81.92-36.864-81.92-81.92v-61.44h-137.216c-22.528 0-40.96-18.432-40.96-40.96v-286.72c0-22.528 18.432-40.96 40.96-40.96h137.216z m538.624-202.752v90.112c0 10.24 8.192 20.48 20.48 20.48h86.016l-106.496-110.592z m-473.088 350.208c-14.336-38.912-40.96-57.344-83.968-59.392-59.392 4.096-90.112 36.864-94.208 102.4 2.048 65.536 34.816 100.352 94.208 102.4 47.104 0 77.824-22.528 88.064-67.584l-36.864-12.288c-4.096 32.768-22.528 47.104-49.152 47.104-34.816-2.048-53.248-26.624-55.296-71.68 2.048-45.056 20.48-67.584 55.296-69.632 24.576 2.048 40.96 14.336 47.104 36.864l34.816-8.192z m26.624 79.872c10.24 45.056 38.912 65.536 90.112 65.536s75.776-20.48 77.824-59.392c0-24.576-14.336-40.96-40.96-53.248l-36.864-12.288c-28.672-6.144-43.008-16.384-40.96-28.672 2.048-16.384 14.336-22.528 34.816-24.576 24.576 0 38.912 10.24 43.008 32.768l36.864-8.192c-6.144-36.864-34.816-57.344-81.92-55.296-45.056 2.048-69.632 20.48-71.68 53.248-2.048 28.672 16.384 47.104 57.344 57.344 10.24 2.048 20.48 4.096 30.72 8.192 22.528 6.144 32.768 16.384 30.72 30.72-2.048 18.432-14.336 26.624-38.912 28.672-28.672 0-47.104-14.336-51.2-45.056l-38.912 10.24z m380.928-137.216h-40.96l-49.152 145.408c-4.096 12.288-6.144 18.432-6.144 20.48 0-4.096-2.048-10.24-6.144-20.48l-51.2-147.456h-40.96l77.824 198.656h43.008l73.728-196.608z"
+              fill="#5473E8"
+              p-id="2707"
+            ></path>
+          </svg>
+          <svg
+            t="1711515837802"
+            v-else
+            class="icon"
+            viewBox="0 -120 1024 1024"
+            version="1.1"
+            xmlns="http://www.w3.org/2000/svg"
+            p-id="2706"
+            width="20"
+            height="20"
+          >
+            <path
+              d="M249.856 389.12v-178.176c0-45.056 36.864-81.92 81.92-81.92h456.704l163.84 167.936v337.92c0 12.288-8.192 20.48-20.48 20.48s-20.48-8.192-20.48-20.48V337.92h-102.4c-34.816 0-61.44-26.624-61.44-61.44v-106.496h-415.744c-22.528 0-40.96 18.432-40.96 40.96v178.176h456.704c22.528 0 40.96 18.432 40.96 40.96v286.72c0 22.528-18.432 40.96-40.96 40.96h-456.704v61.44c0 22.528 18.432 40.96 40.96 40.96h538.624c22.528 0 40.96-18.432 40.96-40.96v-61.44c0-12.288 8.192-20.48 20.48-20.48s20.48 8.192 20.48 20.48v61.44c0 45.056-36.864 81.92-81.92 81.92h-538.624c-45.056 0-81.92-36.864-81.92-81.92v-61.44h-137.216c-22.528 0-40.96-18.432-40.96-40.96v-286.72c0-22.528 18.432-40.96 40.96-40.96h137.216z m538.624-202.752v90.112c0 10.24 8.192 20.48 20.48 20.48h86.016l-106.496-110.592z m-473.088 350.208c-14.336-38.912-40.96-57.344-83.968-59.392-59.392 4.096-90.112 36.864-94.208 102.4 2.048 65.536 34.816 100.352 94.208 102.4 47.104 0 77.824-22.528 88.064-67.584l-36.864-12.288c-4.096 32.768-22.528 47.104-49.152 47.104-34.816-2.048-53.248-26.624-55.296-71.68 2.048-45.056 20.48-67.584 55.296-69.632 24.576 2.048 40.96 14.336 47.104 36.864l34.816-8.192z m26.624 79.872c10.24 45.056 38.912 65.536 90.112 65.536s75.776-20.48 77.824-59.392c0-24.576-14.336-40.96-40.96-53.248l-36.864-12.288c-28.672-6.144-43.008-16.384-40.96-28.672 2.048-16.384 14.336-22.528 34.816-24.576 24.576 0 38.912 10.24 43.008 32.768l36.864-8.192c-6.144-36.864-34.816-57.344-81.92-55.296-45.056 2.048-69.632 20.48-71.68 53.248-2.048 28.672 16.384 47.104 57.344 57.344 10.24 2.048 20.48 4.096 30.72 8.192 22.528 6.144 32.768 16.384 30.72 30.72-2.048 18.432-14.336 26.624-38.912 28.672-28.672 0-47.104-14.336-51.2-45.056l-38.912 10.24z m380.928-137.216h-40.96l-49.152 145.408c-4.096 12.288-6.144 18.432-6.144 20.48 0-4.096-2.048-10.24-6.144-20.48l-51.2-147.456h-40.96l77.824 198.656h43.008l73.728-196.608z"
+              fill="#838793"
+              p-id="2707"
+            ></path>
+          </svg>
+          <!-- <img :src="CSV_C" alt="" v-if="isshowC(item)"> -->
+          <!-- <img :src="CSV" alt="" v-else> -->
+          <span class="excelName">{{
+            item?.name?.split("_")?.[0] || item.name
+          }}</span>
+        </span>
+      </el-checkbox>
+    </el-checkbox-group>
+    <div v-else>
+      <div
+        class="excelDataNoCheck"
+        :class="
+          currentId && currentId === item.id
+            ? theme
+              ? 'checked excelW'
+              : 'checked excelB'
+            : theme
+            ? 'excelW'
+            : 'excelB'
+        "
+        v-for="item in data"
+        :key="item.name"
+        @click="funExcelChange(item)"
+        :style="
+          !theme && currentId === item.id
+            ? 'background: rgba(0,70,199,0.35)'
+            : ''
+        "
+      >
+        <!-- <el-icon>
                     <Document />
                 </el-icon> -->
-                <svg t="1711515837802" v-if="currentId === item.id" class="icon" viewBox="0 -120 1024 1024"
-                    version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2706" width="20" height="20">
-                    <path
-                        d="M249.856 389.12v-178.176c0-45.056 36.864-81.92 81.92-81.92h456.704l163.84 167.936v337.92c0 12.288-8.192 20.48-20.48 20.48s-20.48-8.192-20.48-20.48V337.92h-102.4c-34.816 0-61.44-26.624-61.44-61.44v-106.496h-415.744c-22.528 0-40.96 18.432-40.96 40.96v178.176h456.704c22.528 0 40.96 18.432 40.96 40.96v286.72c0 22.528-18.432 40.96-40.96 40.96h-456.704v61.44c0 22.528 18.432 40.96 40.96 40.96h538.624c22.528 0 40.96-18.432 40.96-40.96v-61.44c0-12.288 8.192-20.48 20.48-20.48s20.48 8.192 20.48 20.48v61.44c0 45.056-36.864 81.92-81.92 81.92h-538.624c-45.056 0-81.92-36.864-81.92-81.92v-61.44h-137.216c-22.528 0-40.96-18.432-40.96-40.96v-286.72c0-22.528 18.432-40.96 40.96-40.96h137.216z m538.624-202.752v90.112c0 10.24 8.192 20.48 20.48 20.48h86.016l-106.496-110.592z m-473.088 350.208c-14.336-38.912-40.96-57.344-83.968-59.392-59.392 4.096-90.112 36.864-94.208 102.4 2.048 65.536 34.816 100.352 94.208 102.4 47.104 0 77.824-22.528 88.064-67.584l-36.864-12.288c-4.096 32.768-22.528 47.104-49.152 47.104-34.816-2.048-53.248-26.624-55.296-71.68 2.048-45.056 20.48-67.584 55.296-69.632 24.576 2.048 40.96 14.336 47.104 36.864l34.816-8.192z m26.624 79.872c10.24 45.056 38.912 65.536 90.112 65.536s75.776-20.48 77.824-59.392c0-24.576-14.336-40.96-40.96-53.248l-36.864-12.288c-28.672-6.144-43.008-16.384-40.96-28.672 2.048-16.384 14.336-22.528 34.816-24.576 24.576 0 38.912 10.24 43.008 32.768l36.864-8.192c-6.144-36.864-34.816-57.344-81.92-55.296-45.056 2.048-69.632 20.48-71.68 53.248-2.048 28.672 16.384 47.104 57.344 57.344 10.24 2.048 20.48 4.096 30.72 8.192 22.528 6.144 32.768 16.384 30.72 30.72-2.048 18.432-14.336 26.624-38.912 28.672-28.672 0-47.104-14.336-51.2-45.056l-38.912 10.24z m380.928-137.216h-40.96l-49.152 145.408c-4.096 12.288-6.144 18.432-6.144 20.48 0-4.096-2.048-10.24-6.144-20.48l-51.2-147.456h-40.96l77.824 198.656h43.008l73.728-196.608z"
-                        fill="#5473E8" p-id="2707"></path>
-                </svg>
-                <svg t="1711515837802" v-else class="icon" viewBox="0 -120 1024 1024" version="1.1"
-                    xmlns="http://www.w3.org/2000/svg" p-id="2706" width="20" height="20">
-                    <path
-                        d="M249.856 389.12v-178.176c0-45.056 36.864-81.92 81.92-81.92h456.704l163.84 167.936v337.92c0 12.288-8.192 20.48-20.48 20.48s-20.48-8.192-20.48-20.48V337.92h-102.4c-34.816 0-61.44-26.624-61.44-61.44v-106.496h-415.744c-22.528 0-40.96 18.432-40.96 40.96v178.176h456.704c22.528 0 40.96 18.432 40.96 40.96v286.72c0 22.528-18.432 40.96-40.96 40.96h-456.704v61.44c0 22.528 18.432 40.96 40.96 40.96h538.624c22.528 0 40.96-18.432 40.96-40.96v-61.44c0-12.288 8.192-20.48 20.48-20.48s20.48 8.192 20.48 20.48v61.44c0 45.056-36.864 81.92-81.92 81.92h-538.624c-45.056 0-81.92-36.864-81.92-81.92v-61.44h-137.216c-22.528 0-40.96-18.432-40.96-40.96v-286.72c0-22.528 18.432-40.96 40.96-40.96h137.216z m538.624-202.752v90.112c0 10.24 8.192 20.48 20.48 20.48h86.016l-106.496-110.592z m-473.088 350.208c-14.336-38.912-40.96-57.344-83.968-59.392-59.392 4.096-90.112 36.864-94.208 102.4 2.048 65.536 34.816 100.352 94.208 102.4 47.104 0 77.824-22.528 88.064-67.584l-36.864-12.288c-4.096 32.768-22.528 47.104-49.152 47.104-34.816-2.048-53.248-26.624-55.296-71.68 2.048-45.056 20.48-67.584 55.296-69.632 24.576 2.048 40.96 14.336 47.104 36.864l34.816-8.192z m26.624 79.872c10.24 45.056 38.912 65.536 90.112 65.536s75.776-20.48 77.824-59.392c0-24.576-14.336-40.96-40.96-53.248l-36.864-12.288c-28.672-6.144-43.008-16.384-40.96-28.672 2.048-16.384 14.336-22.528 34.816-24.576 24.576 0 38.912 10.24 43.008 32.768l36.864-8.192c-6.144-36.864-34.816-57.344-81.92-55.296-45.056 2.048-69.632 20.48-71.68 53.248-2.048 28.672 16.384 47.104 57.344 57.344 10.24 2.048 20.48 4.096 30.72 8.192 22.528 6.144 32.768 16.384 30.72 30.72-2.048 18.432-14.336 26.624-38.912 28.672-28.672 0-47.104-14.336-51.2-45.056l-38.912 10.24z m380.928-137.216h-40.96l-49.152 145.408c-4.096 12.288-6.144 18.432-6.144 20.48 0-4.096-2.048-10.24-6.144-20.48l-51.2-147.456h-40.96l77.824 198.656h43.008l73.728-196.608z"
-                        fill="#838793" p-id="2707"></path>
-                </svg>
-                <!-- <img :src="CSV_C" alt="" v-if="currentId === item.id">
+        <svg
+          t="1711515837802"
+          v-if="currentId === item.id"
+          class="icon"
+          viewBox="0 -120 1024 1024"
+          version="1.1"
+          xmlns="http://www.w3.org/2000/svg"
+          p-id="2706"
+          width="20"
+          height="20"
+        >
+          <path
+            d="M249.856 389.12v-178.176c0-45.056 36.864-81.92 81.92-81.92h456.704l163.84 167.936v337.92c0 12.288-8.192 20.48-20.48 20.48s-20.48-8.192-20.48-20.48V337.92h-102.4c-34.816 0-61.44-26.624-61.44-61.44v-106.496h-415.744c-22.528 0-40.96 18.432-40.96 40.96v178.176h456.704c22.528 0 40.96 18.432 40.96 40.96v286.72c0 22.528-18.432 40.96-40.96 40.96h-456.704v61.44c0 22.528 18.432 40.96 40.96 40.96h538.624c22.528 0 40.96-18.432 40.96-40.96v-61.44c0-12.288 8.192-20.48 20.48-20.48s20.48 8.192 20.48 20.48v61.44c0 45.056-36.864 81.92-81.92 81.92h-538.624c-45.056 0-81.92-36.864-81.92-81.92v-61.44h-137.216c-22.528 0-40.96-18.432-40.96-40.96v-286.72c0-22.528 18.432-40.96 40.96-40.96h137.216z m538.624-202.752v90.112c0 10.24 8.192 20.48 20.48 20.48h86.016l-106.496-110.592z m-473.088 350.208c-14.336-38.912-40.96-57.344-83.968-59.392-59.392 4.096-90.112 36.864-94.208 102.4 2.048 65.536 34.816 100.352 94.208 102.4 47.104 0 77.824-22.528 88.064-67.584l-36.864-12.288c-4.096 32.768-22.528 47.104-49.152 47.104-34.816-2.048-53.248-26.624-55.296-71.68 2.048-45.056 20.48-67.584 55.296-69.632 24.576 2.048 40.96 14.336 47.104 36.864l34.816-8.192z m26.624 79.872c10.24 45.056 38.912 65.536 90.112 65.536s75.776-20.48 77.824-59.392c0-24.576-14.336-40.96-40.96-53.248l-36.864-12.288c-28.672-6.144-43.008-16.384-40.96-28.672 2.048-16.384 14.336-22.528 34.816-24.576 24.576 0 38.912 10.24 43.008 32.768l36.864-8.192c-6.144-36.864-34.816-57.344-81.92-55.296-45.056 2.048-69.632 20.48-71.68 53.248-2.048 28.672 16.384 47.104 57.344 57.344 10.24 2.048 20.48 4.096 30.72 8.192 22.528 6.144 32.768 16.384 30.72 30.72-2.048 18.432-14.336 26.624-38.912 28.672-28.672 0-47.104-14.336-51.2-45.056l-38.912 10.24z m380.928-137.216h-40.96l-49.152 145.408c-4.096 12.288-6.144 18.432-6.144 20.48 0-4.096-2.048-10.24-6.144-20.48l-51.2-147.456h-40.96l77.824 198.656h43.008l73.728-196.608z"
+            fill="#5473E8"
+            p-id="2707"
+          ></path>
+        </svg>
+        <svg
+          t="1711515837802"
+          v-else
+          class="icon"
+          viewBox="0 -120 1024 1024"
+          version="1.1"
+          xmlns="http://www.w3.org/2000/svg"
+          p-id="2706"
+          width="20"
+          height="20"
+        >
+          <path
+            d="M249.856 389.12v-178.176c0-45.056 36.864-81.92 81.92-81.92h456.704l163.84 167.936v337.92c0 12.288-8.192 20.48-20.48 20.48s-20.48-8.192-20.48-20.48V337.92h-102.4c-34.816 0-61.44-26.624-61.44-61.44v-106.496h-415.744c-22.528 0-40.96 18.432-40.96 40.96v178.176h456.704c22.528 0 40.96 18.432 40.96 40.96v286.72c0 22.528-18.432 40.96-40.96 40.96h-456.704v61.44c0 22.528 18.432 40.96 40.96 40.96h538.624c22.528 0 40.96-18.432 40.96-40.96v-61.44c0-12.288 8.192-20.48 20.48-20.48s20.48 8.192 20.48 20.48v61.44c0 45.056-36.864 81.92-81.92 81.92h-538.624c-45.056 0-81.92-36.864-81.92-81.92v-61.44h-137.216c-22.528 0-40.96-18.432-40.96-40.96v-286.72c0-22.528 18.432-40.96 40.96-40.96h137.216z m538.624-202.752v90.112c0 10.24 8.192 20.48 20.48 20.48h86.016l-106.496-110.592z m-473.088 350.208c-14.336-38.912-40.96-57.344-83.968-59.392-59.392 4.096-90.112 36.864-94.208 102.4 2.048 65.536 34.816 100.352 94.208 102.4 47.104 0 77.824-22.528 88.064-67.584l-36.864-12.288c-4.096 32.768-22.528 47.104-49.152 47.104-34.816-2.048-53.248-26.624-55.296-71.68 2.048-45.056 20.48-67.584 55.296-69.632 24.576 2.048 40.96 14.336 47.104 36.864l34.816-8.192z m26.624 79.872c10.24 45.056 38.912 65.536 90.112 65.536s75.776-20.48 77.824-59.392c0-24.576-14.336-40.96-40.96-53.248l-36.864-12.288c-28.672-6.144-43.008-16.384-40.96-28.672 2.048-16.384 14.336-22.528 34.816-24.576 24.576 0 38.912 10.24 43.008 32.768l36.864-8.192c-6.144-36.864-34.816-57.344-81.92-55.296-45.056 2.048-69.632 20.48-71.68 53.248-2.048 28.672 16.384 47.104 57.344 57.344 10.24 2.048 20.48 4.096 30.72 8.192 22.528 6.144 32.768 16.384 30.72 30.72-2.048 18.432-14.336 26.624-38.912 28.672-28.672 0-47.104-14.336-51.2-45.056l-38.912 10.24z m380.928-137.216h-40.96l-49.152 145.408c-4.096 12.288-6.144 18.432-6.144 20.48 0-4.096-2.048-10.24-6.144-20.48l-51.2-147.456h-40.96l77.824 198.656h43.008l73.728-196.608z"
+            fill="#838793"
+            p-id="2707"
+          ></path>
+        </svg>
+        <!-- <img :src="CSV_C" alt="" v-if="currentId === item.id">
                 <img :src="CSV" alt="" v-else> -->
-                <span class="excelName" :style="excelSpanSty(item)">{{ item?.name?.split("_")?.[0] || item.name }}</span>
-            </div>
-        </div>
+        <span class="excelName" :style="excelSpanSty(item)">{{
+          item?.name?.split("_")?.[0] || item.name
+        }}</span>
+      </div>
     </div>
+  </div>
 </template>
 
 <script>
-    // import CSV from '@/assets/menuImg/CSV.png'
-    // import CSV_C from '@/assets/menuImg/CSV_C.png'
-    import nodata from '@/assets/images/noData.png'
-    export default {
-        props: {
-            data: {
-                type: Array,
-                default: () => {
-                    return [];
-                },
-            },
-            height: {
-                type: String,
-                default: () => {
-                    return '';
-                },
-            },
-            showCheckbox: {
-                type: Boolean,
-                default: () => {
-                    return false;
-                },
-            },
-            checkIds: {
-                type: Array,
-                default: () => {
-                    return [];
-                },
-            },
-            theme: {
-                type: Boolean,
-                default: () => {
-                    return false;
-                },
-            },
-        },
-        data() {
-            return {
-                // CSV: CSV,
-                // CSV_C: CSV_C,
-                nodata: nodata,
-                showCC: null,
-                excelCheckIds: [],
-                currentId: ''
-            }
-        },
-        watch: {
-            checkIds(newVal, oldVal) {
-                this.excelCheckIds = newVal
-            },
-            data(newVal, oldVal) {
-                if (newVal.length > 0) {
-                    this.currentId = newVal[0].id
-                } else {
-                    this.currentId = ''
-                }
-            }
-        },
-        methods: {
-            isshowC(item) {
-                // this.showCC = false
-                // this.excelCheckIds.forEach(it => {
-                //     if (it === item.id) {
-                //         this.showCC = true
-                //     }
-                // })
-                // return this.showCC
-                return this.excelCheckIds.indexOf(item.id) > -1 ? true : false
-            },
-            excelSpanSty(item) {
-                if (this.theme) {
-                    if (this.currentId === item.id) {
-                        return 'color: #5473E8'
-                    } else {
-                        return 'color:#000'
-                    }
-                } else {
-                    if (this.currentId === item.id) {
-                        return 'color: #fff'
-                    } else {
-                        return 'color:#C3C3C4'
-                    }
-                }
-            },
-            funExcelChange(obj) {
-                this.currentId = obj.id
-                this.$emit('excelChange', obj)
-            },
-            funCheckChange(checkArr, b) {
-                this.$emit('checkChange', {
-                    checkArr,
-                    data: this.data
-                }) //抛出当前选择checkIds,  和当前的childs数据项
-            }
+// import CSV from '@/assets/menuImg/CSV.png'
+// import CSV_C from '@/assets/menuImg/CSV_C.png'
+import nodata from "@/assets/images/noData.png";
+export default {
+  props: {
+    data: {
+      type: Array,
+      default: () => {
+        return [];
+      },
+    },
+    height: {
+      type: String,
+      default: () => {
+        return "";
+      },
+    },
+    showCheckbox: {
+      type: Boolean,
+      default: () => {
+        return false;
+      },
+    },
+    checkIds: {
+      type: Array,
+      default: () => {
+        return [];
+      },
+    },
+    theme: {
+      type: Boolean,
+      default: () => {
+        return false;
+      },
+    },
+  },
+  data() {
+    return {
+      // CSV: CSV,
+      // CSV_C: CSV_C,
+      nodata: nodata,
+      showCC: null,
+      excelCheckIds: [],
+      currentId: "",
+    };
+  },
+  watch: {
+    checkIds(newVal, oldVal) {
+      this.excelCheckIds = newVal;
+    },
+    data(newVal, oldVal) {
+      if (newVal.length > 0) {
+        this.currentId = newVal[0].id;
+      } else {
+        this.currentId = "";
+      }
+    },
+  },
+  methods: {
+    isshowC(item) {
+      // this.showCC = false
+      // this.excelCheckIds.forEach(it => {
+      //     if (it === item.id) {
+      //         this.showCC = true
+      //     }
+      // })
+      // return this.showCC
+      return this.excelCheckIds.indexOf(item.id) > -1 ? true : false;
+    },
+    excelSpanSty(item) {
+      if (this.theme) {
+        if (this.currentId === item.id) {
+          return "color: #5473E8";
+        } else {
+          return "color:#000";
         }
-    }
+      } else {
+        if (this.currentId === item.id) {
+          return "color: #fff";
+        } else {
+          return "color:#C3C3C4";
+        }
+      }
+    },
+    funExcelChange(obj) {
+      this.currentId = obj.id;
+      this.$emit("excelChange", obj);
+    },
+    funCheckChange(checkArr, b) {
+      this.$emit("checkChange", {
+        checkArr,
+        data: this.data,
+      }); //抛出当前选择checkIds,  和当前的childs数据项
+    },
+  },
+};
 </script>
 <style lang="less">
-    .excelData {
-        .excelDatahaveCheck {
-            display: flex;
-            line-height: 25px;
-            height: 25px;
-            width: calc(100% - 10px);
-            font-size: 14px;
-            color: #b7b7b7;
+.excelData {
+  .excelDatahaveCheck {
+    display: flex;
+    line-height: 25px;
+    height: 25px;
+    width: calc(100% - 10px);
+    font-size: 14px;
+    color: #b7b7b7;
 
-            margin-bottom: 5px;
-            border: 1px solid rgba(203, 204, 209, 0.5);
-            cursor: pointer;
+    margin-bottom: 5px;
+    border: 1px solid rgba(203, 204, 209, 0.5);
+    cursor: pointer;
 
-            img {
-                width: 20px;
-                height: 20px;
-                position: relative;
-                top: 3px;
-            }
+    img {
+      width: 20px;
+      height: 20px;
+      position: relative;
+      top: 3px;
+    }
 
-            .excelName {
-                position: relative;
-                top: -2px;
-                margin-left: 6px;
-            }
+    .excelName {
+      position: relative;
+      top: -2px;
+      margin-left: 6px;
+    }
 
-            .el-checkbox__input {
-                right: -90%;
-            }
+    .el-checkbox__input {
+      right: -90%;
+    }
 
-            .is-checked {}
+    .is-checked {
+    }
 
-            .el-checkbox__label {
-                position: relative;
-                left: -15px;
-                top: -2px;
-            }
-        }
+    .el-checkbox__label {
+      position: relative;
+      left: -15px;
+      top: -2px;
+    }
+  }
 
-        .excelDataNoCheck {
-            display: flex;
-            line-height: 25px;
-            height: 25px;
-            width: calc(100% - 10px);
-            font-size: 14px;
-            color: #b7b7b7;
+  .excelDataNoCheck {
+    display: flex;
+    line-height: 25px;
+    height: 25px;
+    width: calc(100% - 10px);
+    font-size: 14px;
+    color: #b7b7b7;
 
-            margin-bottom: 5px;
-            border: 1px solid rgba(203, 204, 209, 0.5);
-            cursor: pointer;
+    margin-bottom: 5px;
+    border: 1px solid rgba(203, 204, 209, 0.5);
+    cursor: pointer;
 
-            .el-icon {
-                margin-right: 5px;
-                color: #504bb5;
-            }
+    .el-icon {
+      margin-right: 5px;
+      color: #504bb5;
+    }
 
-            img {
-                width: 20px;
-                height: 20px;
-                position: relative;
-                top: 3px;
-            }
+    img {
+      width: 20px;
+      height: 20px;
+      position: relative;
+      top: 3px;
+    }
 
-            .excelName {
-                position: relative;
-                top: 0px;
-                margin-left: 6px;
-            }
-        }
+    .excelName {
+      position: relative;
+      top: 0px;
+      margin-left: 6px;
+    }
+  }
 
-        .excelW {
-            background: #fff;
-        }
+  .excelW {
+    background: #fff;
+  }
 
-        .excelB {
-            background: #181A1E;
-        }
-    }
+  .excelB {
+    background: #181a1e;
+  }
+}
 </style>

+ 74 - 12
src/themeDark.less

@@ -1,6 +1,6 @@
 // 主色
 @mc1: #040c0b;
-@mc2: #142446;
+@mc2: #313233;
 @mc3: #2169c3;
 
 // 辅助色
@@ -39,6 +39,11 @@
 
 // 绿色主题
 .blueStyle {
+
+    .el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
+        background: @mc1;
+    }
+
     #app {
 
         .themeDarkHome {
@@ -49,6 +54,29 @@
             color: #fff !important;
         }
 
+        .treeMain {
+            .treeMainTit {
+                background: @green;
+            }
+        }
+
+        .el-checkbox {
+            .el-checkbox__inner {
+                border-color: @green;
+            }
+
+            .el-checkbox__label {
+                color: @green;
+            }
+        }
+
+        .seach {
+            .el-button--primary {
+                background  : @green;
+                border-color: @green;
+            }
+        }
+
         .greenSty {
 
             // 顶部 header
@@ -203,7 +231,15 @@
             }
 
             .dataFilePrepareMain,
-            .dataFileProcessMain {
+            .dataFileProcessMain,
+            .dataAnalysisCom,
+            .dataAnalysisHotAns,
+            .rateAnalysisMain,
+            .dataAnalysisLineAnaMain,
+            .dataAnalysisAngleAnaMain,
+            .dataAnalysisWindAnaMain,
+            .dataAnalysisSpaceAnaMain,
+            .dataAnalysisPosAnalMain {
 
                 .treeDataMain,
                 .excelDataMain,
@@ -211,14 +247,36 @@
                     background: @mc2;
                     padding   : 10px 5px;
 
+                    .treeData {
+                        background: @mc2;
+                    }
+
                     .main {
                         background: #13171e;
                     }
 
+                    .excelDataNoCheck.checked {
+                        background: rgba(@green, 0.35) !important;
+
+                        path {
+                            fill: @green;
+                        }
+                    }
+
+                    .el-checkbox__input.is-checked .el-checkbox__inner {
+                        border-color: @green;
+                    }
+
                 }
             }
 
-
+            .tableDataMain,
+            .dataAnalysisLineAna {
+                .el-button--primary {
+                    background  : @green;
+                    border-color: @green;
+                }
+            }
 
             .scrollbar-demo-item {
                 background  : rgba(83, 98, 104, .2);
@@ -226,7 +284,7 @@
             }
 
             .el-tree {
-                background: rgba(83, 98, 104, .2);
+                background: transparent;
 
                 .el-tree-node__content {
                     background: transparent;
@@ -237,7 +295,7 @@
                     }
 
                     &:hover {
-                        background: rgba(#1a66c6, 0.5);
+                        background: rgba(@green, 0.5);
                     }
                 }
             }
@@ -377,7 +435,7 @@
             background: #13171e !important;
 
             .topPsty {
-                color     : #1c99ff;
+                color     : #05bb4c;
                 background: #1e2126;
             }
         }
@@ -826,12 +884,12 @@
 
             &.is-checked {
                 .el-radio__inner {
-                    background  : @fzs2;
-                    border-color: @fzs2;
+                    background  : @green;
+                    border-color: @green;
                 }
 
                 .el-radio__label {
-                    color: @fzs2;
+                    color: @green;
                 }
             }
         }
@@ -976,7 +1034,7 @@
 
         .el-input-number__decrease,
         .el-input-number__increase {
-            background: #1e3f9a !important;
+            background: @green  !important;
             color     : #fff;
         }
     }
@@ -1000,12 +1058,16 @@
 
     .el-tabs {
         .el-tabs__item {
-            color: #c2e1ff !important;
+            color: #ccc !important;
 
             &.is-active {
-                color: @fzs2  !important;
+                color: @green  !important;
             }
         }
+
+        .el-tabs__active-bar {
+            background: @green;
+        }
     }
 
     .el-tabs.currentTabs {

+ 3 - 3
src/utils/request.js

@@ -75,10 +75,10 @@ service.interceptors.response.use(
     //   }
     //   return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
     } else if (code === 500) {
-      ElMessage({ message: msg, type: 'error' })
+      // ElMessage({ message: msg, type: 'error' })
       return Promise.reject(new Error(msg))
     } else if (code !== 200) {
-      ElNotification({ type: 'error', title: msg})
+      // ElNotification({ type: 'error', title: msg})
       return Promise.reject('error')
     } else {
       return res.data
@@ -106,7 +106,7 @@ service.interceptors.response.use(
         } else if (message.includes("Request failed with status code")) {
             message = "系统接口" + message.substr(message.length - 3) + "异常";
         }
-        ElMessage({ message: message, type: 'error', duration: 3 * 1000 })
+        // ElMessage({ message: message, type: 'error', duration: 3 * 1000 })
         return Promise.reject(error)
   }
 )

+ 2 - 2
src/views/fdnlfx/dataFilter/prepare/index.vue

@@ -379,7 +379,7 @@ onMounted(() => {
   .dataFilePrepareMain {
     .main_top {
       .topPsty {
-        color: #1c99ff;
+        color: #05bb4c;
         background: #1e2126;
       }
     }
@@ -409,7 +409,7 @@ onMounted(() => {
   .dataFilePrepareMain {
     .main_top {
       .topPsty {
-        color: #2778ff;
+        color: #05bb4c;
         background: #ffffff;
       }
     }

+ 156 - 160
src/views/fdnlfx/jjyxReport/index.vue

@@ -143,7 +143,7 @@
         >
           月度
         </h3>
-        <div class="warn-table">
+        <div>
           <el-table
             class="toolSty"
             :data="fzylyxslistM"
@@ -191,7 +191,7 @@
         >
           年度
         </h3>
-        <div class="warn-table">
+        <div>
           <el-table
             class="toolSty"
             :data="fzylyxslistY"
@@ -245,7 +245,7 @@
         >
           月度
         </h3>
-        <div class="warn-table">
+        <div>
           <el-table
             class="toolSty"
             :data="dlcylistM"
@@ -279,7 +279,7 @@
         >
           年度
         </h3>
-        <div class="warn-table">
+        <div>
           <el-table
             class="toolSty"
             :data="dlcylistY"
@@ -398,7 +398,7 @@
         >
           3.五大损失电量分析
         </h3>
-        <div class="warn-table">
+        <div>
           <el-table
             class="toolSty"
             :data="wdssdlfx"
@@ -533,7 +533,7 @@
                 :style="!theme ? 'color: #fff' : 'color: #000'">
                 (4)受累损失电量分析
             </h3>
-            <div class="warn-table">
+            <div >
                 <el-table class="toolSty" :data="curve" border
                     style="width: 100%; margin: 10px 0">
                     <el-table-column prop="section" align="center" label="月份" />
@@ -602,7 +602,7 @@
         >
           4.各风场风机可利用率对比分析
         </h3>
-        <div class="warn-table">
+        <div>
           <el-table
             class="toolSty"
             :data="fjklyl"
@@ -666,7 +666,7 @@
         >
           5.能耗指标分析(风电)
         </h3>
-        <div class="warn-table">
+        <div>
           <el-table
             class="toolSty"
             :data="nhzbfxlist"
@@ -721,7 +721,7 @@
         >
           6.“两个细则”考核情况
         </h3>
-        <div class="warn-table">
+        <div>
           <el-table
             class="toolSty"
             :data="twoxize"
@@ -768,7 +768,7 @@
         >
           1.繁食沟风电场
         </h3>
-        <div class="warn-table">
+        <div>
           <el-table
             class="toolSty"
             :data="fanshigouXN"
@@ -814,7 +814,7 @@
         >
           2.草山梁风电场
         </h3>
-        <div class="warn-table">
+        <div>
           <el-table
             class="toolSty"
             :data="caoshaniangXN"
@@ -859,7 +859,7 @@
         >
           3.吉山梁风电场
         </h3>
-        <div class="warn-table">
+        <div>
           <el-table
             class="toolSty"
             :data="jishanliangXN"
@@ -904,7 +904,7 @@
         >
           4.左庄风电场
         </h3>
-        <div class="warn-table">
+        <div>
           <el-table
             class="toolSty"
             :data="zuozhuangXN"
@@ -939,7 +939,7 @@
         >
           5.新庄风电场
         </h3>
-        <div class="warn-table">
+        <div>
           <el-table
             class="toolSty"
             :data="xingzhuangXN"
@@ -979,7 +979,7 @@
         >
           6.雷家山风场
         </h3>
-        <div class="warn-table">
+        <div>
           <el-table
             class="toolSty"
             :data="leijiashanXN"
@@ -1082,162 +1082,158 @@ export default {
       httpRequest
         .get(`/MeetingReport/Analysisreport?time=${this.reportParamDate}`)
         .then((tempRes) => {
-            this.exportWORDChange(tempRes)
-        }).catch(() => {
-            this.exportWORDChange({ data: jsonData.reportData });
-          });
+          this.exportWORDChange(tempRes);
+        })
+        .catch(() => {
+          this.exportWORDChange({ data: jsonData.reportData });
+        });
     },
     exportWORDChange(tempRes) {
-        tempRes.data.titleYear = tempRes.data.title.year;
-          tempRes.data.titleMonth = tempRes.data.title.month;
-          tempRes.data.titleName = tempRes.data.title.name;
-          tempRes.data.dlcylistM = [];
-          tempRes.data.dlcylistY = [];
-          tempRes.data.wdssBase = [];
-          tempRes.data.wdssSum = [];
+      tempRes.data.titleYear = tempRes.data.title.year;
+      tempRes.data.titleMonth = tempRes.data.title.month;
+      tempRes.data.titleName = tempRes.data.title.name;
+      tempRes.data.dlcylistM = [];
+      tempRes.data.dlcylistY = [];
+      tempRes.data.wdssBase = [];
+      tempRes.data.wdssSum = [];
 
-          tempRes.data.dlcylist.forEach((it) => {
-            if (it.cycleType === "M") {
-              tempRes.data.dlcylistM.push(it);
-            } else if (it.cycleType === "Y") {
-              tempRes.data.dlcylistY.push(it);
-            }
-          });
+      tempRes.data.dlcylist.forEach((it) => {
+        if (it.cycleType === "M") {
+          tempRes.data.dlcylistM.push(it);
+        } else if (it.cycleType === "Y") {
+          tempRes.data.dlcylistY.push(it);
+        }
+      });
 
-          tempRes.data.wdssdlfx.forEach((ele) => {
-            const cycleType = ele.cycleType;
-            const wpName = ele.windpowerstationName;
-            const findRes = tempRes.data.wdssBase.find((findEle) => {
-              return findEle.windpowerstationId === ele.windpowerstationId;
-            });
-            if (findRes) {
-              findRes[`gzssdl${cycleType}`] = ele.gzssdl;
-              findRes[`jhssdl${cycleType}`] = ele.jhssdl;
-              findRes[`xdssdl${cycleType}`] = ele.xdssdl;
-              findRes[`slssdl${cycleType}`] = ele.slssdl;
-              findRes[`xnssdl${cycleType}`] = ele.xnssdl;
-              findRes[`zhj${cycleType}`] = ele.zhj;
-              findRes[`hj${cycleType}`] = ele.hj;
-              findRes[`tqgzssdl${cycleType}`] = ele.tqgzssdl;
-              findRes[`tqjhssdl${cycleType}`] = ele.tqjhssdl;
-              findRes[`tqxdssdl${cycleType}`] = ele.tqxdssdl;
-              findRes[`tqslssdl${cycleType}`] = ele.tqslssdl;
-              findRes[`tqxnssdl${cycleType}`] = ele.tqxnssdl;
-              findRes[`tqzhj${cycleType}`] = ele.tqzhj;
-              findRes[`tqhj${cycleType}`] = ele.tqhj;
-            } else {
-              ele[`gzssdl${wpName === "合计" ? "" : cycleType}`] = ele.gzssdl;
-              ele[`jhssdl${wpName === "合计" ? "" : cycleType}`] = ele.jhssdl;
-              ele[`xdssdl${wpName === "合计" ? "" : cycleType}`] = ele.xdssdl;
-              ele[`slssdl${wpName === "合计" ? "" : cycleType}`] = ele.slssdl;
-              ele[`xnssdl${wpName === "合计" ? "" : cycleType}`] = ele.xnssdl;
-              ele[`zhj${wpName === "合计" ? "" : cycleType}`] = ele.zhj;
-              ele[`hj${wpName === "合计" ? "" : cycleType}`] = ele.hj;
-              ele[`tqgzssdl${wpName === "合计" ? "" : cycleType}`] =
-                ele.tqgzssdl;
-              ele[`tqjhssdl${wpName === "合计" ? "" : cycleType}`] =
-                ele.tqjhssdl;
-              ele[`tqxdssdl${wpName === "合计" ? "" : cycleType}`] =
-                ele.tqxdssdl;
-              ele[`tqslssdl${wpName === "合计" ? "" : cycleType}`] =
-                ele.tqslssdl;
-              ele[`tqxnssdl${wpName === "合计" ? "" : cycleType}`] =
-                ele.tqxnssdl;
-              ele[`tqzhj${wpName === "合计" ? "" : cycleType}`] = ele.tqzhj;
-              ele[`tqhj${wpName === "合计" ? "" : cycleType}`] = ele.tqhj;
-              ele.wpName = ele.windpowerstationName;
+      tempRes.data.wdssdlfx.forEach((ele) => {
+        const cycleType = ele.cycleType;
+        const wpName = ele.windpowerstationName;
+        const findRes = tempRes.data.wdssBase.find((findEle) => {
+          return findEle.windpowerstationId === ele.windpowerstationId;
+        });
+        if (findRes) {
+          findRes[`gzssdl${cycleType}`] = ele.gzssdl;
+          findRes[`jhssdl${cycleType}`] = ele.jhssdl;
+          findRes[`xdssdl${cycleType}`] = ele.xdssdl;
+          findRes[`slssdl${cycleType}`] = ele.slssdl;
+          findRes[`xnssdl${cycleType}`] = ele.xnssdl;
+          findRes[`zhj${cycleType}`] = ele.zhj;
+          findRes[`hj${cycleType}`] = ele.hj;
+          findRes[`tqgzssdl${cycleType}`] = ele.tqgzssdl;
+          findRes[`tqjhssdl${cycleType}`] = ele.tqjhssdl;
+          findRes[`tqxdssdl${cycleType}`] = ele.tqxdssdl;
+          findRes[`tqslssdl${cycleType}`] = ele.tqslssdl;
+          findRes[`tqxnssdl${cycleType}`] = ele.tqxnssdl;
+          findRes[`tqzhj${cycleType}`] = ele.tqzhj;
+          findRes[`tqhj${cycleType}`] = ele.tqhj;
+        } else {
+          ele[`gzssdl${wpName === "合计" ? "" : cycleType}`] = ele.gzssdl;
+          ele[`jhssdl${wpName === "合计" ? "" : cycleType}`] = ele.jhssdl;
+          ele[`xdssdl${wpName === "合计" ? "" : cycleType}`] = ele.xdssdl;
+          ele[`slssdl${wpName === "合计" ? "" : cycleType}`] = ele.slssdl;
+          ele[`xnssdl${wpName === "合计" ? "" : cycleType}`] = ele.xnssdl;
+          ele[`zhj${wpName === "合计" ? "" : cycleType}`] = ele.zhj;
+          ele[`hj${wpName === "合计" ? "" : cycleType}`] = ele.hj;
+          ele[`tqgzssdl${wpName === "合计" ? "" : cycleType}`] = ele.tqgzssdl;
+          ele[`tqjhssdl${wpName === "合计" ? "" : cycleType}`] = ele.tqjhssdl;
+          ele[`tqxdssdl${wpName === "合计" ? "" : cycleType}`] = ele.tqxdssdl;
+          ele[`tqslssdl${wpName === "合计" ? "" : cycleType}`] = ele.tqslssdl;
+          ele[`tqxnssdl${wpName === "合计" ? "" : cycleType}`] = ele.tqxnssdl;
+          ele[`tqzhj${wpName === "合计" ? "" : cycleType}`] = ele.tqzhj;
+          ele[`tqhj${wpName === "合计" ? "" : cycleType}`] = ele.tqhj;
+          ele.wpName = ele.windpowerstationName;
 
-              if (ele.windpowerstationName !== "合计") {
-                tempRes.data.wdssBase.push(ele);
-              } else {
-                ele.wpName =
-                  cycleType === "M" ? `月${ele.wpName}` : `年${ele.wpName}`;
-                tempRes.data.wdssSum.push(ele);
-              }
-            }
-          });
+          if (ele.windpowerstationName !== "合计") {
+            tempRes.data.wdssBase.push(ele);
+          } else {
+            ele.wpName =
+              cycleType === "M" ? `月${ele.wpName}` : `年${ele.wpName}`;
+            tempRes.data.wdssSum.push(ele);
+          }
+        }
+      });
 
-          const lgxzList = [];
-          twoxizeJson?.data?.forEach((ele) => {
-            const findRes = lgxzList.find((findEle) => {
-              return ele.wpid === findEle.wpid;
-            });
-            if (findRes) {
-              ele.wpid = "";
-              findRes.list.push(ele);
-            } else {
-              lgxzList.push({
-                wpid: ele.wpid,
-                list: [ele],
-              });
-            }
+      const lgxzList = [];
+      twoxizeJson?.data?.forEach((ele) => {
+        const findRes = lgxzList.find((findEle) => {
+          return ele.wpid === findEle.wpid;
+        });
+        if (findRes) {
+          ele.wpid = "";
+          findRes.list.push(ele);
+        } else {
+          lgxzList.push({
+            wpid: ele.wpid,
+            list: [ele],
           });
+        }
+      });
 
-          tempRes.data.twoxize = lgxzList;
+      tempRes.data.twoxize = lgxzList;
 
-          const xnzbdbfx = [];
-          let xnzbdbfxIdx = 1;
-          for (let wpName in tempRes.data.xnzbdbfx) {
-            let xnzb = "";
-            if (wpName === "吉山梁风电场") {
-              xnzb = tempRes.data.xnzbjsl;
-            } else if (wpName === "左庄风电场") {
-              xnzb = tempRes.data.xnzbzz;
-            } else if (wpName === "新庄风电场") {
-              xnzb = tempRes.data.xnzbxz;
-            } else if (wpName === "繁食沟风电场") {
-              xnzb = tempRes.data.xnzbfsg;
-            } else if (wpName === "草山梁风电场") {
-              xnzb = tempRes.data.xnzbcsl;
-            } else if (wpName === "雷家山风电场") {
-              xnzb = tempRes.data.xnzbljs;
-            }
-            xnzbdbfx.push({
-              wpName: `${xnzbdbfxIdx}.${wpName}`,
-              list: tempRes.data.xnzbdbfx[wpName],
-              xnzb,
-            });
-            xnzbdbfxIdx++;
-          }
+      const xnzbdbfx = [];
+      let xnzbdbfxIdx = 1;
+      for (let wpName in tempRes.data.xnzbdbfx) {
+        let xnzb = "";
+        if (wpName === "吉山梁风电场") {
+          xnzb = tempRes.data.xnzbjsl;
+        } else if (wpName === "左庄风电场") {
+          xnzb = tempRes.data.xnzbzz;
+        } else if (wpName === "新庄风电场") {
+          xnzb = tempRes.data.xnzbxz;
+        } else if (wpName === "繁食沟风电场") {
+          xnzb = tempRes.data.xnzbfsg;
+        } else if (wpName === "草山梁风电场") {
+          xnzb = tempRes.data.xnzbcsl;
+        } else if (wpName === "雷家山风电场") {
+          xnzb = tempRes.data.xnzbljs;
+        }
+        xnzbdbfx.push({
+          wpName: `${xnzbdbfxIdx}.${wpName}`,
+          list: tempRes.data.xnzbdbfx[wpName],
+          xnzb,
+        });
+        xnzbdbfxIdx++;
+      }
 
-          tempRes.data.xnzbdbfxlist = xnzbdbfx;
+      tempRes.data.xnzbdbfxlist = xnzbdbfx;
 
-          // 读取并获得模板文件的二进制内容
-          JSZipUtils.getBinaryContent(
-            `./static/windReport.docx`,
-            (error, content) => {
-              // 抛出异常
-              if (error) throw error;
-              // 创建一个JSZip实例,内容为模板的内容
-              let zip = new PizZip(content);
-              // 创建并加载docxtemplater实例对象
-              let doc = new Docxtemplater();
-              doc.loadZip(zip);
-              doc.setData(tempRes.data);
-              try {
-                // 用模板变量的值替换所有模板变量
-                doc.render();
-              } catch (error) {
-                // 抛出异常
-                let e = {
-                  message: error.message,
-                  name: error.name,
-                  stack: error.stack,
-                  properties: error.properties,
-                };
-                console.log(JSON.stringify({ error: e }));
-                throw error;
-              }
-              // 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
-              let out = doc.getZip().generate({
-                type: "blob",
-                mimeType:
-                  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
-              });
-              // 将目标文件对象保存为目标类型的文件,并命名
-              saveAs(out, `${tempRes.data.title.name}.docx`);
-            }
-          );
+      // 读取并获得模板文件的二进制内容
+      JSZipUtils.getBinaryContent(
+        `./static/windReport.docx`,
+        (error, content) => {
+          // 抛出异常
+          if (error) throw error;
+          // 创建一个JSZip实例,内容为模板的内容
+          let zip = new PizZip(content);
+          // 创建并加载docxtemplater实例对象
+          let doc = new Docxtemplater();
+          doc.loadZip(zip);
+          doc.setData(tempRes.data);
+          try {
+            // 用模板变量的值替换所有模板变量
+            doc.render();
+          } catch (error) {
+            // 抛出异常
+            let e = {
+              message: error.message,
+              name: error.name,
+              stack: error.stack,
+              properties: error.properties,
+            };
+            console.log(JSON.stringify({ error: e }));
+            throw error;
+          }
+          // 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
+          let out = doc.getZip().generate({
+            type: "blob",
+            mimeType:
+              "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
+          });
+          // 将目标文件对象保存为目标类型的文件,并命名
+          saveAs(out, `${tempRes.data.title.name}.docx`);
+        }
+      );
     },
     handleReportOp() {
       if (this.reportParamDate) {

+ 21 - 21
src/views/fdnlfx/report/index.vue

@@ -45,7 +45,7 @@
         </div>
       </div>
       <div class="main" :style="{ height: tableHeight }">
-        <div class="tableDataMain warn-table">
+        <div class="tableDataMain">
           <el-table :data="tableData" size="small">
             <el-table-column
               resizable
@@ -154,7 +154,7 @@
       >
         1、曲线偏差率
       </h3>
-      <div class="warn-table">
+      <div >
         <p class="ml-7">
           曲线偏差率对不同风速区间的实际功率和保证功率做偏差率分析,高偏差率表明存在需要进一步调查潜在问题,偏差率负值表明实际功率低于保证功率
         </p>
@@ -192,7 +192,7 @@
       >
         2、静态偏航对风
       </h3>
-      <div class="warn-table">
+      <div >
         <p class="ml-7">
           静态偏航对风指风机的叶片与风向之间的偏差,偏差角度过大表明对风存在问题,以下为5-10m风速区间的对风误差
         </p>
@@ -224,7 +224,7 @@
       >
         3、容量系数
       </h3>
-      <div class="warn-table">
+      <div >
         <p class="ml-7">
           容量系数是风机发电量能力的指标,数值越低,说明发电效率越低
         </p>
@@ -256,7 +256,7 @@
       >
         4、桨距角
       </h3>
-      <div class="warn-table">
+      <div >
         <p class="ml-7">
           桨距角分析并网开桨和停机收桨,并网状态下桨距角趋近于0度最优,停机状态下桨距角趋近于90度最优
         </p>
@@ -288,7 +288,7 @@
       >
         5、停机时间
       </h3>
-      <div class="warn-table">
+      <div >
         <p class="ml-7">
           小风速下停机时间越长反应出低风速风机切入不及时,暴风天气不停机反应出风机切出不及时
         </p>
@@ -486,7 +486,7 @@
       >
         月度
       </h3>
-      <div class="warn-table">
+      <div >
         <el-table
           class="toolSty"
           :data="fzylyxslistM"
@@ -534,7 +534,7 @@
       >
         年度
       </h3>
-      <div class="warn-table">
+      <div >
         <el-table
           class="toolSty"
           :data="fzylyxslistY"
@@ -588,7 +588,7 @@
       >
         月度
       </h3>
-      <div class="warn-table">
+      <div >
         <el-table
           class="toolSty"
           :data="dlcylistM"
@@ -618,7 +618,7 @@
       >
         年度
       </h3>
-      <div class="warn-table">
+      <div >
         <el-table
           class="toolSty"
           :data="dlcylistY"
@@ -732,7 +732,7 @@
       >
         3.五大损失电量分析
       </h3>
-      <div class="warn-table">
+      <div >
         <el-table
           class="toolSty"
           :data="wdssdlfx"
@@ -859,7 +859,7 @@
                 :style="!theme ? 'color: #fff' : 'color: #000'">
                 (4)受累损失电量分析
             </h3>
-            <div class="warn-table">
+            <div >
                 <el-table class="toolSty" :data="curve" border
                     style="width: 100%; margin: 10px 0">
                     <el-table-column prop="section" align="center" label="月份" />
@@ -928,7 +928,7 @@
       >
         4.各风场风机可利用率对比分析
       </h3>
-      <div class="warn-table">
+      <div >
         <el-table
           class="toolSty"
           :data="fjklyl"
@@ -992,7 +992,7 @@
       >
         5.能耗指标分析(风电)
       </h3>
-      <div class="warn-table">
+      <div >
         <el-table
           class="toolSty"
           :data="nhzbfxlist"
@@ -1047,7 +1047,7 @@
       >
         6.“两个细则”考核情况
       </h3>
-      <div class="warn-table">
+      <div >
         <el-table
           class="toolSty"
           :data="twoxize"
@@ -1094,7 +1094,7 @@
       >
         1.繁食沟风电场
       </h3>
-      <div class="warn-table">
+      <div >
         <el-table
           class="toolSty"
           :data="fanshigouXN"
@@ -1139,7 +1139,7 @@
       >
         2.草山梁风电场
       </h3>
-      <div class="warn-table">
+      <div >
         <el-table
           class="toolSty"
           :data="caoshaniangXN"
@@ -1184,7 +1184,7 @@
       >
         3.吉山梁风电场
       </h3>
-      <div class="warn-table">
+      <div >
         <el-table
           class="toolSty"
           :data="jishanliangXN"
@@ -1229,7 +1229,7 @@
       >
         4.左庄风电场
       </h3>
-      <div class="warn-table">
+      <div >
         <el-table
           class="toolSty"
           :data="zuozhuangXN"
@@ -1264,7 +1264,7 @@
       >
         5.新庄风电场
       </h3>
-      <div class="warn-table">
+      <div >
         <el-table
           class="toolSty"
           :data="xingzhuangXN"
@@ -1304,7 +1304,7 @@
       >
         6.雷家山风场
       </h3>
-      <div class="warn-table">
+      <div >
         <el-table
           class="toolSty"
           :data="leijiashanXN"

+ 1 - 1
src/views/fdnlfx/yhjyReport/index.vue

@@ -174,7 +174,7 @@
         >
           根据以上标准,对每台风机的运行数据及隐患问题信息进行分析,结果如下:
         </p>
-        <div class="warn-table">
+        <div >
           <el-table
             class="toolSty"
             :data="fjsxList1"