houyaf 2 年之前
父节点
当前提交
bdb6f7456d
共有 1 个文件被更改,包括 4 次插入12 次删除
  1. 4 12
      src/views/hos/components/AssessReport.vue

+ 4 - 12
src/views/hos/components/AssessReport.vue

@@ -205,24 +205,16 @@ export default {
       }
       this.listLoading = true
       getMonthScoreByList(this.conditions).then((resp) => {
-        const { code, msg, data } = resp
-        if (code === 200) {
-          this.monthScoreList = data
-        } else {
-          this.$message.error(msg)
-        }
+        const { data } = resp
+        this.monthScoreList = data
       }).catch((error) => {
         console.log(error)
       })
 
       getAssessMonthRecordByList(this.conditions).then((resp) => {
         this.listLoading = false
-        const { code, msg, data } = resp
-        if (code === 200) {
-          this.recordList = data
-        } else {
-          this.$message.error(msg)
-        }
+        const { data } = resp
+        this.recordList = data
       }).catch((error) => {
         console.log(error)
       })