yrik 4 years ago
parent
commit
58f2d21b47
1 changed files with 14 additions and 11 deletions
  1. 14 11
      ruoyi-ui/src/views/phone/phons/index.vue

+ 14 - 11
ruoyi-ui/src/views/phone/phons/index.vue

@@ -41,7 +41,7 @@
                     :maxHeight="350"
                     placeholder="点击选择组"
                   /> -->
-                  <el-select v-model="deptName" :multiple ="true" clearable placeholder="请选择用户" @visible-change = "visiblechange" @change="changetr" @blur="blurkde" filterable>
+                  <el-select v-model="deptNamety" :multiple ="true" clearable placeholder="请选择用户" @visible-change = "visiblechange" @change="changetr" @blur="blurkde" filterable>
                       <el-option
                         v-for="item in userList"
                         :key="item.userId"
@@ -109,6 +109,7 @@ export default {
       initPassword: undefined,
       // 日期范围
       dateRange: [],
+      deptNamety:'',
       // 状态数据字典
       statusOptions: [],
       // 性别状态字典
@@ -348,21 +349,23 @@ export default {
         this.msgSuccess("请选择用户");
         return  false
       }
+
+      if(this.form.content == undefined){
+        this.msgSuccess("请输入短信内容");
+        return  false
+      }
       this.$refs["form"].validate(valid => {
         if (valid) {
-          // if (this.form.userId != undefined) {
-          //   updateUser(this.form).then(response => {
-          //     this.msgSuccess("修改成功");
-          //     this.open = false;
-          //     this.getList();
-          //   });
-          // } else {
             addPhoen(this.form).then(response => {
-              this.msgSuccess(response.data);
+              if(response.data =='发送失败的人' || response.data == undefined){
+                this.msgSuccess('操作成功');
+              }else{
+                this.msgSuccess(response.data);
+              }
+
               this.open = false;
-              this.getList();
+              // this.getList();
             });
-          // }
         }
       });
     },