| | |
| | | <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"> |
| | |
| | | :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> |
| | |
| | | </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 |
| | | > |
| | |
| | | <div v-if="mystatus === 2"> |
| | | <span>{{ |
| | | scope.row.buildingLength + |
| | | "米" + |
| | | "、" + |
| | | '米' + |
| | | '、' + |
| | | scope.row.buildingWidth + |
| | | "米" + |
| | | "、" + |
| | | '米' + |
| | | '、' + |
| | | scope.row.buildingHigh + |
| | | "米" |
| | | '米' |
| | | }}</span> |
| | | </div> |
| | | <div v-else>{{ scope.row.site }}</div> |
| | |
| | | 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> |
| | |
| | | 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 = { |
| | |
| | | this.statusArr[0] = this.tagList[idx].value; |
| | | this.statusArr[1] = 1; |
| | | this.getUserList(); |
| | | this.$refs.myHeader.seachData = {} |
| | | }, |
| | | // 更改违规/违建 |
| | | changeTypeChecked(idx) { |
| | |
| | | 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); |