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