gaoluyang
2025-03-07 083bc7004fa08f6eebd3003d421db5045ca78d5f
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()