ll
liukangdong
2025-03-11 6ea077ecfd9c3ed956570692600e7e55796c9bfe
screen/src/views/TaskEfficiency.vue
@@ -65,7 +65,7 @@
            <div class="list one-swiper">
              <div class="swiper-wrapper">
                <div class="line one-swiper-slide swiper-slide" v-for="item, i in dataList2" :key="i">
                  <div class="top"><span v-if="i < 3">top</span>{{ i + 1 }}</div>
                  <div class="top" :class="{ top3: i < 3 }"><span v-if="i < 3">top</span>{{ i + 1 }}</div>
                  <div class="id_card">{{ item.platformName }}</div>
                  <div class="wrap">
                    <ChargeRate :rate="item.rate" />
@@ -99,7 +99,7 @@
              <div class="item">
                <div class="name">月台数量</div>
                <div v-if="data4.platformTotal || data4.platformTotal == 0" class="nums">
                  <div class="num" v-for="n, i in formatNum3(data4.platformTotal) " :key="i">{{ n }}</div>
                  <div class="num" v-for="n, i in formatNum3(data4.platformTotal)" :key="i">{{ n }}</div>
                </div>
              </div>
              <div class="item">
@@ -163,12 +163,12 @@
                <div class="val">{{ workModalParam.finishTimeStr }}</div>
              </div>
            </div>
            <div class="modal_bg" v-if="showWorkModal" @click="showWorkModal = false"></div>
            <div class="modal_bg" v-if="showWorkModal" @click="closeModal"></div>
          </div>
          <div class="center_box_two">
            <div v-if="data4.videoIndexCodes && data4.videoIndexCodes.length > 0" class="videos">
            <!-- <div v-if="data4.videoIndexCodes && data4.videoIndexCodes.length > 0" class="videos">
              <Videos :href="data4.videoPluginUrl" :indexCodes="data4.videoIndexCodes" />
            </div>
            </div> -->
            <div class="list">
              <div class="line header">
                <div>月台名称</div>
@@ -342,6 +342,18 @@
        label: {
          show: false,
          position: 'center'
        },
        tooltip: {
          trigger: 'none'
        },
        emphasis: {
          // 设置悬浮时样式为空
          scale: false, // 关闭放大效果
          itemStyle: {
            shadowBlur: 0, // 阴影模糊度为 0
            shadowOffsetX: 0,
            shadowColor: 'rgba(0, 0, 0, 0)',
          },
        },
        padAngle: 2,
        itemStyle: {
@@ -692,12 +704,12 @@
    dataList2.value = result.map(item => {
      if (item.workTotalTime) {
        if (item.workTotalTime > 60) {
          item.workTotalTimeT = (item.workTotalTime / 60).toFixed(0) + '小时' + item.workTotalTime % 60 + '分钟'
          item.workTotalTimeT = Math.floor(item.workTotalTime / 60) + '小时' + item.workTotalTime % 60 + '分钟'
        } else {
          item.workTotalTimeT = item.workTotalTime + '分钟'
        }
      }
      item.rate = ((item.workTotalTime / count) * 30).toFixed(0)
      item.rate = Math.floor((item.workTotalTime / count) * 30)
      return item
    })
  })
@@ -755,7 +767,6 @@
      i.finishTime = dayjs(i.finishTime).format('HH:mm')
      return i
    })
    console.log('dataList5', dataList5.value)
  })
}
@@ -801,7 +812,15 @@
const platformClick = (val) => {
  const index = pointList.findIndex(i => i.name == val.platformName)
  workModalParam.value = { ...val, ...pointList[index], index: pointList }
  if (workModalParam.value.workTime) {
    workModalParam.value.workTime = workModalParam.value.workTime.replaceAll('m', '分钟')
    workModalParam.value.workTime = workModalParam.value.workTime.replaceAll('h', '小时')
  }
  showWorkModal.value = true
}
const closeModal = () => {
  showWorkModal.value = false
  workModalParam.value = {}
}
const loopFn2 = () => {
  var newSwiper1 = new Swiper('.one-swiper', {
@@ -1003,6 +1022,10 @@
            margin-right: 10px;
          }
          .top3 {
            box-shadow: inset 0px 0px 3px 0px #FEAF01;
          }
          .one-swiper-slide {
            height: 40px !important;
          }
@@ -1020,11 +1043,14 @@
          .num {
            font-weight: 500;
            width: 82px;
            width: 88px;
            text-align: right;
            font-size: 13px;
            color: #DBEAEA;
            margin-left: 2px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
          .wrap {
@@ -1131,6 +1157,7 @@
        padding: 22px 20px;
        left: 850px;
        top: 60px;
        z-index: 99999999;
        .head {
          display: flex;