|
|
@ -113,6 +113,10 @@ |
|
|
|
class="diy-button--more" |
|
|
|
size="small" |
|
|
|
@click="handleSendNotice">发送通知</el-button> |
|
|
|
<el-button style="margin-left:15px" |
|
|
|
class="diy-button--more" |
|
|
|
size="small" |
|
|
|
@click="handleAttention">加入关注</el-button> |
|
|
|
<el-button style="margin-left:15px" |
|
|
|
class="diy-button--more" |
|
|
|
size="small" |
|
|
@ -518,6 +522,25 @@ export default { |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
handleAttention(row) { |
|
|
|
if (this.selectionAll.length === 0) { |
|
|
|
this.$message.info('请选择要加入关注的名单') |
|
|
|
return false |
|
|
|
} |
|
|
|
this.$confirm("确认选择的名单加入关注?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning" |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.saveFocus(row) |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
console.log('err-----', err) |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
async handleDeletes (row) { |
|
|
|
if (this.selectionAll.length === 0) { |
|
|
|
this.$message.info('请选择要取消关注的名单') |
|
|
@ -538,6 +561,37 @@ export default { |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
async saveFocus (row) { |
|
|
|
const url = "/epmetuser/icEpidemicSpecialAttention/vaccination-add" |
|
|
|
// let idCards = [] |
|
|
|
|
|
|
|
// this.selectionAll.forEach(element => { |
|
|
|
// idCards.push(element.idCard) |
|
|
|
// }); |
|
|
|
let params = { |
|
|
|
list: this.selectionAll.map(item => { |
|
|
|
return { |
|
|
|
name: item.name, |
|
|
|
mobile: item.mobile, |
|
|
|
idCard: item.idCard, |
|
|
|
attentionType: 2 |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
this.$message({ |
|
|
|
type: "success", |
|
|
|
message: "操作成功" |
|
|
|
}); |
|
|
|
|
|
|
|
this.loadTable() |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
async deleteFocus (row) { |
|
|
|
const url = "/epmetuser/icEpidemicSpecialAttention/cancel-attention" |
|
|
|
// const url = "http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolteam/del" |
|
|
|