|
@@ -1267,18 +1267,19 @@ export default {
|
|
|
// 关注与取消关注
|
|
|
followContact(row){
|
|
|
// console.log(row);
|
|
|
- let confirmText = row.IsFollow==1?'是否取消':'是否设为'
|
|
|
+ let isFollow = row.IsFollow==1
|
|
|
+ let confirmText = isFollow?'是否取消':'是否设为'
|
|
|
this.$confirm(`${confirmText}特别关注?`, "提示", {
|
|
|
type: "warning",
|
|
|
}).then(() => {
|
|
|
let params={
|
|
|
UserId:row.UserId,
|
|
|
CompanyId:row.CompanyId,
|
|
|
- Type:1-row.IsFollow
|
|
|
+ Type:isFollow?0:1
|
|
|
}
|
|
|
customInterence.concactFollow(params).then(res=>{
|
|
|
if(res.Ret == 200){
|
|
|
- this.$message.success(row.IsFollow==1?"取消成功":"关注成功")
|
|
|
+ this.$message.success(isFollow?"取消成功":"关注成功")
|
|
|
this.getuserTable()
|
|
|
}
|
|
|
})
|