Commit af709cdd by 王志慧

fixed

1 parent dcb3cb36
......@@ -51,11 +51,11 @@ export default {
}
}
},
props:{
props: {
isFollowSync: {
type: Boolean,
default: false
},
}
},
created() {
this.getFollowPersonList()
......@@ -72,7 +72,7 @@ export default {
})
},
addLine() {
if (this.followListData.length>0&&this.followListData[this.followListData.length - 1].followName == '') {
if (this.followListData.length > 0 && this.followListData[this.followListData.length - 1].followName == '') {
return
}
this.followName = ''
......@@ -97,17 +97,32 @@ export default {
})
},
handleCancel() {
// this.isFollowSync = false
// this.isFollowSync = false
this.$emit('handleClose')
},
handleCalculate() {},
//删除
handleDelete(data, index) {
if (this.followListData.length >=1) {
this.followListData.splice(index, 1)
}
if (data.id) {
this.$apis.claims.delFollowPerson({ id: data.id }).then(res => {})
this.$confirm('确定要删除吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
if (data.id) {
this.$apis.claims.delFollowPerson({ id: data.id }).then(res => {})
this.followListData.splice(index, 1)
}
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
} else {
this.followListData.splice(index, 1)
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!