From 083bc7004fa08f6eebd3003d421db5045ca78d5f Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 07 三月 2025 15:54:36 +0800
Subject: [PATCH] 删除无用代码

---
 src/views/CNAS/systemManagement/measuresDealRisks/components/hazardIdentificationRiskAssessment.vue |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/src/views/CNAS/systemManagement/measuresDealRisks/components/hazardIdentificationRiskAssessment.vue b/src/views/CNAS/systemManagement/measuresDealRisks/components/hazardIdentificationRiskAssessment.vue
index cdc0c7a..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()

--
Gitblit v1.9.3