Commit be4b2904 authored by lwy's avatar lwy

CCAP/CQC关键零部件管理页面-修改接口

parent be5c888f
......@@ -47,8 +47,7 @@ export function delRelation(id) {
//删除
export function deleteById(id) {
return request({
url: '/partsBusinessRelation/deleteById',
method: 'get',
params: { id }
url: '/control/partsBusinessRelation/deleteById/' + id,
method: 'delete'
})
}
......@@ -236,10 +236,12 @@ const businessUnitOptions = ref([])
const data = reactive({
form: {
id: null,
divisionId: '',
businessUnitName: '',
},
queryParams: {
id: null,
pageNum: 1,
pageSize: 10,
divisionId: null,
......@@ -477,6 +479,7 @@ function dialogSure(){
/** 删除按钮操作 */
const handleDelete = (row) => {
proxy.$modal.confirm('是否确认删除事业部为"' + Object.values(row.divisionName).join('、') + '"的数据项?').then(function() {
console.log("删除的行数据:", row.id)
return deleteById(row.id);
}).then(() => {
getList();
......
......@@ -161,7 +161,13 @@
</template>
<script setup name="Relation">
import { listRelation, getRelation, delRelation, addRelation, updateRelation } from "@/api/CCAPCriticalParts/relation.js";
import {
listRelation,
deleteById,
listbusinessUnit,
copyAdd,
addBusinessUnit
} from "@/api/CCAPCriticalParts/relation.js";
import { getAllBusinessUnitName } from "@/api/system/basicdata/businessunit.js";
import cn from "@/locales/controlPlan/relationshipManagement/CCAPCriticalParts/cn.json";
import en from "@/locales/controlPlan/relationshipManagement/CCAPCriticalParts/en.json";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment