[update] 理事会成员删除
This commit is contained in:
+26
-1
@@ -81,7 +81,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<span slot="action" class="action-span-cell" slot-scope="text, itemRecord">
|
<span slot="action" class="action-span-cell" slot-scope="text, itemRecord">
|
||||||
<a @click="handleDeleteMember(itemRecord.childrenId)" v-has="'council:member:delete'">删除</a>
|
<a @click="handleDeleteMember(itemRecord.id)" v-has="'council:member:delete'">删除</a>
|
||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
|
|
||||||
@@ -266,6 +266,31 @@ export default {
|
|||||||
id: record.id
|
id: record.id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 删除成员
|
||||||
|
* @param id
|
||||||
|
*/
|
||||||
|
handleDeleteMember(id) {
|
||||||
|
if (!this.url.deleteMember) {
|
||||||
|
this.$message.error('请设置url.deleteMember属性!')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
const that = this
|
||||||
|
this.$confirm({
|
||||||
|
title: '确认删除',
|
||||||
|
content: '确定要删除此条数据吗?',
|
||||||
|
onOk: function () {
|
||||||
|
getAction(that.url.deleteMember, { id: id }).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
that.$message.success(res.message)
|
||||||
|
that.loadData()
|
||||||
|
} else {
|
||||||
|
that.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user