| | |
| | | <template> |
| | | <div id="app"> |
| | | <router-view /> |
| | | <router-view :key="$route.fullpath"/> |
| | | </div> |
| | | </template> |
| | | <script> |
| | |
| | | }, |
| | | |
| | | { |
| | | path: "video", |
| | | name: 'video', |
| | | path: "video/0", |
| | | name: 'video_0', |
| | | component: () => import('@/views/video'), |
| | | meta: { |
| | | keepAlive: false // 不需要被缓存 |
| | | } |
| | | },{ |
| | | path: "video/1", |
| | | name: 'video_1', |
| | | component: () => import('@/views/video'), |
| | | meta: { |
| | | keepAlive: false // 不需要被缓存 |
| | |
| | | |
| | | // 智能巡查 |
| | | { |
| | | path: 'studyJudge', // 预警研判 |
| | | name: 'studyJudge', |
| | | path: 'studyJudge/0', // 预警研判 |
| | | name: 'studyJudge_0', |
| | | component: () => import('@/views/intelligentPatrol/studyJudge/tablePage'), |
| | | }, |
| | | { |
| | | path: 'studyJudge/1', // 预警研判 |
| | | name: 'studyJudge_1', |
| | | component: () => import('@/views/intelligentPatrol/studyJudge/tablePage'), |
| | | }, |
| | | { |
| | |
| | | > |
| | | <span>报警图片</span> |
| | | <!-- <img :src="item" /> --> |
| | | <el-image style="width:240px" :src="item" :preview-src-list="[item]"> </el-image> |
| | | <el-image |
| | | style="width: 240px" |
| | | :src="item" |
| | | :preview-src-list="[item]" |
| | | > |
| | | </el-image> |
| | | <span v-if="index === 0" |
| | | >报警时间:{{ currentEvent.alarmTime }}</span |
| | | > |
| | | </div> |
| | | <div class="img-item" v-for="item in imageList" :key="item.id"> |
| | | <div |
| | | class="img-item" |
| | | v-for="item in imageList" |
| | | :key="item.id" |
| | | > |
| | | <!-- <img :src="item" /> --> |
| | | <el-image style="width:240px" :src="item" :preview-src-list="[item]"> </el-image> |
| | | <el-image |
| | | style="width: 240px" |
| | | :src="item" |
| | | :preview-src-list="[item]" |
| | | > |
| | | </el-image> |
| | | </div> |
| | | <el-form |
| | | ref="currentEvent" |
| | |
| | | <div class="sjm-content-right"> |
| | | <div class="card-box"> |
| | | <div class="but-live"> |
| | | <el-button size="small" @click="createVideo(currentEvent, 'live')" |
| | | <el-button |
| | | size="small" |
| | | @click="createVideo(currentEvent, 'live')" |
| | | >实时预览</el-button |
| | | > |
| | | <el-button |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item v-if="eventInfoData.store" label="店铺得分:"> |
| | | <el-form-item |
| | | v-if="eventInfoData.store" |
| | | label="店铺得分:" |
| | | > |
| | | <span>{{ |
| | | selectStoreChange(eventInfoData.store).storeScore |
| | | selectStoreChange(eventInfoData.store) |
| | | .storeScore |
| | | }}</span> |
| | | </el-form-item> |
| | | <el-form-item label="处理意见:" prop="state"> |
| | |
| | | <el-button @click.native.prevent="handleConfirm" |
| | | >确认</el-button |
| | | > |
| | | <el-button @click="pageChange('next')">下一条</el-button> |
| | | <el-button @click="pageChange('next')" |
| | | >下一条</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | v-show="dialogCreate" |
| | | :before-close="handleClose2" |
| | | > |
| | | <div class="dom" style="width: 100%; height: 600px; position: relative"> |
| | | <div |
| | | class="dom" |
| | | style="width: 100%; height: 600px; position: relative" |
| | | > |
| | | <div id="dom1" class="dom1"></div> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | this.typeList = res; |
| | | }) |
| | | .catch((err) => this.$message.error(err)); |
| | | }, |
| | | watch: { |
| | | '$route'(to, from) { //监听路由是否变化 |
| | | if (this.info) { |
| | | this.currentEvent = this.info; |
| | | this.loadData(); |
| | | } else { |
| | | this.getInspectionData(); |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.timer = setInterval(() => { |
| | |
| | | }, |
| | | |
| | | getInspectionData() { |
| | | let path = this.$route.path |
| | | let data = { |
| | | current: this.currentPage, |
| | | pageSize: 1, |
| | | type: path.substring(path.length - 1, path.length), |
| | | videoId: this.seachData.videoId, |
| | | }; |
| | | if (this.seachData.alarmTime) { |
| | |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="getInspectionData">查询</el-button> |
| | | <el-button type="primary" @click="getInspectionData" |
| | | >查询</el-button |
| | | > |
| | | <el-button type="primary" @click="resetAll">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | :header-cell-style="{ |
| | | background: '#F5F5F5', |
| | | 'font-weight': '650', |
| | | 'line-height': '45px', |
| | | 'line-height': '45px' |
| | | }" |
| | | :data="tableData" |
| | | style="width: 100%" |
| | |
| | | v-if="dialogAdd" |
| | | :before-close="handleClose" |
| | | > |
| | | <JudgeIndex :info="videoInspection" :seachData="seachData"></JudgeIndex> |
| | | <JudgeIndex |
| | | :info="videoInspection" |
| | | :seachData="seachData" |
| | | ></JudgeIndex> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | |
| | | videoInspection: {}, |
| | | }; |
| | | }, |
| | | watch: { |
| | | '$route'(to, from) { //监听路由是否变化 |
| | | this.getInspectionData(); |
| | | } |
| | | }, |
| | | methods: { |
| | | loadVideo() { |
| | | let path = this.$route.path; |
| | | |
| | | videoPoint |
| | | .getVideoPointList({ |
| | | type: path.substring(path.length - 1, path.length), |
| | | current: 1, |
| | | size: 1000, |
| | | }) |
| | |
| | | } |
| | | }, |
| | | getInspectionData() { |
| | | let path = this.$route.path; |
| | | |
| | | let data = { |
| | | current: this.currentPage, |
| | | pageSize: this.pageSize, |
| | | type: path.substring(path.length - 1, path.length), |
| | | videoId: this.seachData.videoId, |
| | | }; |
| | | if (this.seachData.alarmTime) { |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <router-view v-else></router-view> |
| | | <router-view v-else :key="$route.fullpath"></router-view> |
| | | <!-- 底部区域 --> |
| | | <!-- <MyFooter/> --> |
| | | </div> |
| | |
| | | { |
| | | id: 42, |
| | | label: '视频巡查', |
| | | link: '/video', |
| | | link: '/video_0', |
| | | icon: 'icon_shipinxuncha' |
| | | }, |
| | | { |
| | | id: 80, |
| | | label: '100路视频巡查', |
| | | link: '/video_1', |
| | | icon: 'icon_shipinxuncha' |
| | | }, |
| | | ] |
| | |
| | | { |
| | | id: 44, |
| | | label: '预警研判', |
| | | link: '/studyJudge', |
| | | link: '/studyJudge_0', |
| | | icon: 'icon_yujingyanpan' |
| | | }, |
| | | { |
| | | id: 81, |
| | | label: '100路预警研判', |
| | | link: '/studyJudge_1', |
| | | icon: 'icon_yujingyanpan' |
| | | }, |
| | | { |
| | |
| | | watch: { |
| | | $route() { |
| | | this.handleSelect(this.$route.fullPath) |
| | | } |
| | | }, |
| | | '$route.path'(toPath, fromPath) { |
| | | this.handleSelect(toPath) |
| | | this.$router.push({ path: toPath }) |
| | | }, |
| | | }, |
| | | |
| | | methods: { |
| | | handleSelect(path) { |
| | | this.isActive = path |
| | |
| | | </el-aside> |
| | | |
| | | <el-container class="video-body-right"> |
| | | <el-header style="display: flex; flex-direction: column; height: 120px"> |
| | | <el-header |
| | | style="display: flex; flex-direction: column; height: 120px" |
| | | > |
| | | <div |
| | | style="display: flex; justify-content: space-between; height: 80px" |
| | | style=" |
| | | display: flex; |
| | | justify-content: space-between; |
| | | height: 80px; |
| | | " |
| | | > |
| | | <span |
| | | style=" |
| | |
| | | v-show="dialogCreate" |
| | | :before-close="handleClose2" |
| | | > |
| | | <div class="dom" style="width: 100%; height: 600px; position: relative"> |
| | | <div |
| | | class="dom" |
| | | style="width: 100%; height: 600px; position: relative" |
| | | > |
| | | <div id="dom1" class="dom1"></div> |
| | | <div id="dom2" class="dom2"></div> |
| | | <div id="dom3" class="dom3"></div> |
| | |
| | | ctrl: "ctrl1", |
| | | }; |
| | | }, |
| | | |
| | | watch: { |
| | | '$route'(to, from) { //监听路由是否变化 |
| | | this.getVideoPointList(); |
| | | } |
| | | }, |
| | | created() { |
| | | this.getVideoPointList(); |
| | | }, |
| | |
| | | } |
| | | }, |
| | | getVideoPointList(data) { |
| | | let path = this.$route.path; |
| | | let communityId, streetId; |
| | | if (data) { |
| | | communityId = data.id; |
| | | streetId = data.parentId; |
| | | } |
| | | |
| | | videoPoint |
| | | .getVideoPointList({ |
| | | current: this.currentPage, |
| | | size: this.pageSize, |
| | | type: path.substring(path.length - 1, path.length), |
| | | communityId, |
| | | streetId, |
| | | }) |
| | |
| | | // 跨域配置 |
| | | "/sccg": { |
| | | // target: `http://42.193.1.25/`, //测试环境 |
| | | target: `http://127.0.0.1:8082/`, |
| | | // target: `http://111.1.140.92:8082/`, |
| | | target: `http://10.88.10.18:8082/`, |
| | | changeOrigin: true |
| | | } |
| | | }, |