diff --git a/src/views/enterpriseLibrary/enterprise/index.vue b/src/views/enterpriseLibrary/enterprise/index.vue index c47ffb5..9c80e4e 100644 --- a/src/views/enterpriseLibrary/enterprise/index.vue +++ b/src/views/enterpriseLibrary/enterprise/index.vue @@ -113,7 +113,7 @@ import EnterpriseDetail from '@/assets/enterpriseLibrary/enterprise/enterprise-d import EnterpriseEdit from '@/assets/enterpriseLibrary/enterprise/enterprise-edit.png'; import EnterpriseDelete from '@/assets/enterpriseLibrary/enterprise/enterprise-delete.png'; import { encryptWithSM4 } from '@/utils/sm' -import { listAPI, delAPI } from '@/api/enterpriseLibrary/enterprise/enterprise' +import { listAPI, delDataAPI } from '@/api/enterpriseLibrary/enterprise/enterprise' export default { name: 'Enterprise', components: { @@ -193,7 +193,7 @@ export default { dangerouslyUseHTMLString: true, customClass: 'delete-confirm-dialog' }).then(() => { - delAPI({enterpriseId: item.enterpriseId}).then(res => { + delDataAPI({enterpriseId: item.enterpriseId}).then(res => { if(res.code === 200){ this.$message.success('删除成功'); this.getList(); diff --git a/src/views/enterpriseLibrary/technical/components/RightTable.vue b/src/views/enterpriseLibrary/technical/components/RightTable.vue index 287e96e..d6522bb 100644 --- a/src/views/enterpriseLibrary/technical/components/RightTable.vue +++ b/src/views/enterpriseLibrary/technical/components/RightTable.vue @@ -174,8 +174,8 @@ export default { console.log('初始化完成') }, /** 删除操作 */ - handleDelete(row) { - this.$confirm(`确定要删除方案类型"${raw.technicalSolutionName}"吗?删除后将无法恢复!`, '操作提示', { + handleDelete(raw) { + this.$confirm(`确定要删除方案名称"${raw.technicalName}"吗?删除后将无法恢复!`, '操作提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning', @@ -185,7 +185,7 @@ export default { delDataAPI( { technicalSolutionTypeId: raw.technicalSolutionTypeId, - technicalSolutionId: row.technicalSolutionId + technicalSolutionId: raw.technicalSolutionId } ).then(res => { if (res.code === 200) {