瀏覽代碼

修复 bug

weiximei 6 年之前
父節點
當前提交
801c2aa230

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

43
 
43
 
44
         log.info("{} 手机号校验结果: {}",phone, AccountValidatorUtil.isPhone(phone));
44
         log.info("{} 手机号校验结果: {}",phone, AccountValidatorUtil.isPhone(phone));
45
         if (!AccountValidatorUtil.isPhone(phone)){
45
         if (!AccountValidatorUtil.isPhone(phone)){
46
-            response.addError("请输入正的手机号!");
46
+            response.addError("请输入正的手机号!");
47
             return response;
47
             return response;
48
         }
48
         }
49
 
49
 

+ 2
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java 查看文件

73
         ResponseBean response = new ResponseBean();
73
         ResponseBean response = new ResponseBean();
74
         log.info("{} 手机号校验结果: {}",user.getLoginName(),AccountValidatorUtil.isPhone(user.getLoginName()));
74
         log.info("{} 手机号校验结果: {}",user.getLoginName(),AccountValidatorUtil.isPhone(user.getLoginName()));
75
         if (!AccountValidatorUtil.isPhone(user.getLoginName())){
75
         if (!AccountValidatorUtil.isPhone(user.getLoginName())){
76
-            response.addError("请输入正的手机号!");
76
+            response.addError("请输入正的手机号!");
77
             return response;
77
             return response;
78
         }
78
         }
79
         Map<String,Object> map = Maps.newHashMap();
79
         Map<String,Object> map = Maps.newHashMap();
112
         AppkeyCache.setCache(loginName,"null");
112
         AppkeyCache.setCache(loginName,"null");
113
         log.info("{} 手机号校验结果: {}",loginName,AccountValidatorUtil.isPhone(loginName));
113
         log.info("{} 手机号校验结果: {}",loginName,AccountValidatorUtil.isPhone(loginName));
114
         if (!AccountValidatorUtil.isPhone(loginName)){
114
         if (!AccountValidatorUtil.isPhone(loginName)){
115
-            response.addError("请输入正的手机号!");
115
+            response.addError("请输入正的手机号!");
116
             return response;
116
             return response;
117
         }
117
         }
118
         if (StringUtils.isBlank(communityId)) {
118
         if (StringUtils.isBlank(communityId)) {

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

41
 
41
 
42
         log.info("{} 手机号校验结果: {}",phone, AccountValidatorUtil.isPhone(phone));
42
         log.info("{} 手机号校验结果: {}",phone, AccountValidatorUtil.isPhone(phone));
43
         if (!AccountValidatorUtil.isPhone(phone)){
43
         if (!AccountValidatorUtil.isPhone(phone)){
44
-            response.addError("请输入正的手机号!");
44
+            response.addError("请输入正的手机号!");
45
             return response;
45
             return response;
46
         }
46
         }
47
 
47
 

+ 3
- 3
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java 查看文件

140
 
140
 
141
         TpBuildingOwnerInfo tpBuildingOwnerInfo = JSONObject.parseObject(parameter, TpBuildingOwnerInfo.class);
141
         TpBuildingOwnerInfo tpBuildingOwnerInfo = JSONObject.parseObject(parameter, TpBuildingOwnerInfo.class);
142
         if (!AccountValidatorUtil.isPhone(tpBuildingOwnerInfo.getOwnerTel())){
142
         if (!AccountValidatorUtil.isPhone(tpBuildingOwnerInfo.getOwnerTel())){
143
-            responseBean.addError("请输入正的手机号!");
143
+            responseBean.addError("请输入正的手机号!");
144
             return responseBean;
144
             return responseBean;
145
         }
145
         }
146
 
146
 
254
         // 物业端的用户,也就是正在操作的物业人员
254
         // 物业端的用户,也就是正在操作的物业人员
255
         User user = userMapper.selectById(userElement.getId());
255
         User user = userMapper.selectById(userElement.getId());
256
         if (!AccountValidatorUtil.isPhone(tpBuildingOwnerInfo.getOwnerTel())){
256
         if (!AccountValidatorUtil.isPhone(tpBuildingOwnerInfo.getOwnerTel())){
257
-            responseBean.addError("请输入正的手机号!");
257
+            responseBean.addError("请输入正的手机号!");
258
             return responseBean;
258
             return responseBean;
259
         }
259
         }
260
 
260
 
270
         // 校验楼栋信息表
270
         // 校验楼栋信息表
271
         selectBuild = getBuildingInfo(tpBuildingOwnerInfo, userElement.getCommunityId());
271
         selectBuild = getBuildingInfo(tpBuildingOwnerInfo, userElement.getCommunityId());
272
         if (null != selectBuild) {
272
         if (null != selectBuild) {
273
-            responseBean.addError("该楼层的户号,已存在!");
273
+            responseBean.addError("该楼层的户号已存在!");
274
             return responseBean;
274
             return responseBean;
275
         }
275
         }
276
 
276
 

+ 2
- 2
VUECODE/smart-property-manage/src/views/owner/index.vue 查看文件

34
         <template slot-scope="scope">
34
         <template slot-scope="scope">
35
           <span v-if="scope.row.gender==1">{{ '男' }}</span>
35
           <span v-if="scope.row.gender==1">{{ '男' }}</span>
36
           <span v-if="scope.row.gender==2">{{ '女' }}</span>
36
           <span v-if="scope.row.gender==2">{{ '女' }}</span>
37
-        </template>      
37
+        </template>
38
       </el-table-column>
38
       </el-table-column>
39
       <el-table-column prop="idCard" label="身份证号" align="center" />
39
       <el-table-column prop="idCard" label="身份证号" align="center" />
40
       <!-- <el-table-column prop="name" label="所在户" width="180" /> -->
40
       <!-- <el-table-column prop="name" label="所在户" width="180" /> -->
41
       <el-table-column label="所在户" align="center">
41
       <el-table-column label="所在户" align="center">
42
         <template slot-scope="scope">
42
         <template slot-scope="scope">
43
           <span v-if="scope.row.building!==null&&scope.row.unit!==null&&scope.row.level!==null&&scope.row.roomNo!==null&&scope.row.phase!==null">
43
           <span v-if="scope.row.building!==null&&scope.row.unit!==null&&scope.row.level!==null&&scope.row.roomNo!==null&&scope.row.phase!==null">
44
-          {{ scope.row.building + scope.row.unit + scope.row.level + scope.row.roomNo+scope.row.phase }}
44
+          {{ scope.row.phase+scope.row.building + scope.row.unit + scope.row.level + scope.row.roomNo }}
45
           </span>
45
           </span>
46
           </template>
46
           </template>
47
       </el-table-column>
47
       </el-table-column>

+ 0
- 2
VUECODE/smart-property-manage/src/views/social/activity/add/index.vue 查看文件

113
       })
113
       })
114
     },
114
     },
115
     resetForm(formName) {
115
     resetForm(formName) {
116
-      console.log("2")
117
       // this.$refs[formName].resetFields()
116
       // this.$refs[formName].resetFields()
118
       this.$refs[formName].validate((valid) => {
117
       this.$refs[formName].validate((valid) => {
119
-        console.log("1")
120
         if (valid) {
118
         if (valid) {
121
           this.addActivity(2)
119
           this.addActivity(2)
122
         } else {
120
         } else {

+ 14
- 7
VUECODE/smart-property-manage/src/views/social/activity/info/index.vue 查看文件

12
       <div class="text-progress">
12
       <div class="text-progress">
13
         <span class="people-number">已报名人数 {{ ruleForm.signUpCount }}</span>
13
         <span class="people-number">已报名人数 {{ ruleForm.signUpCount }}</span>
14
         <div class="outer-layer"/>
14
         <div class="outer-layer"/>
15
-        <div class="inner-layer"/>
15
+        <div ref="innerDiv" :style="{ backgroundColor: 'aquamarine', height: '6px', width: innerW + 'px', position: 'relative', marginTop: '-4px' }"/> <!-- class="inner-layer" -->
16
       </div>
16
       </div>
17
       <div class="circular"/>
17
       <div class="circular"/>
18
       <div class="people-limit">限制{{ ruleForm.signUpMax }}人</div>
18
       <div class="people-limit">限制{{ ruleForm.signUpMax }}人</div>
26
 </template>
26
 </template>
27
 
27
 
28
 <script>
28
 <script>
29
+
29
 export default {
30
 export default {
30
   name: 'Index',
31
   name: 'Index',
31
   data() {
32
   data() {
42
         registrationEndTime: '', // 报名活动结束时间
43
         registrationEndTime: '', // 报名活动结束时间
43
         sort: 1, // 权重
44
         sort: 1, // 权重
44
         status: '' // 状态 0 是已作废 1 是已发布   2 是草稿 3 是已修改
45
         status: '' // 状态 0 是已作废 1 是已发布   2 是草稿 3 是已修改
45
-      }
46
+      },
47
+      innerW: 0 // 进度条
46
     }
48
     }
47
   },
49
   },
48
   mounted() {
50
   mounted() {
54
         const resData = res.data
56
         const resData = res.data
55
         this.ruleForm = resData.info
57
         this.ruleForm = resData.info
56
         this.ruleForm.contentImg = resData.contentImg
58
         this.ruleForm.contentImg = resData.contentImg
59
+        if (this.ruleForm.signUpMax !== 0) {
60
+          const tempNum = 450 / this.ruleForm.signUpMax
61
+          this.innerW = this.ruleForm.signUpCount * tempNum
62
+          console.log(this.$refs.innerDiv.style.width)
63
+          console.log(this.innerW)
64
+        }
57
       })
65
       })
58
     },
66
     },
59
     formatDate(val) {
67
     formatDate(val) {
115
   background-color: gainsboro;
123
   background-color: gainsboro;
116
   height: 3px;
124
   height: 3px;
117
   width: 450px;
125
   width: 450px;
118
-  margin-top: -10px;
119
   position: relative;
126
   position: relative;
120
 }
127
 }
121
 .inner-layer {
128
 .inner-layer {
122
   background-color: aquamarine;
129
   background-color: aquamarine;
123
   height: 6px;
130
   height: 6px;
124
-  width: 100px;
131
+  width: 20px;
125
   position: relative;
132
   position: relative;
126
   margin-top: -4px;
133
   margin-top: -4px;
127
 }
134
 }
133
   height: 20px;
140
   height: 20px;
134
   position: relative;
141
   position: relative;
135
   margin-left: 452px;
142
   margin-left: 452px;
136
-  margin-top: 11px;
143
+  margin-top: 21px;
137
   float: left;
144
   float: left;
138
 }
145
 }
139
 .people-limit {
146
 .people-limit {
140
-  margin-top: 13px;
147
+  margin-top: 23px;
141
 }
148
 }
142
 .bom-button{
149
 .bom-button{
143
   display: flex;
150
   display: flex;
144
   justify-content: center;
151
   justify-content: center;
145
-  margin-top: 20px;
152
+  margin-top: 30px;
146
   margin-bottom: 100px;
153
   margin-bottom: 100px;
147
 }
154
 }
148
 </style>
155
 </style>

+ 14
- 1
VUECODE/smart-property-manage/src/views/social/signUp/index.vue 查看文件

57
         prop="remark"
57
         prop="remark"
58
         label="报名备注"
58
         label="报名备注"
59
         align="center">
59
         align="center">
60
-        <template slot-scope="scope"><el-input :value="scope.row.remark" readonly @click="showDialog(scope.row.remark)" /></template>
60
+        <template slot-scope="scope">
61
+          <el-popover trigger="hover" placement="top">
62
+            <p>{{ scope.row.remark }}</p>
63
+            <div slot="reference" class="text-remark">
64
+              {{ scope.row.remark }}
65
+            </div>
66
+          </el-popover>
67
+        </template>
61
       </el-table-column>
68
       </el-table-column>
62
       <el-table-column
69
       <el-table-column
63
         prop="phone"
70
         prop="phone"
244
   display: flex;
251
   display: flex;
245
   justify-content: flex-end;
252
   justify-content: flex-end;
246
 }
253
 }
254
+.text-remark{
255
+  text-overflow: ellipsis;
256
+  overflow: hidden;
257
+  white-space: nowrap !important;
258
+  outline: 0 !important
259
+}
247
 </style>
260
 </style>