| | |
| | | </el-dialog> |
| | | <!-- 事件登记 --> |
| | | <el-dialog :before-close="handleClose" :visible.sync="dialogNewAdd" |
| | | :title="newAddType === 0 ? '违规事件登记' : '违建事件登记' " width="60%" v-if="dialogNewAdd"> |
| | | :title="newAddType === 0 ? '违规事件登记' : '违建事件登记' " width="80%" v-if="dialogNewAdd"> |
| | | <!-- 违建登记 --> |
| | | <MyIll v-if="newAddType === 1" :refresh="getUserList" :mytype=newAddType |
| | | @changeDialog=changeDialog /> |
| | | <!-- 违规登记 --> |
| | | <myVio v-else :mytype=newAddType @changeDialog=changeDialog :refresh="getUserList" /> |
| | | <myVio v-else :refresh="getUserList" :mytype=newAddType @changeDialog=changeDialog /> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | |
| | | @selection-change="tableChange"> |
| | | <el-table-column type="selection" min-width="5"> |
| | | </el-table-column> |
| | | <el-table-column prop="code" label="事件编号" min-width="10"> |
| | | <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="10"> |
| | | <el-table-column prop="eventSource" label="问题来源" min-width="8"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.row.eventSource === 2 ? '人工上报' : '视频上传'}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="category" label="大类名称" min-width="10"> |
| | | <el-table-column :prop="mystatus === 1 ? 'category' :'category'" |
| | | :label="mystatus===1 ? '大类名称' : '违建类别'" :min-width="mystatus===1?'10':'15'"> |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="小类名称" min-width="10"> |
| | | <el-table-column :prop="mystatus === 1 ? 'type' :'site'" :label="mystatus===1 ? '小类名称' : '违建地点'" |
| | | min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="actionCause" label="案由" min-width="10"> |
| | | <!-- <el-table-column :prop="mystatus === 1 ? 'actionCause' :'communityId'" |
| | | :label="mystatus===1 ? '案由' : '所属社区'" min-width="10"> |
| | | </el-table-column> --> |
| | | <el-table-column :prop="mystatus === 1 ? 'site' :''" :label="mystatus===1 ? '报警点位' : '违法建筑长、宽、高'" |
| | | :min-width="mystatus===1?'10' :'20' "> |
| | | <template slot-scope="scope"> |
| | | <div v-if="mystatus ===2"><span>{{scope.row.buildingLength+'米'+'、'+ |
| | | scope.row.buildingWidth+'米'+'、'+scope.row.buildingHigh+'米'}}</span></div> |
| | | <div v-else>{{scope.row.site}}</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="site" label="报警点位" min-width="10"> |
| | | <el-table-column :prop="mystatus === 1 ? 'street' :'buildingArea'" |
| | | :label="mystatus===1 ? '所属区域' : '违法建筑面积'" min-width="12"> |
| | | </el-table-column> |
| | | <el-table-column prop="streetId" label="所属区域" min-width="10"> |
| | | <el-table-column prop="alarmTime" label="报警时间" min-width="15" v-if="mystatus===1"> |
| | | <template slot-scope="scope"> |
| | | <span>{{filterTime(scope.row.alarmTime)}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="alarmTime" label="报警时间" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="continueTime" label="持续时间" min-width="10"> |
| | | <el-table-column :prop="mystatus === 1 ? 'continueTime' :'materials'" |
| | | :label="mystatus===1 ? '持续时间' : '违法建筑材料'" min-width="12"> |
| | | </el-table-column> |
| | | <el-table-column prop="operation" label="操作" min-width="20"> |
| | | <template slot-scope="scope"> |
| | | <div class="operation"> |
| | | <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 class="line">|</span> |
| | | <span @click="handleNotDeal(scope.row)">暂不处理</span> |
| | | </div> |
| | | <div class="operation" v-else> |
| | | <span @click="JumpView(scope.row)">查看</span> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- 详情页展示 --> |
| | | <el-dialog :visible.sync="dialogView" width="80%" title="基础信息(人工)" v-if="dialogView" |
| | | :before-close="handleClose"> |
| | | <MyDetail :info=info></MyDetail> |
| | | <MyDetail :info=info v-if="mystatus==1 ? true:false"></MyDetail> |
| | | <MyIllDetail :info=info v-else></MyIllDetail> |
| | | </el-dialog> |
| | | <!-- 调度 --> |
| | | <el-dialog :visible.sync="dialogDispatch" width="80%" title="调度信息" v-if="dialogDispatch" |
| | | :before-close="handleClose"> |
| | | <MyDispatch :id="baseId" @changeDialog="changeDialog" :refresh="getUserList"></MyDispatch> |
| | | <MyDispatch :id="baseId" :mytype="mystatus" @changeDialog="changeDialog" :refresh="getUserList"> |
| | | </MyDispatch> |
| | | </el-dialog> |
| | | <!-- tools --> |
| | | <div class="tools"> |
| | | <div class="funs"> |
| | | <div class="funsItem"> |
| | | <el-checkbox v-model="all" @change="selectAll()" :disabled="tableData.length !== 0 ? false : true">全选</el-checkbox> |
| | | <div class="funsItem funs-sp"> |
| | | <el-checkbox v-model="all" @change="selectAll()" |
| | | :disabled="tableData.length !== 0 ? false : true">全选</el-checkbox> |
| | | </div> |
| | | <div class="funsItem"> |
| | | <div class="funsItem funs-sp"> |
| | | <el-checkbox v-model="unsame" @change="disSame(tableData)">反选</el-checkbox> |
| | | </div> |
| | | <div class="funsItem"> |
| | | <el-select v-model="myIdx" placeholder="批量操作" @change="selectChange"> |
| | | <el-select v-model="myIdx" placeholder="批量操作" @change="selectChange" disabled> |
| | | <el-option v-for="item in options" :key="item.value" :label="item.label" |
| | | :value="item.value" :disabled="item.disabled"> |
| | | </el-option> |
| | |
| | | </template> |
| | | <script> |
| | | import MyDetail from '@/components/detail' |
| | | import MyIllDetail from '@/components/illdetail' |
| | | import createUser from "./createUser" |
| | | import MyIll from './createUser/ill' |
| | | import MyVio from './createUser/vio' |
| | | import MyDispatch from '@/components/dispatch' |
| | | import helper from '@/utils/mydate' |
| | | export default { |
| | | components: { |
| | | createUser, MyIll, MyVio, MyDetail, MyDispatch |
| | | createUser, MyIll, MyVio, MyDetail, MyDispatch, MyIllDetail |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | checked: false, |
| | | }, |
| | | ], |
| | | mystatus: '', |
| | | mystatus: 1, |
| | | statusArr: [], |
| | | baseId: 0 |
| | | |
| | |
| | | item.checked = false; |
| | | } |
| | | }) |
| | | this.mystatus = 1 |
| | | this.typeList[0].checked = true; |
| | | this.typeList[1].checked = false; |
| | | this.statusArr[0] = this.tagList[idx].value; |
| | |
| | | url: `sccg/base_case/baseCaseDetail/${code}` |
| | | }) |
| | | .then(res => { |
| | | console.log(res); |
| | | this.info = res.data; |
| | | this.dialogView = true; |
| | | }) |
| | |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | // 处理时间 |
| | | filterTime(time) { |
| | | return helper(time); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | &::v-deep .el-input__inner { |
| | | background-color: #09152f; |
| | | border: 1px solid #17324c; |
| | | } |
| | | |
| | | main { |
| | | background-color: #09152f; |
| | | margin-top: 20px; |
| | |
| | | .funs { |
| | | display: flex; |
| | | |
| | | .funs-sp { |
| | | border: 1px solid #17324c; |
| | | } |
| | | |
| | | .funsItem { |
| | | line-height: 28px; |
| | | display: flex; |
| | | align-items: center; |
| | | border: 1px solid #17324c; |
| | | border-radius: 4px; |
| | | font-size: 12px; |
| | | margin-left: 10px; |
| | |
| | | |
| | | .el-select { |
| | | width: 120px; |
| | | } |
| | | |
| | | &::v-deep .el-input__inner { |
| | | border: none; |
| | | background-color: #09152f; |
| | | } |
| | | |
| | | &:hover { |
| | |
| | | overflow: hidden; |
| | | } |
| | | |
| | | &::v-deep .el-table__empty-block { |
| | | background-color: #09152f; |
| | | } |
| | | |
| | | &::v-deep .el-table__empty-block { |
| | | color: #4b9bb7; |
| | | } |
| | | |
| | | .operation { |
| | | display: flex; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | .el-table::v-deep .warning-row { |
| | | background: #06122c; |
| | | } |
| | | |
| | | .el-table::v-deep .success-row { |
| | | background: #071f39; |
| | | } |
| | | } |
| | | |
| | | &::v-deep .el-dialog__header, |
| | | &::v-deep .el-dialog__body { |
| | | background-color: #06122c; |
| | | } |
| | | |
| | | &::v-deep .el-dialog__header { |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #fff; |
| | | padding: 20px; |
| | | line-height: 60px; |
| | | } |
| | | |
| | | &::v-deep .el-dialog__title { |
| | | color: #4b9bb7; |
| | | } |
| | | |
| | | &::v-deep .el-dialog__close { |
| | | width: 20px; |
| | | height: 20px; |
| | | // color: #fff; |
| | | } |
| | | |
| | | &::v-deep .el-dialog__body { |
| | | padding: 0; |
| | | } |
| | | } |
| | | </style> |