zhanghua
2023-02-23 6744fbb6d21ce3ac6b14e02c2f9da5ab984d6cba
案件池查询修改
4个文件已修改
136 ■■■■■ 已修改文件
src/components/seachHeader/index.vue 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/pool/index.vue 94 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/systemSetting/platform/cockpitManage/index.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/systemSetting/platform/cockpitManage/updateUser/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/seachHeader/index.vue
@@ -2,10 +2,16 @@
<div class="header">
  <el-form :inline="true" :model="seachData" class="demo-form-inline">
    <el-form-item label="事件编号">
      <el-input v-model="seachData.code" placeholder="事件编号"></el-input>
                <el-input
                    v-model="seachData.code"
                    placeholder="事件编号"
                ></el-input>
    </el-form-item>
    <el-form-item label="来源查询">
      <el-select v-model="seachData.resource" placeholder="请选择来源">
                <el-select
                    v-model="seachData.resource"
                    placeholder="请选择来源"
                >
        <el-option
            v-for="item in eventSourceOptions"
            :key="item.label"
@@ -16,20 +22,31 @@
      </el-select>
    </el-form-item>
    <el-form-item label="大类名称">
        <el-input v-model="seachData.categoryBig" placeholder="大类名称"></el-input>
                <el-input
                    v-model="seachData.categoryBig"
                    placeholder="大类名称"
                ></el-input>
    </el-form-item>
    <el-form-item label="小类名称">
        <el-input v-model="seachData.categorySmall" placeholder="小类名称"></el-input>
                <el-input
                    v-model="seachData.categorySmall"
                    placeholder="小类名称"
                ></el-input>
    </el-form-item>
    <el-form-item label="报警点位">
      <el-input v-model="seachData.site" placeholder="报警点位"></el-input>
                <el-input
                    v-model="seachData.site"
                    placeholder="报警点位"
                ></el-input>
    </el-form-item>
    <el-form-item label="所属区域">
      <el-cascader
          v-model="seachData.street"
          :options="communityOptions"
          :props="options"
          @change="handleChange"></el-cascader>
                    clearable
                    @change="handleChange"
                ></el-cascader>
    </el-form-item>
    <el-form-item label="报警时间">
      <el-date-picker
@@ -40,7 +57,8 @@
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          :picker-options="pickerOptions">
                    :picker-options="pickerOptions"
                >
      </el-date-picker>
    </el-form-item>
    <el-form-item>
@@ -109,7 +127,8 @@
            start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
            picker.$emit('pick', [start, end]);
          }
        }]},
                }]
            },
    }
  },
  created() {
@@ -140,8 +159,6 @@
    },
    getUserList(){
      console.log(this.seachData)
      // this.seachData.alarmTimeOne =this.seachData.alarmTime[0];
      // this.seachData.alarmTimeTwo = this.seachData.alarmTime[1];
      this.seachData.street=this.seachData.street?this.seachData.street[this.seachData.street.length-1]:null;
      this.$emit('getUserList', {seachData:this.seachData});
    },
src/views/operate/disposal/casepool/pool/index.vue
@@ -1,35 +1,10 @@
<template>
  <div class="userList">
    <header>
      <MyHeader @dialogCreatepro="dialogCreatepro" @getUserList ="getUserList"></MyHeader>
<!--      <div class="headerContent">-->
<!--        <div class="search">-->
<!--          <span>来源查询:</span>-->
<!--          <div class="option">-->
<!--            <el-select clearable v-model="resource" placeholder="请选择来源">-->
<!--              <el-option-->
<!--                v-for="item in eventSourceOptions"-->
<!--                :key="item.label"-->
<!--                :label="item.label"-->
<!--                :value="item.value"-->
<!--              >-->
<!--              </el-option>-->
<!--            </el-select>-->
<!--          </div>-->
<!--          <div class="findBtn">-->
<!--            <el-button type="primary" @click="getUserList">查询</el-button>-->
<!--          </div>-->
<!--        </div>-->
<!--        <div class="addUser">-->
<!--          <el-button-->
<!--            class="addBtn button-addition"-->
<!--            type="primary"-->
<!--            @click="dialogCreate = true"-->
<!--            >添加</el-button-->
<!--          >-->
<!--        </div>-->
<!--      </div>-->
            <MyHeader ref="myHeader"
                @dialogCreatepro="dialogCreatepro"
                @getUserList="getUserList"
            ></MyHeader>
    </header>
    <main>
      <div class="mainContent">
@@ -62,25 +37,36 @@
          :header-cell-style="{
            background: '#F5F5F5',
            'font-weight': '650',
            'line-height': '45px',
                        'line-height': '45px'
          }"
          :data="tableData"
          style="width: 100%"
          :row-class-name="tableRowClassName"
          @selection-change="tableChange"
        >
          <el-table-column type="selection" min-width="5"> </el-table-column>
          <el-table-column prop="code" label="事件编号" min-width="18">
                    <el-table-column type="selection" min-width="5">
                    </el-table-column>
                    <el-table-column
                        prop="code"
                        label="事件编号"
                        min-width="18"
                    >
            <template slot-scope="scope">
              <el-link @click="JumpView(scope.row)">{{
                scope.row.code
              }}</el-link>
            </template>
          </el-table-column>
          <el-table-column prop="eventSource" label="问题来源" min-width="8">
                    <el-table-column
                        prop="eventSource"
                        label="问题来源"
                        min-width="8"
                    >
            <template slot-scope="scope">
              <span>{{
                scope.row.eventSource === 2 ? "人工上传" : "视频巡查"
                                scope.row.eventSource === 2
                                    ? '人工上传'
                                    : '视频巡查'
              }}</span>
            </template>
          </el-table-column>
@@ -98,7 +84,9 @@
          </el-table-column>
          <el-table-column
            :prop="mystatus === 1 ? 'site' : ''"
            :label="mystatus === 1 ? '报警点位' : '违法建筑长、宽、高'"
                        :label="
                            mystatus === 1 ? '报警点位' : '违法建筑长、宽、高'
                        "
            :min-width="mystatus === 1 ? '10' : '20'"
            show-overflow-tooltip
          >
@@ -106,13 +94,13 @@
                <div v-if="mystatus === 2">
                <span>{{
                    scope.row.buildingLength +
                    "米" +
                    "、" +
                                    '米' +
                                    '、' +
                    scope.row.buildingWidth +
                    "米" +
                    "、" +
                                    '米' +
                                    '、' +
                    scope.row.buildingHigh +
                    "米"
                                    '米'
                  }}</span>
                </div>
                <div v-else>{{ scope.row.site }}</div>
@@ -140,16 +128,26 @@
            min-width="12"
          >
          </el-table-column>
          <el-table-column prop="operation" label="操作" min-width="20">
                    <el-table-column
                        prop="operation"
                        label="操作"
                        min-width="20"
                    >
            <template slot-scope="scope">
              <div class="operation" v-if="statusArr[0] === 0">
                <span @click="handleFind(scope.row)">上报</span>
                <span class="line">|</span>
                <span @click="handleDispatch(scope.row)">调度</span>
                                <span @click="handleDispatch(scope.row)"
                                    >调度</span
                                >
                <span class="line">|</span>
                <span @click="handleLearn(scope.row)">在学习</span>
                                <span @click="handleLearn(scope.row)"
                                    >在学习</span
                                >
                <span class="line">|</span>
                <span @click="handleNotDeal(scope.row)">暂不处理</span>
                                <span @click="handleNotDeal(scope.row)"
                                    >暂不处理</span
                                >
              </div>
              <div class="operation" v-else>
                <span @click="JumpView(scope.row)">查看</span>
@@ -464,8 +462,12 @@
          categorySmall:seachData.seachData.categorySmall ==undefined?null:seachData.seachData.categorySmall,
          site:seachData.seachData.site ==undefined?null:seachData.seachData.site,
          street:seachData.seachData.street ==undefined?null:seachData.seachData.street,
          alarmTime:seachData.seachData.alarmTime ==undefined?null:seachData.seachData.alarmTime,
        };
                if (seachData.seachData.alarmTime) {
                    params.startTime = seachData.seachData.alarmTime[0]
                    params.endTime = seachData.seachData.alarmTime[1]
                }
      }else {
        params = {
@@ -528,6 +530,7 @@
      this.statusArr[0] = this.tagList[idx].value;
      this.statusArr[1] = 1;
      this.getUserList();
            this.$refs.myHeader.seachData = {}
    },
    // 更改违规/违建
    changeTypeChecked(idx) {
@@ -537,6 +540,7 @@
      this.mystatus = idx + 1;
      this.statusArr[1] = this.typeList[idx].value;
      this.getUserList();
            this.$refs.myHeader.seachData = {}
    },
    async JumpView(data) {
      await this.getEventInfo(data.code);
src/views/systemSetting/platform/cockpitManage/index.vue
@@ -197,7 +197,7 @@
          <update-user
            @closeUpdateDialog="closeUpdateDialog()"
            :updateDepartmentData="updateDepartmentData"
            :isUpdate="dialogType === 'add'"
            :isUpdate="dialogType === 'update'"
          />
        </el-dialog>
@@ -344,6 +344,7 @@
    //修改
    showUpdateDialog(data) {
      this.dialogUpdate = true;
      this.dialogType = "update";
      this.updateDepartmentData = data;
    },
src/views/systemSetting/platform/cockpitManage/updateUser/index.vue
@@ -111,7 +111,7 @@
                  this.$message({ type: 'error', message: err });
                });
          } else {
            addTeam(this.depart)
            addTeam(this.updateData)
                .then(() => {
                  this.$message({ type: 'success', message: '操作成功' });
                  this.$emit('closeUpdateDialog');