提交代码
This commit is contained in:
parent
624ee45a02
commit
877bd97af6
|
|
@ -49,8 +49,8 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {list, listWithNoPage} from '../../../../api/dataCenter/ailabelservice'
|
||||
import { autoAnnotate } from '../../../../api/dataCenter/ailabelservice';
|
||||
import { list, listWithNoPage } from '../../../../api/dataCenter/ailabelservice'
|
||||
import { autoAnnotate } from '../../../../api/dataCenter/ailabelservice'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
@ -89,7 +89,7 @@ export default {
|
|||
algorithmType: 'fast',
|
||||
serviceId: '' // Initialize serviceId
|
||||
},
|
||||
serviceList:[],
|
||||
serviceList: [],
|
||||
showWarning: true,
|
||||
currentRow: null
|
||||
}
|
||||
|
|
@ -105,7 +105,7 @@ export default {
|
|||
methods: {
|
||||
getServiceList() {
|
||||
listWithNoPage().then(response => {
|
||||
console.log("response" + response.data)
|
||||
console.log('response' + response.data)
|
||||
this.serviceList = response.data
|
||||
if (this.serviceList.length > 0) {
|
||||
this.form.serviceId = this.serviceList[0].serviceId
|
||||
|
|
@ -115,9 +115,9 @@ export default {
|
|||
async handleSubmit() {
|
||||
try {
|
||||
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 => {
|
||||
console.log("response" + response.data)
|
||||
console.log('response' + response.data)
|
||||
this.serviceList = response.data
|
||||
this.$message.success('智能标注成功')
|
||||
})
|
||||
|
|
@ -139,9 +139,10 @@ export default {
|
|||
this.form = {
|
||||
learningType: 'pre',
|
||||
algorithmType: 'fast',
|
||||
serviceList: ''
|
||||
serviceId: undefined
|
||||
} // 清空表单
|
||||
},
|
||||
this.serviceList = []
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue