From 05df4f202c9a21b384e4b6109f22901c00859a9a Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期四, 23 三月 2023 16:00:56 +0800
Subject: [PATCH] 删除用户提醒

---
 src/views/manager/Police.vue |   32 ++++++++++++++++++++------------
 1 files changed, 20 insertions(+), 12 deletions(-)

diff --git a/src/views/manager/Police.vue b/src/views/manager/Police.vue
index c8d285b..1f72241 100644
--- a/src/views/manager/Police.vue
+++ b/src/views/manager/Police.vue
@@ -80,14 +80,14 @@
               label-width="100px">
               <el-col :span="12">
                 <el-form-item label="濮撳悕" prop="realName">
-                  <el-input v-model="detailsRow.realName" 
+                  <el-input v-model="detailsRow.realName"
                     :style="{ width: '100%' }">
                   </el-input>
                 </el-form-item>
               </el-col>
               <el-col :span="12">
                 <el-form-item label="鎵嬫満鍙�" prop="phoneNumber">
-                  <el-input v-model="detailsRow.userMobile" 
+                  <el-input v-model="detailsRow.userMobile"
                     :style="{ width: '100%' }">
                   </el-input>
                 </el-form-item>
@@ -99,7 +99,7 @@
                   </el-input>
                 </el-form-item>
               </el-col>
-        
+
             </el-form>
           </el-row>
           <span slot="footer" class="dialog-footer">
@@ -150,7 +150,7 @@
       //璇︾粏鍐呭寮规
       detailsVisible: false,
       //璇︾粏鍐呭
-      detailsRow: 
+      detailsRow:
         {
         }
       ,
@@ -204,10 +204,18 @@
     //鍒犻櫎
     remove(val) {
       this.$http.delete('/api/user/manager', { params: { id: val } }).then(res => {
-        this.$message({
-          message: '鍒犻櫎鎴愬姛',
-          type: 'success'
-        })
+        console.log(res)
+        if (res.data.code==200){
+          this.$message({
+            message: '鍒犻櫎鎴愬姛',
+            type: 'success'
+          })
+        }else {
+          this.$message({
+            message: res.data.msg,
+            type: 'error'
+          })
+        }
 
         this.search();
       })
@@ -246,7 +254,7 @@
       this.detailsRow.phoneNumber=this.detailsRow.userMobile
           this.$http.put('/api/user/manager',this.detailsRow).then(res => {this.$message({
         message: '缂栬緫鎴愬姛',
-        type: 'success'}   
+        type: 'success'}
         )
          this.search();}
         );
@@ -265,13 +273,13 @@
         this.$refs.addPublicityForm.validate(async (vaild) => {
         if (!vaild) return this.$message.error('杈撳叆鏈夎')
       let param = null;
-      param = this.addPublicityForm; 
+      param = this.addPublicityForm;
       addPublicityList(param).then(res => {
         this.$message({
           message: '鎿嶄綔鎴愬姛',
           type: 'success'
         });
-        this.addPublicityForm={}; 
+        this.addPublicityForm={};
         this.init();
       }
       )
@@ -322,4 +330,4 @@
 ::v-deep(.el-table thead) {
   color: #000000;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.8.0