南昌市物联网技防平台-前端
zengh
2021-02-21 a70e793398b4c6594e9aa9894af1e439ce80f579
外网版本(接口地址、端口等改动)
1 files modified
58 ■■■■ changed files
src/views/realTimePolice/real.vue 58 ●●●● patch | view | raw | blame | history
src/views/realTimePolice/real.vue
@@ -35,21 +35,24 @@
      <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>
@@ -57,7 +60,8 @@
      <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">
@@ -66,28 +70,32 @@
          :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>
@@ -216,7 +224,8 @@
          <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>
@@ -255,14 +264,17 @@
                :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>
@@ -306,6 +318,7 @@
      videoSource: "",
      dialogTableVisible: false,
      innerVisibleVideo: false,
        activeClass: -1,
      form: {},
      query: {},
      dateTime: [],
@@ -729,7 +742,8 @@
        }
      };
    },
    getBZdata() {
      getBZdata(e) {
        this.activeClass = e;
      var params = {
        beginTime: this.dateTime.week.beginTime,
        endTime: this.dateTime.week.endTime
@@ -738,7 +752,8 @@
      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
@@ -747,7 +762,8 @@
      this.page.currentPage = 1;
      this.onLoad(this.page, params);
    },
    getQBdata() {
      getQBdata(e) {
        this.activeClass = e;
      var params = {};
      this.query = params;
      this.page.currentPage = 1;
@@ -1063,7 +1079,8 @@
                  }
                }
              })
              .then(result => {});
                .then(result => {
                });
          });
      } else {
        this.isActive = true;
@@ -1129,6 +1146,13 @@
}
.el-button.active {
  background: red;
    background: #ff0000;
}
  .el-button.btn-color {
    background: #146ef6;
    border-color: #007aff;
    color: #FFF;
  }
</style>