XMLWAN 4 years ago
parent
commit
2afa8a41a8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/xt_pages/role/admin.vue

+ 3 - 1
src/xt_pages/role/admin.vue View File

424
            'id':id,
424
            'id':id,
425
            "is_mark":is_mark,
425
            "is_mark":is_mark,
426
         }
426
         }
427
+        console.log("params222222222",params)
427
          axios.get('http://127.0.0.1:9532/sz/api/medical/get',{params:params}).then(function(response) {
428
          axios.get('http://127.0.0.1:9532/sz/api/medical/get',{params:params}).then(function(response) {
428
           if (response.data.state == 0) {
429
           if (response.data.state == 0) {
429
                that.$message.error(response.data.msg)
430
                that.$message.error(response.data.msg)
430
                return false
431
                return false
431
             } else {
432
             } else {
432
-              that.$message({ message: '操作成功', type: 'success' })
433
+              // that.$message({ message: '操作成功', type: 'success' })
434
+              this.$message.error(response.data.msg)
433
               that.adminMainView()
435
               that.adminMainView()
434
              }
436
              }
435
            }).catch(function(error) {
437
            }).catch(function(error) {