南昌市物联网技防平台-前端
zengh
2021-03-12 24628ed5e28d95e20a6c6d7dd15ee21c45436557
实时警情修改
2 files modified
56 ■■■■ changed files
src/views/realTimePolice/real.vue 2 ●●●●● patch | view | raw | blame | history
src/views/realTimePolice/realHistory.vue 54 ●●●● patch | view | raw | blame | history
src/views/realTimePolice/real.vue
@@ -354,6 +354,7 @@
              prop: "waringType",
              search: true,
              searchSpan: 3,
              width: 130,
              className: "waringTypeClass",
              searchPlaceholder: "请选择",
              type: "select",
@@ -508,6 +509,7 @@
              searchSpan: 3,
              prop: "cid",
              slot: true,
              width: 100,
              type: "select",
              dicData: [
                {
src/views/realTimePolice/realHistory.vue
@@ -24,6 +24,25 @@
        <el-tag>{{row.jtype=='0'?'否':row.jtype=='1'?'是':'无'}}</el-tag>
      </template>
      <template slot-scope="{ row }" slot="cid">
        <el-tag>{{
          row.cid == "1" ? "事件发生" : row.cid == "3" ? "是" : "事件恢复"
          }}
        </el-tag>
      </template>
      <template slot-scope="{ type, size, row }" slot="menu">
        <el-button
          icon="el-icon-video-camera-solid"
          :size="size"
          :type="type"
          @click.stop="handleStart(row)"
        >视频回放
        </el-button>
      </template>
    </avue-crud>
    <el-drawer
  title="我是标题"
@@ -59,7 +78,8 @@
          height: 'auto',
          indexLabel: '序号',
          calcHeight: 30,
          menuWidth:130,
          menuWidth:160,
          size: "mini",
          labelWidth: '100',
          dialogWidth: 950,
          tip: false,
@@ -76,6 +96,16 @@
              prop: "waringType",
              search: true,
              searchSpan: 3,
              width: 130,
              className: "waringTypeClass",
              searchPlaceholder: "请选择",
              type: "select",
              props: {
                label: "dictValue",
                value: "dictValue"
              },
              //cascaderItem: ["city", "district"],
              dicUrl: "/api/blade-system/dict-biz/child-list?parentId=1356523651644043266",
            },
            {
              label: "报警时间",
@@ -202,6 +232,8 @@
              label: "警情状态",
              searchSpan: 3,
              prop: "cid",
              width: 100,
              slot: true,
              type: "select",
              dicData: [
                {
@@ -433,17 +465,25 @@
      rowStyle({row, column, rowIndex}) {
        if (row.jtype == "1") {
          return {
            color: '#15a2fe'
          }
            color: "#15a2fe"
          };
        } else {
          return {
            color: '#ff7627'
          }
            color: "#ff2727"
          };
        }
      },
      handleStart(row) {
        this.$router.push({path: `/real/video/${row.channelNumber}/${row.serialNumber}`});
        var arr = [];
        this.$store.state.tags.tagList.forEach(item => {
          if (item.label != "视频") {
            arr.push(item);
          }
        });
        this.$store.state.tags.tagList = arr;
        this.$router.push({
          path: `/real/video/`,query:row
        });
      },
      handleAdd11(){
        this.qwe=true;