From 63f0cb6e03a03f9becd6eec86d1789e3595b729b Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sun, 14 Mar 2021 17:31:55 +0800
Subject: [PATCH] 接口部分调整,解决警情分发处置的bug
---
public/map/widgets/analysisAndJudgment/AnalysisAndJudgment.js | 2 --
src/views/policeInformationDistribution/index.vue | 1 +
src/views/distribution/index.vue | 36 +++++++++++++++++-------------------
3 files changed, 18 insertions(+), 21 deletions(-)
diff --git a/public/map/widgets/analysisAndJudgment/AnalysisAndJudgment.js b/public/map/widgets/analysisAndJudgment/AnalysisAndJudgment.js
index 13c1dba..60487bf 100644
--- a/public/map/widgets/analysisAndJudgment/AnalysisAndJudgment.js
+++ b/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('');
}
}
diff --git a/src/views/distribution/index.vue b/src/views/distribution/index.vue
index 8459fab..9d3b931 100644
--- a/src/views/distribution/index.vue
+++ b/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);
+
},
},
};
diff --git a/src/views/policeInformationDistribution/index.vue b/src/views/policeInformationDistribution/index.vue
index 56b96d8..2d8ef0b 100644
--- a/src/views/policeInformationDistribution/index.vue
+++ b/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) {
--
Gitblit v1.9.3