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/listRiskAnalysisControlPlans.vue | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/src/views/CNAS/systemManagement/measuresDealRisks/components/listRiskAnalysisControlPlans.vue b/src/views/CNAS/systemManagement/measuresDealRisks/components/listRiskAnalysisControlPlans.vue index ca6e916..5f3358f 100644 --- a/src/views/CNAS/systemManagement/measuresDealRisks/components/listRiskAnalysisControlPlans.vue +++ b/src/views/CNAS/systemManagement/measuresDealRisks/components/listRiskAnalysisControlPlans.vue @@ -136,7 +136,6 @@ }, initData() { getPageList(this.search).then(res => { - if (res.code === 201) return; this.tableData = res.data.records; this.search.total = res.data.total; }); @@ -166,7 +165,6 @@ // 瀹℃壒鎺ュ彛 approvalApi(userId, status) { riskAnalysisApprovalOfControlPlanChecklist({ approval: userId, status }).then(res => { - if (res.code === 201) return; this.initData() this.$message({ type: 'success', @@ -199,7 +197,6 @@ // 鎵瑰噯鎺ュ彛 approveApi(userId, status) { approvalOfControlPlanChecklist({ approve: userId, status }).then(res => { - if (res.code === 201) return; this.initData() this.$message({ type: 'success', @@ -214,7 +211,7 @@ }); }, onSuccess(response) { - if (response.code == 201) { + if (response.code != 200) { this.$message({ type: 'error', message: response.message, @@ -239,7 +236,6 @@ type: 'warning' }).then(() => { deleteSignificantRiskFactorAnalysis({ id: row.id }).then(res => { - if (res.code === 201) return; this.initData() this.$message({ type: 'success', @@ -256,7 +252,6 @@ addApi() { this.loading = true analysisOfMajorRiskFactorsAdded(this.form).then(res => { - if (res.code === 201) return; this.dialogVisible = false this.loading = false this.initData() @@ -277,7 +272,6 @@ openDownloadDia() { exportSignificantRiskFactors().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