Commit 885799d0 885799d077f54f87cc502c7374303af2d1572737 by zhanghao

commit

1 parent 6865df7b
......@@ -285,6 +285,7 @@
export default {
data() {
return {
mailReceiver: this.$route.query.mailReceiver,
nowActList: [],
nowDateByStartTimeList: [],
yesterdayByStartTimeList: [],
......@@ -311,6 +312,7 @@
}
}
this.$http.get('/tool/selectActOnline?'+this.$qs.stringify({
mailReceiver: this.mailReceiver
}),config).then((res)=>{
console.log(res.data)
this.nowActList=res.data.nowActList
......@@ -320,6 +322,19 @@
this.nowDateByEndTimeList=res.data.nowDateByEndTimeList
this.yesterdayByEndTimeList=res.data.yesterdayByEndTimeList
this.tomorrowByEndTimeList=res.data.tomorrowByEndTimeList
if(res.data.mailReceiver=='success') {
this.$message({
showClose: true,
message: '邮件发送成功',
type: 'success'
});
} else if(res.data.mailReceiver=='fail') {
this.$message({
showClose: true,
message: '邮件发送失败',
type: 'error'
});
}
loading.close();
}).catch(error=>{
console.log(error);
......
......@@ -787,6 +787,9 @@
</div>
<div class="text item">
<el-form-item>
<el-input placeholder="如需发送邮件,可输入公司邮箱地址;如有多个地址以,号分隔" v-model="selectActOnline.mailReceiver" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button round @click="selectActOnlineSubmit">查询上下线情况</el-button>
</el-form-item>
</div>
......@@ -1104,6 +1107,7 @@
}]
},
selectActOnline: {
mailReceiver: ''
},
actProvinceOptions: [],
actCityOptions: [],
......@@ -1771,7 +1775,7 @@
},
selectActOnlineSubmit() {
const {href} = this.$router.resolve({ name:'selectActOnline', query:
{}})
{mailReceiver: this.selectActOnline.mailReceiver}})
window.open(href, '_blank')
},
changeOrgAllSubmit() {
......