南昌市物联网技防平台-前端
tangzy
2021-03-09 92005c9d1c4e6cb475c09639afc3c3c7c6cf968a
src/views/policeInformationDistribution/index.vue
@@ -39,16 +39,22 @@
          :size="size"
          :type="type"
          @click.stop="disposition(row)"
          >处置</el-button
        >
          >处置</el-button>
        <el-button
          icon="el-icon-s-order"
          :size="size"
          :type="type"
          @click.stop="PoliceTracking(row)"
        >追踪</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-drawer
@@ -99,6 +105,7 @@
        indexLabel: "序号",
        calcHeight: 30,
        labelWidth: "100",
        size: "mini",
        dialogWidth: 950,
        tip: false,
        searchShow: true,
@@ -113,7 +120,17 @@
            label: "警情类型",
            prop: "waringType",
            search: true,
            searchSpan: 3
            searchSpan: 3,
            className: "waringTypeClass",
            searchLabelWidth: 80,
            searchPlaceholder: "请选择",
            type: "select",
            props: {
              label: "dictValue",
              value: "dictValue"
            },
            //cascaderItem: ["city", "district"],
            dicUrl: "/api/blade-system/dict-biz/child-list?parentId=1356516807043231746",
          },
          {
            label: "报警时间",
@@ -127,8 +144,8 @@
            label: "报警时间",
            prop: "releaseTimeRange",
            type: "datetime",
            format: "yyyy-MM-dd hh:mm:ss",
            valueFormat: "yyyy-MM-dd hh:mm:ss",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
            searchRange: true,
            searchSpan: 5,
            hide: true,
@@ -146,7 +163,7 @@
          },
          {
            label: "报警内容",
            prop: "rname"
            prop: "rName"
          },
          {
            label: "处理人",
@@ -182,11 +199,12 @@
            prop: "deviceNumber"
          },
          {
            label: "行政区",
            label: "省份",
            prop: "province",
            search: true,
            searchSpan: 3,
            searchLabelWidth: 60,
            searchSpan: 2,
            searchLabelWidth: 45,
            span:5,
            type: "select",
            props: {
              label: "name",
@@ -194,7 +212,6 @@
            },
            cascaderItem: ["city", "district"],
            dicUrl: "/api/blade-system/region/select",
            span: 6,
            className: "cityClass1"
          },
          {
@@ -203,13 +220,13 @@
            type: "select",
            searchLabelWidth: 1,
            searchSpan: 2,
            span:3,
            search: true,
            props: {
              label: "name",
              value: "code"
            },
            dicUrl: "/api/blade-system/region/select?code={{key}}",
            span: 3,
            labelWidth: "0",
            className: "cityClass2"
          },
@@ -217,6 +234,7 @@
            label: "区县",
            searchSpan: 2,
            searchLabelWidth: 1,
            span:3,
            search: true,
            prop: "district",
            type: "select",
@@ -225,19 +243,18 @@
              value: "code"
            },
            dicUrl: "/api/blade-system/region/select?code={{key}}",
            span: 3,
            labelWidth: "0",
            className: "cityClass3"
          },
          {
            label: "处理状态",
            search: true,
            searchSpan: 3,
            searchSpan: 2,
            slot: true,
            searchLabelWidth: 80,
            searchPlaceholder: "请选择",
            prop: "type",
            type: "select",
            className: "selectClass",
            dicData: [
              {
                label: "待处理",
@@ -262,7 +279,7 @@
    ...mapGetters(["permission", "flowRoutes"]),
    permissionList() {
      return {
        addBtn: this.vaildData(null, false),
        addBtn: this.vaildData(this.permission.distribution_add, false),
        viewBtn: this.vaildData(null, false),
        delBtn: this.vaildData(null, false),
        editBtn: this.vaildData(this.permission.real_edit, false)
@@ -495,20 +512,19 @@
        };
      })
    },
    PoliceTracking(row){
      //警情追踪
      this.$router.push({ path: "/policeTracking/track", query: row });
    }
  }
};
</script>
<style>
.cityClass1 {
  padding-right: 5px !important;
}
.cityClass3 div label {
  display: none;
}
  .el-card__body .selectClass{
    width: 12%;
  }
.cityClass3 {
  padding-left: 5px !important;
}
</style>