“dzb”
2022-11-03 70f7331e5029ffb8d229f1b37fd81f73321dab89
违规检索
2个文件已修改
358 ■■■■■ 已修改文件
src/views/intelligentPatrol/illegalSearch/index.vue 355 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/layout/components/Main/index.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/intelligentPatrol/illegalSearch/index.vue
@@ -1,15 +1,364 @@
<template>
  <div class="illegal-search">
    <header>
      <div class="headerContent">
        <!-- 条件筛选 -->
        <el-form ref="condition" :model="form" label-width="100px">
          <el-form-item :label=item.label :key=item.id v-for="item in headerList">
            <el-input v-model="item.value" :placeholder="item.placeholder"></el-input>
          </el-form-item>
        </el-form>
      </div>
    </header>
    <main>
      <div class="mainContent">
        <!-- 按钮区域 -->
        <div class="main-btns">
          <div class="main-btns-left">
            <el-button icon="el-icon-download">下载图片</el-button>
            <el-button icon="el-icon-folder">导出</el-button>
          </div>
          <div class="main-btns-right">
            <el-button icon="el-icon-search">查询</el-button>
            <el-button icon="el-icon-delete-solid" @click="handleReset">重置</el-button>
          </div>
        </div>
        <!-- 数据展示 -->
        <el-table ref="multipleTable"
          :header-cell-style="{ background: '#06122c', 'font-size': '12px', color: '#4b9bb7', 'font-weight': '650', 'line-height': '45px' }"
          :data="tableData" style="width: 100%" :row-class-name="tableRowClassName">
          <el-table-column type="selection" min-width="5">
          </el-table-column>
          <el-table-column prop="number" label="事件编号" min-width="10">
          </el-table-column>
          <el-table-column prop="type" label="违规类型" min-width="10">
          </el-table-column>
          <el-table-column prop="source" label="事件来源" min-width="10">
          </el-table-column>
          <el-table-column prop="level" label="事件等级" min-width="10">
          </el-table-column>
          <el-table-column prop="point" label="报警点位" min-width="10">
          </el-table-column>
          <el-table-column prop="org" label="所属组织" min-width="10">
          </el-table-column>
          <el-table-column prop="alarmTime" label="报警时间" min-width="12">
          </el-table-column>
          <el-table-column prop="continueTime" label="持续时间" min-width="12">
          </el-table-column>
          <el-table-column prop="carNumber" label="车牌号码" min-width="10">
          </el-table-column>
          <el-table-column prop="state" label="审核状态" min-width="10">
          </el-table-column>
          <el-table-column prop="advice" label="处理意见" min-width="10">
          </el-table-column>
          <el-table-column prop="operation" label="操作" min-width="15">
            <template slot-scope="scope">
              <div class="operation">
                <span>查看</span>
              </div>
            </template>
          </el-table-column>
        </el-table>
      </div>
    </main>
  </div>
</template>
<script>
import helper from "@/utils/mydate.js"
export default {
  components: {
  },
  data() {
    return {
      tableData: [
        {
          number: '123456',
          type: '人民路右二',
          source: '视频上报',
          level: '一般事件',
          point: '123.123,123.233',
          org: '人民部',
          alarmTime: '2022-02-12 12:00:00',
          continueTime: '2小时30分钟06秒',
          carNumber: '浙B245CM',
          state: '待审核',
          advice: '需及时处理'
        },
        {
          number: '123457',
          type: '人民路左二',
          source: '视频上报',
          level: '高发事件',
          point: '123.123,123.233',
          org: '人民部',
          alarmTime: '2022-02-12 12:00:00',
          continueTime: '2小时30分钟06秒',
          carNumber: '浙B245CM',
          state: '待审核',
          advice: '需及时处理'
        },
        {
          number: '123458',
          type: '人寿路右二',
          source: '视频上报',
          level: '一般事件',
          point: '123.123,123.233',
          org: '人民部',
          alarmTime: '2022-02-12 12:00:00',
          continueTime: '2小时30分钟06秒',
          carNumber: '浙B245CM',
          state: '待审核',
          advice: '需及时处理'
        },
        {
          number: '123459',
          type: '人民路右二',
          source: '视频上报',
          level: '一般事件',
          point: '123.123,123.233',
          org: '人民部',
          alarmTime: '2022-02-12 12:00:00',
          continueTime: '2小时30分钟06秒',
          carNumber: '浙B245CM',
          state: '待审核',
          advice: '需及时处理'
        },
        {
          number: '123460',
          type: '人民路右二',
          source: '视频上报',
          level: '一般事件',
          point: '123.123,123.233',
          org: '人民部',
          alarmTime: '2022-02-12 12:00:00',
          continueTime: '2小时30分钟06秒',
          carNumber: '浙B245CM',
          state: '待审核',
          advice: '需及时处理'
        }
      ],
      context: "",
      dialogView: false,
      userInfo: '',
      headerList: [
        {
          id: 1,
          label: '所属组织:',
          value: '',
          placeholder: '请输入所属组织'
        },
        {
          id: 2,
          label: '报警时间:',
          value: '',
          placeholder: '请输入报警时间'
        },
        {
          id: 3,
          label: '违规类型:',
          value: '',
          placeholder: '请输入违规类型'
        },
        {
          id: 4,
          label: '事件编号:',
          value: '',
          placeholder: '请输入事件编号'
        },
        {
          id: 5,
          label: '监控点名称:',
          value: '',
          placeholder: '请输入监控点名称'
        },
        {
          id: 6,
          label: '审核状态:',
          value: '',
          placeholder: '请输入审核状态'
        },
        {
          id: 7,
          label: '车牌号:',
          value: '',
          placeholder: '请输入车牌号'
        },
        {
          id: 8,
          label: '处理意见:',
          value: '',
          placeholder: '请输入事件等级'
        },
        {
          id: 9,
          label: '报警时间:',
          value: '',
          placeholder: '请输入所属组织'
        },
      ],
      form:{
      }
    }
  },
  created() {
  },
  methods: {
    changeTime({ createTime }) {
      return helper(createTime);
    },
    // 设置表格斑马纹
    tableRowClassName({ row, rowIndex }) {
      if ((rowIndex + 1) % 2 == 0) {
        return 'warning-row';
      } else {
        return 'success-row';
      }
      return '';
    },
    // 表单重置
    handleReset(){
      this.headerList.forEach(item=>{
        item.value = ''
      })
    }
  }
}
</script>
<style lang="scss" scoped>
.illegal-search {
  text-align: left;
  margin: 10px 20px;
  color: #4b9bb7;
<style>
  header {
    background-color: #09152f;
    border: 1pox solid #fff;
    .headerContent {
      padding: 20px 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      ::v-deep .el-form{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        .el-form-item{
          width: 30%;
        }
        .el-form-item__label{
          color: #4b9bb7;
        }
      }
    }
  }
  main {
    background-color: #09152f;
    margin-top: 20px;
    padding-bottom: 50px;
    border: 1pox solid #fff;
    .mainTitle {
      line-height: 60px;
    }
    .main-btns{
      display: flex;
      justify-content: space-between;
      line-height: 60px;
      padding: 0 20px;
      .el-button{
        background-color: #17324c;
        border: 1px solid #17324c;
        color: #4b9bb7;
      }
    }
    .tools {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 20px;
      .funs-sp {
        border: 1px solid #17324c;
      }
      .funs {
        display: flex;
        .funsItem {
          line-height: 28px;
          display: flex;
          align-items: center;
          border-radius: 4px;
          font-size: 12px;
          margin-left: 10px;
          .el-checkbox {
            width: 80px;
            padding: 0 10px;
          }
          .el-select {
            width: 120px;
          }
          &::v-deep .el-input__inner {
            border: none;
            background-color: #09152f;
          }
          &:hover {
            border: 1px solid #4b9bb7;
          }
          &:hover .el-checkbox {
            color: #4b9bb7;
          }
        }
      }
      .pagination {
        margin-top: 50px;
        display: flex;
        line-height: 50px;
        justify-content: center;
        .el-pagination {
          &::v-deep li,
          &::v-deep .btn-prev,
          &::v-deep .btn-next {
            background-color: #071f39;
            color: #4b9bb7;
          }
          &::v-deep .active {
            background-color: #409eff;
            color: #fff;
          }
        }
      }
    }
    .el-table {
      color: #4b9bb7;
      font-size: 10px;
      .operation {
        display: flex;
        .line {
          padding: 0 5px;
        }
        span:hover {
          cursor: pointer;
        }
      }
    }
  }
}
</style>
src/views/layout/components/Main/index.vue
@@ -3,7 +3,8 @@
    <!-- <NavBar /> -->
    <div class="content">
      <!-- 页面导航区域 -->
      <div class="page-nav" v-if="navFlag"></div>
      <div class="page-nav" v-if="navFlag">
      </div>
      <router-view v-else></router-view>
      <!-- 底部区域 -->
      <!-- <MyFooter/> -->