智慧园区前端大屏
linwe
2024-12-02 245e1d7a88410726a49b2715b400dd52be497378
Merge remote-tracking branch 'origin/main'
2 files modified
49 ■■■■ changed files
src/views/companyInfo/components/box/fireTrend.vue 41 ●●●● patch | view | raw | blame | history
src/views/companyInfo/components/rightContainer.vue 8 ●●●● patch | view | raw | blame | history
src/views/companyInfo/components/box/fireTrend.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2023-03-13 14:54:26
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-28 19:28:35
 * @LastEditTime: 2024-12-02 21:23:17
 * @FilePath: \bigScreen\src\views\companyInfo\components\box\fireTrend.vue
 * @Description:
 *
@@ -17,7 +17,8 @@
let image = ref(VITE_APP_BASE + 'img/mapicon/yjwz.png')
const TableContent = ref(null)
const curTableHeight = ref(0)
const loading = ref(false)
const tableData = ref([])
@@ -32,20 +33,11 @@
})
onMounted(() => {
  curTableHeight.value = TableContent.value.offsetHeight
  data.companyInfo = JSON.parse(localStorage.getItem('companyInfo'))
  getLists()
})
// 表格样式
const tableCellStyle = ({ row, column }) => {
  return { background: "#152851", color: "#fff" }
}
// 表格表头样式
const headerCellStyle = ({ }) => {
  return {
    background: "#152851",
    color: "#fff",
  }
}
// 搜索条件
const formInline = reactive({
  name: "",
@@ -191,7 +183,7 @@
</script>
<template>
  <div class="search-box w100 h100">
  <div class="search-box w100 h100 flex f-d-c">
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <el-form-item label="" class="form-item-input">
        <el-input v-model="formInline.name" placeholder="请输入名称" clearable style="width: 120px" />
@@ -201,11 +193,11 @@
        <el-button class="reset-btn" :icon="Refresh" @click="clearBtn">重 置</el-button>
      </el-form-item>
    </el-form>
    <!-- <global-search :options="options" @searchBtn="searchBtn" @resetBtn="resetBtn" ref="SeachBarCondition"></global-search> -->
    <div class="table-box">
    <div class="table-box h0 flex-1" ref="TableContent">
      <el-table empty-text="暂无数据" border :data="tableData" @row-click="rowClick" style="width: 100%"
        :header-cell-style="headerCellStyle" :cell-style="tableCellStyle"
        element-loading-background="rgba(122, 122, 122, 0.1)">
        element-loading-background="rgba(122, 122, 122, 0.1)" :height="curTableHeight">
        <el-table-column prop="name" label="名称" width="240" />
        <el-table-column prop="numUnit" label="数量" />
        <el-table-column prop="personInCha" label="负责人" />
@@ -225,25 +217,10 @@
  color: #fff !important;
}
.search-box {
  padding: 10px;
  ::v-deep .el-table__body-wrapper {
    background-color: #152851;
  }
}
.reset-btn {
  color: #D4E8F8;
  background: #43779B;
  border-color: #43779B;
}
.search-box .table-box {
  height: 700px;
  overflow: scroll;
  // 隐藏滚动条
  scrollbar-width: none;
}
/* 当表格没有数据时,修改表格的背景颜色 */
src/views/companyInfo/components/rightContainer.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2023-03-10 15:27:59
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-08 12:25:35
 * @LastEditTime: 2024-12-02 21:15:44
 * @FilePath: \bigScreen\src\views\companyInfo\components\rightContainer.vue
 * @Description: 
 * 
@@ -29,7 +29,7 @@
<template>
  <div class="right-container">
    <div class="fire-source box" v-if="state.buttonIndex == 1">
    <div class="fire-source box h100" v-if="state.buttonIndex == 1">
      <title-box>
        <template #titleName>
          企业信息
@@ -40,10 +40,10 @@
      </div>
    </div>
    <div class="occur-statistics box" v-if="state.buttonIndex == 2">
    <div class="occur-statistics box h100" v-if="state.buttonIndex == 2">
      <title-box>
        <template #titleName>
          应急物质
          应急物资
        </template>
      </title-box>
      <div class="content-box">