Commit 8b19d6d0 authored by 祁正's avatar 祁正

ccap项目管理-复制新增

parent 53979b85
...@@ -321,7 +321,7 @@ function addBusiness(row){ ...@@ -321,7 +321,7 @@ function addBusiness(row){
tableDialogTitle.value = '添加事业部' tableDialogTitle.value = '添加事业部'
tableDialogVisible.value =true tableDialogVisible.value =true
tableDialogForm.value.id = row.id tableDialogForm.value.id = row.id
getBusinessListExclude(); // getBusinessListExclude();
} }
//获取所有事业部(除了奇瑞,除了列表里面的出现的) //获取所有事业部(除了奇瑞,除了列表里面的出现的)
function getBusinessListExclude(){ function getBusinessListExclude(){
...@@ -463,26 +463,27 @@ function cancelClick() { ...@@ -463,26 +463,27 @@ function cancelClick() {
//添加事业部等对话框确定按钮 //添加事业部等对话框确定按钮
function dialog2Sure(){ function dialog2Sure(){
dialogForm2.value.validate((v)=>{ dialogForm2.value.validate((v)=>{
if (v){ //
console.log(tableDialogForm.value) // if (v){
if(tableDialogTitle.value === "添加事业部"){ // console.log(tableDialogForm.value)
addBusinessUnit(tableDialogForm.value).then(res=>{ // if(tableDialogTitle.value === "添加事业部"){
if(res.code === 200){ // addBusinessUnit(tableDialogForm.value).then(res=>{
ElMessage.success("添加成功") // if(res.code === 200){
dialog2Cancel() // ElMessage.success("添加成功")
} // dialog2Cancel()
}) // }
}else{ // })
//复制新增 // }else{
coypAddCcapManager(tableDialogForm.value).then(res=>{ // //复制新增
if(res.code === 200){ // coypAddCcapManager(tableDialogForm.value).then(res=>{
ElMessage.success("复制成功") // if(res.code === 200){
dialog2Cancel() // 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