修改法规清单的删除传参

This commit is contained in:
qq787203167
2022-04-28 11:36:59 +08:00
parent 151d6563c4
commit 13db1954b6
@@ -644,7 +644,10 @@
content: _this.$t('ConfirmBatchDeletion'),
onOk() {
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
deleteAction(_this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
deleteAction(_this.url.deleteBatch, {
ids: idList.join(','),
projectLibraryId: this.$route.query.id
}).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.selectedRowKeys = []
@@ -667,7 +670,7 @@
this.$confirm({
content: _this.$t('ConfirmDelete'),
onOk() {
deleteAction(_this.url.deleteOne, { id: val.id }).then((res) => {
deleteAction(_this.url.deleteOne, { id: val.id, projectLibraryId: this.$route.query.id }).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.getList()