zengh
2021-07-20 eb6374fd3670ac6fec2725e5f3ccb708ea76f22c
src/views/realTimePolice/real.vue
@@ -118,8 +118,8 @@
      </template>
      <template slot-scope="{type,disabled}" slot="xllxzsForm">
        <div style="width: 200px;height: 200px">
          <Map ref="modalForm" />
        <div class="mapClassMain" style="width: 860px;height: 400px">
          <Map ref="modalForm"/>
        </div>
      </template>
@@ -200,9 +200,8 @@
              dicUrl:
                "/api/blade-system/dict-biz/child-list?parentId=1356523651644043266",
              control: (val, form) => {
                if (val) {
                  debugger;
                }
                // if (val) {
                // }
                return {
                  text2: {
                    display: true,
@@ -368,6 +367,7 @@
              width: 96,
              search: true,
              slot: true,
              value: "0",
              searchPlaceholder: "请选择",
              prop: "jtype",
              type: "select",
@@ -424,10 +424,10 @@
              label: "路线展示",
              labelWidth: "0",
              prop: "xllxzs",
              className: "cityreal3",
              className: "mapClass",
              hide: true,
              display: true,
              formslot:true,
              formslot: true,
            },
          ],
        },
@@ -495,8 +495,10 @@
      "form.alarmType": {
        handler(val) {
          var xllx = this.findObject(this.option.column, "xllx");
          var xllxzs = this.findObject(this.option.column, "xllxzs");
          if (val === "巡逻任务") {
            xllx.display = true;
            xllxzs.display = true;
            xllx.rules = [
              {
                required: true,
@@ -506,11 +508,21 @@
            ];
          } else {
            xllx.display = false;
            xllxzs.display = false;
            xllx.rules = [];
          }
        },
        immediate: true,
      },
      "form.xllx":{
        handler(val) {
          if (val){
            this.getxllx(val)
          }
        },
        immediate: true,
      }
    },
    computed: {
      ...mapGetters(["permission", "flowRoutes"]),
@@ -533,10 +545,10 @@
    created() {
      this.dateTime = this.getDate();
    },
    mounted(){
    mounted() {
      var xb = JSON.parse(window.sessionStorage.getItem('sjsb'));
      var data = this.$route.query;
      if (xb == 1){
      if (xb == 1) {
        this.form = data;
        this.openAdd();
        window.sessionStorage.removeItem('sjsb');
@@ -579,6 +591,16 @@
            loading();
          }
        );
      },
      getxllx(val){
        var that = this;
        if (this.$refs.modalForm == undefined) {
          setTimeout(function () {
            that.$refs.modalForm.addLines(val);
          }, 1500)
        } else {
          that.$refs.modalForm.addLines(val);
        }
      },
      rowUpdate(row, index, done, loading) {
        var userId = JSON.parse(
@@ -1168,7 +1190,7 @@
      },
      //打开新增窗体
      openAdd(){
      openAdd() {
        this.$refs.crud.rowAdd();
      },
@@ -1220,6 +1242,14 @@
    width: 12%;
  }
  .mapClass div label {
    display: none;
  }
  .mapClassMain {
    padding-left: 25px !important;
  }
  .cityreal2 div label,
  .cityreal3 div label {
    display: none;