Browse Source

人员页面

weiximei 6 years ago
parent
commit
2c42f1076a

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

151
     private void checkPhoneAndCode(String phone, String code){
151
     private void checkPhoneAndCode(String phone, String code){
152
         /**************  校验手机号, 验证码   ***************/
152
         /**************  校验手机号, 验证码   ***************/
153
         if (!AccountValidatorUtil.isPhone(phone)){
153
         if (!AccountValidatorUtil.isPhone(phone)){
154
-            throw new WisdomException("请输入正的手机号!");
154
+            throw new WisdomException("请输入正的手机号!");
155
         }
155
         }
156
         String phoneCode = (String) AppkeyCache.getCache(phone);
156
         String phoneCode = (String) AppkeyCache.getCache(phone);
157
         if ("1234".equals(code)) {
157
         if ("1234".equals(code)) {

+ 1
- 1
VUECODE/smart-property-manage/src/views/login/index.vue View File

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

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

67
         prop="id"
67
         prop="id"
68
         label="操作"
68
         label="操作"
69
         align="center">
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
       </el-table-column>
71
       </el-table-column>
72
     </el-table>
72
     </el-table>
73
     <div class="block">
73
     <div class="block">
100
       list: [],
100
       list: [],
101
       listLoading: true, // 表格加载框
101
       listLoading: true, // 表格加载框
102
       dialogTableVisible: false, // 是否显示弹框
102
       dialogTableVisible: false, // 是否显示弹框
103
-      dialogContent: '提示信息' // 弹框内容
103
+      dialogContent: '提示信息', // 弹框内容
104
+      sendSMS: false // 是否发生短信
104
     }
105
     }
105
   },
106
   },
106
   mounted() {
107
   mounted() {
182
     showDialog(remark) { // 备注 弹框
183
     showDialog(remark) { // 备注 弹框
183
       this.dialogContent = remark
184
       this.dialogContent = remark
184
       this.dialogTableVisible = true
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
 }