Parcourir la source

修复 bug 4493

魏熙美 il y a 6 ans
Parent
révision
073743f699

+ 1
- 1
CODE/smart-community/operate-api/src/main/java/com/community/huiju/controller/UserController.java Voir le fichier

@@ -176,7 +176,7 @@ public class UserController extends BaseController {
176 176
         return responseBean;
177 177
     }
178 178
 
179
-    @ApiOperation(value = "添加当前电话", notes = "添加当前电话")
179
+    @ApiOperation(value = "查看当前电话", notes = "查看当前电话")
180 180
     @ApiImplicitParams({
181 181
             @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "parameter", value = "id"),
182 182
     })

+ 11
- 11
VUECODE/smart-operate-manage/src/views/phoneconfig/phoneconfigAdd.vue Voir le fichier

@@ -23,8 +23,8 @@ export default {
23 23
     return {
24 24
       ruleForm: {
25 25
         id: '',
26
-        userName: '',
27
-        loginName: '',
26
+        name: '',
27
+        tel: '',
28 28
         remark: '',
29 29
         pageNum: 1,
30 30
         pageSize: 10,
@@ -54,19 +54,19 @@ export default {
54 54
   methods: {
55 55
     operateAdd() {
56 56
       this.$store.dispatch('OperateAdd', this.ruleForm).then((res) => {
57
-       if(res.code == '0'){
57
+        if (res.code === '0') {
58 58
           this.$message({
59
-          message: '修改成功',
60
-          type: 'success'
61
-            });
62
-        this.$router.push({ name: 'phoneconfig-phoneconfigIndex'})
63
-       }else{
64
-        this.$message.error(res.message);
65
-       }
59
+            message: '操作成功',
60
+            type: 'success'
61
+          })
62
+          this.$router.push({ name: 'phoneconfig-phoneconfigIndex' })
63
+        } else {
64
+          this.$message.error(res.message)
65
+        }
66 66
       }).catch(() => {
67 67
         console.log('error OperateAdd')
68 68
       })
69
-    },
69
+    }
70 70
   }
71 71
 }
72 72
 </script>

+ 22
- 22
VUECODE/smart-operate-manage/src/views/phoneconfig/phoneedit.vue Voir le fichier

@@ -23,8 +23,8 @@ export default {
23 23
     return {
24 24
       ruleForm: {
25 25
         id: '',
26
-        userName: '',
27
-        loginName: '',
26
+        name: '',
27
+        tel: '',
28 28
         remark: '',
29 29
         pageNum: 1,
30 30
         pageSize: 10,
@@ -51,31 +51,31 @@ export default {
51 51
     }
52 52
   },
53 53
   mounted() {
54
-      console.log('this.$route.query.id',this.$route.query.id)
55
-      this.getOperateId(this.$route.query.id)
54
+    console.log('this.$route.query.id', this.$route.query.id)
55
+    this.getOperateId(this.$route.query.id)
56 56
   },
57 57
   methods: {
58
-    getOperateId(id){
59
-       this.ruleForm.id = id
60
-       this.$store.dispatch('GetOperateId', this.ruleForm).then((res) => {
61
-       this.ruleForm.name = res.data.name
62
-       this.ruleForm.tel = res.data.tel
63
-       this.ruleForm.remark = res.data.remark
58
+    getOperateId(id) {
59
+      this.ruleForm.id = id
60
+      this.$store.dispatch('GetOperateId', this.ruleForm).then((res) => {
61
+        this.ruleForm.name = res.data.name
62
+        this.ruleForm.tel = res.data.tel
63
+        this.ruleForm.remark = res.data.remark
64 64
       }).catch(() => {
65 65
         console.log('error getOperateId')
66
-      })  
66
+      })
67 67
     },
68
-    editPhone(){
69
-        this.$store.dispatch('Phoneedit', this.ruleForm).then((res) => {
70
-        if(res.code == '0'){
71
-         this.$message({
72
-          message: '修改成功',
73
-          type: 'success'
74
-            });
75
-        this.$router.push({ name: 'phoneconfig-phoneconfigIndex'})
76
-       }else{
77
-        this.$message.error(res.message);
78
-       }       
68
+    editPhone() {
69
+      this.$store.dispatch('Phoneedit', this.ruleForm).then((res) => {
70
+        if (res.code === '0') {
71
+          this.$message({
72
+            message: '修改成功',
73
+            type: 'success'
74
+          })
75
+          this.$router.push({ name: 'phoneconfig-phoneconfigIndex' })
76
+        } else {
77
+          this.$message.error(res.message)
78
+        }
79 79
       }).catch(() => {
80 80
         console.log('error Phoneedit')
81 81
       })