From d98349d2d7d0564d45ad09dc3d1a495eaa6b3f9c Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Thu, 10 Jun 2021 16:50:21 +0800
Subject: [PATCH] 样式修改

---
 src/views/realTimePolice/real.vue           |   10 +++++-----
 src/views/policeTracking/policeTracking.vue |   43 ++++++++++++++++++++++++++++---------------
 2 files changed, 33 insertions(+), 20 deletions(-)

diff --git a/src/views/policeTracking/policeTracking.vue b/src/views/policeTracking/policeTracking.vue
index 3e66dd5..10348a8 100644
--- a/src/views/policeTracking/policeTracking.vue
+++ b/src/views/policeTracking/policeTracking.vue
@@ -548,24 +548,37 @@
       },
       onSubmit() {
         var that = this;
-        if (typeof that.form.securityArr != "string"){
-          var security = "";
-          that.form.securityArr.forEach((item) => {
-            security = security + item + ",";
+
+        if (that.form.securityArr != null && that.form.securityArr != ""){
+          that.form.jtype = "1";
+          if (typeof that.form.securityArr != "string"){
+            var security = "";
+            that.form.securityArr.forEach((item) => {
+              security = security + item + ",";
+            });
+            that.form.securityArr = security.substring(0, security.length - 1);
+          }
+
+          axios({
+            url: '/api/blade-jfpts/alarm/alarm/submit',
+            method: 'post',
+            data: that.form
+          }).then((resdata) => {
+            that.$message({
+              message: '派遣完成',
+              type: 'success'
+            });
           });
-          that.form.securityArr = security.substring(0, security.length - 1);
+
+        }else {
+          that.$message({
+            message: '未选择保安,请重试',
+            type: 'warning'
+          });
         }
 
-        axios({
-          url: '/api/blade-jfpts/alarm/alarm/submit',
-          method: 'post',
-          data: that.form
-        }).then((resdata) => {
-          that.$message({
-            message: '派遣完成',
-            type: 'success'
-          });
-        });
+
+
       },
 
       getReceivingAlarm() {
diff --git a/src/views/realTimePolice/real.vue b/src/views/realTimePolice/real.vue
index eda422b..55fc5c8 100644
--- a/src/views/realTimePolice/real.vue
+++ b/src/views/realTimePolice/real.vue
@@ -169,7 +169,7 @@
           column: [
             {
               label: "警情类型",
-              prop: "waringType",
+              prop: "alarmType",
               search: false,
               searchSpan: 3,
               width: 85,
@@ -343,10 +343,10 @@
                   label: "未派发",
                   value: "0",
                 },
-                {
-                  label: "处理中",
-                  value: "1",
-                },
+                // {
+                //   label: "处理中",
+                //   value: "1",
+                // },
                 {
                   label: "已处理",
                   value: "2",

--
Gitblit v1.9.3