Commit be4b2904 authored by lwy's avatar lwy

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

parent be5c888f
...@@ -47,8 +47,7 @@ export function delRelation(id) { ...@@ -47,8 +47,7 @@ export function delRelation(id) {
//删除 //删除
export function deleteById(id) { export function deleteById(id) {
return request({ return request({
url: '/partsBusinessRelation/deleteById', url: '/control/partsBusinessRelation/deleteById/' + id,
method: 'get', method: 'delete'
params: { id }
}) })
} }
...@@ -236,10 +236,12 @@ const businessUnitOptions = ref([]) ...@@ -236,10 +236,12 @@ const businessUnitOptions = ref([])
const data = reactive({ const data = reactive({
form: { form: {
id: null,
divisionId: '', divisionId: '',
businessUnitName: '', businessUnitName: '',
}, },
queryParams: { queryParams: {
id: null,
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
divisionId: null, divisionId: null,
...@@ -477,6 +479,7 @@ function dialogSure(){ ...@@ -477,6 +479,7 @@ function dialogSure(){
/** 删除按钮操作 */ /** 删除按钮操作 */
const handleDelete = (row) => { const handleDelete = (row) => {
proxy.$modal.confirm('是否确认删除事业部为"' + Object.values(row.divisionName).join('、') + '"的数据项?').then(function() { proxy.$modal.confirm('是否确认删除事业部为"' + Object.values(row.divisionName).join('、') + '"的数据项?').then(function() {
console.log("删除的行数据:", row.id)
return deleteById(row.id); return deleteById(row.id);
}).then(() => { }).then(() => {
getList(); getList();
......
...@@ -161,7 +161,13 @@ ...@@ -161,7 +161,13 @@
</template> </template>
<script setup name="Relation"> <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 { getAllBusinessUnitName } from "@/api/system/basicdata/businessunit.js";
import cn from "@/locales/controlPlan/relationshipManagement/CCAPCriticalParts/cn.json"; import cn from "@/locales/controlPlan/relationshipManagement/CCAPCriticalParts/cn.json";
import en from "@/locales/controlPlan/relationshipManagement/CCAPCriticalParts/en.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