Commit d299b3f4 authored by 祁正's avatar 祁正

ccap项目管理-添加事业部

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