瀏覽代碼

修复 bug 4493

魏熙美 6 年之前
父節點
當前提交
073743f699

+ 1
- 1
CODE/smart-community/operate-api/src/main/java/com/community/huiju/controller/UserController.java 查看文件

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

+ 11
- 11
VUECODE/smart-operate-manage/src/views/phoneconfig/phoneconfigAdd.vue 查看文件

23
     return {
23
     return {
24
       ruleForm: {
24
       ruleForm: {
25
         id: '',
25
         id: '',
26
-        userName: '',
27
-        loginName: '',
26
+        name: '',
27
+        tel: '',
28
         remark: '',
28
         remark: '',
29
         pageNum: 1,
29
         pageNum: 1,
30
         pageSize: 10,
30
         pageSize: 10,
54
   methods: {
54
   methods: {
55
     operateAdd() {
55
     operateAdd() {
56
       this.$store.dispatch('OperateAdd', this.ruleForm).then((res) => {
56
       this.$store.dispatch('OperateAdd', this.ruleForm).then((res) => {
57
-       if(res.code == '0'){
57
+        if (res.code === '0') {
58
           this.$message({
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
       }).catch(() => {
66
       }).catch(() => {
67
         console.log('error OperateAdd')
67
         console.log('error OperateAdd')
68
       })
68
       })
69
-    },
69
+    }
70
   }
70
   }
71
 }
71
 }
72
 </script>
72
 </script>

+ 22
- 22
VUECODE/smart-operate-manage/src/views/phoneconfig/phoneedit.vue 查看文件

23
     return {
23
     return {
24
       ruleForm: {
24
       ruleForm: {
25
         id: '',
25
         id: '',
26
-        userName: '',
27
-        loginName: '',
26
+        name: '',
27
+        tel: '',
28
         remark: '',
28
         remark: '',
29
         pageNum: 1,
29
         pageNum: 1,
30
         pageSize: 10,
30
         pageSize: 10,
51
     }
51
     }
52
   },
52
   },
53
   mounted() {
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
   methods: {
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
       }).catch(() => {
64
       }).catch(() => {
65
         console.log('error getOperateId')
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
       }).catch(() => {
79
       }).catch(() => {
80
         console.log('error Phoneedit')
80
         console.log('error Phoneedit')
81
       })
81
       })