whychdw
2024-11-01 fe988832c5c02986a63dbf8276b7d362d25107ee
修改平均图标
1个文件已修改
2个文件已添加
15 ■■■■ 已修改文件
src/components/icons/IconAvg.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/validate.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/test/ytjRtInfo.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/icons/IconAvg.vue
New file
@@ -0,0 +1,3 @@
<template>
  <svg t="1730427771269" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1645" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><path d="M291.78083555 465.58776889l160.11719112-27.60704c29.07249778 45.63854222 49.57070222 95.80088889 61.49461333 150.54165333 29.95541333-44.34602667 52.62904889-75.42101333 67.90257778-93.15214222 20.56192-23.84782222 37.41923555-39.35800889 50.74488889-46.57607111a88.03669333 88.03669333 0 0 1 42.40725333-10.74972444c16.85731555 0 29.78247111 4.57841778 38.76636445 13.74435555 9.04760889 9.16593778 13.50769778 21.55406222 13.50769777 37.18257778 0 14.68188445-4.46008889 26.66951111-13.50769777 36.00839111a44.96497778 44.96497778 0 0 1-33.71463112 14.03562666c-9.81219555 0-21.02613333-1.76583111-33.71463111-5.2883911a118.99335111 118.99335111 0 0 0-26.43285333-5.28839112 58.39075555 58.39075555 0 0 0-36.65464889 13.74435556c-15.91978667 12.57016889-35.48046222 39.35800889-58.73664 80.29070222 25.95953778 91.80501333 46.81272889 147.78368 62.37752889 167.99061334 9.16593778 11.92391111 18.50481778 17.91317333 28.01664 17.91317333a35.59879111 35.59879111 0 0 0 20.61653333-5.98926223c8.86556445-6.46257778 22.49159111-22.49159111 40.87808-48.15985777l16.44771556 9.63015111c-26.84245333 43.46311111-53.15697778 74.01016889-78.87985778 91.7504-19.56067555 13.79896889-38.82097778 20.67114667-57.79911111 20.67114666-19.61528889 0-35.82634667-4.35086222-48.86983111-13.09809777-13.04348445-8.69262222-24.54869333-22.91029333-34.65216-42.64391111-10.10346667-19.73361778-22.02737778-51.33653333-35.82634667-94.79964445-35.77173333 45.58392889-63.84298667 78.87985778-84.16824889 99.85137778-20.32526222 20.90780445-37.23719111 34.65216-50.69027555 41.06012445-13.50769778 6.46257778-27.84369778 9.63015111-43.17184 9.6301511-15.85607111 0-28.48995555-4.57841778-37.82883556-13.79896888a47.96871111 47.96871111 0 0 1-14.03562666-35.77173334c0-15.61941333 5.05173333-28.42624 15.1552-38.52970666a52.21944889 52.21944889 0 0 1 38.59342222-15.1552c8.21930667 0 17.55818667 2.46670222 27.96202666 7.34549333 15.27352889 7.34549333 26.31452445 10.98638222 33.06837334 10.98638222a50.89052445 50.89052445 0 0 0 23.84782222-5.46133333c9.16593778-4.57841778 20.78947555-14.56355555 34.88881778-29.83708444 8.51968-9.51182222 24.32113778-29.66414222 47.22232888-60.55708445-29.36376889-108.9536-52.27406222-174.09820445-68.84010666-195.53393778-10.39473778-13.74435555-23.49283555-20.61653333-39.41262222-20.61653333-8.28302222 0-18.38648889 1.17418667-30.3104 3.64088889l3.23128888-17.40344889zM90.26673778 172.18673778h839.34321777v59.67416889H90.26673778v-59.67416889z" p-id="1646"></path></svg>
</template>
src/utils/validate.js
New file
@@ -0,0 +1,7 @@
/**
 * @param {string} path
 * @returns {Boolean}
 */
export function isExternal(path) {
    return /^(https?:|mailto:|tel:)/.test(path);
}
src/views/test/ytjRtInfo.vue
@@ -8,6 +8,7 @@
import getPowerByUI from "@/assets/js/tools/getPowerByUI.js";
import toFixed from "@/assets/js/tools/toFixed.js";
import const_digits from "@/assets/js/const/const_digits";
import IconAvg from "@/components/icons/IconAvg.vue";
const { VOL, GROUPVOL, CURR_YT, CURR_JH } = const_digits;
const infoTab = ref(0);
@@ -130,7 +131,7 @@
              </div>
            </div>
            <div class="item">
              <div class="label">ΔU</div>
              <div class="label"><el-icon><icon-avg class="avg-icon" /></el-icon>U</div>
              <div class="value">{{ toFixed(rtDatas.devStates.avgMonVol, VOL) }}V</div>
            </div>
            <div class="item-big">
@@ -187,7 +188,7 @@
              </div>
            </div>
            <div class="item">
              <div class="label">ΔT</div>
              <div class="label"><el-icon><icon-avg class="avg-icon" /></el-icon>T</div>
              <div class="value">{{ rtDatas.devStates.avgMonTmp }}℃</div>
            </div>
          </div>