提交代码

This commit is contained in:
jiang 2024-12-18 13:04:23 +08:00
parent 624ee45a02
commit 877bd97af6
1 changed files with 9 additions and 8 deletions

View File

@ -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>