|
@@ -1146,11 +1146,18 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async removeUserProjectInfoAndRoleById (id) {//参建项目删除一条项目
|
|
|
- const { data: res } = await removeUserProjectInfoAndRoleById({ id })
|
|
|
- console.log(res);
|
|
|
- if (res.code == 200) {
|
|
|
- await this.findProjectAndContractList(this.fromss.userId)
|
|
|
+ this.deletexiangmu = true
|
|
|
+ try {
|
|
|
+ const { data: res } = await removeUserProjectInfoAndRoleById({ id })
|
|
|
+ console.log(res);
|
|
|
+ if (res.code == 200) {
|
|
|
+ await this.findProjectAndContractList(this.fromss.userId)
|
|
|
+ }
|
|
|
+ this.deletexiangmu = false
|
|
|
+ } catch (error) {
|
|
|
+ this.deletexiangmu = false
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
async beforeClose (done) {//弹框关闭事件
|
|
|
this.fromss = {
|