Ver código fonte

人员页面

weiximei 6 anos atrás
pai
commit
2c42f1076a

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/UserServiceImpl.java Ver arquivo

@@ -151,7 +151,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
151 151
     private void checkPhoneAndCode(String phone, String code){
152 152
         /**************  校验手机号, 验证码   ***************/
153 153
         if (!AccountValidatorUtil.isPhone(phone)){
154
-            throw new WisdomException("请输入正的手机号!");
154
+            throw new WisdomException("请输入正的手机号!");
155 155
         }
156 156
         String phoneCode = (String) AppkeyCache.getCache(phone);
157 157
         if ("1234".equals(code)) {

+ 1
- 1
VUECODE/smart-property-manage/src/views/login/index.vue Ver arquivo

@@ -88,7 +88,7 @@ export default {
88 88
     }
89 89
     const validateIndexCode = (rule, value, callback) => {
90 90
       if (!validatCode(value)) {
91
-        callback(new Error('请输入验证码'))
91
+        callback(new Error('请输入正确的验证码'))
92 92
       } else {
93 93
         callback()
94 94
       }

+ 35
- 2
VUECODE/smart-property-manage/src/views/social/signUp/index.vue Ver arquivo

@@ -67,7 +67,7 @@
67 67
         prop="id"
68 68
         label="操作"
69 69
         align="center">
70
-        <template slot-scope="scope">{{ '删除报名' }}</template>
70
+        <template slot-scope="scope"><el-button type="danger" @click="deleteSignUp(scope.row.id)">删除报名</el-button></template>
71 71
       </el-table-column>
72 72
     </el-table>
73 73
     <div class="block">
@@ -100,7 +100,8 @@ export default {
100 100
       list: [],
101 101
       listLoading: true, // 表格加载框
102 102
       dialogTableVisible: false, // 是否显示弹框
103
-      dialogContent: '提示信息' // 弹框内容
103
+      dialogContent: '提示信息', // 弹框内容
104
+      sendSMS: false // 是否发生短信
104 105
     }
105 106
   },
106 107
   mounted() {
@@ -182,6 +183,38 @@ export default {
182 183
     showDialog(remark) { // 备注 弹框
183 184
       this.dialogContent = remark
184 185
       this.dialogTableVisible = true
186
+    },
187
+    deleteSignUp(id) {
188
+      const h = this.$createElement
189
+      this.sendSMS = false // 默认不发送
190
+
191
+      this.$msgbox({
192
+        title: '删除确认',
193
+        message: h('div', { style: 'width: 400px;height: 100px;line-height: 50px;align-content: center;' }, [
194
+          h('span', null, '确定要删除此人报名吗?'),
195
+          h('p', { style: 'color: teal' }, [
196
+            h('el-checkbox', { vModel: this.sendSMS }, '发送短信通知报名人已取消他的报名')
197
+          ])
198
+        ]),
199
+        showCancelButton: true,
200
+        confirmButtonText: '确定',
201
+        cancelButtonText: '取消',
202
+        beforeClose: (action, instance, done) => {
203
+          if (action === 'confirm') {
204
+            instance.confirmButtonLoading = true
205
+            // 发送
206
+            console.log(this.sendSMS)
207
+            done()
208
+          } else {
209
+            done()
210
+          }
211
+        }
212
+      }).then(action => {
213
+        this.$message({
214
+          type: 'info',
215
+          message: 'action: ' + action
216
+        })
217
+      })
185 218
     }
186 219
   }
187 220
 }