烟花爆竹批发企业仓库安全风险监测前端
zhouwx
2025-04-16 489ba60990eeb2b11ff2522678630d8bc3764e71
src/views/firework/humiture/index.vue
@@ -16,37 +16,37 @@
          @pagination="getListAll"
      />
    </div>
    <!--    卡片部分-->
    <el-scrollbar max-height="420px" style="padding-right: 10px;overflow-x: hidden;" v-if="state.dataList && state.dataList.length >0">
<!--      <el-row :gutter="20" style="margin-top: 5px;margin-left: 5px">-->
<!--        <el-col v-for="(item,index) in state.dataList" :key="index" :span="8">-->
      <div class="grid-container">
        <div v-for="(item,index) in state.dataList" :key="index" style="width: 365px;margin: 20px 30px">
          <el-card class="card-item " shadow="always">
            <div style="display: flex;flex-direction: column">
              <div style="font-size: 18px;font-weight: 700;margin-bottom: 25px">{{item.storeName}}—{{item.storeroomName}}—{{item.deviceName}}</div>
              <div style="display: flex;align-items: center;margin-bottom: 15px">
                <img src="@/assets/images/device.png" />
                <div style="display: flex;flex-direction: column">
                  <div style="display: flex;justify-content: space-between;margin-bottom: 10px;align-items: center">
                    <span>温度:{{item.temperatureValue}}℃</span>
                    <el-button type="primary" plain style="margin-left: 15px" @click="openData('温度',item)">历史数据</el-button>
                  </div>
                  <div style="display: flex;justify-content: space-between;align-items: center">
                    <span>湿度:{{item.humidityValue}}%RH</span>
                    <el-button type="primary" plain style="margin-left: 15px" @click="openData('湿度',item)">历史数据</el-button>
    <div style=" border: 1px solid #ebeef5;border-radius: 15px;margin-top: 20px">
<!--      <span style="font-size: 18px;font-weight: 600;margin-left: 15px;margin-top: 10px"> 设备信息</span>-->
      <el-scrollbar max-height="420px" style="padding-right: 10px;overflow-x: hidden;" v-if="state.dataList && state.dataList.length >0">
        <div class="grid-container">
          <div v-for="(item,index) in state.dataList" :key="index" style="width: 365px;margin: 20px 30px">
            <el-card class="card-item " shadow="always">
              <div style="display: flex;flex-direction: column">
                <div style="font-size: 18px;font-weight: 700;margin-bottom: 25px">{{item.storeName}}—{{item.storeroomName}}—{{item.deviceName}}</div>
                <div style="display: flex;align-items: center;margin-bottom: 15px">
                  <img src="@/assets/images/device.png" />
                  <div style="display: flex;flex-direction: column">
                    <div style="display: flex;justify-content: space-between;margin-bottom: 10px;align-items: center">
                      <span>温度:{{item.temperatureValue}}℃</span>
                      <el-button type="primary" plain style="margin-left: 15px" @click="openData('温度',item)">历史数据</el-button>
                    </div>
                    <div style="display: flex;justify-content: space-between;align-items: center">
                      <span>湿度:{{item.humidityValue}}%RH</span>
                      <el-button type="primary" plain style="margin-left: 15px" @click="openData('湿度',item)">历史数据</el-button>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </el-card>
            </el-card>
          </div>
        </div>
      </div>
      </el-scrollbar>
      <el-empty v-else description="暂无设备数据" ></el-empty>
    </div>
    <!--    卡片部分-->
<!--        </el-col>-->
<!--      </el-row>-->
    </el-scrollbar>
    <el-empty v-else description="暂无设备数据" ></el-empty>
    <d-dialog ref="dialogRef" @getList="getListAll"></d-dialog>
  </div>
</template>
@@ -130,8 +130,9 @@
    grid-template-columns: repeat(auto-fill, minmax(385px, 1fr));
    gap: 0px;
    justify-content: start;
    padding: 15px;
    background: #f7f7f7;
    //padding: 15px;
    //background: #f7f7f7;
  }
  .title-font{
    display:flex;