From 31e47cebb043a65c838a23c517848f1afdab778c Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期四, 13 三月 2025 09:45:30 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev --- src/views/CNAS/systemManagement/measuresDealRisks/components/hazardIdentificationRiskAssessment.vue | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/src/views/CNAS/systemManagement/measuresDealRisks/components/hazardIdentificationRiskAssessment.vue b/src/views/CNAS/systemManagement/measuresDealRisks/components/hazardIdentificationRiskAssessment.vue index b0c63c5..b0da2ca 100644 --- a/src/views/CNAS/systemManagement/measuresDealRisks/components/hazardIdentificationRiskAssessment.vue +++ b/src/views/CNAS/systemManagement/measuresDealRisks/components/hazardIdentificationRiskAssessment.vue @@ -167,7 +167,6 @@ initData() { this.tableData = [] getPageResults(this.page).then(res => { - if (res.code === 201) return; this.tableData = res.data.records; this.page.total = res.data.total; }); @@ -197,7 +196,6 @@ // 瀹℃壒鎺ュ彛 approvalApi(userId, status) { dangerousRiskApproval({ approval: userId, status: status }).then(res => { - if (res.code === 201) return; this.initData() this.$message({ type: 'success', @@ -230,7 +228,6 @@ // 鎵瑰噯鎺ュ彛 approveApi(userId, status) { hazardIdentificationAndRiskApproval({ approve: userId, status: status }).then(res => { - if (res.code === 201) return; this.initData() this.$message({ type: 'success', @@ -247,7 +244,7 @@ }, // 鏂囦欢涓婁紶鎴愬姛 onSuccess(response) { - if (response.code == 201) { + if (response.code != 200) { this.$message({ type: 'error', message: response.message, @@ -272,7 +269,6 @@ type: 'warning' }).then(() => { removeRiskFactors({ id: row.id }).then(res => { - if (res.code === 201) return; this.initData() this.$message({ type: 'success', @@ -289,7 +285,6 @@ addApi() { this.loading = true addNewRiskFactors(this.form).then(res => { - if (res.code === 201) return; this.dialogVisible = false this.loading = false this.initData() @@ -310,7 +305,6 @@ openDownloadDia() { exportHazardFactorIdentification().then(res => { this.outLoading = false - this.$message.success('瀵煎嚭鎴愬姛') const blob = new Blob([res], { type: 'application/msword' }); this.$download.saveAs(blob, '鍗遍櫓鍥犵礌杈ㄨ瘑涓庨闄╄瘎浠风粨鏋滀竴瑙�' + '.docx'); }) -- Gitblit v1.9.3