|
@@ -41,7 +41,7 @@
|
|
:maxHeight="350"
|
|
:maxHeight="350"
|
|
placeholder="点击选择组"
|
|
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
|
|
<el-option
|
|
v-for="item in userList"
|
|
v-for="item in userList"
|
|
:key="item.userId"
|
|
:key="item.userId"
|
|
@@ -109,6 +109,7 @@ export default {
|
|
initPassword: undefined,
|
|
initPassword: undefined,
|
|
// 日期范围
|
|
// 日期范围
|
|
dateRange: [],
|
|
dateRange: [],
|
|
|
|
+ deptNamety:'',
|
|
// 状态数据字典
|
|
// 状态数据字典
|
|
statusOptions: [],
|
|
statusOptions: [],
|
|
// 性别状态字典
|
|
// 性别状态字典
|
|
@@ -348,21 +349,23 @@ export default {
|
|
this.msgSuccess("请选择用户");
|
|
this.msgSuccess("请选择用户");
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if(this.form.content == undefined){
|
|
|
|
+ this.msgSuccess("请输入短信内容");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
this.$refs["form"].validate(valid => {
|
|
this.$refs["form"].validate(valid => {
|
|
if (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 => {
|
|
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.open = false;
|
|
- this.getList();
|
|
|
|
|
|
+ // this.getList();
|
|
});
|
|
});
|
|
- // }
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|