| | |
| | | <!-- <span>{{ currentEvent.address }}</span>--> |
| | | <!-- </div>--> |
| | | <span |
| | | >您有{{ countData.review }}条待审核报警信息,今日立案{{ |
| | | >您有{{ countData.review }}条待审核报警信息,今日立案{{ |
| | | countData.register |
| | | }}条,再学习{{ countData.study }}条</span |
| | | > |
| | | <div class="sjm-header-left"> |
| | | <span class="moni-name">监控点位名称: {{ currentEvent.name }} </span> |
| | | <span class="moni-name" |
| | | >监控点位名称: {{ currentEvent.name }} |
| | | </span> |
| | | <span class="moni-area">{{ currentEvent.street }}</span> |
| | | <span>{{ currentEvent.address }}</span> |
| | | </div> |
| | | <div |
| | | class="img-item" |
| | | v-for="(item, index) in imageList" |
| | | :key="item.id" |
| | | class="img-item" |
| | | v-for="(item, index) in imageList" |
| | | :key="item.id" |
| | | > |
| | | <span>报警图片</span> |
| | | <img :src="item" /> |
| | | <span v-if="index === 0" |
| | | >报警时间:{{ currentEvent.alarmTime }}</span |
| | | >报警时间:{{ currentEvent.alarmTime }}</span |
| | | > |
| | | </div> |
| | | <div class="img-item" v-for="item in imageList" :key="item.id"> |
| | | <img :src="item" /> |
| | | </div> |
| | | <el-form |
| | | ref="currentEvent" |
| | | label-width="120px" |
| | | :model="eventInfoData" |
| | | :rules="rules" |
| | | label-position="left" |
| | | class="left-form"> |
| | | ref="currentEvent" |
| | | label-width="120px" |
| | | :model="eventInfoData" |
| | | :rules="rules" |
| | | label-position="left" |
| | | class="left-form" |
| | | > |
| | | <el-form-item label="事件编号:"> |
| | | <span>{{ currentEvent.code }}</span> |
| | | </el-form-item> |
| | |
| | | </div> |
| | | <div class="sjm-content-center"> |
| | | <div class="map"> |
| | | <MyMap></MyMap> |
| | | <MyMap :point="point" :zoom="zoom" :mark="mark"></MyMap> |
| | | </div> |
| | | <!-- <iframe src="https://183.245.159.161:8282/OneMap/index.html#/OneMap?code=2&clientVersion=&skin=white&locale=zh&otherAuthor=allowable"></iframe> --> |
| | | </div> |
| | |
| | | <div class="card-box"> |
| | | <div class="but-live"> |
| | | <el-button size="small" @click="createVideo(currentEvent, 'live')" |
| | | >实时预览</el-button |
| | | >实时预览</el-button |
| | | > |
| | | <el-button size="small" @click="createVideo(currentEvent, 'playback')" |
| | | >录像回放</el-button |
| | | <el-button |
| | | size="small" |
| | | @click="createVideo(currentEvent, 'playback')" |
| | | >录像回放</el-button |
| | | > |
| | | </div> |
| | | <div class="card-header"> |
| | | <span>报警记录--{{ currentEvent.algoName }}</span> |
| | | </div> |
| | | <el-form |
| | | ref="currentEvent" |
| | | label-width="120px" |
| | | :model="eventInfoData" |
| | | :rules="rules" |
| | | ref="currentEvent" |
| | | label-width="120px" |
| | | :model="eventInfoData" |
| | | :rules="rules" |
| | | > |
| | | <!-- <el-form-item label="事件编号:">--> |
| | | <!-- <span>{{ currentEvent.code }}</span>--> |
| | |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="关联店铺" prop="store"> |
| | | <el-select |
| | | v-model="eventInfoData.store" |
| | | clearable |
| | | @change="selectStoreChange" |
| | | placeholder="请选择关联店铺" |
| | | v-model="eventInfoData.store" |
| | | clearable |
| | | @change="selectStoreChange" |
| | | placeholder="请选择关联店铺" |
| | | > |
| | | <el-option |
| | | v-for="store in storeList" |
| | | :value="store.id" |
| | | :label="store.storeName" |
| | | :key="store.id" |
| | | v-for="store in storeList" |
| | | :value="store.id" |
| | | :label="store.storeName" |
| | | :key="store.id" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item v-if="eventInfoData.store" label="店铺得分:"> |
| | | <span>{{ |
| | | selectStoreChange(eventInfoData.store).storeScore |
| | | }}</span> |
| | | selectStoreChange(eventInfoData.store).storeScore |
| | | }}</span> |
| | | </el-form-item> |
| | | <el-form-item label="处理意见:" prop="state"> |
| | | <el-radio-group v-model="eventInfoData.state"> |
| | | <el-radio |
| | | :label="item.id" |
| | | v-for="item in stateList" |
| | | :key="item.id" |
| | | >{{ item.label }}</el-radio |
| | | :label="item.id" |
| | | v-for="item in stateList" |
| | | :key="item.id" |
| | | >{{ item.label }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="大类名称:" prop="categoryId"> |
| | | <el-select |
| | | v-model="eventInfoData.categoryId" |
| | | placeholder="请选择大类名称" |
| | | @change="categoryChange" |
| | | v-model="eventInfoData.categoryId" |
| | | placeholder="请选择大类名称" |
| | | @change="categoryChange" |
| | | > |
| | | <el-option |
| | | v-for="category in categoryOptions" |
| | | :key="category.id" |
| | | :value="category.id" |
| | | :label="category.name" |
| | | v-for="category in categoryOptions" |
| | | :key="category.id" |
| | | :value="category.id" |
| | | :label="category.name" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="小类名称:" prop="typeId"> |
| | | <el-select |
| | | v-model="eventInfoData.typeId" |
| | | placeholder="请选择小类名称" |
| | | v-model="eventInfoData.typeId" |
| | | placeholder="请选择小类名称" |
| | | > |
| | | <el-option |
| | | v-for="type in typeOptions" |
| | | :key="type.id" |
| | | :value="type.id" |
| | | :label="type.name" |
| | | v-for="type in typeOptions" |
| | | :key="type.id" |
| | | :value="type.id" |
| | | :label="type.name" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="车牌号:" prop="carNumber"> |
| | | <el-input |
| | | v-model="eventInfoData.carNumber" |
| | | placeholder="请填写车牌号码" |
| | | v-model="eventInfoData.carNumber" |
| | | placeholder="请填写车牌号码" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="备注:" prop="description"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="5" |
| | | v-model="eventInfoData.description" |
| | | type="textarea" |
| | | :rows="5" |
| | | v-model="eventInfoData.description" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | :disabled="currentPage === 1" |
| | | @click="pageChange('prev')" |
| | | >上一条</el-button |
| | | :disabled="currentPage === 1" |
| | | @click="pageChange('prev')" |
| | | >上一条</el-button |
| | | > |
| | | <el-button @click.native.prevent="handleConfirm" |
| | | >确认</el-button |
| | | >确认</el-button |
| | | > |
| | | <el-button @click="pageChange('next')">下一条</el-button> |
| | | </el-form-item> |
| | |
| | | </div> |
| | | <el-dialog :visible="isShowDialog" title="调度信息"> |
| | | <MyDispatch |
| | | v-if="isShowDialog" |
| | | :mytype="1" |
| | | @getDispatchData="confirmInspection" |
| | | :isGetData="true" |
| | | @changeDialog="closeDialog" |
| | | v-if="isShowDialog" |
| | | :mytype="1" |
| | | @getDispatchData="confirmInspection" |
| | | :isGetData="true" |
| | | @changeDialog="closeDialog" |
| | | ></MyDispatch> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :visible.sync="dialogCreate" |
| | | title="查看视频" |
| | | v-show="dialogCreate" |
| | | :before-close="handleClose2" |
| | | :visible.sync="dialogCreate" |
| | | title="查看视频" |
| | | v-show="dialogCreate" |
| | | :before-close="handleClose2" |
| | | > |
| | | <div class="dom" style="width: 100%; height: 600px; position: relative"> |
| | | <div id="dom1" class="dom1"></div> |
| | |
| | | this.getInspectionData(); |
| | | this.initEventParams(); |
| | | basecase |
| | | .getInspectionCountData() |
| | | .then((res) => { |
| | | this.countData = res; |
| | | }) |
| | | .catch((err) => this.$message.error(err)); |
| | | .getInspectionCountData() |
| | | .then((res) => { |
| | | this.countData = res; |
| | | }) |
| | | .catch((err) => this.$message.error(err)); |
| | | |
| | | getStoreInfoList({ current: 1, size: 100 }) |
| | | .then(({ list }) => { |
| | | this.storeList = list; |
| | | }) |
| | | .catch((err) => { |
| | | this.$message.error(err); |
| | | }); |
| | | .then(({ list }) => { |
| | | this.storeList = list; |
| | | }) |
| | | .catch((err) => { |
| | | this.$message.error(err); |
| | | }); |
| | | |
| | | baseInfo |
| | | .getCategoryList() |
| | | .then((res) => { |
| | | this.categoryOptions = res; |
| | | }) |
| | | .catch((err) => this.$message.error(err)); |
| | | .getCategoryList() |
| | | .then((res) => { |
| | | this.categoryOptions = res; |
| | | }) |
| | | .catch((err) => this.$message.error(err)); |
| | | |
| | | baseInfo |
| | | .getTypeList() |
| | | .then((res) => { |
| | | this.typeList = res; |
| | | }) |
| | | .catch((err) => this.$message.error(err)); |
| | | .getTypeList() |
| | | .then((res) => { |
| | | this.typeList = res; |
| | | }) |
| | | .catch((err) => this.$message.error(err)); |
| | | }, |
| | | mounted() { |
| | | this.timer = setInterval(() => { |
| | |
| | | domId: "dom1", |
| | | ctrl: "ctrl1", |
| | | playType: "live", |
| | | point: null, |
| | | mark: null, |
| | | zoom: null, |
| | | }; |
| | | }, |
| | | methods: { |
| | |
| | | |
| | | getInspectionData() { |
| | | basecase |
| | | .getInspectionData({ current: this.currentPage }) |
| | | .then(({ records }) => { |
| | | this.currentEvent = records[0]; |
| | | if (this.currentEvent?.picData) { |
| | | this.imageList = this.currentEvent.picData |
| | | .split(",") |
| | | .map((item) => `${FILE_ORIGINAL_URL}${item}`); |
| | | } |
| | | if ( |
| | | this.currentEvent?.alarmTime || |
| | | this.currentEvent?.currentAlarmTime |
| | | ) { |
| | | const { alarmTime, currentAlarmTime } = this.currentEvent; |
| | | const continueAlarmTime = |
| | | new Date().getTime() - |
| | | (currentAlarmTime |
| | | ? new Date(currentAlarmTime).getTime() |
| | | : new Date(alarmTime).getTime()); |
| | | const CONTINUE_DAY = continueAlarmTime / 1000 / 60 / 60 / 24; |
| | | const CONTINUE_HOURS = (CONTINUE_DAY - parseInt(CONTINUE_DAY)) * 24; |
| | | this.currentEvent.conntinueTime = `${parseInt( |
| | | CONTINUE_DAY |
| | | )}天${parseInt(CONTINUE_HOURS)}小时`; |
| | | } |
| | | }) |
| | | .catch((err) => this.$message.error(err)); |
| | | .getInspectionData({ current: this.currentPage }) |
| | | .then(({ records }) => { |
| | | this.currentEvent = records[0]; |
| | | this.point = { |
| | | x: this.currentEvent.longitude, |
| | | y: this.currentEvent.latitude, |
| | | }; |
| | | this.zoom = 19; |
| | | this.mark = { title: this.currentEvent.address }; |
| | | if (this.currentEvent?.picData) { |
| | | this.imageList = this.currentEvent.picData |
| | | .split(",") |
| | | .map((item) => `${FILE_ORIGINAL_URL}${item}`); |
| | | } |
| | | if ( |
| | | this.currentEvent?.alarmTime || |
| | | this.currentEvent?.currentAlarmTime |
| | | ) { |
| | | const { alarmTime, currentAlarmTime } = this.currentEvent; |
| | | const continueAlarmTime = |
| | | new Date().getTime() - |
| | | (currentAlarmTime |
| | | ? new Date(currentAlarmTime).getTime() |
| | | : new Date(alarmTime).getTime()); |
| | | const CONTINUE_DAY = continueAlarmTime / 1000 / 60 / 60 / 24; |
| | | const CONTINUE_HOURS = (CONTINUE_DAY - parseInt(CONTINUE_DAY)) * 24; |
| | | this.currentEvent.conntinueTime = `${parseInt( |
| | | CONTINUE_DAY |
| | | )}天${parseInt(CONTINUE_HOURS)}小时`; |
| | | } |
| | | }) |
| | | .catch((err) => this.$message.error(err)); |
| | | }, |
| | | |
| | | // 确认点击事件 |
| | |
| | | const eventParams = Object.assign({}, this.eventInfoData); |
| | | delete eventParams.store; |
| | | basecase |
| | | .confirmInspection({ ...eventParams, ...data }) |
| | | .then(() => { |
| | | this.$message.success("操作成功"); |
| | | this.getInspectionData(); |
| | | this.initEventParams(); |
| | | }) |
| | | .catch((err) => this.$message.error(err)); |
| | | .confirmInspection({ ...eventParams, ...data }) |
| | | .then(() => { |
| | | this.$message.success("操作成功"); |
| | | this.getInspectionData(); |
| | | this.initEventParams(); |
| | | }) |
| | | .catch((err) => this.$message.error(err)); |
| | | }, |
| | | |
| | | closeDialog() { |
| | |
| | | // }); |
| | | |
| | | _this.ws |
| | | .createCtrl(params) |
| | | .then((res) => { |
| | | this.$message.success("创建成功"); |
| | | console.log("res", res); |
| | | }) |
| | | .catch((e) => { |
| | | console.log("error;", e); |
| | | }); |
| | | .createCtrl(params) |
| | | .then((res) => { |
| | | this.$message.success("创建成功"); |
| | | console.log("res", res); |
| | | }) |
| | | .catch((e) => { |
| | | console.log("error;", e); |
| | | }); |
| | | |
| | | if (ctrlType == "playback") { |
| | | const end = new Date(); |
| | |
| | | |
| | | .sjm-content-left { |
| | | line-height: 4.8vh; |
| | | .left-form> ::v-deep.el-form-item__label{ |
| | | font-size: 16px!important; |
| | | .left-form > ::v-deep.el-form-item__label { |
| | | font-size: 16px !important; |
| | | } |
| | | .img-item { |
| | | display: flex; |
| | |
| | | margin-top: 2vh; |
| | | } |
| | | } |
| | | |
| | | .sjm-content-center { |
| | | width: calc(100% - 920px); |
| | | } |
| | | .sjm-content-right { |
| | | .card-box { |
| | | .but-live{ |
| | | .but-live { |
| | | padding-left: 48px; |
| | | line-height: 4.8vh; |
| | | } |
| | |
| | | |
| | | .el-form { |
| | | ::v-deep .el-form-item { |
| | | margin-bottom: 5px; |
| | | margin-bottom: 15px; |
| | | } |
| | | |
| | | ::v-deep .el-form-item__label { |
| | |
| | | } |
| | | |
| | | .map { |
| | | height: 488px; |
| | | height: 100%; |
| | | min-width: 460px; |
| | | } |
| | | </style> |