Browse Source

[FE]AI报警表格调整

liuwenxun 4 years ago
parent
commit
02e90d6f53
1 changed files with 4 additions and 2 deletions
  1. 4 2
      security-protection-platform/src/modules/aialarm/index.vue

+ 4 - 2
security-protection-platform/src/modules/aialarm/index.vue

343
      console.log(id, status, dict[status])
343
      console.log(id, status, dict[status])
344

344

345
      var res = await aialarmapi.dispose({ 'workTaskId': id, 'status': status, 'processMemo': dict.status })
345
      var res = await aialarmapi.dispose({ 'workTaskId': id, 'status': status, 'processMemo': dict.status })
346
      console.log(res)
346

347
      if (res.status === 200) {
347
      if (res.status === 200) {
348
        this.$Message.success('操作成功')
348
        this.$Message.success('操作成功')
349
        this.data[this.currentdata.index].status = res.data.data.status
349
        this.data[this.currentdata.index].status = res.data.data.status
350
        // this.data[this.currentdata.index].processTime = res.data.data.doneDate
350
        if (res.data.data.status == 'END') {
351
          this.data[this.currentdata.index].processTime = res.data.data.doneDate
352
        }
351
      } else {
353
      } else {
352
        this.$Message.danger('处理失败')
354
        this.$Message.danger('处理失败')
353
      }
355
      }