| | |
| | | |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | v-bind:class=" activeClass==1 ? 'btn-color' : '' " |
| | | size="small" |
| | | type="primary" |
| | | @click="getBZdata" |
| | | @click="getBZdata(1)" |
| | | >本周 |
| | | </el-button> |
| | | <el-button |
| | | v-bind:class=" activeClass==2 ? 'btn-color' : '' " |
| | | size="small" |
| | | type="primary" |
| | | @click="getBYdata" |
| | | @click="getBYdata(2)" |
| | | >本月 |
| | | </el-button> |
| | | <el-button |
| | | v-bind:class=" activeClass==3 ? 'btn-color' : '' " |
| | | size="small" |
| | | type="primary" |
| | | @click="getQBdata" |
| | | @click="getQBdata(3)" |
| | | >全部 |
| | | </el-button> |
| | | </template> |
| | |
| | | <template slot-scope="{ row }" slot="jtype"> |
| | | <el-tag>{{ |
| | | row.jtype == "0" ? "否" : row.jtype == "1" ? "是" : "无" |
| | | }}</el-tag> |
| | | }} |
| | | </el-tag> |
| | | </template> |
| | | |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleHistory(row)" |
| | | >历史</el-button |
| | | >历史 |
| | | </el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-video-camera-solid" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleStart(row)" |
| | | >视频</el-button |
| | | >视频 |
| | | </el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleManage(row)" |
| | | >处置</el-button |
| | | >处置 |
| | | </el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-location-outline" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleMap(row)" |
| | | >定位</el-button |
| | | >定位 |
| | | </el-button |
| | | > |
| | | </template> |
| | | </avue-crud> |
| | |
| | | <el-col span="12"> |
| | | <el-form-item label="历史视频"> |
| | | <el-button type="primary" @click.stop="queryOldVideo(form)" |
| | | >查看视频</el-button |
| | | >查看视频 |
| | | </el-button |
| | | > |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | :class="{ active: isActive }" |
| | | type="success" |
| | | @click.stop="aKeyToCall($event, form)" |
| | | >一键呼叫</el-button |
| | | >一键呼叫 |
| | | </el-button |
| | | > |
| | | <el-button type="success">视频对讲</el-button> |
| | | <el-button type="primary" @click.stop="generate(form)" |
| | | >生成警单</el-button |
| | | >生成警单 |
| | | </el-button |
| | | > |
| | | <el-button type="warning" @click.stop="revoke(form)" |
| | | >警情撤销</el-button |
| | | >警情撤销 |
| | | </el-button |
| | | > |
| | | <el-button type="danger">推送110</el-button> |
| | | </el-form-item> |
| | |
| | | videoSource: "", |
| | | dialogTableVisible: false, |
| | | innerVisibleVideo: false, |
| | | activeClass: -1, |
| | | form: {}, |
| | | query: {}, |
| | | dateTime: [], |
| | |
| | | } |
| | | }; |
| | | }, |
| | | getBZdata() { |
| | | getBZdata(e) { |
| | | this.activeClass = e; |
| | | var params = { |
| | | beginTime: this.dateTime.week.beginTime, |
| | | endTime: this.dateTime.week.endTime |
| | |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | | }, |
| | | getBYdata() { |
| | | getBYdata(e) { |
| | | this.activeClass = e; |
| | | var params = { |
| | | beginTime: this.dateTime.month.beginTime, |
| | | endTime: this.dateTime.month.endTime |
| | |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | | }, |
| | | getQBdata() { |
| | | getQBdata(e) { |
| | | this.activeClass = e; |
| | | var params = {}; |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | |
| | | } |
| | | } |
| | | }) |
| | | .then(result => {}); |
| | | .then(result => { |
| | | }); |
| | | }); |
| | | } else { |
| | | this.isActive = true; |
| | |
| | | } |
| | | |
| | | .el-button.active { |
| | | background: red; |
| | | background: #ff0000; |
| | | } |
| | | |
| | | .el-button.btn-color { |
| | | background: #146ef6; |
| | | border-color: #007aff; |
| | | color: #FFF; |
| | | } |
| | | |
| | | </style> |