Commit d299b3f4 authored by 祁正's avatar 祁正

ccap项目管理-添加事业部

parent 2921b820
......@@ -56,3 +56,11 @@ export function getBusinessExclude() {
method: 'get'
})
}
// 添加事业部
export function addBusinessUnit(data) {
return request({
url: '/control/ccapProjectManagement/addBusinessUnit',
method: 'post',
data:data
})
}
......@@ -207,7 +207,8 @@ import {
inserTableData,
deleteBatch,
updateCcap,
getBusinessExclude
getBusinessExclude,
addBusinessUnit
} from "@/api/CCAPProjectManagement/list";
const tableDialogForm = ref({
......@@ -356,6 +357,7 @@ function dialog2Cancel(){
tableDialogForm.value = {}
tableDialogVisible.value = false
tableDialogForm.value.id = null
getList()
}
function projectView(row){
......@@ -438,6 +440,13 @@ function dialog2Sure(){
dialogForm2.value.validate((v)=>{
if (v){
console.log(tableDialogForm.value)
addBusinessUnit(tableDialogForm.value).then(res=>{
console.log(res)
if(res.code === 200){
ElMessage.success("添加成功")
dialog2Cancel()
}
})
}
})
}
......
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