Browse Source

2025-07-23

master
fengyuan_yang 6 months ago
parent
commit
942222c2b6
  1. 8
      src/views/modules/project/projectInfo/com_project_info_part.vue

8
src/views/modules/project/projectInfo/com_project_info_part.vue

@ -532,7 +532,7 @@
</el-tabs>
</el-form>
<el-footer style="height:35px;margin-top: 20px;text-align:center">
<el-button type="primary" @click="saveData()">保存</el-button>
<el-button type="primary" :loading="saveLoading" @click="saveData()">保存</el-button>
<el-button type="primary" @click="closeModal()">关闭</el-button>
</el-footer>
</el-dialog>
@ -1738,6 +1738,7 @@ import {
manufacturingInfoFlag: false, // Manufacturing
planningInfoFlag: false, // planning
partItemInfoFlag: false, //
saveLoading: false
}
},
@ -2508,6 +2509,7 @@ import {
saveData2 () {
this.modalData.partItemList = this.partItemList
this.saveLoading = true
if (this.modalData.flag === '1' || this.modalData.flag === '3') {
partInformationSave2(this.modalData).then(({data}) => {
if (data && data.code === 0) {
@ -2524,6 +2526,8 @@ import {
confirmButtonText: '确定'
})
}
}).finally(()=>{
this.saveLoading = false
})
} else {
this.modalData.mainInfoFlag = this.mainInfoFlag
@ -2546,6 +2550,8 @@ import {
confirmButtonText: '确定'
})
}
}).finally(()=>{
this.saveLoading = false
})
}
},

Loading…
Cancel
Save