From ff4f5bcce4dfef544224fde4ef03fb9189afc355 Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 27 Apr 2023 16:03:04 +0800 Subject: [PATCH] =?UTF-8?q?pc=E7=AB=AF=E8=AE=B8=E5=8F=AF=E8=AF=81=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=9B=BE=E7=89=87=E3=80=81=E6=9B=B4=E6=94=B9=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=96=B9=E5=9C=B0=E5=9B=BE=E5=A4=B4=E5=83=8F=E3=80=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=B8=E5=85=B3=E6=96=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E4=BA=BA=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/scUpload/multiple.vue | 154 +++++++++++++++------------ src/views/bigScreen/index.vue | 10 +- src/views/opm/clear.vue | 23 ++++ src/views/opm/cooler.vue | 23 ++++ src/views/opm/fire.vue | 23 ++++ src/views/opm/high.vue | 23 ++++ src/views/opm/hoisting.vue | 23 ++++ src/views/opm/normal.vue | 22 +++- src/views/opm/preheat.vue | 23 ++++ src/views/opm/soil.vue | 64 +++++++---- src/views/opm/space.vue | 30 +++++- src/views/opm/usecl.vue | 25 ++++- src/views/rpm/rpj_show.vue | 93 +++++++++++----- 13 files changed, 415 insertions(+), 121 deletions(-) diff --git a/src/components/scUpload/multiple.vue b/src/components/scUpload/multiple.vue index 6867e257..0c113a98 100644 --- a/src/components/scUpload/multiple.vue +++ b/src/components/scUpload/multiple.vue @@ -1,22 +1,22 @@ - + - + + + - + @@ -143,6 +150,7 @@ { - this.$API.rpm.member.create - .req(this.formworker) - .then((res) => { - this.$message.success("项目成员添加成功"); - this.workerVisible = false; - this.btnloading = false; - this.getMemberList(); - }) - .catch((err) => { - this.btnloading = false; - return err; + let that = this; + that.btnloading = true; + that.formworker.rpj = that.form.id; + if(that.workDialogType=="add"){ + that.$refs.workerForm.validate(async (valid) => { + that.$API.rpm.member.create + .req(that.formworker) + .then((res) => { + that.$message.success("项目成员添加成功"); + that.workerVisible = false; + that.btnloading = false; + that.getMemberList(); + }) + .catch((err) => { + this.btnloading = false; + return err; + }); }); - }); + }else{ + let formworker = {}; + formworker.is_manager = that.formworker.is_manager; + formworker.rcertificates = that.formworker.rcertificates; + that.$API.rpm.member.update + .req(that.formworker.id,formworker) + .then((res) => { + that.$message.success("项目成员证书添加成功"); + that.workerVisible = false; + that.btnloading = false; + that.getMemberList(); + }) + .catch((err) => { + that.btnloading = false; + return err; + }); + } + }, leaveDialog(row){ - debugger; + // debugger; this.leaveVisible = true; this.leaveId=row.id; console.log(this.leaveId) }, preLeave(){ - debugger; + // debugger; this.btnloading = true; if(this.reason!=''){ this.$API.rpm.member.leave.req(this.leaveId,{reason:this.reason}).then(res=>{