Commit af709cdd by 王志慧

fixed

1 parent dcb3cb36
...@@ -51,11 +51,11 @@ export default { ...@@ -51,11 +51,11 @@ export default {
} }
} }
}, },
props:{ props: {
isFollowSync: { isFollowSync: {
type: Boolean, type: Boolean,
default: false default: false
}, }
}, },
created() { created() {
this.getFollowPersonList() this.getFollowPersonList()
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
}) })
}, },
addLine() { 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 return
} }
this.followName = '' this.followName = ''
...@@ -103,11 +103,26 @@ export default { ...@@ -103,11 +103,26 @@ export default {
handleCalculate() {}, handleCalculate() {},
//删除 //删除
handleDelete(data, index) { handleDelete(data, index) {
if (this.followListData.length >=1) { if (data.id) {
this.followListData.splice(index, 1) this.$confirm('确定要删除吗, 是否继续?', '提示', {
} confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
if (data.id) { if (data.id) {
this.$apis.claims.delFollowPerson({ id: data.id }).then(res => {}) 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!