智能标注服务管理页面和智能标注页面开发
This commit is contained in:
		
							parent
							
								
									a19a7a27da
								
							
						
					
					
						commit
						b60696d26c
					
				| 
						 | 
					@ -117,15 +117,16 @@ export default {
 | 
				
			||||||
      try {
 | 
					      try {
 | 
				
			||||||
        this.loading = true
 | 
					        this.loading = true
 | 
				
			||||||
        const data = { taskId: this.taskId, intelligentAnnotationServiceId: this.form.serviceId }
 | 
					        const data = { taskId: this.taskId, intelligentAnnotationServiceId: this.form.serviceId }
 | 
				
			||||||
        autoAnnotate(data).then(response => {
 | 
					        await autoAnnotate(data).then(response => {
 | 
				
			||||||
          console.log('response' + response.data)
 | 
					          console.log('response' + response.data)
 | 
				
			||||||
          this.serviceList = response.data
 | 
					          this.serviceList = response.data
 | 
				
			||||||
          this.$message.success('智能标注成功')
 | 
					          this.$message.success('智能标注成功')
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
        this.cancel()
 | 
					 | 
				
			||||||
      } catch (error) {
 | 
					      } catch (error) {
 | 
				
			||||||
        this.$message.error(error.message || '智能标注失败')
 | 
					        this.$message.error(error.message || '智能标注失败')
 | 
				
			||||||
      } finally {
 | 
					      } finally {
 | 
				
			||||||
 | 
					        this.cancel()
 | 
				
			||||||
 | 
					        this.getList()
 | 
				
			||||||
        this.loading = false
 | 
					        this.loading = false
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
| 
						 | 
					@ -133,7 +134,6 @@ export default {
 | 
				
			||||||
    cancel() {
 | 
					    cancel() {
 | 
				
			||||||
      this.isOpen = false
 | 
					      this.isOpen = false
 | 
				
			||||||
      this.reset()
 | 
					      this.reset()
 | 
				
			||||||
      this.getList()
 | 
					 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    // 表单重置
 | 
					    // 表单重置
 | 
				
			||||||
    reset() {
 | 
					    reset() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue