南昌市物联网技防平台-前端
shuishen
2021-03-14 63f0cb6e03a03f9becd6eec86d1789e3595b729b
接口部分调整,解决警情分发处置的bug
3 files modified
39 ■■■■ changed files
public/map/widgets/analysisAndJudgment/AnalysisAndJudgment.js 2 ●●●●● patch | view | raw | blame | history
src/views/distribution/index.vue 36 ●●●● patch | view | raw | blame | history
src/views/policeInformationDistribution/index.vue 1 ●●●● patch | view | raw | blame | history
public/map/widgets/analysisAndJudgment/AnalysisAndJudgment.js
@@ -211,8 +211,6 @@
                            var levelText = $('#policeArea > div:eq(0)').text().trim() == '全部' ? '' : $('#policeArea > div:eq(0)').attr('areaid');
                            that.getPoliceTableAnalysis($('.analysis-container-police').find('.tbody tbody'), startTime, endTime, text == '全部' ? '' : text, levelText);
                            $(times[2]).val('');
                            $(times[0]).val('');
                        }
                    }
src/views/distribution/index.vue
@@ -78,10 +78,11 @@
              ></el-input> </el-form-item
          ></el-col>
          <el-col span="12"
            ><el-form-item class="distribution-form-label" label="警情类别">t
            ><el-form-item class="distribution-form-label" label="警情类别"
              >
              <el-input
                disabled="true"
                v-model="form.waringType"
                v-model="form.$waringType"
                autocomplete="off"
              ></el-input> </el-form-item
          ></el-col>
@@ -89,11 +90,7 @@
        <el-row>
          <el-col span="12"
            ><el-form-item class="distribution-form-label" label="处理方式">
              <el-radio-group
                @change="processChange"
                v-model="processmode"
                :disabled="this.form.type == 0 ? false : true"
              >
              <el-radio-group @change="processChange" v-model="processmode">
                <el-radio
                  class="distribution-form-label"
                  label="派发保安"
@@ -107,17 +104,11 @@
          <el-col span="12"
            ><el-form-item class="distribution-form-label" label="处理人">
              <el-select
              style="width: 100%"
                v-model="form.handName"
                style="width: 100%"
                v-model="handName"
                @change="selectChange"
                placeholder="请选择处理人"
                :disabled="
                  this.form.type == 0
                    ? this.form.handletype == 1
                      ? true
                      : false
                    : true
                "
                :disabled="this.processmode == '派发保安' ? false : true"
              >
                <el-option
                  v-for="item in selectOptions"
@@ -158,7 +149,7 @@
              ></el-input>
            </el-form-item>
          </el-col>
              <el-col span="12"
          <el-col span="12"
            ><el-form-item class="distribution-form-label" label="地市">
              <el-input
                disabled="true"
@@ -167,7 +158,7 @@
              ></el-input>
            </el-form-item>
          </el-col>
              <el-col span="12"
          <el-col span="12"
            ><el-form-item class="distribution-form-label" label="行政区">
              <el-input
                disabled="true"
@@ -214,6 +205,7 @@
export default {
  data() {
    return {
      handName: '',
      selectOptions: [],
      form: {},
      baseUrl: "",
@@ -225,7 +217,8 @@
    this.form = this.$route.query;
    this.form.handletype = 0;
    console.log(this.form);
    console.log(this.form)
    if (this.form.type == 0) {
      this.form.handleP = "";
      this.form.handName = "";
@@ -331,18 +324,23 @@
    },
    selectChange(value) {
      this.selectOptions.forEach((item) => {
        if (item.snumber == value) {
          this.form.handName = item.value;
          handName = item.value;
          this.form.handleP = value;
        }
      });
    },
    processChange(value) {
      value == "提示业主"
        ? (this.form.handletype = 1)
        : (this.form.handletype = 0);
    },
  },
};
src/views/policeInformationDistribution/index.vue
@@ -532,6 +532,7 @@
          }
        });
        this.$store.state.tags.tagList = arr;
        console.log(data)
        this.$router.push({path: "/distribution/index", query: data});
      },
      handleMap(row) {