Commit 10eca039 authored by 祁正's avatar 祁正

ccap项目管理-复制新增

parent d0fca11e
...@@ -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,27 +463,26 @@ function cancelClick() { ...@@ -463,27 +463,26 @@ function cancelClick() {
//添加事业部等对话框确定按钮 //添加事业部等对话框确定按钮
function dialog2Sure(){ function dialog2Sure(){
dialogForm2.value.validate((v)=>{ dialogForm2.value.validate((v)=>{
// if (v){
// if (v){ console.log(tableDialogForm.value)
// console.log(tableDialogForm.value) if(tableDialogTitle.value === "添加事业部"){
// if(tableDialogTitle.value === "添加事业部"){ addBusinessUnit(tableDialogForm.value).then(res=>{
// addBusinessUnit(tableDialogForm.value).then(res=>{ if(res.code === 200){
// if(res.code === 200){ ElMessage.success("添加成功")
// ElMessage.success("添加成功") dialog2Cancel()
// dialog2Cancel() }
// } })
// }) }else{
// }else{ //复制新增
// //复制新增 coypAddCcapManager(tableDialogForm.value).then(res=>{
// coypAddCcapManager(tableDialogForm.value).then(res=>{ if(res.code === 200){
// if(res.code === 200){ ElMessage.success("复制成功")
// ElMessage.success("复制成功") dialog2Cancel()
// 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